public interface

FeatureStore

com.atlassian.jira.config.FeatureStore
Known Indirect Subclasses

Summary

Public Methods
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.
Set<String> getSiteFeatures()
Returns a list of all enabled site features
Set<String> getUserFeatures(String userKey)
Returns a list of all enabled features for a user

Public Methods

public void create (String featureName, String userKey)

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.

public void delete (String featureKey, String userKey)

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.

public Set<String> getSiteFeatures ()

Returns a list of all enabled site features

Returns
  • the enabled site features or an empty set

public Set<String> getUserFeatures (String userKey)

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