com.atlassian.jira.config
Interface FeatureStore

All Known Implementing Classes:
DefaultFeatureStore

public interface FeatureStore

Since:
v6.0

Method Summary
 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
 

Method Detail

delete

void delete(String featureKey,
            String userKey)
            throws DataAccessException
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

void create(String featureName,
            String userKey)
            throws DataAccessException
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.

getUserFeatures

Set<String> getUserFeatures(String userKey)
                            throws DataAccessException
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
Throws:
DataAccessException

getSiteFeatures

Set<String> getSiteFeatures()
                            throws DataAccessException
Returns a list of all enabled site features

Returns:
the enabled site features or an empty set
Throws:
DataAccessException


Copyright © 2002-2014 Atlassian. All Rights Reserved.