Interface TriggerService

All Known Implementing Classes:
TriggerServiceImpl

public interface TriggerService
  • Method Details

    • getTriggerProperties

      TriggerProperties getTriggerProperties(String triggerName)
      Retrieves gamification trigger properties
      Parameters:
      triggerName - trigger name
      Returns:
      TriggerProperties
    • setTriggerEnabledForAccount

      void setTriggerEnabledForAccount(String triggerName, long accountId, boolean enabled, String currentUser) throws IllegalAccessException
      Enables/disables organization trigger
      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

      boolean isTriggerEnabledForAccount(String triggerName, long accountId)
      Checks if a trigger is enabled for account or not.
      Parameters:
      triggerName - The trigger to be checked.
      accountId - The account Id.
      Returns:
      true if the trigger enabled for account, false if not.