Class FeaturePlugin
java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.commons.api.settings.FeaturePlugin
- All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin
public abstract class FeaturePlugin
extends org.exoplatform.container.component.BaseComponentPlugin
ExoFeatureService plugin that allows to manage enablement of feature
by plugin instead of managing it in Service so that each addon can manage the
feature enablement by user-
Field Summary
Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinit()Initialization feature pluginabstract booleanisFeatureActiveForUser(String featureName, String username) Determines whether the fefature is enabled for a userMethods inherited from class org.exoplatform.container.component.BaseComponentPlugin
getDescription, getName, setDescription, setName
-
Constructor Details
-
FeaturePlugin
public FeaturePlugin()
-
-
Method Details
-
getFeatureName
- Returns:
- feature name
-
isFeatureActiveForUser
Determines whether the fefature is enabled for a user- Parameters:
featureName-username-- Returns:
- true if enabled, else false
-
init
public void init()Initialization feature plugin
-