Interface ExoFeatureService
public interface ExoFeatureService
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringAn event to trigger using ListenerService when a feature status changes using API -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFeaturePlugin(FeaturePlugin featurePlugin) Add a feature plugin that will manage feature enablement that will be applied only on one feature identified by its namebooleanisActiveFeature(String featureName) Check the status of a featurebooleanisFeatureActiveForUser(String featureName, String username) Determines whether the feature is active for a user or notvoidsaveActiveFeature(String featureName, boolean isActive) Switch feature featureName on or off
-
Field Details
-
FEATURE_STATUS_CHANGED_EVENT
An event to trigger using ListenerService when a feature status changes using API- See Also:
-
-
Method Details
-
isActiveFeature
Check the status of a feature- Parameters:
featureName-- Returns:
- true if the featureName is on, false if it's off
-
saveActiveFeature
Switch feature featureName on or off- Parameters:
featureName-isActive- new status of feature, true = on and false = off
-
addFeaturePlugin
Add a feature plugin that will manage feature enablement that will be applied only on one feature identified by its name- Parameters:
featurePlugin- of typeFeaturePlugin
-
isFeatureActiveForUser
Determines whether the feature is active for a user or not- Parameters:
featureName-username-- Returns:
- true if active, else false
-