Package org.ametys.cms.repository
Interface ReactionableObject
-
- All Known Implementing Classes:
AbstractProgram
,AbstractProgramPart
,AbstractTraversableProgramPart
,Comment
,Container
,Course
,CourseList
,CoursePart
,DefaultContent
,DefaultSharedContent
,DefaultWebContent
,DefaultWorkflowAwareContent
,ModifiableDefaultContent
,ModifiableDefaultWebContent
,OrgUnit
,Person
,Program
,SubProgram
public interface ReactionableObject
Interface to handle reactions on object
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ReactionableObject.ReactionType
Reaction type.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addReaction(UserIdentity user, ReactionableObject.ReactionType reactionType)
Add the user reactionList<UserIdentity>
getReactionUsers(ReactionableObject.ReactionType reactionType)
Get the list of users who reactvoid
removeReaction(UserIdentity user, ReactionableObject.ReactionType reactionType)
Remove the user reaction
-
-
-
Method Detail
-
addReaction
void addReaction(UserIdentity user, ReactionableObject.ReactionType reactionType)
Add the user reaction- Parameters:
user
- the userreactionType
- the reaction type
-
removeReaction
void removeReaction(UserIdentity user, ReactionableObject.ReactionType reactionType)
Remove the user reaction- Parameters:
user
- the userreactionType
- the reaction type
-
getReactionUsers
List<UserIdentity> getReactionUsers(ReactionableObject.ReactionType reactionType)
Get the list of users who react- Parameters:
reactionType
- the reaction type- Returns:
- the list of users
-
-