Package com.atlassian.jira.config
Interface FeatureStore
- All Known Implementing Classes:
DefaultFeatureStore
public interface FeatureStore
- Since:
- v6.0
-
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
-
Method Details
-
delete
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
Creates an feature with the properties of the given feature.- Parameters:
featureName- 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
Returns a list of all enabled features for a user- Parameters:
userKey- theApplicationUserkey- Returns:
- the enabled features for a user or an empty set
- Throws:
DataAccessException
-
getSiteFeatures
Returns a list of all enabled site features- Returns:
- the enabled site features or an empty set
- Throws:
DataAccessException
-