@StableMinor(version="12.5", sinceVersion="8.2") public interface IActivityStreamManager
Modifier and Type | Field and Description |
---|---|
static String |
ACTION_ID_ADD
Identifier of the standard action of add.
|
static String |
ACTION_ID_CREATE
Identifier of the standard action of create.
|
static String |
ACTION_ID_DELETE
Identifier of the standard action of delete.
|
static String |
ACTION_ID_REMOVE
Identifier of the standard action of add.
|
static String |
ACTION_ID_SHARE
Identifier of the standard action of share.
|
static String |
ACTION_ID_UPDATE
Identifier of the standard action of update.
|
Modifier and Type | Method and Description |
---|---|
void |
addAction(ActivityAction action)
Adds a new action that may be used by
activities . |
void |
addActivity(Activity activity)
Adds an activity.
|
void |
addObjectType(ActivityObjectType objectType)
Adds an object type to the global registry.
|
ISearchQueryFilter |
createActivityStructureSearchQueryFilter(String rootChannelId,
Collection<String> areaTags)
Creates a
ISearchQueryFilter that filters the activities that belongs to a part of the structure of the
portal. |
ISearchQueryFilter |
createPriorityAndUserSearchQueryFilter(double minimumPriority,
String userId)
Returns a big data search query filter that filters the activities according to the ones the specified user is
allowed to access and has a priority of at least the value specified.
|
void |
deleteAction(ActivityAction action)
Deletes an action.
|
void |
deleteActivity(String activityId)
Deletes an activity given its identifier.
|
void |
deleteObjectType(ActivityObjectType objectType)
Deletes an object type from the global registry.
|
ActivityAction |
getAction(String actionId)
Returns the action of given identifier.
|
ActivityObjectType |
getObjectType(String objectTypeId)
Returns the object type of given identifier.
|
Collection<String> |
getReadActivityIds(long minimumTimeMillis)
Returns the identifiers of activities read by the current user since the specified time millis.
|
boolean |
isActivityRead(String activityId)
Verifies if an activity was already read by the current user.
|
void |
markActivityAsRead(String activityId)
Marks an activity as read by the current user.
|
void |
markActivityAsUnread(String activityId)
Marks an activity as unread by the current user.
|
static final String ACTION_ID_CREATE
actor
has created the
object
.
For indicating an object was added to another object, use ACTION_ID_ADD
.
The opposite of this action is ACTION_ID_DELETE
.
static final String ACTION_ID_UPDATE
static final String ACTION_ID_DELETE
actor
has deleted the
object
.
For removing an object from another object, use ACTION_ID_REMOVE
.
The opposite of this action is ACTION_ID_CREATE
.
static final String ACTION_ID_SHARE
actor
has shared the
object
to the target
.static final String ACTION_ID_ADD
actor
has added the
object
to the target
.
For indicating creation of new object, use ACTION_ID_CREATE
.
The opposite of this action is ACTION_ID_REMOVE
.
static final String ACTION_ID_REMOVE
actor
has removed the
object
from the target
.
For indicating deletion of a object, use ACTION_ID_DELETE
.
The opposite of this action is ACTION_ID_ADD
.
void addActivity(Activity activity) throws PortalException
activity
- the activity to add.PortalException
void deleteActivity(String activityId) throws PortalException
activityId
- the activity identifier.PortalException
ActivityObjectType getObjectType(String objectTypeId) throws PortalException
objectTypeId
- the object type identifier.PortalObjectNotFoundException
- if no object type with the given identifier was found.PortalException
void addObjectType(ActivityObjectType objectType) throws PortalException
objectType
- the object type.PortalException
void deleteObjectType(ActivityObjectType objectType) throws PortalException
objectType
- the object type.PortalException
void addAction(ActivityAction action) throws PortalException
activities
.action
- the action to add.PortalException
- if the action could be be added.ActivityAction getAction(String actionId) throws PortalException
actionId
- the action identifier.PortalObjectNotFoundException
- if no action with the given identifier was found.PortalException
void deleteAction(ActivityAction action) throws PortalException
action
- the action to be deleted.PortalException
- if the action could not be deleted.ISearchQueryFilter createActivityStructureSearchQueryFilter(String rootChannelId, Collection<String> areaTags) throws PortalException
ISearchQueryFilter
that filters the activities that belongs to a part of the structure of the
portal.
The filter created automatically discards the structure elements the current user does not have view permission on.
rootChannelId
- the identifier of the root channel of the portal area to be considered. If null
, the
portal root channel is used.areaTags
- the area tags to use to filter which part of structure is to be considered. If null
, area
tags will not be used to filter.PortalException
SearchQuery.setControlFilter(ISearchQueryFilter)
,
IBigDataSearcher.search(SearchQuery)
,
IBigDataManager.getDefaultRepository()
,
ManagerFactory.getBigDataManager()
,
ActivityDocument
ISearchQueryFilter createPriorityAndUserSearchQueryFilter(double minimumPriority, String userId) throws PortalException
minimumPriority
- the minimum priority value.userId
- the user identifier,PortalException
void markActivityAsRead(String activityId) throws PortalException
activityId
- the activity identifier.PortalException
- if the operation could not be completed.void markActivityAsUnread(String activityId) throws PortalException
activityId
- the activity identifier.PortalException
- if the operation could not be completed.boolean isActivityRead(String activityId) throws PortalException
activityId
- the identifier of the activity to be verified.PortalException
Collection<String> getReadActivityIds(long minimumTimeMillis)
minimumTimeMillis
- the time millis specifying the minimum time value of activity read.LumisXP 12.5.0.200928 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.