public interface IActivityStreamManagerSPI extends IActivityStreamManager
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_ACTIVITY_PROCESSOR_DEFAULT_VALUE
Default value for service instance property bag that indicates what
ActivityProcessorConfig to use for its
activities. |
static String |
PROPERTY_NAME_ACTIVITY_PROCESSOR_CONFIG_ID
Property in service instance property bag that indicates what
ActivityProcessorConfig to use for its
activities. |
ACTION_ID_ADD, ACTION_ID_CREATE, ACTION_ID_DELETE, ACTION_ID_REMOVE, ACTION_ID_SHARE, ACTION_ID_UPDATE
Modifier and Type | Method and Description |
---|---|
void |
deleteOldActivities()
Removes all
activities that have reached their age deadline. |
void |
disableActivityProcessor(ChannelConfig channel)
Set the activity processor of the given channel to disabled
|
void |
disableActivityProcessor(ServiceInstanceConfig serviceInstance)
Set the activity processor of the given service instance to disabled
|
default List<ActivityObjectType> |
findObjectTypes(String query)
Find the first ten activity stream object types by id, given a search query.
|
List<ActivityObjectType> |
findObjectTypes(String query,
int maxResults)
Find activity stream object types by id, given a search query.
|
Integer |
getActivitiesMaxAgeInDays()
Get the number of days an
Activity can exist before being removed. |
IActivityProcessorConfig |
getActivityProcessorConfig(String activityProcessorId)
Returns the activity processor of the given identifier.
|
String |
getActivityProcessorId(ChannelConfig channel)
Get the activity processor identifier of the given channel.
|
String |
getActivityProcessorId(ServiceInstanceConfig serviceInstance)
Get the activity processor identifier of the given service instance.
|
String |
getLocalActivityProcessorId(ChannelConfig channel)
Get the local activity processor identifier of the given channel.
|
String |
getLocalActivityProcessorId(ServiceInstanceConfig serviceInstance)
Get the local activity processor identifier of the given service instance.
|
List<ActivityObjectType> |
getObjectTypes()
Returns list of persisted activity object types.
|
void |
registerActivityProcessor(String activityProcessorConfigPath)
Registers an activity processor configuration.
|
void |
registerDefaultActions()
Registers built-in default activity stream actions.
|
void |
registerDefaultActivityProcessors()
Registers built-in default activity processors.
|
void |
setActivitiesMaxAgeInDays(Integer days)
Set the number of days an
Activity can exist before being removed. |
void |
setActivityProcessorConfig(String activityProcessorId,
ChannelConfig channel)
Set the Activity Processor for the given channel.
|
void |
setActivityProcessorConfig(String activityProcessorId,
ServiceInstanceConfig serviceInstance)
Set the Activity Processor for the given service instance.
|
void |
setActivityProcessorInherited(ChannelConfig channel)
Set the activity processor of the given channel to be inherited from the parent channel
|
void |
setActivityProcessorInherited(ServiceInstanceConfig serviceInstance)
Set the activity processor of the given service instance to be inherited from the parent channel
|
void |
unregisterActivityProcessor(String activityProcessorConfigId)
Unregisters an activity processor configuration.
|
void |
updateActivityObject(ActivityObject activityObject,
String scope)
Updates the given activity object for the activity in the specified scopes.
|
addAction, addActivity, addObjectType, createActivityStructureSearchQueryFilter, createPriorityAndUserSearchQueryFilter, deleteAction, deleteActivity, deleteObjectType, getAction, getObjectType, getReadActivityIds, isActivityRead, markActivityAsRead, markActivityAsUnread
static final String PROPERTY_NAME_ACTIVITY_PROCESSOR_CONFIG_ID
ActivityProcessorConfig
to use for its
activities. The value of this property may be the identifier of the ActivityProcessorConfig
to use, or
null
if activity generation is disabled.static final String PROPERTY_ACTIVITY_PROCESSOR_DEFAULT_VALUE
ActivityProcessorConfig
to use for its
activities.void registerDefaultActions() throws PortalException
PortalException
void deleteOldActivities() throws PortalException
activities
that have reached their age deadline. The deadline is configured in the
activity stream global administration interface.PortalException
Integer getActivitiesMaxAgeInDays() throws PortalException
Activity
can exist before being removed.PortalException
void setActivitiesMaxAgeInDays(Integer days) throws PortalException
Activity
can exist before being removed.days
- the number of days to set.PortalException
void registerActivityProcessor(String activityProcessorConfigPath) throws PortalException
activityProcessorConfigPath
- the path to the activity processor configuration, relative to the classpath.PortalException
- if the configuration could not be registered.void unregisterActivityProcessor(String activityProcessorConfigId) throws PortalException
activityProcessorConfigId
- the identifier of the activity processor configuration.PortalException
- if the configuration could not be unregistered.void registerDefaultActivityProcessors() throws PortalException
PortalException
void setActivityProcessorConfig(String activityProcessorId, ServiceInstanceConfig serviceInstance) throws PortalException
activityProcessorId
- the activity processor IdserviceInstance
- the service instance to get the property bagPortalException
void setActivityProcessorConfig(String activityProcessorId, ChannelConfig channel) throws PortalException
activityProcessorId
- the activity processor Idchannel
- the channel to get the property bagPortalException
void setActivityProcessorInherited(ServiceInstanceConfig serviceInstance) throws PortalException
serviceInstance
- the service instancePortalException
void setActivityProcessorInherited(ChannelConfig channel) throws PortalException
channel
- the channel configPortalException
void disableActivityProcessor(ServiceInstanceConfig serviceInstance) throws PortalException
serviceInstance
- the service instancePortalException
void disableActivityProcessor(ChannelConfig channel) throws PortalException
channel
- the channel configPortalException
String getActivityProcessorId(ServiceInstanceConfig serviceInstance) throws PortalException
serviceInstance
- the service instancePortalException
String getActivityProcessorId(ChannelConfig channel) throws PortalException
channel
- the channel configPortalException
String getLocalActivityProcessorId(ServiceInstanceConfig serviceInstance) throws PortalException
serviceInstance
- the service instancePortalException
String getLocalActivityProcessorId(ChannelConfig channel) throws PortalException
channel
- the channel configPortalException
IActivityProcessorConfig getActivityProcessorConfig(String activityProcessorId) throws PortalException
activityProcessorId
- the activity processor identifier.PortalException
List<ActivityObjectType> getObjectTypes() throws PortalException
PortalException
default List<ActivityObjectType> findObjectTypes(String query) throws PortalException
query
- query used to search object typesPortalException
findObjectTypes(String, int)
List<ActivityObjectType> findObjectTypes(String query, int maxResults) throws PortalException
query
- query used to search object typesmaxResults
- amount of object types to returnPortalException
void updateActivityObject(ActivityObject activityObject, String scope) throws PortalException
For each activity in the specified scope, the activity's objects
and
targets
with same identifier
and
type
as the given activityObject
are updated with its properties.
To prevent excessive resource usage, this method may update only some of the activity objects, leaving the other unmodified.
This method was initially intended for public API, but it has some strange limitations and may be replaced/modified, so keeping in SPI for now.
activityObject
- the activity object with updated information.scope
- the scope of activities to be processed.PortalException
- if the operation could not be completed.IllegalArgumentException
- if no scope is specified.LumisXP 12.5.0.200928 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.