public interface ActivityManager
ListAccess for lazy loading.| Modifier and Type | Method and Description |
|---|---|
void |
addActivityEventListener(org.exoplatform.social.core.activity.ActivityListenerPlugin activityListenerPlugin) |
void |
addProcessor(org.exoplatform.social.core.ActivityProcessor activityProcessor)
Adds a new activity processor.
|
void |
addProcessorPlugin(org.exoplatform.social.core.BaseActivityProcessorPlugin activityProcessorPlugin)
Adds a new activity processor plugin.
|
void |
deleteActivity(org.exoplatform.social.core.activity.model.ExoSocialActivity activity)
Deletes a specific activity.
|
void |
deleteActivity(String activityId)
Deletes an activity by its Id.
|
void |
deleteComment(org.exoplatform.social.core.activity.model.ExoSocialActivity activity,
org.exoplatform.social.core.activity.model.ExoSocialActivity comment)
Deletes a comment of an activity.
|
void |
deleteComment(String activityId,
String commentId)
Deletes an existing comment of a specific activity by its Id.
|
void |
deleteLike(org.exoplatform.social.core.activity.model.ExoSocialActivity activity,
org.exoplatform.social.core.identity.model.Identity identity)
Deletes a like of an identity from a specific activity.
|
List<org.exoplatform.social.core.activity.model.ExoSocialActivity> |
getActivities(org.exoplatform.social.core.identity.model.Identity identity)
Deprecated.
Use
getActivitiesWithListAccess(org.exoplatform.social.core.identity.model.Identity) instead.
Will be removed by 4.0.x. |
List<org.exoplatform.social.core.activity.model.ExoSocialActivity> |
getActivities(org.exoplatform.social.core.identity.model.Identity identity,
long start,
long limit)
Deprecated.
Use
getActivitiesWithListAccess(Identity) instead. Will be removed by 4.0.x. |
org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity> |
getActivitiesByPoster(org.exoplatform.social.core.identity.model.Identity poster)
Gets activities of a given poster.
|
org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity> |
getActivitiesByPoster(org.exoplatform.social.core.identity.model.Identity posterIdentity,
String... activityTypes)
Gets activities of a given poster that are specified by activity types.
|
int |
getActivitiesCount(org.exoplatform.social.core.identity.model.Identity owner)
Deprecated.
Will be removed by 4.0.x.
|
List<org.exoplatform.social.core.activity.model.ExoSocialActivity> |
getActivitiesOfConnections(org.exoplatform.social.core.identity.model.Identity ownerIdentity)
Deprecated.
Use
getActivitiesOfConnectionsWithListAccess(Identity) instead. Will be removed by 4.0.x. |
List<org.exoplatform.social.core.activity.model.ExoSocialActivity> |
getActivitiesOfConnections(org.exoplatform.social.core.identity.model.Identity ownerIdentity,
int offset,
int length)
Deprecated.
Use
getActivitiesOfConnectionsWithListAccess(Identity) instead. Will be removed by 4.0.x. |
org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity> |
getActivitiesOfConnectionsWithListAccess(org.exoplatform.social.core.identity.model.Identity identity)
Gets activities posted by all connections with a given identity.
|
org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity> |
getActivitiesOfSpaceWithListAccess(org.exoplatform.social.core.identity.model.Identity spaceIdentity)
Gets activities posted on a space by its Id.
|
List<org.exoplatform.social.core.activity.model.ExoSocialActivity> |
getActivitiesOfUserSpaces(org.exoplatform.social.core.identity.model.Identity ownerIdentity)
Deprecated.
Use
getActivitiesOfUserSpacesWithListAccess(Identity) instead. Will be removed by 4.0.x. |
org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity> |
getActivitiesOfUserSpacesWithListAccess(org.exoplatform.social.core.identity.model.Identity identity)
Gets activities posted on all space activity streams in which an identity joins.
|
org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity> |
getActivitiesWithListAccess(org.exoplatform.social.core.identity.model.Identity identity)
Gets activities posted on the provided activity stream owner.
|
org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity> |
getActivitiesWithListAccess(org.exoplatform.social.core.identity.model.Identity ownerIdentity,
org.exoplatform.social.core.identity.model.Identity viewerIdentity)
Gets activities on the provided activity stream which is viewed by another.
|
org.exoplatform.social.core.activity.model.ExoSocialActivity |
getActivity(String activityId)
Gets an activity by its Id.
|
List<org.exoplatform.social.core.activity.model.ExoSocialActivity> |
getActivityFeed(org.exoplatform.social.core.identity.model.Identity identity)
Deprecated.
Use
getActivityFeedWithListAccess(Identity) instead. Will be removed by 4.0.x. |
org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity> |
getActivityFeedWithListAccess(org.exoplatform.social.core.identity.model.Identity identity)
Gets all activities accessible by a given identity.
|
org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity> |
getAllActivitiesWithListAccess()
Get the list access of all activities
|
List<org.exoplatform.social.core.activity.model.ExoSocialActivity> |
getComments(org.exoplatform.social.core.activity.model.ExoSocialActivity activity)
Deprecated.
Use
getCommentsWithListAccess(ExoSocialActivity) instead. Will be removed by 4.0.x. |
org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity> |
getCommentsWithListAccess(org.exoplatform.social.core.activity.model.ExoSocialActivity activity)
Gets comments of a specific activity.
|
org.exoplatform.social.core.activity.model.ExoSocialActivity |
getParentActivity(org.exoplatform.social.core.activity.model.ExoSocialActivity comment)
Gets an activity by its comment.
|
void |
processActivitiy(org.exoplatform.social.core.activity.model.ExoSocialActivity activity)
Deprecated.
Will be removed by 4.0.x.
|
org.exoplatform.social.core.activity.model.ExoSocialActivity |
recordActivity(org.exoplatform.social.core.identity.model.Identity owner,
org.exoplatform.social.core.activity.model.ExoSocialActivity activity)
Deprecated.
use
saveActivity(Identity, ExoSocialActivity) instead. Will be removed by 4.0.x. |
org.exoplatform.social.core.activity.model.ExoSocialActivity |
recordActivity(org.exoplatform.social.core.identity.model.Identity owner,
String type,
String title)
Deprecated.
Use
saveActivity(Identity, String, String) instead. Will be removed by 4.0.x. |
org.exoplatform.social.core.activity.model.ExoSocialActivity |
recordActivity(org.exoplatform.social.core.identity.model.Identity owner,
String type,
String title,
String body)
Deprecated.
Use
saveActivity(Identity, ExoSocialActivity) instead. Will be removed by 4.0.x. |
void |
removeLike(org.exoplatform.social.core.activity.model.ExoSocialActivity activity,
org.exoplatform.social.core.identity.model.Identity identity)
Deprecated.
Use
deleteLike(ExoSocialActivity, Identity) instead. Will be removed by 4.0.x. |
org.exoplatform.social.core.activity.model.ExoSocialActivity |
saveActivity(org.exoplatform.social.core.activity.model.ExoSocialActivity activity)
Deprecated.
Use
saveActivityNoReturn(org.exoplatform.social.core.activity.model.ExoSocialActivity)
instead. Will be removed by 4.0.x. |
org.exoplatform.social.core.activity.model.ExoSocialActivity |
saveActivity(org.exoplatform.social.core.identity.model.Identity streamOwner,
org.exoplatform.social.core.activity.model.ExoSocialActivity activity)
Deprecated.
Use
saveActivityNoReturn(Identity, ExoSocialActivity) instead.
Will be removed by 4.0.x. |
void |
saveActivity(org.exoplatform.social.core.identity.model.Identity streamOwner,
String type,
String title)
Saves a new activity by indicating stream owner, activity type and title.
|
void |
saveActivityNoReturn(org.exoplatform.social.core.activity.model.ExoSocialActivity activity)
Saves a newly created activity to the stream.
|
void |
saveActivityNoReturn(org.exoplatform.social.core.identity.model.Identity streamOwner,
org.exoplatform.social.core.activity.model.ExoSocialActivity activity)
Saves a newly created activity to a stream.
|
void |
saveComment(org.exoplatform.social.core.activity.model.ExoSocialActivity activity,
org.exoplatform.social.core.activity.model.ExoSocialActivity newComment)
Saves a new comment to a specific activity.
|
void |
saveLike(org.exoplatform.social.core.activity.model.ExoSocialActivity activity,
org.exoplatform.social.core.identity.model.Identity identity)
Saves the like information of an identity to a specific activity.
|
void |
updateActivity(org.exoplatform.social.core.activity.model.ExoSocialActivity activity)
Updates an existing activity.
|
void saveActivityNoReturn(org.exoplatform.social.core.identity.model.Identity streamOwner,
org.exoplatform.social.core.activity.model.ExoSocialActivity activity)
Activity.userId in case that information has not already been set.streamOwner - The activity stream owner.activity - The activity to be saved.void saveActivityNoReturn(org.exoplatform.social.core.activity.model.ExoSocialActivity activity)
activity - The activity to be saved.void saveActivity(org.exoplatform.social.core.identity.model.Identity streamOwner,
String type,
String title)
ExoSocialActivity instance.streamOwner - The activity stream owner.type - Type of the activity.title - Title of the activity.org.exoplatform.social.core.activity.model.ExoSocialActivity getActivity(String activityId)
activityId - Id of the activity.org.exoplatform.social.core.activity.model.ExoSocialActivity getParentActivity(org.exoplatform.social.core.activity.model.ExoSocialActivity comment)
comment - The comment.void updateActivity(org.exoplatform.social.core.activity.model.ExoSocialActivity activity)
activity - The activity to be updated.void deleteActivity(org.exoplatform.social.core.activity.model.ExoSocialActivity activity)
activity - The activity to be deleted.void deleteActivity(String activityId)
activityId - Id of the deleted activity.void saveComment(org.exoplatform.social.core.activity.model.ExoSocialActivity activity,
org.exoplatform.social.core.activity.model.ExoSocialActivity newComment)
activity - The activity.newComment - The comment to be saved.org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity> getCommentsWithListAccess(org.exoplatform.social.core.activity.model.ExoSocialActivity activity)
ListAccess which can be lazy loaded.activity - The specific activity.void deleteComment(String activityId, String commentId)
activityId - Id of the activity containing the deleted comment.commentId - Id of the deleted comment.void deleteComment(org.exoplatform.social.core.activity.model.ExoSocialActivity activity,
org.exoplatform.social.core.activity.model.ExoSocialActivity comment)
activity - The activity containing the deleted comment.comment - The deleted comment.void saveLike(org.exoplatform.social.core.activity.model.ExoSocialActivity activity,
org.exoplatform.social.core.identity.model.Identity identity)
activity - The activity containing the like information which is saved.identity - The identity who likes the activity.void deleteLike(org.exoplatform.social.core.activity.model.ExoSocialActivity activity,
org.exoplatform.social.core.identity.model.Identity identity)
activity - The activity containing the deleted like.identity - The identity of the deleted like.org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity> getActivitiesWithListAccess(org.exoplatform.social.core.identity.model.Identity identity)
ListAccess which can be lazy loaded.identity - The provided activity stream owner.org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity> getActivitiesWithListAccess(org.exoplatform.social.core.identity.model.Identity ownerIdentity,
org.exoplatform.social.core.identity.model.Identity viewerIdentity)
ListAccess which can be lazy loaded.
For example: Mary is connected to Demo, then Demo signs in and watches the activity stream of Mary.ownerIdentity - The provided activity stream owner.viewerIdentity - The identity who views the other stream.org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity> getActivitiesOfConnectionsWithListAccess(org.exoplatform.social.core.identity.model.Identity identity)
ListAccess which can be lazy loaded.identity - The identity.org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity> getActivitiesOfSpaceWithListAccess(org.exoplatform.social.core.identity.model.Identity spaceIdentity)
ListAccess which can be lazy loaded.spaceIdentity - The specific stream owner identity.org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity> getActivitiesOfUserSpacesWithListAccess(org.exoplatform.social.core.identity.model.Identity identity)
ListAccess which can be lazy loaded.identity - The identity to get his activities on spaces.org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity> getActivityFeedWithListAccess(org.exoplatform.social.core.identity.model.Identity identity)
ListAccess which can be lazy loaded.identity - The identity.org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity> getActivitiesByPoster(org.exoplatform.social.core.identity.model.Identity poster)
ListAccess which can be lazy loaded.poster - The identity who posted activities.org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity> getActivitiesByPoster(org.exoplatform.social.core.identity.model.Identity posterIdentity,
String... activityTypes)
ListAccess which can be lazy loaded.poster - The identity who posted activities.activityTypes - The types to get activities.void addProcessor(org.exoplatform.social.core.ActivityProcessor activityProcessor)
activityProcessor - The activity processor to be added.void addProcessorPlugin(org.exoplatform.social.core.BaseActivityProcessorPlugin activityProcessorPlugin)
activityProcessorPlugin - The activity processor plugin to be added.void addActivityEventListener(org.exoplatform.social.core.activity.ActivityListenerPlugin activityListenerPlugin)
@Deprecated org.exoplatform.social.core.activity.model.ExoSocialActivity saveActivity(org.exoplatform.social.core.identity.model.Identity streamOwner, org.exoplatform.social.core.activity.model.ExoSocialActivity activity)
saveActivityNoReturn(Identity, ExoSocialActivity) instead.
Will be removed by 4.0.x.streamOwner - The activity stream owner.activity - The activity to be saved.@Deprecated org.exoplatform.social.core.activity.model.ExoSocialActivity saveActivity(org.exoplatform.social.core.activity.model.ExoSocialActivity activity)
saveActivityNoReturn(org.exoplatform.social.core.activity.model.ExoSocialActivity)
instead. Will be removed by 4.0.x.activity - The activity to be saved.@Deprecated List<org.exoplatform.social.core.activity.model.ExoSocialActivity> getActivities(org.exoplatform.social.core.identity.model.Identity identity) throws org.exoplatform.social.core.storage.ActivityStorageException
getActivitiesWithListAccess(org.exoplatform.social.core.identity.model.Identity) instead.
Will be removed by 4.0.x.identity - The identity.org.exoplatform.social.core.storage.ActivityStorageExceptiongetActivities(Identity, long, long)@Deprecated List<org.exoplatform.social.core.activity.model.ExoSocialActivity> getActivities(org.exoplatform.social.core.identity.model.Identity identity, long start, long limit) throws org.exoplatform.social.core.storage.ActivityStorageException
getActivitiesWithListAccess(Identity) instead. Will be removed by 4.0.x.identity - The identity.start - The offset index.limit - The end-point index.org.exoplatform.social.core.storage.ActivityStorageException@Deprecated List<org.exoplatform.social.core.activity.model.ExoSocialActivity> getActivitiesOfConnections(org.exoplatform.social.core.identity.model.Identity ownerIdentity) throws org.exoplatform.social.core.storage.ActivityStorageException
getActivitiesOfConnectionsWithListAccess(Identity) instead. Will be removed by 4.0.x.ownerIdentity - The identity information to get activities.org.exoplatform.social.core.storage.ActivityStorageException@Deprecated List<org.exoplatform.social.core.activity.model.ExoSocialActivity> getActivitiesOfConnections(org.exoplatform.social.core.identity.model.Identity ownerIdentity, int offset, int length) throws org.exoplatform.social.core.storage.ActivityStorageException
getActivitiesOfConnectionsWithListAccess(Identity) instead. Will be removed by 4.0.x.ownerIdentity - The identity information to get activities.org.exoplatform.social.core.storage.ActivityStorageException@Deprecated List<org.exoplatform.social.core.activity.model.ExoSocialActivity> getActivitiesOfUserSpaces(org.exoplatform.social.core.identity.model.Identity ownerIdentity)
getActivitiesOfUserSpacesWithListAccess(Identity) instead. Will be removed by 4.0.x.ownerIdentity - The identity information to get activities.@Deprecated List<org.exoplatform.social.core.activity.model.ExoSocialActivity> getActivityFeed(org.exoplatform.social.core.identity.model.Identity identity) throws org.exoplatform.social.core.storage.ActivityStorageException
getActivityFeedWithListAccess(Identity) instead. Will be removed by 4.0.x.identity - The identity information to get the activity.org.exoplatform.social.core.storage.ActivityStorageException@Deprecated void removeLike(org.exoplatform.social.core.activity.model.ExoSocialActivity activity, org.exoplatform.social.core.identity.model.Identity identity) throws org.exoplatform.social.core.storage.ActivityStorageException
deleteLike(ExoSocialActivity, Identity) instead. Will be removed by 4.0.x.activity - The activity liked by the identity.identity - The identity who liked the activity.org.exoplatform.social.core.storage.ActivityStorageException@Deprecated List<org.exoplatform.social.core.activity.model.ExoSocialActivity> getComments(org.exoplatform.social.core.activity.model.ExoSocialActivity activity) throws org.exoplatform.social.core.storage.ActivityStorageException
getCommentsWithListAccess(ExoSocialActivity) instead. Will be removed by 4.0.x.activity - The activity which you want to get comments.org.exoplatform.social.core.storage.ActivityStorageException@Deprecated org.exoplatform.social.core.activity.model.ExoSocialActivity recordActivity(org.exoplatform.social.core.identity.model.Identity owner, String type, String title) throws org.exoplatform.social.core.storage.ActivityStorageException
saveActivity(Identity, String, String) instead. Will be removed by 4.0.x.owner - Owner of the recorded activity.type - Type of the recorded activity.title - Title of the recorded activity.org.exoplatform.social.core.storage.ActivityStorageException@Deprecated org.exoplatform.social.core.activity.model.ExoSocialActivity recordActivity(org.exoplatform.social.core.identity.model.Identity owner, org.exoplatform.social.core.activity.model.ExoSocialActivity activity) throws Exception
saveActivity(Identity, ExoSocialActivity) instead. Will be removed by 4.0.x.owner - Owner of the saved activity.activity - The activity to be saved.Exception@Deprecated org.exoplatform.social.core.activity.model.ExoSocialActivity recordActivity(org.exoplatform.social.core.identity.model.Identity owner, String type, String title, String body) throws org.exoplatform.social.core.storage.ActivityStorageException
saveActivity(Identity, ExoSocialActivity) instead. Will be removed by 4.0.x.owner - Owner of the target stream for the recorded activity.type - Type of the activity which uses the custom UI for rendering.title - The title.body - The body.org.exoplatform.social.core.storage.ActivityStorageException@Deprecated int getActivitiesCount(org.exoplatform.social.core.identity.model.Identity owner) throws org.exoplatform.social.core.storage.ActivityStorageException
owner - The identity.org.exoplatform.social.core.storage.ActivityStorageException@Deprecated void processActivitiy(org.exoplatform.social.core.activity.model.ExoSocialActivity activity)
activity - The activity to be processed.org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity> getAllActivitiesWithListAccess()
Copyright © 2003-2018 eXo Platform SAS. All Rights Reserved.