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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    Initialization feature plugin
    abstract boolean
    isFeatureActiveForUser(String featureName, String username)
    Determines whether the fefature is enabled for a user

    Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin

    getDescription, getName, setDescription, setName

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FeaturePlugin

      public FeaturePlugin()
  • Method Details

    • 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
    • init

      public void init()
      Initialization feature plugin