Package lumis.service.userpost
Class UserPostActivityPrioritizer
- java.lang.Object
-
- lumis.service.userpost.UserPostActivityPrioritizer
-
- All Implemented Interfaces:
IActivityPrioritizer
@StableMinor(version="16.1", sinceVersion="8.2") public class UserPostActivityPrioritizer extends java.lang.Object implements IActivityPrioritizer
Default LumisXP implementation for prioritizing Post's service specific activities.This class prioritizes activities with scope
Activity.SCOPE_OBJECT_END_USER
, actionIActivityStreamManager.ACTION_ID_ADD
orIActivityStreamManager.ACTION_ID_CREATE
and object type post orCommentItService.OBJECT_TYPE_ID_COMMENT
using the following rule:- If the post created or comment created for post refers to one or more users this process action generates an activity of priority 0.85 for the users
- Since:
- 8.2.0
- Version:
- $Revision: 26157 $ $Date: 2024-01-13 11:35:03 -0300 (Sat, 13 Jan 2024) $
- See Also:
lumis.portal.activitystream
-
-
Constructor Summary
Constructors Constructor Description UserPostActivityPrioritizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<ActivityPriority>
generateActivityPriorities(Activity activity)
-
-
-
Method Detail
-
generateActivityPriorities
public java.util.Collection<ActivityPriority> generateActivityPriorities(Activity activity) throws PortalException
Description copied from interface:IActivityPrioritizer
- Specified by:
generateActivityPriorities
in interfaceIActivityPrioritizer
- Parameters:
activity
- the activity.- Returns:
- a collection containing the priority specifications to be applied.
- Throws:
PortalException
- See Also:
ActivityPriority
-
-