public class ProjectPlanPermissionsResource extends Object implements PermissionsResource
ROLE_ANONYMOUS, ROLE_LOGGED_IN
Modifier and Type | Method and Description |
---|---|
boolean |
addAnonymousPermissions(String key) |
boolean |
addGroupPermissions(String projectKey,
String group,
List<BambooPermission> permissionsToAdd) |
boolean |
addLoggedInPermissions(String projectKey,
List<BambooPermission> permissionsToAdd) |
javax.ws.rs.core.Response |
addPermissionsForGroup(String projectKey,
String group,
List<String> permissionsToAdd)
Grants project plan permissions to a given group.
|
javax.ws.rs.core.Response |
addPermissionsForRole(String projectKey,
String role,
List<String> permissionsToAdd)
Grants project plan permissions to a given role.
|
javax.ws.rs.core.Response |
addPermissionsForUser(String projectKey,
String username,
List<String> permissionsToAdd)
Grants project plan permissions to a given user.
|
boolean |
addUserPermissions(String projectKey,
String username,
List<BambooPermission> permissionsToAdd) |
List<BambooPermission> |
getAnonymousPermissions(String projectKey) |
RestPageModel<RestGroup> |
getAvailableGroups(String projectKey,
String nameFilter,
PageRequest pageRequest,
Expansion expansion,
javax.ws.rs.core.UriInfo uriInfo)
Returns list of groups which weren't granted explicitly any project plan permissions.
|
RestPageModel<RestUser> |
getAvailableUsers(String projectKey,
String nameFilter,
PageRequest pageRequest,
Expansion expansion,
javax.ws.rs.core.UriInfo uriInfo)
Returns list of users which weren't granted explicitly any project plan permissions.
|
List<BambooPermission> |
getGroupPermissions(String projectKey,
String group) |
List<BambooPermission> |
getLoggedInPermissions(String projectKey) |
List<BambooPermission> |
getUserPermissions(String projectKey,
String username) |
RestPageModel<RestGroupPermission> |
listGroupPermissions(String projectKey,
String nameFilter,
PageRequest pageRequest,
Expansion expansion,
javax.ws.rs.core.UriInfo uriInfo)
Retrieve a list of groups with their project plan permissions.
|
Iterable<String> |
listGroupsWithPermissions(String projectKey) |
RestPageModel<RestRolePermission> |
listRolePermissions(String projectKey,
PageRequest pageRequest,
Expansion expansion,
javax.ws.rs.core.UriInfo uriInfo)
Retrieve a list of roles with their project plan permissions.
|
RestPageModel<RestUserPermission> |
listUserPermissions(String projectKey,
String nameFilter,
PageRequest pageRequest,
Expansion expansion,
javax.ws.rs.core.UriInfo uriInfo)
Retrieve a list of users with their explicit permissions to given resource.
|
Iterable<String> |
listUsersWithPermissions(String projectKey) |
boolean |
removeAnonymousPermissions(String key) |
boolean |
removeGroupPermissions(String projectKey,
String group,
List<BambooPermission> permissionsToRemove) |
boolean |
removeLoggedInPermissions(String projectKey,
List<BambooPermission> permissionsToRemove) |
javax.ws.rs.core.Response |
removePermissionsForGroup(String projectKey,
String group,
List<String> permissionsToRemove)
Revokes project plan permissions from a given group.
|
javax.ws.rs.core.Response |
removePermissionsForRole(String projectKey,
String role,
List<String> permissionsToRemove)
Revokes project plan permissions from a given role.
|
javax.ws.rs.core.Response |
removePermissionsForUser(String projectKey,
String username,
List<String> permissionsToRemove)
Revokes project plan permissions from a given user.
|
boolean |
removeUserPermissions(String projectKey,
String username,
List<BambooPermission> permissionsToRemove) |
Collection<BambooPermission> |
supportedPermissions() |
Set<String> |
supportedRoles() |
public RestPageModel<RestUserPermission> listUserPermissions(String projectKey, String nameFilter, @Context PageRequest pageRequest, @Context Expansion expansion, @Context javax.ws.rs.core.UriInfo uriInfo)
listUserPermissions
in interface PermissionsResource
projectKey
- project entity keynameFilter
- 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 projectKey, String username, @RequestBody List<String> permissionsToAdd)
addPermissionsForUser
in interface PermissionsResource
projectKey
- project entity keyusername
- username of the affected userpermissionsToAdd
- permission names to grantpublic javax.ws.rs.core.Response removePermissionsForUser(String projectKey, String username, @RequestBody List<String> permissionsToRemove)
removePermissionsForUser
in interface PermissionsResource
projectKey
- project entity keyusername
- username of the affected userpermissionsToRemove
- permission names to be revokedpublic RestPageModel<RestUser> getAvailableUsers(String projectKey, String nameFilter, @Context PageRequest pageRequest, @Context Expansion expansion, @Context javax.ws.rs.core.UriInfo uriInfo)
getAvailableUsers
in interface PermissionsResource
projectKey
- project entity keynameFilter
- 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 RestPageModel<RestGroupPermission> listGroupPermissions(String projectKey, String nameFilter, @Context PageRequest pageRequest, @Context Expansion expansion, @Context javax.ws.rs.core.UriInfo uriInfo)
listGroupPermissions
in interface PermissionsResource
projectKey
- project entity keynameFilter
- 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 projectKey, String group, @RequestBody List<String> permissionsToAdd)
addPermissionsForGroup
in interface PermissionsResource
projectKey
- project entity keygroup
- affected grouppermissionsToAdd
- permission names to grantpublic javax.ws.rs.core.Response removePermissionsForGroup(String projectKey, String group, @RequestBody List<String> permissionsToRemove)
removePermissionsForGroup
in interface PermissionsResource
projectKey
- project entity keygroup
- affected grouppermissionsToRemove
- permission names to be revokedpublic RestPageModel<RestGroup> getAvailableGroups(String projectKey, String nameFilter, @Context PageRequest pageRequest, @Context Expansion expansion, @Context javax.ws.rs.core.UriInfo uriInfo)
getAvailableGroups
in interface PermissionsResource
projectKey
- project entity keynameFilter
- 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 projectKey, @Context PageRequest pageRequest, @Context Expansion expansion, @Context javax.ws.rs.core.UriInfo uriInfo)
listRolePermissions
in interface PermissionsResource
projectKey
- project entity keypageRequest
- represents the params that define which page the request is afterexpansion
- ignoreduriInfo
- ignoredpublic javax.ws.rs.core.Response addPermissionsForRole(String projectKey, String role, @RequestBody List<String> permissionsToAdd)
addPermissionsForRole
in interface PermissionsResource
projectKey
- project entity keyrole
- affected rolepermissionsToAdd
- permission names to grantpublic javax.ws.rs.core.Response removePermissionsForRole(String projectKey, String role, @RequestBody List<String> permissionsToRemove)
removePermissionsForRole
in interface PermissionsResource
projectKey
- project entity keyrole
- affected rolepermissionsToRemove
- permission names to be revokedpublic Collection<BambooPermission> supportedPermissions()
public List<BambooPermission> getUserPermissions(String projectKey, String username)
public boolean addUserPermissions(String projectKey, String username, List<BambooPermission> permissionsToAdd)
public boolean removeUserPermissions(String projectKey, String username, List<BambooPermission> permissionsToRemove)
public List<BambooPermission> getGroupPermissions(String projectKey, String group)
public boolean addGroupPermissions(String projectKey, String group, List<BambooPermission> permissionsToAdd)
public boolean removeGroupPermissions(String projectKey, String group, List<BambooPermission> permissionsToRemove)
public List<BambooPermission> getLoggedInPermissions(String projectKey)
public boolean addLoggedInPermissions(String projectKey, List<BambooPermission> permissionsToAdd)
public boolean removeLoggedInPermissions(String projectKey, List<BambooPermission> permissionsToRemove)
public List<BambooPermission> getAnonymousPermissions(String projectKey)
public boolean addAnonymousPermissions(String key)
public boolean removeAnonymousPermissions(String key)
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.