Interface FeatureStore

All Known Implementing Classes:
DefaultFeatureStore

public interface FeatureStore
Since:
v6.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    create(String featureName, String userKey)
    Creates an feature with the properties of the given feature.
    void
    delete(String featureKey, String userKey)
    Permanently removes the feature from the system.
    Returns a list of all enabled site features
    Returns a list of all enabled features for a user
  • Method Details

    • delete

      void delete(String featureKey, String userKey) throws DataAccessException
      Permanently removes the feature from the system.
      Parameters:
      featureKey - the feature's id, must not be null.
      userKey - the user who the feature is for. null if site feature
      Throws:
      DataAccessException - if there is a back-end storage problem.
    • create

      void create(String featureName, String userKey) throws DataAccessException
      Creates an feature with the properties of the given feature.
      Parameters:
      featureName - the name of the feature to create
      userKey - the user who the feature is for. null if site feature
      Throws:
      DataAccessException - if there is a back-end storage problem.
    • getUserFeatures

      Set<String> getUserFeatures(String userKey) throws DataAccessException
      Returns a list of all enabled features for a user
      Parameters:
      userKey - the ApplicationUser key
      Returns:
      the enabled features for a user or an empty set
      Throws:
      DataAccessException
    • getSiteFeatures

      Set<String> getSiteFeatures() throws DataAccessException
      Returns a list of all enabled site features
      Returns:
      the enabled site features or an empty set
      Throws:
      DataAccessException