public class ApplicationRoleResource extends Object
Constructor and Description |
---|
ApplicationRoleResource(ApplicationRoleAdminService service,
I18nHelper helper,
GroupManager groupManager,
ApplicationRoleBeanConverter roleBeanConverter,
FeatureManager featureManager,
ApplicationRoleHasher appRoleHasher) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
get(String key)
Returns the ApplicationRole with passed key if it exists.
|
javax.ws.rs.core.Response |
getAll()
Returns all ApplicationRoles in the system.
|
javax.ws.rs.core.Response |
put(String key,
String versionHash,
ApplicationRoleBean bean)
Updates the ApplicationRole with the passed data.
|
javax.ws.rs.core.Response |
putBulk(List<ApplicationRoleBean> beans,
String versionHash)
Updates the ApplicationRoles with the passed data if the version hash is the same as the server.
|
@Autowired public ApplicationRoleResource(ApplicationRoleAdminService service, I18nHelper helper, GroupManager groupManager, ApplicationRoleBeanConverter roleBeanConverter, @Nonnull FeatureManager featureManager, ApplicationRoleHasher appRoleHasher)
public javax.ws.rs.core.Response getAll()
public javax.ws.rs.core.Response get(String key)
key
- the key of the role to use.public javax.ws.rs.core.Response put(String key, @HeaderParam(value="If-Match") String versionHash, ApplicationRoleBean bean)
key
- the key of the role to update.versionHash
- the hash of the version to update. Optional Parambean
- the data to update the role with.public javax.ws.rs.core.Response putBulk(List<ApplicationRoleBean> beans, @HeaderParam(value="If-Match") String versionHash)
beans
- the data to update the role withCopyright © 2002-2015 Atlassian. All Rights Reserved.