public class DefaultRepositoryPermissionsService extends Object implements RepositoryPermissionsService
Constructor and Description |
---|
DefaultRepositoryPermissionsService(TransactionAndHibernateTemplate hibernateTemplate,
HibernateMutableAclService aclService,
BambooAclHelper aclHelper,
RepositoryDefinitionManager repositoryDefinitionManager,
BambooPermissionManager bambooPermissionManager,
BambooUserManager bambooUserManager) |
@Autowired public DefaultRepositoryPermissionsService(TransactionAndHibernateTemplate hibernateTemplate, HibernateMutableAclService aclService, BambooAclHelper aclHelper, RepositoryDefinitionManager repositoryDefinitionManager, BambooPermissionManager bambooPermissionManager, BambooUserManager bambooUserManager)
@NotNull public Iterable<String> listUsersWithPermissionsForRepository(long repositoryId)
listUsersWithPermissionsForRepository
in interface RepositoryPermissionsService
@NotNull public List<BambooPermission> getUserPermissionsForRepository(long repositoryId, @NotNull String username)
getUserPermissionsForRepository
in interface RepositoryPermissionsService
public boolean addUserPermissionsToRepository(long repositoryId, @NotNull String username, @NotNull List<BambooPermission> permissionsToAdd)
addUserPermissionsToRepository
in interface RepositoryPermissionsService
public boolean removeUserPermissionsFromRepository(long repositoryId, @NotNull String username, @NotNull List<BambooPermission> permissionsToRemove)
removeUserPermissionsFromRepository
in interface RepositoryPermissionsService
@NotNull public Iterable<String> listGroupsWithPermissionsForRepository(long repositoryId)
listGroupsWithPermissionsForRepository
in interface RepositoryPermissionsService
@NotNull public List<BambooPermission> getGroupPermissionsForRepository(long repositoryId, @NotNull String groupName)
getGroupPermissionsForRepository
in interface RepositoryPermissionsService
public boolean addGroupPermissionsToRepository(long repositoryId, @NotNull String groupName, @NotNull List<BambooPermission> permissionsToAdd)
addGroupPermissionsToRepository
in interface RepositoryPermissionsService
public boolean removeGroupPermissionsFromRepository(long repositoryId, @NotNull String groupName, @NotNull List<BambooPermission> permissionsToRemove)
removeGroupPermissionsFromRepository
in interface RepositoryPermissionsService
@NotNull public List<BambooPermission> getLoggedInPermissionsForRepository(long repositoryId)
getLoggedInPermissionsForRepository
in interface RepositoryPermissionsService
public boolean addLoggedInPermissionsToRepository(long repositoryId, @NotNull List<BambooPermission> permissionsToAdd)
addLoggedInPermissionsToRepository
in interface RepositoryPermissionsService
public boolean removeLoggedInPermissionsFromRepository(long repositoryId, @NotNull List<BambooPermission> permissionsToRemove)
removeLoggedInPermissionsFromRepository
in interface RepositoryPermissionsService
@NotNull public Collection<BambooPermission> supportedPermissions()
RepositoryPermissionsService
Ordered by permission importance. Least granting permissions come first.
supportedPermissions
in interface RepositoryPermissionsService
@NotNull public Collection<BambooPermission> permissionDependencies(@NotNull BambooPermission permission)
RepositoryPermissionsService
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 RepositoryPermissionsService
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.