public class DefaultPlanPermissionsService extends Object implements PlanPermissionsService
Constructor and Description |
---|
DefaultPlanPermissionsService(TransactionAndHibernateTemplate hibernateTemplate,
HibernateMutableAclService aclService,
BambooAclHelper aclHelper,
PlanManager planManager,
BambooPermissionManager bambooPermissionManager,
BambooUserManager bambooUserManager) |
@Autowired public DefaultPlanPermissionsService(TransactionAndHibernateTemplate hibernateTemplate, HibernateMutableAclService aclService, BambooAclHelper aclHelper, PlanManager planManager, BambooPermissionManager bambooPermissionManager, BambooUserManager bambooUserManager)
@NotNull public Iterable<String> listUsersWithPermissionsForPlan(@NotNull String planKey)
listUsersWithPermissionsForPlan
in interface PlanPermissionsService
@NotNull public List<BambooPermission> getUserPermissionsForPlan(@NotNull String planKey, @NotNull String username)
getUserPermissionsForPlan
in interface PlanPermissionsService
public boolean addUserPermissionsToPlan(@NotNull String planKey, @NotNull String username, @NotNull List<BambooPermission> permissionsToAdd)
addUserPermissionsToPlan
in interface PlanPermissionsService
public boolean removeUserPermissionsFromPlan(@NotNull String planKey, @NotNull String username, @NotNull List<BambooPermission> permissionsToRemove)
removeUserPermissionsFromPlan
in interface PlanPermissionsService
@NotNull public Iterable<String> listGroupsWithPermissionsForPlan(@NotNull String planKey)
listGroupsWithPermissionsForPlan
in interface PlanPermissionsService
@NotNull public List<BambooPermission> getGroupPermissionsForPlan(@NotNull String planKey, @NotNull String groupName)
getGroupPermissionsForPlan
in interface PlanPermissionsService
public boolean addGroupPermissionsToPlan(@NotNull String planKey, @NotNull String groupName, @NotNull List<BambooPermission> permissionsToAdd)
addGroupPermissionsToPlan
in interface PlanPermissionsService
public boolean removeGroupPermissionsFromPlan(@NotNull String planKey, @NotNull String groupName, @NotNull List<BambooPermission> permissionsToRemove)
removeGroupPermissionsFromPlan
in interface PlanPermissionsService
@NotNull public List<BambooPermission> getLoggedInPermissionsForPlan(@NotNull String planKey)
getLoggedInPermissionsForPlan
in interface PlanPermissionsService
public boolean addLoggedInPermissionsToPlan(@NotNull String planKey, @NotNull List<BambooPermission> permissionsToAdd)
addLoggedInPermissionsToPlan
in interface PlanPermissionsService
public boolean removeLoggedInPermissionsFromPlan(@NotNull String planKey, @NotNull List<BambooPermission> permissionsToRemove)
removeLoggedInPermissionsFromPlan
in interface PlanPermissionsService
@NotNull public List<BambooPermission> getAnonymousPermissionsForPlan(@NotNull String planKey)
getAnonymousPermissionsForPlan
in interface PlanPermissionsService
public boolean addAnonymousPermissionsToPlan(@NotNull String planKey)
addAnonymousPermissionsToPlan
in interface PlanPermissionsService
public boolean removeAnonymousPermissionsFromPlan(@NotNull String planKey)
removeAnonymousPermissionsFromPlan
in interface PlanPermissionsService
@NotNull public Collection<BambooPermission> supportedPermissions()
PlanPermissionsService
Ordered by permission importance. Least granting permissions come first.
supportedPermissions
in interface PlanPermissionsService
@NotNull public Collection<BambooPermission> permissionDependencies(@NotNull BambooPermission permission)
PlanPermissionsService
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 PlanPermissionsService
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.