public class DefaultProjectPlanPermissionsService extends Object implements ProjectPlanPermissionsService
Constructor and Description |
---|
DefaultProjectPlanPermissionsService(HibernateMutableAclService aclService,
TransactionAndHibernateTemplate hibernateTemplate,
BambooAclHelper aclHelper,
ProjectManager projectManage,
BambooPermissionManager bambooPermissionManager,
BambooUserManager bambooUserManager) |
Modifier and Type | Method and Description |
---|---|
boolean |
addAnonymousPermissionsToPlan(@NotNull String projectKey) |
boolean |
addGroupPermissionsToProjectPlan(@NotNull String projectKey,
@NotNull String group,
@NotNull List<BambooPermission> permissionsToAdd) |
boolean |
addLoggedInPermissionsToProjectPlan(@NotNull String projectKey,
@NotNull List<BambooPermission> permissionsToAdd) |
boolean |
addUserPermissionsToProjectPlan(@NotNull String projectKey,
@NotNull String username,
@NotNull List<BambooPermission> permissionsToAdd) |
@NotNull List<BambooPermission> |
getAnonymousPermissionsForProjectPlan(@NotNull String projectKey) |
@NotNull List<BambooPermission> |
getGroupPermissionsForProjectPlan(@NotNull String projectKey,
@NotNull String group) |
@NotNull List<BambooPermission> |
getLoggedInPermissionsForProjectPlan(@NotNull String projectKey) |
@NotNull List<BambooPermission> |
getUserPermissionsForProjectPlan(@NotNull String projectKey,
@NotNull String username) |
@NotNull Iterable<String> |
listGroupsWithPermissionsForProjectPlan(@NotNull String projectKey) |
@NotNull Iterable<String> |
listUsersWithPermissionsForProjectPlan(@NotNull String projectKey) |
@NotNull Collection<BambooPermission> |
permissionDependencies(@NotNull BambooPermission permission)
Obtain a collection of Bamboo permissions dependent on the passed
permission . |
boolean |
removeAnonymousPermissionsFromPlan(@NotNull String projectKey) |
boolean |
removeGroupPermissionsFromProjectPlan(@NotNull String projectKey,
@NotNull String group,
@NotNull List<BambooPermission> permissionsToRemove) |
boolean |
removeLoggedInPermissionsFromProjectPlan(@NotNull String projectKey,
@NotNull List<BambooPermission> permissionsToRemove) |
boolean |
removeUserPermissionsFromProjectPlan(@NotNull String projectKey,
@NotNull String username,
@NotNull List<BambooPermission> permissionsToRemove) |
@NotNull Collection<BambooPermission> |
supportedPermissions()
Collection of permissions configurable on projects to apply to all contained plans.
|
@Autowired public DefaultProjectPlanPermissionsService(HibernateMutableAclService aclService, TransactionAndHibernateTemplate hibernateTemplate, BambooAclHelper aclHelper, ProjectManager projectManage, BambooPermissionManager bambooPermissionManager, BambooUserManager bambooUserManager)
@NotNull public @NotNull Iterable<String> listUsersWithPermissionsForProjectPlan(@NotNull @NotNull String projectKey)
listUsersWithPermissionsForProjectPlan
in interface ProjectPlanPermissionsService
@NotNull public @NotNull List<BambooPermission> getUserPermissionsForProjectPlan(@NotNull @NotNull String projectKey, @NotNull @NotNull String username)
getUserPermissionsForProjectPlan
in interface ProjectPlanPermissionsService
public boolean addUserPermissionsToProjectPlan(@NotNull @NotNull String projectKey, @NotNull @NotNull String username, @NotNull @NotNull List<BambooPermission> permissionsToAdd)
addUserPermissionsToProjectPlan
in interface ProjectPlanPermissionsService
public boolean removeUserPermissionsFromProjectPlan(@NotNull @NotNull String projectKey, @NotNull @NotNull String username, @NotNull @NotNull List<BambooPermission> permissionsToRemove)
removeUserPermissionsFromProjectPlan
in interface ProjectPlanPermissionsService
@NotNull public @NotNull Iterable<String> listGroupsWithPermissionsForProjectPlan(@NotNull @NotNull String projectKey)
listGroupsWithPermissionsForProjectPlan
in interface ProjectPlanPermissionsService
@NotNull public @NotNull List<BambooPermission> getGroupPermissionsForProjectPlan(@NotNull @NotNull String projectKey, @NotNull @NotNull String group)
getGroupPermissionsForProjectPlan
in interface ProjectPlanPermissionsService
public boolean addGroupPermissionsToProjectPlan(@NotNull @NotNull String projectKey, @NotNull @NotNull String group, @NotNull @NotNull List<BambooPermission> permissionsToAdd)
addGroupPermissionsToProjectPlan
in interface ProjectPlanPermissionsService
public boolean removeGroupPermissionsFromProjectPlan(@NotNull @NotNull String projectKey, @NotNull @NotNull String group, @NotNull @NotNull List<BambooPermission> permissionsToRemove)
removeGroupPermissionsFromProjectPlan
in interface ProjectPlanPermissionsService
@NotNull public @NotNull List<BambooPermission> getLoggedInPermissionsForProjectPlan(@NotNull @NotNull String projectKey)
getLoggedInPermissionsForProjectPlan
in interface ProjectPlanPermissionsService
public boolean addLoggedInPermissionsToProjectPlan(@NotNull @NotNull String projectKey, @NotNull @NotNull List<BambooPermission> permissionsToAdd)
addLoggedInPermissionsToProjectPlan
in interface ProjectPlanPermissionsService
public boolean removeLoggedInPermissionsFromProjectPlan(@NotNull @NotNull String projectKey, @NotNull @NotNull List<BambooPermission> permissionsToRemove)
removeLoggedInPermissionsFromProjectPlan
in interface ProjectPlanPermissionsService
@NotNull public @NotNull List<BambooPermission> getAnonymousPermissionsForProjectPlan(@NotNull @NotNull String projectKey)
getAnonymousPermissionsForProjectPlan
in interface ProjectPlanPermissionsService
public boolean addAnonymousPermissionsToPlan(@NotNull @NotNull String projectKey)
addAnonymousPermissionsToPlan
in interface ProjectPlanPermissionsService
public boolean removeAnonymousPermissionsFromPlan(@NotNull @NotNull String projectKey)
removeAnonymousPermissionsFromPlan
in interface ProjectPlanPermissionsService
@NotNull public @NotNull Collection<BambooPermission> supportedPermissions()
ProjectPlanPermissionsService
Ordered by permission importance. Least granting permissions come first.
supportedPermissions
in interface ProjectPlanPermissionsService
@NotNull public @NotNull Collection<BambooPermission> permissionDependencies(@NotNull @NotNull BambooPermission permission)
ProjectPlanPermissionsService
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 ProjectPlanPermissionsService
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.