Class 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
    • Constructor Detail

      • FeaturePlugin

        public FeaturePlugin()
    • Method Detail

      • getFeatureName

        public String getFeatureName()
        Returns:
        feature name
      • isFeatureActiveForUser

        public abstract boolean isFeatureActiveForUser​(String featureName,
                                                       String username)
        Determines whether the fefature is enabled for a user
        Parameters:
        featureName -
        username -
        Returns:
        true if enabled, else false