public class DefaultProjectPermissionsService extends Object implements ProjectPermissionsService
Constructor and Description |
---|
DefaultProjectPermissionsService(HibernateMutableAclService aclService,
TransactionAndHibernateTemplate hibernateTemplate,
BambooAclHelper aclHelper,
ProjectManager projectManager,
BambooPermissionManager bambooPermissionManager,
BambooUserManager bambooUserManager) |
@Autowired public DefaultProjectPermissionsService(HibernateMutableAclService aclService, TransactionAndHibernateTemplate hibernateTemplate, BambooAclHelper aclHelper, ProjectManager projectManager, BambooPermissionManager bambooPermissionManager, BambooUserManager bambooUserManager)
@NotNull public Iterable<String> listUsersWithPermissionsForProject(@NotNull String projectKey)
listUsersWithPermissionsForProject
in interface ProjectPermissionsService
@NotNull public List<BambooPermission> getUserPermissionsForProject(@NotNull String projectKey, @NotNull String username)
getUserPermissionsForProject
in interface ProjectPermissionsService
public boolean addUserPermissionsToProject(@NotNull String projectKey, @NotNull String username, @NotNull List<BambooPermission> permissionsToAdd)
addUserPermissionsToProject
in interface ProjectPermissionsService
public boolean removeUserPermissionsFromProject(@NotNull String projectKey, @NotNull String username, @NotNull List<BambooPermission> permissionsToRemove)
removeUserPermissionsFromProject
in interface ProjectPermissionsService
@NotNull public Iterable<String> listGroupsWithPermissionsForProject(@NotNull String projectKey)
listGroupsWithPermissionsForProject
in interface ProjectPermissionsService
@NotNull public List<BambooPermission> getGroupPermissionsForProject(@NotNull String projectKey, @NotNull String group)
getGroupPermissionsForProject
in interface ProjectPermissionsService
public boolean addGroupPermissionsToProject(@NotNull String projectKey, @NotNull String group, @NotNull List<BambooPermission> permissionsToAdd)
addGroupPermissionsToProject
in interface ProjectPermissionsService
public boolean removeGroupPermissionsFromProject(@NotNull String projectKey, @NotNull String group, @NotNull List<BambooPermission> permissionsToRemove)
removeGroupPermissionsFromProject
in interface ProjectPermissionsService
@NotNull public List<BambooPermission> getLoggedInPermissionsForProject(@NotNull String projectKey)
getLoggedInPermissionsForProject
in interface ProjectPermissionsService
public boolean addLoggedInPermissionsToProject(@NotNull String projectKey, @NotNull List<BambooPermission> permissionsToAdd)
addLoggedInPermissionsToProject
in interface ProjectPermissionsService
public boolean removeLoggedInPermissionsFromProject(@NotNull String projectKey, @NotNull List<BambooPermission> permissionsToRemove)
removeLoggedInPermissionsFromProject
in interface ProjectPermissionsService
@NotNull public Collection<BambooPermission> supportedPermissions()
ProjectPermissionsService
Ordered by permission importance. Least granting permissions come first.
supportedPermissions
in interface ProjectPermissionsService
@NotNull public Collection<BambooPermission> permissionDependencies(@NotNull BambooPermission permission)
ProjectPermissionsService
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 ProjectPermissionsService
public List<BambooPermission> getAnonymousPermissions(@NotNull String projectKey)
getAnonymousPermissions
in interface ProjectPermissionsService
public boolean addAnonymousPermission(@NotNull String projectKey)
ProjectPermissionsService
addAnonymousPermission
in interface ProjectPermissionsService
public boolean removeAnonymousPermission(@NotNull String projectKey)
ProjectPermissionsService
removeAnonymousPermission
in interface ProjectPermissionsService
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.