Class ActivityDAOImpl
java.lang.Object
org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<ActivityEntity,Long>
org.exoplatform.social.core.jpa.storage.dao.jpa.ActivityDAOImpl
- All Implemented Interfaces:
org.exoplatform.commons.api.persistence.GenericDAO<ActivityEntity,,Long> ActivityDAO
public class ActivityDAOImpl
extends org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<ActivityEntity,Long>
implements ActivityDAO
Created by The eXo Platform SAS
Author : eXoPlatform
exo@exoplatform.com
May 18, 2015
-
Field Summary
Fields inherited from class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl
modelClass -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteActivitiesByOwnerId(String ownerId) delete an activity by ownerIdfindActivities(List<Long> activityIds) Get list of activities switch list of IDsfindCommentsAndSubCommentsOfActivity(Long activityId) find comments and Sub Comments of some activityfindCommentsOfActivities(List<Long> ids) find Sub Comments of some commentsgetActivities(org.exoplatform.social.core.identity.model.Identity owner, org.exoplatform.social.core.identity.model.Identity viewer, long offset, long limit) getActivitiesByPoster(org.exoplatform.social.core.identity.model.Identity posterIdentity, int offset, int limit, String... activityTypes) intgetActivitiesCountByFilter(org.exoplatform.social.core.activity.ActivityFilter activityFilter, List<String> streamIdentityIds) getActivitiesOfConnections(org.exoplatform.social.core.identity.model.Identity ownerIdentity, int offset, int limit) getActivityByFilter(org.exoplatform.social.core.activity.ActivityFilter activityFilter, List<String> streamIdentityIds, int offset, int limit) getActivityCategoryIds(long spaceIdentityId) getActivityFeed(org.exoplatform.social.core.identity.model.Identity ownerIdentity, int offset, int limit, List<String> spaceIds) getActivityIdsByFilter(org.exoplatform.social.core.activity.ActivityFilter activityFilter, List<String> streamIdentityIds, int offset, int limit) getActivityIdsFeed(org.exoplatform.social.core.identity.model.Identity ownerIdentity, int offset, int limit, List<String> spaceIds) getActivityIdsOfConnections(org.exoplatform.social.core.identity.model.Identity ownerIdentity, int offset, int limit) getComments(long activityId, int offset, int limit, boolean sortDescending) getNewerComments(long activityId, Date sinceTime, int offset, int limit) getNewerOnActivitiesOfConnections(org.exoplatform.social.core.identity.model.Identity ownerIdentity, long sinceTime, long limit) getNewerOnActivityFeed(org.exoplatform.social.core.identity.model.Identity ownerIdentity, long sinceTime, int limit, List<String> spaceIds) getNewerOnSpaceActivities(org.exoplatform.social.core.identity.model.Identity spaceIdentity, long sinceTime, int limit) getNewerOnUserActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity, long sinceTime, int limit) getNewerOnUserSpacesActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity, long sinceTime, int limit, List<String> spaceIds) intgetNumberOfActivitesOnActivityFeed(org.exoplatform.social.core.identity.model.Identity ownerIdentity, List<String> spaceIds) intgetNumberOfActivitiesByPoster(org.exoplatform.social.core.identity.model.Identity posterIdentity, String... activityTypes) intgetNumberOfActivitiesOfConnections(org.exoplatform.social.core.identity.model.Identity ownerIdentity) longgetNumberOfComments(long activityId) intgetNumberOfNewerOnActivitiesOfConnections(org.exoplatform.social.core.identity.model.Identity ownerIdentity, long sinceTime) intgetNumberOfNewerOnActivityFeed(org.exoplatform.social.core.identity.model.Identity ownerIdentity, long sinceTime, List<String> spaceIds) intgetNumberOfNewerOnSpaceActivities(org.exoplatform.social.core.identity.model.Identity spaceIdentity, long sinceTime) intgetNumberOfNewerOnUserActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity, long sinceTime) intgetNumberOfNewerOnUserSpacesActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity, long sinceTime, List<String> spaceIds) intgetNumberOfOlderOnActivitiesOfConnections(org.exoplatform.social.core.identity.model.Identity ownerIdentity, long sinceTime) intgetNumberOfOlderOnActivityFeed(org.exoplatform.social.core.identity.model.Identity ownerIdentity, long sinceTime, List<String> spaceIds) intgetNumberOfOlderOnSpaceActivities(org.exoplatform.social.core.identity.model.Identity spaceIdentity, long sinceTime) intgetNumberOfOlderOnUserActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity, long sinceTime) intgetNumberOfOlderOnUserSpacesActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity, long sinceTime, List<String> spaceIds) intgetNumberOfSpaceActivities(org.exoplatform.social.core.identity.model.Identity spaceIdentity) intgetNumberOfUserActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity) intgetNumberOfUserSpacesActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity, List<String> spaceIds) getOlderComments(long activityId, Date sinceTime, int offset, int limit) getOlderOnActivitiesOfConnections(org.exoplatform.social.core.identity.model.Identity ownerIdentity, long sinceTime, int limit) getOlderOnActivityFeed(org.exoplatform.social.core.identity.model.Identity ownerIdentity, long sinceTime, int limit, List<String> spaceIds) getOlderOnSpaceActivities(org.exoplatform.social.core.identity.model.Identity spaceIdentity, long sinceTime, int limit) getOlderOnUserActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity, long sinceTime, int limit) getOlderOnUserSpacesActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity, long sinceTime, int limit, List<String> spaceIds) getOwnerActivities(List<String> owners, long newerTime, long olderTime, long offset, long limit) getParentActivity(long commentId) Get Activity of commentgetSpaceActivities(org.exoplatform.social.core.identity.model.Identity spaceOwner, long offset, long limit) getSpaceActivityIds(org.exoplatform.social.core.identity.model.Identity spaceIdentity, long offset, long limit) getUserActivities(org.exoplatform.social.core.identity.model.Identity owner, long offset, long limit) getUserIdsActivities(org.exoplatform.social.core.identity.model.Identity owner, long offset, long limit) Gets Ids for User streamgetUserSpacesActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity, int offset, int limit, List<String> spaceIds) getUserSpacesActivityIds(org.exoplatform.social.core.identity.model.Identity ownerIdentity, int offset, int limit, List<String> spaceIds) Methods inherited from class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl
count, create, createAll, delete, deleteAll, deleteAll, find, findAll, getEntityManager, getHibernateDialect, isMSSQLDialect, isOrcaleDialect, update, updateAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.exoplatform.commons.api.persistence.GenericDAO
count, create, createAll, delete, deleteAll, deleteAll, find, findAll, update, updateAll
-
Constructor Details
-
ActivityDAOImpl
-
-
Method Details
-
getActivities
public List<Long> 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 - Specified by:
getActivitiesin interfaceActivityDAO- Parameters:
owner- the Identityviewer- the viewer Identityoffset- the start indexlimit- max number of entities to load- Returns:
- list of activity entities
- Throws:
org.exoplatform.social.core.storage.ActivityStorageException- if has any error
-
getUserIdsActivities
public List<String> getUserIdsActivities(org.exoplatform.social.core.identity.model.Identity owner, long offset, long limit) throws org.exoplatform.social.core.storage.ActivityStorageException Description copied from interface:ActivityDAOGets Ids for User stream- Specified by:
getUserIdsActivitiesin interfaceActivityDAO- Parameters:
owner- the Identityoffset- the offset indexlimit- maximum number item to load- Returns:
- the list of activity id
- Throws:
org.exoplatform.social.core.storage.ActivityStorageException- if has any error
-
getActivityFeed
public List<Long> getActivityFeed(org.exoplatform.social.core.identity.model.Identity ownerIdentity, int offset, int limit, List<String> spaceIds) - Specified by:
getActivityFeedin interfaceActivityDAO- Parameters:
ownerIdentity- the Identityoffset- the start indexlimit- max number of entities to loadspaceIds- list of space ids- Returns:
- list of activity entities
-
getActivityByFilter
public List<Long> getActivityByFilter(org.exoplatform.social.core.activity.ActivityFilter activityFilter, List<String> streamIdentityIds, int offset, int limit) - Specified by:
getActivityByFilterin interfaceActivityDAO- Parameters:
activityFilter- the activity filterstreamIdentityIds- the space identity idsoffset- the offset indexlimit- the maximum number of ActivityEntity to load- Returns:
- the activity entities
-
getActivityIdsByFilter
public List<String> getActivityIdsByFilter(org.exoplatform.social.core.activity.ActivityFilter activityFilter, List<String> streamIdentityIds, int offset, int limit) - Specified by:
getActivityIdsByFilterin interfaceActivityDAO- Parameters:
activityFilter- the activity filterstreamIdentityIds- the space identity idsoffset- the offset indexlimit- maximum number item to load- Returns:
- the list of activity id
-
getActivitiesCountByFilter
public int getActivitiesCountByFilter(org.exoplatform.social.core.activity.ActivityFilter activityFilter, List<String> streamIdentityIds) - Specified by:
getActivitiesCountByFilterin interfaceActivityDAO- Parameters:
activityFilter- the activity filterstreamIdentityIds- the space identity ids- Returns:
- the number of activities by filter
-
getActivityIdsFeed
public List<String> getActivityIdsFeed(org.exoplatform.social.core.identity.model.Identity ownerIdentity, int offset, int limit, List<String> spaceIds) - Specified by:
getActivityIdsFeedin interfaceActivityDAO- Parameters:
ownerIdentity- the Identityoffset- the start indexlimit- max number of ids to loadspaceIds- list of space ids- Returns:
- list of activity ids
-
getNumberOfActivitesOnActivityFeed
public int getNumberOfActivitesOnActivityFeed(org.exoplatform.social.core.identity.model.Identity ownerIdentity, List<String> spaceIds) - Specified by:
getNumberOfActivitesOnActivityFeedin interfaceActivityDAO- Parameters:
ownerIdentity- the IdentityspaceIds- list of space ids- Returns:
- number of activities
-
getNewerOnActivityFeed
public List<Long> getNewerOnActivityFeed(org.exoplatform.social.core.identity.model.Identity ownerIdentity, long sinceTime, int limit, List<String> spaceIds) - Specified by:
getNewerOnActivityFeedin interfaceActivityDAO- Parameters:
ownerIdentity- the IdentitysinceTime- the beginning timelimit- max number of entities to loadspaceIds- list of space ids- Returns:
- list of activity entities
-
getNumberOfNewerOnActivityFeed
public int getNumberOfNewerOnActivityFeed(org.exoplatform.social.core.identity.model.Identity ownerIdentity, long sinceTime, List<String> spaceIds) - Specified by:
getNumberOfNewerOnActivityFeedin interfaceActivityDAO- Parameters:
ownerIdentity- the IdentitysinceTime- the beginning timespaceIds- list of space ids- Returns:
- number of actvitites
-
getOlderOnActivityFeed
public List<Long> getOlderOnActivityFeed(org.exoplatform.social.core.identity.model.Identity ownerIdentity, long sinceTime, int limit, List<String> spaceIds) - Specified by:
getOlderOnActivityFeedin interfaceActivityDAO- Parameters:
ownerIdentity- the IdentitysinceTime- the end timelimit- max number entities to loadspaceIds- list of space ids- Returns:
- list of activity entities
-
getNumberOfOlderOnActivityFeed
public int getNumberOfOlderOnActivityFeed(org.exoplatform.social.core.identity.model.Identity ownerIdentity, long sinceTime, List<String> spaceIds) - Specified by:
getNumberOfOlderOnActivityFeedin interfaceActivityDAO- Parameters:
ownerIdentity- the IdentitysinceTime- the end timespaceIds- list of space ids- Returns:
- number of activities
-
getUserActivities
public List<Long> getUserActivities(org.exoplatform.social.core.identity.model.Identity owner, long offset, long limit) throws org.exoplatform.social.core.storage.ActivityStorageException - Specified by:
getUserActivitiesin interfaceActivityDAO- Parameters:
owner- the identityoffset- the offset indexlimit- the maximum number of ActivityEntity to load- Returns:
- the activity entities
- Throws:
org.exoplatform.social.core.storage.ActivityStorageException- if has any error
-
getNumberOfUserActivities
public int getNumberOfUserActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity) - Specified by:
getNumberOfUserActivitiesin interfaceActivityDAO- Parameters:
ownerIdentity- the Identity- Returns:
- the number of activities
-
getNewerOnUserActivities
public List<Long> getNewerOnUserActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity, long sinceTime, int limit) - Specified by:
getNewerOnUserActivitiesin interfaceActivityDAO- Parameters:
ownerIdentity- the IdentitysinceTime- the beginning timelimit- the number of entities to load- Returns:
- list of activity entities
-
getNumberOfNewerOnUserActivities
public int getNumberOfNewerOnUserActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity, long sinceTime) - Specified by:
getNumberOfNewerOnUserActivitiesin interfaceActivityDAO- Parameters:
ownerIdentity- the IdentitysinceTime- the beginning time- Returns:
- number of activities
-
getOlderOnUserActivities
public List<Long> getOlderOnUserActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity, long sinceTime, int limit) - Specified by:
getOlderOnUserActivitiesin interfaceActivityDAO- Parameters:
ownerIdentity- the IdentitysinceTime- the ending timelimit- the number of entities to load- Returns:
- list of activity entities
-
getNumberOfOlderOnUserActivities
public int getNumberOfOlderOnUserActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity, long sinceTime) - Specified by:
getNumberOfOlderOnUserActivitiesin interfaceActivityDAO- Parameters:
ownerIdentity- the IdentitysinceTime- the end time- Returns:
- number of activities
-
getSpaceActivities
public List<Long> getSpaceActivities(org.exoplatform.social.core.identity.model.Identity spaceOwner, long offset, long limit) throws org.exoplatform.social.core.storage.ActivityStorageException - Specified by:
getSpaceActivitiesin interfaceActivityDAO- Parameters:
spaceOwner- the Identityoffset- the start indexlimit- number of activity entities to load- Returns:
- list of activity entities
- Throws:
org.exoplatform.social.core.storage.ActivityStorageException- if has any error
-
getSpaceActivityIds
public List<String> getSpaceActivityIds(org.exoplatform.social.core.identity.model.Identity spaceIdentity, long offset, long limit) throws org.exoplatform.social.core.storage.ActivityStorageException - Specified by:
getSpaceActivityIdsin interfaceActivityDAO- Parameters:
spaceIdentity- the Identityoffset- the start indexlimit- max number activity Id to load- Returns:
- list of activity Ids
- Throws:
org.exoplatform.social.core.storage.ActivityStorageException- if has any error
-
getNumberOfSpaceActivities
public int getNumberOfSpaceActivities(org.exoplatform.social.core.identity.model.Identity spaceIdentity) - Specified by:
getNumberOfSpaceActivitiesin interfaceActivityDAO- Parameters:
spaceIdentity- the space Identity- Returns:
- number of activities
-
getNewerOnSpaceActivities
public List<Long> getNewerOnSpaceActivities(org.exoplatform.social.core.identity.model.Identity spaceIdentity, long sinceTime, int limit) - Specified by:
getNewerOnSpaceActivitiesin interfaceActivityDAO- Parameters:
spaceIdentity- the space IdentitysinceTime- the beginning timelimit- max number of entities to load- Returns:
- list of activity entities
-
getNumberOfNewerOnSpaceActivities
public int getNumberOfNewerOnSpaceActivities(org.exoplatform.social.core.identity.model.Identity spaceIdentity, long sinceTime) - Specified by:
getNumberOfNewerOnSpaceActivitiesin interfaceActivityDAO- Parameters:
spaceIdentity- the space IdentitysinceTime- the beginning time- Returns:
- number of activities
-
getOlderOnSpaceActivities
public List<Long> getOlderOnSpaceActivities(org.exoplatform.social.core.identity.model.Identity spaceIdentity, long sinceTime, int limit) - Specified by:
getOlderOnSpaceActivitiesin interfaceActivityDAO- Parameters:
spaceIdentity- the space IdentitysinceTime- the beginning timelimit- max number of entities to load- Returns:
- list of activity entities
-
getNumberOfOlderOnSpaceActivities
public int getNumberOfOlderOnSpaceActivities(org.exoplatform.social.core.identity.model.Identity spaceIdentity, long sinceTime) - Specified by:
getNumberOfOlderOnSpaceActivitiesin interfaceActivityDAO- Parameters:
spaceIdentity- the space IdentitysinceTime- the beginning time- Returns:
- number of activities
-
getUserSpacesActivities
public List<Long> getUserSpacesActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity, int offset, int limit, List<String> spaceIds) - Specified by:
getUserSpacesActivitiesin interfaceActivityDAO- Parameters:
ownerIdentity- the Identityoffset- the start indexlimit- max number of entities to loadspaceIds- list of space ids- Returns:
- lsit of activity entities
-
getUserSpacesActivityIds
public List<String> getUserSpacesActivityIds(org.exoplatform.social.core.identity.model.Identity ownerIdentity, int offset, int limit, List<String> spaceIds) - Specified by:
getUserSpacesActivityIdsin interfaceActivityDAO- Parameters:
ownerIdentity- the Identityoffset- the start indexlimit- max number ids to loadspaceIds- list of space ids- Returns:
- list of activity ids
-
getNumberOfUserSpacesActivities
public int getNumberOfUserSpacesActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity, List<String> spaceIds) - Specified by:
getNumberOfUserSpacesActivitiesin interfaceActivityDAO- Parameters:
ownerIdentity- the IdentityspaceIds- list of space ids- Returns:
- the number of activities
-
getNewerOnUserSpacesActivities
public List<Long> getNewerOnUserSpacesActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity, long sinceTime, int limit, List<String> spaceIds) - Specified by:
getNewerOnUserSpacesActivitiesin interfaceActivityDAO- Parameters:
ownerIdentity- the IdentitysinceTime- the beginning timelimit- max number item to loadspaceIds- list of space ids- Returns:
- list of activity entities
-
getNumberOfNewerOnUserSpacesActivities
public int getNumberOfNewerOnUserSpacesActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity, long sinceTime, List<String> spaceIds) - Specified by:
getNumberOfNewerOnUserSpacesActivitiesin interfaceActivityDAO- Parameters:
ownerIdentity- the IdentitysinceTime- the beginning timespaceIds- list of space ids- Returns:
- number of activities
-
getOlderOnUserSpacesActivities
public List<Long> getOlderOnUserSpacesActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity, long sinceTime, int limit, List<String> spaceIds) - Specified by:
getOlderOnUserSpacesActivitiesin interfaceActivityDAO- Parameters:
ownerIdentity- the IdentitysinceTime- the end timelimit- max number items to loadspaceIds- list of space ids- Returns:
- list of activity entities
-
getNumberOfOlderOnUserSpacesActivities
public int getNumberOfOlderOnUserSpacesActivities(org.exoplatform.social.core.identity.model.Identity ownerIdentity, long sinceTime, List<String> spaceIds) - Specified by:
getNumberOfOlderOnUserSpacesActivitiesin interfaceActivityDAO- Parameters:
ownerIdentity- the IdentitysinceTime- the end timespaceIds- list of space ids- Returns:
- number of activities
-
getActivitiesOfConnections
public List<Long> getActivitiesOfConnections(org.exoplatform.social.core.identity.model.Identity ownerIdentity, int offset, int limit) - Specified by:
getActivitiesOfConnectionsin interfaceActivityDAO- Parameters:
ownerIdentity- the Identityoffset- the start indexlimit- max number of items to load- Returns:
- list of activity entities
-
getActivityIdsOfConnections
public List<String> getActivityIdsOfConnections(org.exoplatform.social.core.identity.model.Identity ownerIdentity, int offset, int limit) - Specified by:
getActivityIdsOfConnectionsin interfaceActivityDAO- Parameters:
ownerIdentity- the Identityoffset- the start indexlimit- max number items to load- Returns:
- list of activity Ids
-
getNumberOfActivitiesOfConnections
public int getNumberOfActivitiesOfConnections(org.exoplatform.social.core.identity.model.Identity ownerIdentity) - Specified by:
getNumberOfActivitiesOfConnectionsin interfaceActivityDAO- Parameters:
ownerIdentity- the Identity- Returns:
- number of activities
-
getNewerOnActivitiesOfConnections
public List<Long> getNewerOnActivitiesOfConnections(org.exoplatform.social.core.identity.model.Identity ownerIdentity, long sinceTime, long limit) - Specified by:
getNewerOnActivitiesOfConnectionsin interfaceActivityDAO- Parameters:
ownerIdentity- the IdentitysinceTime- the beginning timelimit- max number items to load- Returns:
- list of activity entities
-
getNumberOfNewerOnActivitiesOfConnections
public int getNumberOfNewerOnActivitiesOfConnections(org.exoplatform.social.core.identity.model.Identity ownerIdentity, long sinceTime) - Specified by:
getNumberOfNewerOnActivitiesOfConnectionsin interfaceActivityDAO- Parameters:
ownerIdentity- the IdentitysinceTime- the start time- Returns:
- number of activities
-
getOlderOnActivitiesOfConnections
public List<Long> getOlderOnActivitiesOfConnections(org.exoplatform.social.core.identity.model.Identity ownerIdentity, long sinceTime, int limit) - Specified by:
getOlderOnActivitiesOfConnectionsin interfaceActivityDAO- Parameters:
ownerIdentity- the IdentitysinceTime- the end timelimit- max items to load- Returns:
- list of activity entities
-
getNumberOfOlderOnActivitiesOfConnections
public int getNumberOfOlderOnActivitiesOfConnections(org.exoplatform.social.core.identity.model.Identity ownerIdentity, long sinceTime) - Specified by:
getNumberOfOlderOnActivitiesOfConnectionsin interfaceActivityDAO- Parameters:
ownerIdentity- the IdentitysinceTime- the end time- Returns:
- number of activities
-
getActivitiesByPoster
public List<Long> getActivitiesByPoster(org.exoplatform.social.core.identity.model.Identity posterIdentity, int offset, int limit, String... activityTypes) - Specified by:
getActivitiesByPosterin interfaceActivityDAO- Parameters:
posterIdentity- the Identityoffset- the start indexlimit- max number items to loadactivityTypes- the activity Type- Returns:
- list of activities
-
getNumberOfActivitiesByPoster
public int getNumberOfActivitiesByPoster(org.exoplatform.social.core.identity.model.Identity posterIdentity, String... activityTypes) - Specified by:
getNumberOfActivitiesByPosterin interfaceActivityDAO- Parameters:
posterIdentity- the IdentityactivityTypes- the activity Type- Returns:
- number of activities
-
getNumberOfComments
public long getNumberOfComments(long activityId) - Specified by:
getNumberOfCommentsin interfaceActivityDAO- Parameters:
activityId- the Id of activity- Returns:
- number of comments
-
findCommentsOfActivities
Description copied from interface:ActivityDAOfind Sub Comments of some comments- Specified by:
findCommentsOfActivitiesin interfaceActivityDAO- Parameters:
ids-- Returns:
-
findCommentsAndSubCommentsOfActivity
Description copied from interface:ActivityDAOfind comments and Sub Comments of some activity- Specified by:
findCommentsAndSubCommentsOfActivityin interfaceActivityDAO- Parameters:
activityId-- Returns:
-
getComments
public List<ActivityEntity> getComments(long activityId, int offset, int limit, boolean sortDescending) - Specified by:
getCommentsin interfaceActivityDAO- Parameters:
activityId- the Id of activityoffset- the start indexlimit- max comments to loadsortDescending-- Returns:
- list of activity entities represent comment
-
getNewerComments
public List<ActivityEntity> getNewerComments(long activityId, Date sinceTime, int offset, int limit) - Specified by:
getNewerCommentsin interfaceActivityDAO- Parameters:
activityId- the id of activitysinceTime- the start timeoffset- the start indexlimit- max items to load- Returns:
- list of activity entities
-
getOlderComments
public List<ActivityEntity> getOlderComments(long activityId, Date sinceTime, int offset, int limit) - Specified by:
getOlderCommentsin interfaceActivityDAO- Parameters:
activityId- the Id of activitysinceTime- the end timeoffset- the start indexlimit- max items to load- Returns:
- list of activity entities
-
getParentActivity
Description copied from interface:ActivityDAOGet Activity of comment- Specified by:
getParentActivityin interfaceActivityDAO- Parameters:
commentId- the comment Id- Returns:
- activity entity
-
getAllActivities
- Specified by:
getAllActivitiesin interfaceActivityDAO- Returns:
- all activities
-
deleteActivitiesByOwnerId
Description copied from interface:ActivityDAOdelete an activity by ownerId- Specified by:
deleteActivitiesByOwnerIdin interfaceActivityDAO- Parameters:
ownerId- the owner Id
-
getOwnerActivities
public List<Long> getOwnerActivities(List<String> owners, long newerTime, long olderTime, long offset, long limit) throws org.exoplatform.social.core.storage.ActivityStorageException - Throws:
org.exoplatform.social.core.storage.ActivityStorageException
-
findActivities
Description copied from interface:ActivityDAOGet list of activities switch list of IDs- Specified by:
findActivitiesin interfaceActivityDAO- Parameters:
activityIds-- Returns:
-
getActivityCategoryIds
- Specified by:
getActivityCategoryIdsin interfaceActivityDAO- Parameters:
spaceIdentityId- SpaceIdentityidentifier- Returns:
Listof Category Ids used in Activities
-