public interface SocialActivityManager extends ActivityManager
Modifier and Type | Method and Description |
---|---|
void |
deleteActivity(Activity activity)
Delete an activity from a activity stream.
|
SocialActivityStream |
getSocialStream(Resource streamResource)
Returns the activity stream for the given resource.
|
SocialActivityStream |
getSocialStream(ResourceResolver resolver,
Authorizable auth,
java.lang.String streamName,
boolean create)
Gets the distinct activity stream for the given authorizable.
|
SocialActivityStream |
getSocialStream(Resource containerResource,
java.lang.String name,
boolean create)
Returns the activity stream for the given container resource, e.g.
|
getActivities, getActivities, getActivity, getFollowers, getFollowers, getGroupStream, getStream, getStream, getStream, getTopicStream, getUserStream, getUserStream, getUserStream, listStreams, listStreams, newActivity, newActivity, newActivityObject, newMediaLink
SocialActivityStream getSocialStream(Resource streamResource) throws ActivityException
streamResource
- the stream resourceActivityException
- if an error occursSocialActivityStream getSocialStream(ResourceResolver resolver, Authorizable auth, java.lang.String streamName, boolean create) throws ActivityException
resolver
- resource resolver to resolve the pathauth
- the jackrabbit authorizablestreamName
- the name of the stream or null
to use the default streamcreate
- create stream if it doesn't existnull
if the user or his stream does not exist.ActivityException
- if an error occursSocialActivityStream getSocialStream(Resource containerResource, java.lang.String name, boolean create) throws ActivityException
create
is true
a new stream is created.containerResource
- the container resourcename
- the stream namecreate
- create stream if it doesn't existnull
if no such stream existsActivityException
- if an error occursvoid deleteActivity(Activity activity) throws ActivityException
activity
- The activity to delete from the streamActivityException
- When error occursCopyright © 2010 - 2020 Adobe. All Rights Reserved