Class TriggerServiceImpl

java.lang.Object
io.meeds.gamification.service.impl.TriggerServiceImpl
All Implemented Interfaces:
TriggerService

public class TriggerServiceImpl extends Object implements TriggerService
  • Constructor Details

    • TriggerServiceImpl

      public TriggerServiceImpl(org.exoplatform.commons.api.settings.SettingService settingService)
  • Method Details

    • getTriggerProperties

      public TriggerProperties getTriggerProperties(String triggerName)
      Description copied from interface: TriggerService
      Retrieves gamification trigger properties
      Specified by:
      getTriggerProperties in interface TriggerService
      Parameters:
      triggerName - trigger name
      Returns:
      TriggerProperties
    • setTriggerEnabledForAccount

      public void setTriggerEnabledForAccount(String triggerName, long accountId, boolean enabled, String currentUser) throws IllegalAccessException
      Description copied from interface: TriggerService
      Enables/disables organization trigger
      Specified by:
      setTriggerEnabledForAccount in interface TriggerService
      Parameters:
      triggerName - trigger name
      accountId - account Id
      enabled - true to enabled, else false
      currentUser - user name attempting to enables/disables trigger.
      Throws:
      IllegalAccessException - when user is not authorized enables/disables trigger
    • isTriggerEnabledForAccount

      public boolean isTriggerEnabledForAccount(String triggerName, long accountId)
      Description copied from interface: TriggerService
      Checks if a trigger is enabled for account or not.
      Specified by:
      isTriggerEnabledForAccount in interface TriggerService
      Parameters:
      triggerName - The trigger to be checked.
      accountId - The account Id.
      Returns:
      true if the trigger enabled for account, false if not.