Package org.ametys.cms.repository
Interface ReactionableObject
- All Known Implementing Classes:
AbstractComment
,AbstractProgram
,AbstractProgramPart
,AbstractTraversableProgramPart
,Comment
,Container
,Course
,CourseList
,CoursePart
,DefaultContent
,DefaultSharedContent
,DefaultWebContent
,DefaultWorkflowAwareContent
,ModifiableDefaultContent
,ModifiableDefaultWebContent
,OrgUnit
,Person
,Program
,RichTextComment
,SubProgram
public interface ReactionableObject
Interface to handle reactions on object
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addReaction
(UserIdentity user, ReactionableObject.ReactionType reactionType) Add the user reactiongetReactionUsers
(ReactionableObject.ReactionType reactionType) Get the list of users who reactvoid
removeReaction
(UserIdentity user, ReactionableObject.ReactionType reactionType) Remove the user reaction
-
Method Details
-
addReaction
Add the user reaction- Parameters:
user
- the userreactionType
- the reaction type
-
removeReaction
Remove the user reaction- Parameters:
user
- the userreactionType
- the reaction type
-
getReactionUsers
Get the list of users who react- Parameters:
reactionType
- the reaction type- Returns:
- the list of users
-