public class

DefaultFeatureStore

extends Object
implements FeatureStore
java.lang.Object
   ↳ com.atlassian.jira.config.DefaultFeatureStore

Class Overview

Non cached implementation of feature store

Summary

Public Constructors
DefaultFeatureStore(OfBizDelegator ofBizDelegator)
Public Methods
void create(String featureKey, 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
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.config.FeatureStore

Public Constructors

public DefaultFeatureStore (OfBizDelegator ofBizDelegator)

Public Methods

public void create (String featureKey, String userKey)

Creates an feature with the properties of the given feature.

Parameters
featureKey the name of the feature to create
userKey the user who the feature is for. null if site feature

public void delete (String featureKey, String userKey)

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

public Set<String> getSiteFeatures ()

Returns a list of all enabled site features

Returns
  • the enabled site features or an empty set

public Set<String> getUserFeatures (String userKey)

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