Package io.meeds.gamification.service
Interface TriggerService
- All Known Implementing Classes:
TriggerServiceImpl
public interface TriggerService
-
Method Summary
Modifier and TypeMethodDescriptiongetTriggerProperties(String triggerName) Retrieves gamification trigger propertiesbooleanisTriggerEnabledForAccount(String triggerName, long accountId) Checks if a trigger is enabled for account or not.voidsetTriggerEnabledForAccount(String triggerName, long accountId, boolean enabled, String currentUser) Enables/disables organization trigger
-
Method Details
-
getTriggerProperties
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 nameaccountId- account Idenabled- true to enabled, else falsecurrentUser- user name attempting to enables/disables trigger.- Throws:
IllegalAccessException- when user is not authorized enables/disables trigger
-
isTriggerEnabledForAccount
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.
-