Class ReactionServiceImpl

java.lang.Object
io.meeds.social.reaction.service.ReactionServiceImpl
All Implemented Interfaces:
io.meeds.social.reaction.service.ReactionService

@Service public class ReactionServiceImpl extends Object implements io.meeds.social.reaction.service.ReactionService
  • Field Details

  • Constructor Details

    • ReactionServiceImpl

      public ReactionServiceImpl()
  • Method Details

    • setReactionOptionPlugins

      @Autowired(required=false) public void setReactionOptionPlugins(List<io.meeds.social.reaction.plugin.ReactionOptionPlugin> plugins)
    • addPlugin

      public void addPlugin(io.meeds.social.reaction.plugin.ReactionOptionPlugin reactionOptionPlugin)
      Allows registering options from another Spring context (cross-addon), in addition to same-context collection injection. A later registration overrides an already registered option with the same id (edit).
    • getReactionOptions

      public List<io.meeds.social.reaction.model.ReactionOption> getReactionOptions()
      Specified by:
      getReactionOptions in interface io.meeds.social.reaction.service.ReactionService
    • getReactionOptions

      public List<io.meeds.social.reaction.model.ReactionOption> getReactionOptions(String objectType)
      Specified by:
      getReactionOptions in interface io.meeds.social.reaction.service.ReactionService
    • setReaction

      public void setReaction(String objectType, String objectId, String reactionId, String username) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException
      Specified by:
      setReaction in interface io.meeds.social.reaction.service.ReactionService
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
      IllegalAccessException
    • deleteReaction

      public void deleteReaction(String objectType, String objectId, String username) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException
      Specified by:
      deleteReaction in interface io.meeds.social.reaction.service.ReactionService
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
      IllegalAccessException
    • countReactionsByOption

      public Map<String,Long> countReactionsByOption(String objectType, String objectId, String username) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException
      Specified by:
      countReactionsByOption in interface io.meeds.social.reaction.service.ReactionService
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
      IllegalAccessException
    • getReactions

      public List<io.meeds.social.reaction.model.Reaction> getReactions(String objectType, String objectId, String reactionId, long offset, long limit, String username) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException
      Specified by:
      getReactions in interface io.meeds.social.reaction.service.ReactionService
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
      IllegalAccessException
    • deleteReactionItem

      public void deleteReactionItem(String objectType, String objectId, long reactorIdentityId)
      Specified by:
      deleteReactionItem in interface io.meeds.social.reaction.service.ReactionService