Package lumis.service.commentit
Class CommentItActivityPrioritizer
- java.lang.Object
-
- lumis.service.commentit.CommentItActivityPrioritizer
-
- All Implemented Interfaces:
IActivityPrioritizer
@StableMinor(version="14.0", sinceVersion="8.2") public class CommentItActivityPrioritizer extends Object implements IActivityPrioritizer
Default LumisXP implementation for prioritizing CommentIt's service specific activities.This class prioritizes activities with scope
Activity.SCOPE_OBJECT_END_USER
, actionIActivityStreamManager.ACTION_ID_ADD
and object typeCommentItService.OBJECT_TYPE_ID_COMMENT
using the following rules:- If the target of the comment is a
Content
, to the creator of the content is applied priority 0.8. - To the users that have commented the same target is applied priority 0.7.
- To the users that may view the target and the comment is applied priority 0.45.
- Since:
- 8.2.0
- Version:
- $Revision: 24476 $ $Date: 2021-04-28 11:28:23 -0300 (Wed, 28 Apr 2021) $
- See Also:
lumis.portal.activitystream
-
-
Constructor Summary
Constructors Constructor Description CommentItActivityPrioritizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<ActivityPriority>
generateActivityPriorities(Activity activity)
-
-
-
Method Detail
-
generateActivityPriorities
public 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
-
-