public interface ActivityDAO extends org.exoplatform.commons.api.persistence.GenericDAO<ActivityEntity,Long>
| 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) |
ActivityEntity |
getParentActivity(long commentId)
Get Activity of comment
|
List<ActivityEntity> |
getSpaceActivities(org.exoplatform.social.core.identity.model.Identity owner,
long offset,
long limit) |
List<String> |
getSpaceActivityIds(org.exoplatform.social.core.identity.model.Identity owner,
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) |
List<ActivityEntity> getUserActivities(org.exoplatform.social.core.identity.model.Identity owner, long offset, long limit) throws org.exoplatform.social.core.storage.ActivityStorageException
owner - the identityoffset - the offset indexlimit - the maximum number of ActivityEntity to loadorg.exoplatform.social.core.storage.ActivityStorageException - if has any errorList<String> getUserIdsActivities(org.exoplatform.social.core.identity.model.Identity owner, long offset, long limit) throws org.exoplatform.social.core.storage.ActivityStorageException
owner - the Identityoffset - the offset indexlimit - maximum number item to loadorg.exoplatform.social.core.storage.ActivityStorageException - if has any errorint getNumberOfUserActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity)
ownerIdentity - the IdentityList<ActivityEntity> getNewerOnUserActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity, long sinceTime, int limit)
ownerIdentity - the IdentitysinceTime - the beginning timelimit - the number of entities to loadint getNumberOfNewerOnUserActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity,
long sinceTime)
ownerIdentity - the IdentitysinceTime - the beginning timeList<ActivityEntity> getOlderOnUserActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity, long sinceTime, int limit)
ownerIdentity - the IdentitysinceTime - the ending timelimit - the number of entities to loadint getNumberOfOlderOnUserActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity,
long sinceTime)
ownerIdentity - the IdentitysinceTime - the end timeList<ActivityEntity> getSpaceActivities(org.exoplatform.social.core.identity.model.Identity owner, long offset, long limit) throws org.exoplatform.social.core.storage.ActivityStorageException
owner - the Identityoffset - the start indexlimit - number of activity entities to loadorg.exoplatform.social.core.storage.ActivityStorageException - if has any errorList<String> getSpaceActivityIds(org.exoplatform.social.core.identity.model.Identity owner, long offset, long limit) throws org.exoplatform.social.core.storage.ActivityStorageException
owner - the Identityoffset - the start indexlimit - max number activity Id to loadorg.exoplatform.social.core.storage.ActivityStorageException - if has any errorint getNumberOfSpaceActivities(org.exoplatform.social.core.identity.model.Identity spaceIdentity)
spaceIdentity - the space IdentityList<ActivityEntity> getNewerOnSpaceActivities(org.exoplatform.social.core.identity.model.Identity spaceIdentity, long sinceTime, int limit)
spaceIdentity - the space IdentitysinceTime - the beginning timelimit - max number of entities to loadint getNumberOfNewerOnSpaceActivities(org.exoplatform.social.core.identity.model.Identity spaceIdentity,
long sinceTime)
spaceIdentity - the space IdentitysinceTime - the beginning timeList<ActivityEntity> getOlderOnSpaceActivities(org.exoplatform.social.core.identity.model.Identity spaceIdentity, long sinceTime, int limit)
spaceIdentity - the space IdentitysinceTime - the beginning timelimit - max number of entities to loadint getNumberOfOlderOnSpaceActivities(org.exoplatform.social.core.identity.model.Identity spaceIdentity,
long sinceTime)
spaceIdentity - the space IdentitysinceTime - the beginning timeList<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
owner - the Identityviewer - the viewer Identityoffset - the start indexlimit - max number of entities to loadorg.exoplatform.social.core.storage.ActivityStorageException - if has any errorList<ActivityEntity> getActivityFeed(org.exoplatform.social.core.identity.model.Identity ownerIdentity, int offset, int limit, List<String> spaceIds)
ownerIdentity - the Identityoffset - the start indexlimit - max number of entities to loadspaceIds - list of space idsList<String> getActivityIdsFeed(org.exoplatform.social.core.identity.model.Identity ownerIdentity, int offset, int limit, List<String> spaceIds)
ownerIdentity - the Identityoffset - the start indexlimit - max number of ids to loadspaceIds - list of space idsint getNumberOfActivitesOnActivityFeed(org.exoplatform.social.core.identity.model.Identity ownerIdentity,
List<String> spaceIds)
ownerIdentity - the IdentityspaceIds - list of space idsList<ActivityEntity> getNewerOnActivityFeed(org.exoplatform.social.core.identity.model.Identity ownerIdentity, long sinceTime, int limit, List<String> spaceIds)
ownerIdentity - the IdentitysinceTime - the beginning timelimit - max number of entities to loadspaceIds - list of space idsint getNumberOfNewerOnActivityFeed(org.exoplatform.social.core.identity.model.Identity ownerIdentity,
long sinceTime,
List<String> spaceIds)
ownerIdentity - the IdentitysinceTime - the beginning timespaceIds - list of space idsList<ActivityEntity> getOlderOnActivityFeed(org.exoplatform.social.core.identity.model.Identity ownerIdentity, long sinceTime, int limit, List<String> spaceIds)
ownerIdentity - the IdentitysinceTime - the end timelimit - max number entities to loadspaceIds - list of space idsint getNumberOfOlderOnActivityFeed(org.exoplatform.social.core.identity.model.Identity ownerIdentity,
long sinceTime,
List<String> spaceIds)
ownerIdentity - the IdentitysinceTime - the end timespaceIds - list of space idsList<ActivityEntity> getUserSpacesActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity, int offset, int limit, List<String> spaceIds)
ownerIdentity - the Identityoffset - the start indexlimit - max number of entities to loadspaceIds - list of space idsList<String> getUserSpacesActivityIds(org.exoplatform.social.core.identity.model.Identity ownerIdentity, int offset, int limit, List<String> spaceIds)
ownerIdentity - the Identityoffset - the start indexlimit - max number ids to loadspaceIds - list of space idsint getNumberOfUserSpacesActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity,
List<String> spaceIds)
ownerIdentity - the IdentityspaceIds - list of space idsList<ActivityEntity> getNewerOnUserSpacesActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity, long sinceTime, int limit, List<String> spaceIds)
ownerIdentity - the IdentitysinceTime - the beginning timelimit - max number item to loadspaceIds - list of space idsint getNumberOfNewerOnUserSpacesActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity,
long sinceTime,
List<String> spaceIds)
ownerIdentity - the IdentitysinceTime - the beginning timespaceIds - list of space idsList<ActivityEntity> getOlderOnUserSpacesActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity, long sinceTime, int limit, List<String> spaceIds)
ownerIdentity - the IdentitysinceTime - the end timelimit - max number items to loadspaceIds - list of space idsint getNumberOfOlderOnUserSpacesActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity,
long sinceTime,
List<String> spaceIds)
ownerIdentity - the IdentitysinceTime - the end timespaceIds - list of space idsList<ActivityEntity> getActivitiesOfConnections(org.exoplatform.social.core.identity.model.Identity ownerIdentity, int offset, int limit)
ownerIdentity - the Identityoffset - the start indexlimit - max number of items to loadList<String> getActivityIdsOfConnections(org.exoplatform.social.core.identity.model.Identity ownerIdentity, int offset, int limit)
ownerIdentity - the Identityoffset - the start indexlimit - max number items to loadint getNumberOfActivitiesOfConnections(org.exoplatform.social.core.identity.model.Identity ownerIdentity)
ownerIdentity - the IdentityList<ActivityEntity> getNewerOnActivitiesOfConnections(org.exoplatform.social.core.identity.model.Identity ownerIdentity, long sinceTime, long limit)
ownerIdentity - the IdentitysinceTime - the beginning timelimit - max number items to loadint getNumberOfNewerOnActivitiesOfConnections(org.exoplatform.social.core.identity.model.Identity ownerIdentity,
long sinceTime)
ownerIdentity - the IdentitysinceTime - the start timeList<ActivityEntity> getOlderOnActivitiesOfConnections(org.exoplatform.social.core.identity.model.Identity ownerIdentity, long sinceTime, int limit)
ownerIdentity - the IdentitysinceTime - the end timelimit - max items to loadint getNumberOfOlderOnActivitiesOfConnections(org.exoplatform.social.core.identity.model.Identity ownerIdentity,
long sinceTime)
ownerIdentity - the IdentitysinceTime - the end timeList<ActivityEntity> getActivitiesByPoster(org.exoplatform.social.core.identity.model.Identity posterIdentity, int offset, int limit, String... activityTypes)
posterIdentity - the Identityoffset - the start indexlimit - max number items to loadactivityTypes - the activity Typeint getNumberOfActivitiesByPoster(org.exoplatform.social.core.identity.model.Identity posterIdentity,
String... activityTypes)
posterIdentity - the IdentityactivityTypes - the activity Typelong getNumberOfComments(long activityId)
activityId - the Id of activityList<ActivityEntity> getComments(long activityId, int offset, int limit)
activityId - the Id of activityoffset - the start indexlimit - max comments to loadList<ActivityEntity> getNewerComments(long activityId, Date sinceTime, int offset, int limit)
activityId - the id of activitysinceTime - the start timeoffset - the start indexlimit - max items to loadList<ActivityEntity> getOlderComments(long activityId, Date sinceTime, int offset, int limit)
activityId - the Id of activitysinceTime - the end timeoffset - the start indexlimit - max items to loadActivityEntity getParentActivity(long commentId)
commentId - the comment IdList<ActivityEntity> getAllActivities()
Copyright © 2003–2016 eXo Platform SAS. All rights reserved.