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 TypeMethodDescriptionvoid
Creates an feature with the properties of the given feature.void
Permanently 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:FeatureStore
Permanently removes the feature from the system.- Specified by:
delete
in 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:FeatureStore
Creates an feature with the properties of the given feature.- Specified by:
create
in 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:FeatureStore
Returns a list of all enabled features for a user- Specified by:
getUserFeatures
in interfaceFeatureStore
- Parameters:
userKey
- theApplicationUser
key- Returns:
- the enabled features for a user or an empty set
- Throws:
DataAccessException
-
getSiteFeatures
Description copied from interface:FeatureStore
Returns a list of all enabled site features- Specified by:
getSiteFeatures
in interfaceFeatureStore
- Returns:
- the enabled site features or an empty set
- Throws:
DataAccessException
-