public class DefaultDeploymentProjectPermissionsService extends Object implements DeploymentProjectPermissionsService
Constructor and Description |
---|
DefaultDeploymentProjectPermissionsService() |
public DefaultDeploymentProjectPermissionsService()
@NotNull public Iterable<String> listUsersWithPermissionsForDeploymentProject(long deploymentProjectId)
listUsersWithPermissionsForDeploymentProject
in interface DeploymentProjectPermissionsService
@NotNull public List<BambooPermission> getUserPermissionsForDeploymentProject(long deploymentProjectId, @NotNull String username)
getUserPermissionsForDeploymentProject
in interface DeploymentProjectPermissionsService
public boolean addUserPermissionsToDeploymentProject(long deploymentProjectId, @NotNull String username, @NotNull List<BambooPermission> permissionsToAdd)
addUserPermissionsToDeploymentProject
in interface DeploymentProjectPermissionsService
public boolean removeUserPermissionsFromDeploymentProject(long deploymentProjectId, @NotNull String username, @NotNull List<BambooPermission> permissionsToRemove)
removeUserPermissionsFromDeploymentProject
in interface DeploymentProjectPermissionsService
@NotNull public Iterable<String> listGroupsWithPermissionsForDeploymentProject(long deploymentProjectId)
listGroupsWithPermissionsForDeploymentProject
in interface DeploymentProjectPermissionsService
@NotNull public List<BambooPermission> getGroupPermissionsForDeploymentProject(long deploymentProjectId, @NotNull String groupName)
getGroupPermissionsForDeploymentProject
in interface DeploymentProjectPermissionsService
public boolean addGroupPermissionsToDeploymentProject(long deploymentProjectId, @NotNull String groupName, @NotNull List<BambooPermission> permissionsToAdd)
addGroupPermissionsToDeploymentProject
in interface DeploymentProjectPermissionsService
public boolean removeGroupPermissionsFromDeploymentProject(long deploymentProjectId, @NotNull String groupName, @NotNull List<BambooPermission> permissionsToRemove)
removeGroupPermissionsFromDeploymentProject
in interface DeploymentProjectPermissionsService
@NotNull public List<BambooPermission> getLoggedInPermissionsForDeploymentProject(long deploymentProjectId)
getLoggedInPermissionsForDeploymentProject
in interface DeploymentProjectPermissionsService
public boolean addLoggedInPermissionsToDeploymentProject(long deploymentProjectId, @NotNull List<BambooPermission> permissionsToAdd)
addLoggedInPermissionsToDeploymentProject
in interface DeploymentProjectPermissionsService
public boolean removeLoggedInPermissionsFromDeploymentProject(long deploymentProjectId, @NotNull List<BambooPermission> permissionsToRemove)
removeLoggedInPermissionsFromDeploymentProject
in interface DeploymentProjectPermissionsService
@NotNull public List<BambooPermission> getAnonymousPermissionsForDeploymentProject(long deploymentProjectId)
getAnonymousPermissionsForDeploymentProject
in interface DeploymentProjectPermissionsService
public boolean addAnonymousPermissionsToDeploymentProject(long deploymentProjectId)
addAnonymousPermissionsToDeploymentProject
in interface DeploymentProjectPermissionsService
public boolean removeAnonymousPermissionsFromDeploymentProject(long deploymentProjectId)
removeAnonymousPermissionsFromDeploymentProject
in interface DeploymentProjectPermissionsService
@NotNull public Collection<BambooPermission> supportedPermissions()
DeploymentProjectPermissionsService
Ordered by permission importance. Least granting permissions come first.
supportedPermissions
in interface DeploymentProjectPermissionsService
@NotNull public Collection<BambooPermission> permissionDependencies(@NotNull BambooPermission permission)
DeploymentProjectPermissionsService
permission
. A dependent permission is
expected to always be granted whenever the parent permission is granted too.
The result is an effective collection of dependencies, meaning there's no need to recursively traverse the dependency graph.
permissionDependencies
in interface DeploymentProjectPermissionsService
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.