public final class ReactionableObjectHelper extends Object
Modifier | Constructor and Description |
---|---|
private |
ReactionableObjectHelper() |
Modifier and Type | Method and Description |
---|---|
private static ModifiableCompositeMetadata |
_getReactionsHolder(ModifiableCompositeMetadata unversionedMetadataHolder,
ReactionableObject.ReactionType reactionType) |
static void |
addReaction(ModifiableCompositeMetadata unversionedMetadataHolder,
UserIdentity user,
ReactionableObject.ReactionType reactionType)
Add a user reaction
|
static List<UserIdentity> |
getReactionUsers(ModifiableCompositeMetadata unversionedMetadataHolder,
ReactionableObject.ReactionType reactionType)
Get the issuers of a reaction
|
static void |
removeReaction(ModifiableCompositeMetadata unversionedMetadataHolder,
UserIdentity user,
ReactionableObject.ReactionType reactionType)
Remove a user reaction
|
private ReactionableObjectHelper()
public static void addReaction(ModifiableCompositeMetadata unversionedMetadataHolder, UserIdentity user, ReactionableObject.ReactionType reactionType)
unversionedMetadataHolder
- the unversioned metadata holderuser
- the issuer of reactionreactionType
- the reaction typepublic static void removeReaction(ModifiableCompositeMetadata unversionedMetadataHolder, UserIdentity user, ReactionableObject.ReactionType reactionType)
unversionedMetadataHolder
- the unversioned metadata holderuser
- the issuer of reaction to removereactionType
- the reaction typepublic static List<UserIdentity> getReactionUsers(ModifiableCompositeMetadata unversionedMetadataHolder, ReactionableObject.ReactionType reactionType)
unversionedMetadataHolder
- the unversioned metadata holderreactionType
- the reaction typeprivate static ModifiableCompositeMetadata _getReactionsHolder(ModifiableCompositeMetadata unversionedMetadataHolder, ReactionableObject.ReactionType reactionType)