Package com.atlassian.jira.config
Class DefaultFeatureStore
java.lang.Object
com.atlassian.jira.config.DefaultFeatureStore
- All Implemented Interfaces:
FeatureStore
Non cached implementation of feature store
- Since:
- v6.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCreates an feature with the properties of the given feature.voidPermanently removes the feature from the system.Returns a list of all enabled site featuresgetUserFeatures(String userKey) Returns a list of all enabled features for a user
-
Constructor Details
-
DefaultFeatureStore
-
-
Method Details
-
delete
Description copied from interface:FeatureStorePermanently removes the feature from the system.- Specified by:
deletein interfaceFeatureStore- 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
Description copied from interface:FeatureStoreCreates an feature with the properties of the given feature.- Specified by:
createin interfaceFeatureStore- Parameters:
featureKey- the name of the feature to createuserKey- the user who the feature is for. null if site feature- Throws:
DataAccessException- if there is a back-end storage problem.
-
getUserFeatures
Description copied from interface:FeatureStoreReturns a list of all enabled features for a user- Specified by:
getUserFeaturesin interfaceFeatureStore- Parameters:
userKey- theApplicationUserkey- Returns:
- the enabled features for a user or an empty set
- Throws:
DataAccessException
-
getSiteFeatures
Description copied from interface:FeatureStoreReturns a list of all enabled site features- Specified by:
getSiteFeaturesin interfaceFeatureStore- Returns:
- the enabled site features or an empty set
- Throws:
DataAccessException
-