public interface FeatureStore
Modifier and Type | Method and 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.
|
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
|
void delete(String featureKey, String userKey) throws DataAccessException
featureKey
- the feature's id, must not be null.userKey
- the user who the feature is for. null if site featureDataAccessException
- if there is a back-end storage problem.void create(String featureName, String userKey) throws DataAccessException
featureName
- the name of the feature to createuserKey
- the user who the feature is for. null if site featureDataAccessException
- if there is a back-end storage problem.Set<String> getUserFeatures(String userKey) throws DataAccessException
userKey
- the ApplicationUser
keyDataAccessException
Set<String> getSiteFeatures() throws DataAccessException
DataAccessException
Copyright © 2002-2015 Atlassian. All Rights Reserved.