public class DefaultProjectPlanPermissionsService extends Object implements ProjectPlanPermissionsService
Constructor and Description |
---|
DefaultProjectPlanPermissionsService(HibernateMutableAclService aclService,
TransactionAndHibernateTemplate hibernateTemplate,
BambooAclHelper aclHelper,
ProjectManager projectManage,
BambooPermissionManager bambooPermissionManager,
BambooUserManager bambooUserManager) |
@Autowired public DefaultProjectPlanPermissionsService(HibernateMutableAclService aclService, TransactionAndHibernateTemplate hibernateTemplate, BambooAclHelper aclHelper, ProjectManager projectManage, BambooPermissionManager bambooPermissionManager, BambooUserManager bambooUserManager)
@NotNull public Iterable<String> listUsersWithPermissionsForProjectPlan(@NotNull String projectKey)
listUsersWithPermissionsForProjectPlan
in interface ProjectPlanPermissionsService
@NotNull public List<BambooPermission> getUserPermissionsForProjectPlan(@NotNull String projectKey, @NotNull String username)
getUserPermissionsForProjectPlan
in interface ProjectPlanPermissionsService
public boolean addUserPermissionsToProjectPlan(@NotNull String projectKey, @NotNull String username, @NotNull List<BambooPermission> permissionsToAdd)
addUserPermissionsToProjectPlan
in interface ProjectPlanPermissionsService
public boolean removeUserPermissionsFromProjectPlan(@NotNull String projectKey, @NotNull String username, @NotNull List<BambooPermission> permissionsToRemove)
removeUserPermissionsFromProjectPlan
in interface ProjectPlanPermissionsService
@NotNull public Iterable<String> listGroupsWithPermissionsForProjectPlan(@NotNull String projectKey)
listGroupsWithPermissionsForProjectPlan
in interface ProjectPlanPermissionsService
@NotNull public List<BambooPermission> getGroupPermissionsForProjectPlan(@NotNull String projectKey, @NotNull String group)
getGroupPermissionsForProjectPlan
in interface ProjectPlanPermissionsService
public boolean addGroupPermissionsToProjectPlan(@NotNull String projectKey, @NotNull String group, @NotNull List<BambooPermission> permissionsToAdd)
addGroupPermissionsToProjectPlan
in interface ProjectPlanPermissionsService
public boolean removeGroupPermissionsFromProjectPlan(@NotNull String projectKey, @NotNull String group, @NotNull List<BambooPermission> permissionsToRemove)
removeGroupPermissionsFromProjectPlan
in interface ProjectPlanPermissionsService
@NotNull public List<BambooPermission> getLoggedInPermissionsForProjectPlan(@NotNull String projectKey)
getLoggedInPermissionsForProjectPlan
in interface ProjectPlanPermissionsService
public boolean addLoggedInPermissionsToProjectPlan(@NotNull String projectKey, @NotNull List<BambooPermission> permissionsToAdd)
addLoggedInPermissionsToProjectPlan
in interface ProjectPlanPermissionsService
public boolean removeLoggedInPermissionsFromProjectPlan(@NotNull String projectKey, @NotNull List<BambooPermission> permissionsToRemove)
removeLoggedInPermissionsFromProjectPlan
in interface ProjectPlanPermissionsService
@NotNull public List<BambooPermission> getAnonymousPermissionsForProjectPlan(@NotNull String projectKey)
getAnonymousPermissionsForProjectPlan
in interface ProjectPlanPermissionsService
public boolean addAnonymousPermissionsToPlan(@NotNull String projectKey)
addAnonymousPermissionsToPlan
in interface ProjectPlanPermissionsService
public boolean removeAnonymousPermissionsFromPlan(@NotNull String projectKey)
removeAnonymousPermissionsFromPlan
in interface ProjectPlanPermissionsService
@NotNull public Collection<BambooPermission> supportedPermissions()
ProjectPlanPermissionsService
Ordered by permission importance. Least granting permissions come first.
supportedPermissions
in interface ProjectPlanPermissionsService
@NotNull public Collection<BambooPermission> permissionDependencies(@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 © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.