public class ActivityDAOImpl extends org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<ActivityEntity,Long> implements ActivityDAO
| Constructor and Description |
|---|
ActivityDAOImpl() |
| Modifier and Type | Method and Description |
|---|---|
List<ActivityEntity> |
getActivities(org.exoplatform.social.core.identity.model.Identity owner,
org.exoplatform.social.core.identity.model.Identity viewer,
long offset,
long limit) |
List<ActivityEntity> |
getActivitiesByPoster(org.exoplatform.social.core.identity.model.Identity posterIdentity,
int offset,
int limit,
String... activityTypes) |
List<ActivityEntity> |
getActivitiesOfConnections(org.exoplatform.social.core.identity.model.Identity ownerIdentity,
int offset,
int limit) |
List<ActivityEntity> |
getActivityFeed(org.exoplatform.social.core.identity.model.Identity ownerIdentity,
int offset,
int limit,
List<String> spaceIds) |
List<String> |
getActivityIdsFeed(org.exoplatform.social.core.identity.model.Identity ownerIdentity,
int offset,
int limit,
List<String> spaceIds) |
List<String> |
getActivityIdsOfConnections(org.exoplatform.social.core.identity.model.Identity ownerIdentity,
int offset,
int limit) |
List<ActivityEntity> |
getAllActivities() |
List<ActivityEntity> |
getComments(long activityId,
int offset,
int limit) |
List<ActivityEntity> |
getNewerComments(long activityId,
Date sinceTime,
int offset,
int limit) |
List<ActivityEntity> |
getNewerOnActivitiesOfConnections(org.exoplatform.social.core.identity.model.Identity ownerIdentity,
long sinceTime,
long limit) |
List<ActivityEntity> |
getNewerOnActivityFeed(org.exoplatform.social.core.identity.model.Identity ownerIdentity,
long sinceTime,
int limit,
List<String> spaceIds) |
List<ActivityEntity> |
getNewerOnSpaceActivities(org.exoplatform.social.core.identity.model.Identity spaceIdentity,
long sinceTime,
int limit) |
List<ActivityEntity> |
getNewerOnUserActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity,
long sinceTime,
int limit) |
List<ActivityEntity> |
getNewerOnUserSpacesActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity,
long sinceTime,
int limit,
List<String> spaceIds) |
int |
getNumberOfActivitesOnActivityFeed(org.exoplatform.social.core.identity.model.Identity ownerIdentity,
List<String> spaceIds) |
int |
getNumberOfActivitiesByPoster(org.exoplatform.social.core.identity.model.Identity posterIdentity,
String... activityTypes) |
int |
getNumberOfActivitiesOfConnections(org.exoplatform.social.core.identity.model.Identity ownerIdentity) |
long |
getNumberOfComments(long activityId) |
int |
getNumberOfNewerOnActivitiesOfConnections(org.exoplatform.social.core.identity.model.Identity ownerIdentity,
long sinceTime) |
int |
getNumberOfNewerOnActivityFeed(org.exoplatform.social.core.identity.model.Identity ownerIdentity,
long sinceTime,
List<String> spaceIds) |
int |
getNumberOfNewerOnSpaceActivities(org.exoplatform.social.core.identity.model.Identity spaceIdentity,
long sinceTime) |
int |
getNumberOfNewerOnUserActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity,
long sinceTime) |
int |
getNumberOfNewerOnUserSpacesActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity,
long sinceTime,
List<String> spaceIds) |
int |
getNumberOfOlderOnActivitiesOfConnections(org.exoplatform.social.core.identity.model.Identity ownerIdentity,
long sinceTime) |
int |
getNumberOfOlderOnActivityFeed(org.exoplatform.social.core.identity.model.Identity ownerIdentity,
long sinceTime,
List<String> spaceIds) |
int |
getNumberOfOlderOnSpaceActivities(org.exoplatform.social.core.identity.model.Identity spaceIdentity,
long sinceTime) |
int |
getNumberOfOlderOnUserActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity,
long sinceTime) |
int |
getNumberOfOlderOnUserSpacesActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity,
long sinceTime,
List<String> spaceIds) |
int |
getNumberOfSpaceActivities(org.exoplatform.social.core.identity.model.Identity spaceIdentity) |
int |
getNumberOfUserActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity) |
int |
getNumberOfUserSpacesActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity,
List<String> spaceIds) |
List<ActivityEntity> |
getOlderComments(long activityId,
Date sinceTime,
int offset,
int limit) |
List<ActivityEntity> |
getOlderOnActivitiesOfConnections(org.exoplatform.social.core.identity.model.Identity ownerIdentity,
long sinceTime,
int limit) |
List<ActivityEntity> |
getOlderOnActivityFeed(org.exoplatform.social.core.identity.model.Identity ownerIdentity,
long sinceTime,
int limit,
List<String> spaceIds) |
List<ActivityEntity> |
getOlderOnSpaceActivities(org.exoplatform.social.core.identity.model.Identity spaceIdentity,
long sinceTime,
int limit) |
List<ActivityEntity> |
getOlderOnUserActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity,
long sinceTime,
int limit) |
List<ActivityEntity> |
getOlderOnUserSpacesActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity,
long sinceTime,
int limit,
List<String> spaceIds) |
List<ActivityEntity> |
getOwnerActivities(List<String> owners,
long newerTime,
long olderTime,
long offset,
long limit) |
ActivityEntity |
getParentActivity(long commentId)
Get Activity of comment
|
List<ActivityEntity> |
getSpaceActivities(org.exoplatform.social.core.identity.model.Identity spaceOwner,
long offset,
long limit) |
List<String> |
getSpaceActivityIds(org.exoplatform.social.core.identity.model.Identity spaceOwner,
long offset,
long limit) |
List<ActivityEntity> |
getUserActivities(org.exoplatform.social.core.identity.model.Identity owner,
long offset,
long limit) |
List<String> |
getUserIdsActivities(org.exoplatform.social.core.identity.model.Identity owner,
long offset,
long limit)
Gets Ids for User stream
|
List<ActivityEntity> |
getUserSpacesActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity,
int offset,
int limit,
List<String> spaceIds) |
List<String> |
getUserSpacesActivityIds(org.exoplatform.social.core.identity.model.Identity ownerIdentity,
int offset,
int limit,
List<String> spaceIds) |
count, create, createAll, delete, deleteAll, deleteAll, find, findAll, getEntityManager, update, updateAllpublic List<ActivityEntity> getActivities(org.exoplatform.social.core.identity.model.Identity owner, org.exoplatform.social.core.identity.model.Identity viewer, long offset, long limit) throws org.exoplatform.social.core.storage.ActivityStorageException
getActivities in interface ActivityDAOowner - the Identityviewer - the viewer Identityoffset - the start indexlimit - max number of entities to loadorg.exoplatform.social.core.storage.ActivityStorageException - if has any errorpublic List<String> getUserIdsActivities(org.exoplatform.social.core.identity.model.Identity owner, long offset, long limit) throws org.exoplatform.social.core.storage.ActivityStorageException
ActivityDAOgetUserIdsActivities in interface ActivityDAOowner - the Identityoffset - the offset indexlimit - maximum number item to loadorg.exoplatform.social.core.storage.ActivityStorageException - if has any errorpublic List<ActivityEntity> getActivityFeed(org.exoplatform.social.core.identity.model.Identity ownerIdentity, int offset, int limit, List<String> spaceIds)
getActivityFeed in interface ActivityDAOownerIdentity - the Identityoffset - the start indexlimit - max number of entities to loadspaceIds - list of space idspublic List<String> getActivityIdsFeed(org.exoplatform.social.core.identity.model.Identity ownerIdentity, int offset, int limit, List<String> spaceIds)
getActivityIdsFeed in interface ActivityDAOownerIdentity - the Identityoffset - the start indexlimit - max number of ids to loadspaceIds - list of space idspublic int getNumberOfActivitesOnActivityFeed(org.exoplatform.social.core.identity.model.Identity ownerIdentity,
List<String> spaceIds)
getNumberOfActivitesOnActivityFeed in interface ActivityDAOownerIdentity - the IdentityspaceIds - list of space idspublic List<ActivityEntity> getNewerOnActivityFeed(org.exoplatform.social.core.identity.model.Identity ownerIdentity, long sinceTime, int limit, List<String> spaceIds)
getNewerOnActivityFeed in interface ActivityDAOownerIdentity - the IdentitysinceTime - the beginning timelimit - max number of entities to loadspaceIds - list of space idspublic int getNumberOfNewerOnActivityFeed(org.exoplatform.social.core.identity.model.Identity ownerIdentity,
long sinceTime,
List<String> spaceIds)
getNumberOfNewerOnActivityFeed in interface ActivityDAOownerIdentity - the IdentitysinceTime - the beginning timespaceIds - list of space idspublic List<ActivityEntity> getOlderOnActivityFeed(org.exoplatform.social.core.identity.model.Identity ownerIdentity, long sinceTime, int limit, List<String> spaceIds)
getOlderOnActivityFeed in interface ActivityDAOownerIdentity - the IdentitysinceTime - the end timelimit - max number entities to loadspaceIds - list of space idspublic int getNumberOfOlderOnActivityFeed(org.exoplatform.social.core.identity.model.Identity ownerIdentity,
long sinceTime,
List<String> spaceIds)
getNumberOfOlderOnActivityFeed in interface ActivityDAOownerIdentity - the IdentitysinceTime - the end timespaceIds - list of space idspublic List<ActivityEntity> getUserActivities(org.exoplatform.social.core.identity.model.Identity owner, long offset, long limit) throws org.exoplatform.social.core.storage.ActivityStorageException
getUserActivities in interface ActivityDAOowner - the identityoffset - the offset indexlimit - the maximum number of ActivityEntity to loadorg.exoplatform.social.core.storage.ActivityStorageException - if has any errorpublic int getNumberOfUserActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity)
getNumberOfUserActivities in interface ActivityDAOownerIdentity - the Identitypublic List<ActivityEntity> getNewerOnUserActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity, long sinceTime, int limit)
getNewerOnUserActivities in interface ActivityDAOownerIdentity - the IdentitysinceTime - the beginning timelimit - the number of entities to loadpublic int getNumberOfNewerOnUserActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity,
long sinceTime)
getNumberOfNewerOnUserActivities in interface ActivityDAOownerIdentity - the IdentitysinceTime - the beginning timepublic List<ActivityEntity> getOlderOnUserActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity, long sinceTime, int limit)
getOlderOnUserActivities in interface ActivityDAOownerIdentity - the IdentitysinceTime - the ending timelimit - the number of entities to loadpublic int getNumberOfOlderOnUserActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity,
long sinceTime)
getNumberOfOlderOnUserActivities in interface ActivityDAOownerIdentity - the IdentitysinceTime - the end timepublic List<ActivityEntity> getSpaceActivities(org.exoplatform.social.core.identity.model.Identity spaceOwner, long offset, long limit) throws org.exoplatform.social.core.storage.ActivityStorageException
getSpaceActivities in interface ActivityDAOspaceOwner - the Identityoffset - the start indexlimit - number of activity entities to loadorg.exoplatform.social.core.storage.ActivityStorageException - if has any errorpublic List<String> getSpaceActivityIds(org.exoplatform.social.core.identity.model.Identity spaceOwner, long offset, long limit) throws org.exoplatform.social.core.storage.ActivityStorageException
getSpaceActivityIds in interface ActivityDAOspaceOwner - the Identityoffset - the start indexlimit - max number activity Id to loadorg.exoplatform.social.core.storage.ActivityStorageException - if has any errorpublic int getNumberOfSpaceActivities(org.exoplatform.social.core.identity.model.Identity spaceIdentity)
getNumberOfSpaceActivities in interface ActivityDAOspaceIdentity - the space Identitypublic List<ActivityEntity> getNewerOnSpaceActivities(org.exoplatform.social.core.identity.model.Identity spaceIdentity, long sinceTime, int limit)
getNewerOnSpaceActivities in interface ActivityDAOspaceIdentity - the space IdentitysinceTime - the beginning timelimit - max number of entities to loadpublic int getNumberOfNewerOnSpaceActivities(org.exoplatform.social.core.identity.model.Identity spaceIdentity,
long sinceTime)
getNumberOfNewerOnSpaceActivities in interface ActivityDAOspaceIdentity - the space IdentitysinceTime - the beginning timepublic List<ActivityEntity> getOlderOnSpaceActivities(org.exoplatform.social.core.identity.model.Identity spaceIdentity, long sinceTime, int limit)
getOlderOnSpaceActivities in interface ActivityDAOspaceIdentity - the space IdentitysinceTime - the beginning timelimit - max number of entities to loadpublic int getNumberOfOlderOnSpaceActivities(org.exoplatform.social.core.identity.model.Identity spaceIdentity,
long sinceTime)
getNumberOfOlderOnSpaceActivities in interface ActivityDAOspaceIdentity - the space IdentitysinceTime - the beginning timepublic List<ActivityEntity> getUserSpacesActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity, int offset, int limit, List<String> spaceIds)
getUserSpacesActivities in interface ActivityDAOownerIdentity - the Identityoffset - the start indexlimit - max number of entities to loadspaceIds - list of space idspublic List<String> getUserSpacesActivityIds(org.exoplatform.social.core.identity.model.Identity ownerIdentity, int offset, int limit, List<String> spaceIds)
getUserSpacesActivityIds in interface ActivityDAOownerIdentity - the Identityoffset - the start indexlimit - max number ids to loadspaceIds - list of space idspublic int getNumberOfUserSpacesActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity,
List<String> spaceIds)
getNumberOfUserSpacesActivities in interface ActivityDAOownerIdentity - the IdentityspaceIds - list of space idspublic List<ActivityEntity> getNewerOnUserSpacesActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity, long sinceTime, int limit, List<String> spaceIds)
getNewerOnUserSpacesActivities in interface ActivityDAOownerIdentity - the IdentitysinceTime - the beginning timelimit - max number item to loadspaceIds - list of space idspublic int getNumberOfNewerOnUserSpacesActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity,
long sinceTime,
List<String> spaceIds)
getNumberOfNewerOnUserSpacesActivities in interface ActivityDAOownerIdentity - the IdentitysinceTime - the beginning timespaceIds - list of space idspublic List<ActivityEntity> getOlderOnUserSpacesActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity, long sinceTime, int limit, List<String> spaceIds)
getOlderOnUserSpacesActivities in interface ActivityDAOownerIdentity - the IdentitysinceTime - the end timelimit - max number items to loadspaceIds - list of space idspublic int getNumberOfOlderOnUserSpacesActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity,
long sinceTime,
List<String> spaceIds)
getNumberOfOlderOnUserSpacesActivities in interface ActivityDAOownerIdentity - the IdentitysinceTime - the end timespaceIds - list of space idspublic List<ActivityEntity> getActivitiesOfConnections(org.exoplatform.social.core.identity.model.Identity ownerIdentity, int offset, int limit)
getActivitiesOfConnections in interface ActivityDAOownerIdentity - the Identityoffset - the start indexlimit - max number of items to loadpublic List<String> getActivityIdsOfConnections(org.exoplatform.social.core.identity.model.Identity ownerIdentity, int offset, int limit)
getActivityIdsOfConnections in interface ActivityDAOownerIdentity - the Identityoffset - the start indexlimit - max number items to loadpublic int getNumberOfActivitiesOfConnections(org.exoplatform.social.core.identity.model.Identity ownerIdentity)
getNumberOfActivitiesOfConnections in interface ActivityDAOownerIdentity - the Identitypublic List<ActivityEntity> getNewerOnActivitiesOfConnections(org.exoplatform.social.core.identity.model.Identity ownerIdentity, long sinceTime, long limit)
getNewerOnActivitiesOfConnections in interface ActivityDAOownerIdentity - the IdentitysinceTime - the beginning timelimit - max number items to loadpublic int getNumberOfNewerOnActivitiesOfConnections(org.exoplatform.social.core.identity.model.Identity ownerIdentity,
long sinceTime)
getNumberOfNewerOnActivitiesOfConnections in interface ActivityDAOownerIdentity - the IdentitysinceTime - the start timepublic List<ActivityEntity> getOlderOnActivitiesOfConnections(org.exoplatform.social.core.identity.model.Identity ownerIdentity, long sinceTime, int limit)
getOlderOnActivitiesOfConnections in interface ActivityDAOownerIdentity - the IdentitysinceTime - the end timelimit - max items to loadpublic int getNumberOfOlderOnActivitiesOfConnections(org.exoplatform.social.core.identity.model.Identity ownerIdentity,
long sinceTime)
getNumberOfOlderOnActivitiesOfConnections in interface ActivityDAOownerIdentity - the IdentitysinceTime - the end timepublic List<ActivityEntity> getActivitiesByPoster(org.exoplatform.social.core.identity.model.Identity posterIdentity, int offset, int limit, String... activityTypes)
getActivitiesByPoster in interface ActivityDAOposterIdentity - the Identityoffset - the start indexlimit - max number items to loadactivityTypes - the activity Typepublic int getNumberOfActivitiesByPoster(org.exoplatform.social.core.identity.model.Identity posterIdentity,
String... activityTypes)
getNumberOfActivitiesByPoster in interface ActivityDAOposterIdentity - the IdentityactivityTypes - the activity Typepublic long getNumberOfComments(long activityId)
getNumberOfComments in interface ActivityDAOactivityId - the Id of activitypublic List<ActivityEntity> getComments(long activityId, int offset, int limit)
getComments in interface ActivityDAOactivityId - the Id of activityoffset - the start indexlimit - max comments to loadpublic List<ActivityEntity> getNewerComments(long activityId, Date sinceTime, int offset, int limit)
getNewerComments in interface ActivityDAOactivityId - the id of activitysinceTime - the start timeoffset - the start indexlimit - max items to loadpublic List<ActivityEntity> getOlderComments(long activityId, Date sinceTime, int offset, int limit)
getOlderComments in interface ActivityDAOactivityId - the Id of activitysinceTime - the end timeoffset - the start indexlimit - max items to loadpublic ActivityEntity getParentActivity(long commentId)
ActivityDAOgetParentActivity in interface ActivityDAOcommentId - the comment Idpublic List<ActivityEntity> getAllActivities()
getAllActivities in interface ActivityDAOpublic List<ActivityEntity> getOwnerActivities(List<String> owners, long newerTime, long olderTime, long offset, long limit) throws org.exoplatform.social.core.storage.ActivityStorageException
org.exoplatform.social.core.storage.ActivityStorageExceptionCopyright © 2003–2016 eXo Platform SAS. All rights reserved.