public class ActivityRelevancyService extends Object implements org.picocontainer.Startable
| Modifier and Type | Field and Description |
|---|---|
protected static org.exoplatform.services.log.Log |
LOG
The Constant LOG.
|
protected RelevanceStatsDAO |
relevanceStats
The relevance stats.
|
protected RelevanceDAO |
relevanceStorage
The DAO for RelevanceEntity.
|
| Constructor and Description |
|---|
ActivityRelevancyService(RelevanceDAO relevanceStorage)
Instantiates a ActivityRelevancyService.
|
ActivityRelevancyService(org.exoplatform.services.jcr.RepositoryService jcrService,
org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviders,
org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator hierarchyCreator,
org.exoplatform.services.organization.OrganizationService organization,
org.exoplatform.social.core.manager.IdentityManager identityManager,
org.exoplatform.social.core.storage.api.IdentityStorage identityStorage,
org.exoplatform.social.core.manager.ActivityManager activityManager,
RelevanceDAO relevanceStorage,
RelevanceStatsDAO relevanceStats)
Instantiates a ActivityRelevancyService.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deleteRelevance(RelevanceEntity relevance)
Deletes a relevance.
|
RelevanceEntity |
findById(RelevanceId relevanceId)
Gets RelevanceEntity by given RelevanceId which contains the user id and
activity id.
|
List<RelevanceStatsEntity> |
findUserStats(Date sinceDate)
Find user stats since given data to current time.
|
long |
getRelevanciesCount()
Gets the relevancies count.
|
void |
saveRelevance(RelevanceEntity relevance)
Saves a relevance to the storage.
|
void |
start() |
void |
stop() |
protected final RelevanceDAO relevanceStorage
protected final RelevanceStatsDAO relevanceStats
protected static final org.exoplatform.services.log.Log LOG
public ActivityRelevancyService(RelevanceDAO relevanceStorage)
relevanceStorage - is the DAO for RelevanceEntitypublic ActivityRelevancyService(org.exoplatform.services.jcr.RepositoryService jcrService,
org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviders,
org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator hierarchyCreator,
org.exoplatform.services.organization.OrganizationService organization,
org.exoplatform.social.core.manager.IdentityManager identityManager,
org.exoplatform.social.core.storage.api.IdentityStorage identityStorage,
org.exoplatform.social.core.manager.ActivityManager activityManager,
RelevanceDAO relevanceStorage,
RelevanceStatsDAO relevanceStats)
jcrService - the jcr servicesessionProviders - the session providershierarchyCreator - the hierarchy creatororganization - the organizationidentityManager - the identity manageridentityStorage - the identity storageactivityManager - the activity managerrelevanceStorage - the relevance storagerelevanceStats - the relevance statspublic void start()
start in interface org.picocontainer.Startablepublic void stop()
stop in interface org.picocontainer.Startablepublic void saveRelevance(RelevanceEntity relevance)
relevance - to be saved/updatedpublic void deleteRelevance(RelevanceEntity relevance)
relevance - to be deletedpublic RelevanceEntity findById(RelevanceId relevanceId)
relevanceId - is the searching parameter for retrieving
RelevanceEntitypublic List<RelevanceStatsEntity> findUserStats(Date sinceDate)
sinceDate - the given date since which collect the statisticspublic long getRelevanciesCount()
Copyright © 2003–2018 eXo Platform SAS. All rights reserved.