|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.bamboo.plugins.rest.admin.darkfeature.DarkFeatureResource
@Singleton public class DarkFeatureResource
Provides RESTful operations to manage dark features.
Field Summary | |
---|---|
static RestDarkFeature |
DARK_FEATURE
Used for REST documentation generation. |
static RestUserDarkFeature |
USER_DARK_FEATURE
Used for REST documentation generation. |
Constructor Summary | |
---|---|
DarkFeatureResource(com.atlassian.sal.api.features.DarkFeatureManager darkFeatureManager,
DarkFeatureService darkFeatureService,
BambooUserManager bambooUserManager)
|
Method Summary | |
---|---|
RestDarkFeature |
get(String featureKey)
Retrieves whether a given dark feature key is enabled for this instance. |
List<RestDarkFeature> |
getAll()
Retrieves a list of dark features that are enabled for all users. |
RestDarkFeature |
getForUser(String featureKey,
String userName)
Retrieves whether a given dark feature key is enabled for a given user. |
RestDarkFeature |
put(String featureKey,
RestDarkFeature darkFeaturePropertyBean)
Enable or disable a dark feature for all users of this instance. |
RestUserDarkFeature |
put(String featureKey,
String userName,
RestDarkFeature darkFeaturePropertyBean)
Enable or disable a dark feature for a given user. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final RestDarkFeature DARK_FEATURE
public static final RestUserDarkFeature USER_DARK_FEATURE
Constructor Detail |
---|
public DarkFeatureResource(com.atlassian.sal.api.features.DarkFeatureManager darkFeatureManager, DarkFeatureService darkFeatureService, BambooUserManager bambooUserManager)
Method Detail |
---|
public RestDarkFeature get(String featureKey)
featureKey
- the key of the dark feature
RestDarkFeature
containing the status of the dark feature for this instancepublic RestDarkFeature getForUser(String featureKey, String userName)
featureKey
- the key of the dark featureuserName
- the user for which the status of the dark feature needs to be checked for
RestUserDarkFeature
containing the status of the dark feature for the given userpublic List<RestDarkFeature> getAll()
RestDarkFeature
containing a list of dark features enabled for all userspublic RestDarkFeature put(String featureKey, RestDarkFeature darkFeaturePropertyBean)
featureKey
- the key of the dark featuredarkFeaturePropertyBean
- a representation of of the status of the dark feature
RestDarkFeature
updated dark featurepublic RestUserDarkFeature put(String featureKey, String userName, RestDarkFeature darkFeaturePropertyBean)
featureKey
- the key of the dark featureuserName
- the username of the user for which the dark feature has to be enabled/disableddarkFeaturePropertyBean
- a representation of of the status of the dark feature
RestUserDarkFeature
updated user dark feature
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |