public class GlobalPermissionsResource extends Object implements PermissionsResource
ROLE_ANONYMOUS, ROLE_LOGGED_IN
Modifier and Type | Method and Description |
---|---|
boolean |
addAnonymousPermissions(String key) |
boolean |
addGroupPermissions(String ignore,
String group,
List<BambooPermission> permissionsToAdd) |
boolean |
addLoggedInPermissions(String ignore,
List<BambooPermission> permissionsToAdd) |
javax.ws.rs.core.Response |
addPermissionsForGroup(String ignore,
String group,
List<String> permissionsToAdd)
Grants global permissions to a given group.
|
javax.ws.rs.core.Response |
addPermissionsForRole(String ignore,
String role,
List<String> permissionsToAdd)
Grants global permissions to a given role.
|
javax.ws.rs.core.Response |
addPermissionsForUser(String ignore,
String username,
List<String> permissionsToAdd)
Grants global permissions to a given user.
|
boolean |
addUserPermissions(String ignore,
String username,
List<BambooPermission> permissionsToAdd) |
List<BambooPermission> |
getAnonymousPermissions(String key) |
RestPageModel<RestGroup> |
getAvailableGroups(String ignore,
String nameFilter,
PageRequest pageRequest,
Expansion expansion,
javax.ws.rs.core.UriInfo uriInfo)
Returns list of groups which weren't granted explicitly any permissions.
|
RestPageModel<RestUser> |
getAvailableUsers(String ignore,
String nameFilter,
PageRequest pageRequest,
Expansion expansion,
javax.ws.rs.core.UriInfo uriInfo)
Returns list of users which weren't granted explicitly any permissions.
|
List<BambooPermission> |
getGroupPermissions(String ignore,
String group) |
List<BambooPermission> |
getLoggedInPermissions(String ignore) |
List<BambooPermission> |
getUserPermissions(String ignore,
String username) |
RestPageModel<RestGroupPermission> |
listGroupPermissions(String ignore,
String nameFilter,
PageRequest pageRequest,
Expansion expansion,
javax.ws.rs.core.UriInfo uriInfo)
Retrieve a list of groups with their global permissions.
|
Iterable<String> |
listGroupsWithPermissions(String ignore) |
RestPageModel<RestRolePermission> |
listRolePermissions(String ignore,
PageRequest pageRequest,
Expansion expansion,
javax.ws.rs.core.UriInfo uriInfo)
Retrieve a list of roles with their global permissions.
|
RestPageModel<RestUserPermission> |
listUserPermissions(String ignore,
String nameFilter,
PageRequest pageRequest,
Expansion expansion,
javax.ws.rs.core.UriInfo uriInfo)
Retrieve a list of users with their global permissions.
|
Iterable<String> |
listUsersWithPermissions(String ignore) |
boolean |
removeAnonymousPermissions(String key) |
boolean |
removeGroupPermissions(String ignore,
String group,
List<BambooPermission> permissionsToRemove) |
boolean |
removeLoggedInPermissions(String ignore,
List<BambooPermission> permissionsToRemove) |
javax.ws.rs.core.Response |
removePermissionsForGroup(String ignore,
String group,
List<String> permissionsToRemove)
Revokes global permissions from a given group.
|
javax.ws.rs.core.Response |
removePermissionsForRole(String ignore,
String role,
List<String> permissionsToRemove)
Revokes global permissions from a given role.
|
javax.ws.rs.core.Response |
removePermissionsForUser(String ignore,
String username,
List<String> permissionsToRemove)
Revokes global permissions from a given user.
|
boolean |
removeUserPermissions(String ignore,
String username,
List<BambooPermission> permissionsToRemove) |
Collection<BambooPermission> |
supportedPermissions() |
Set<String> |
supportedRoles() |
public RestPageModel<RestUserPermission> listUserPermissions(String ignore, String nameFilter, @Context PageRequest pageRequest, @Context Expansion expansion, @Context javax.ws.rs.core.UriInfo uriInfo)
listUserPermissions
in interface PermissionsResource
ignore
- parameter not used, can be ignorednameFilter
- user filter, filter is case insensitive matches: username, user's full name, user's emailpageRequest
- represents the params that define which page the request is afterexpansion
- ignoreduriInfo
- ignoredpublic javax.ws.rs.core.Response addPermissionsForUser(String ignore, String username, @RequestBody List<String> permissionsToAdd)
addPermissionsForUser
in interface PermissionsResource
ignore
- parameter not used, can be ignoredusername
- username of the affected userpermissionsToAdd
- permission names to grantpublic javax.ws.rs.core.Response removePermissionsForUser(String ignore, String username, @RequestBody List<String> permissionsToRemove)
removePermissionsForUser
in interface PermissionsResource
ignore
- parameter not used, can be ignoredusername
- username of the affected userpermissionsToRemove
- permission names to be revokedpublic RestPageModel<RestUser> getAvailableUsers(String ignore, String nameFilter, @Context PageRequest pageRequest, @Context Expansion expansion, @Context javax.ws.rs.core.UriInfo uriInfo)
getAvailableUsers
in interface PermissionsResource
nameFilter
- user filter, filter is case insensitive matches: username, user's full name, user's emailpageRequest
- represents the params that define which page the request is afterexpansion
- ignoreduriInfo
- ignoredignore
- parameter not used, can be ignoredpublic RestPageModel<RestGroupPermission> listGroupPermissions(String ignore, String nameFilter, @Context PageRequest pageRequest, @Context Expansion expansion, @Context javax.ws.rs.core.UriInfo uriInfo)
listGroupPermissions
in interface PermissionsResource
ignore
- parameter not used, can be ignorednameFilter
- group name filter, filter is case insensitive matches group namepageRequest
- represents the params that define which page the request is afterexpansion
- ignoreduriInfo
- ignoredpublic javax.ws.rs.core.Response addPermissionsForGroup(String ignore, String group, @RequestBody List<String> permissionsToAdd)
addPermissionsForGroup
in interface PermissionsResource
ignore
- parameter not used, can be ignoredgroup
- affected grouppermissionsToAdd
- permission names to grantpublic javax.ws.rs.core.Response removePermissionsForGroup(String ignore, String group, @RequestBody List<String> permissionsToRemove)
removePermissionsForGroup
in interface PermissionsResource
ignore
- parameter not used, can be ignoredgroup
- affected grouppermissionsToRemove
- permission names to be revokedpublic RestPageModel<RestGroup> getAvailableGroups(String ignore, String nameFilter, @Context PageRequest pageRequest, @Context Expansion expansion, @Context javax.ws.rs.core.UriInfo uriInfo)
getAvailableGroups
in interface PermissionsResource
ignore
- parameter not used, can be ignorednameFilter
- group name filter, filter is case insensitive matches group namepageRequest
- represents the params that define which page the request is afterexpansion
- ignoreduriInfo
- ignoredpublic RestPageModel<RestRolePermission> listRolePermissions(String ignore, @Context PageRequest pageRequest, @Context Expansion expansion, @Context javax.ws.rs.core.UriInfo uriInfo)
listRolePermissions
in interface PermissionsResource
ignore
- parameter not used, can be ignoredpageRequest
- represents the params that define which page the request is afterexpansion
- ignoreduriInfo
- ignoredpublic javax.ws.rs.core.Response addPermissionsForRole(String ignore, String role, @RequestBody List<String> permissionsToAdd)
addPermissionsForRole
in interface PermissionsResource
ignore
- parameter not used, can be ignoredrole
- affected rolepermissionsToAdd
- permission names to grantpublic javax.ws.rs.core.Response removePermissionsForRole(String ignore, String role, @RequestBody List<String> permissionsToRemove)
removePermissionsForRole
in interface PermissionsResource
ignore
- parameter not used, can be ignoredrole
- affected rolepermissionsToRemove
- permission names to be revokedpublic Collection<BambooPermission> supportedPermissions()
public List<BambooPermission> getUserPermissions(String ignore, String username)
public boolean addUserPermissions(String ignore, String username, List<BambooPermission> permissionsToAdd)
public boolean removeUserPermissions(String ignore, String username, List<BambooPermission> permissionsToRemove)
public List<BambooPermission> getGroupPermissions(String ignore, String group)
public boolean addGroupPermissions(String ignore, String group, List<BambooPermission> permissionsToAdd)
public boolean removeGroupPermissions(String ignore, String group, List<BambooPermission> permissionsToRemove)
public List<BambooPermission> getLoggedInPermissions(String ignore)
public boolean addLoggedInPermissions(String ignore, List<BambooPermission> permissionsToAdd)
public boolean removeLoggedInPermissions(String ignore, List<BambooPermission> permissionsToRemove)
public List<BambooPermission> getAnonymousPermissions(String key)
public boolean addAnonymousPermissions(String key)
public boolean removeAnonymousPermissions(String key)
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.