public class DefaultEnvironmentPermissionsService extends Object implements EnvironmentPermissionsService
Constructor and Description |
---|
DefaultEnvironmentPermissionsService(TransactionAndHibernateTemplate hibernateTemplate,
HibernateMutableAclService aclService,
BambooAclHelper aclHelper,
EnvironmentService environmentService,
BambooPermissionManager bambooPermissionManager,
BambooUserManager bambooUserManager) |
@Inject public DefaultEnvironmentPermissionsService(TransactionAndHibernateTemplate hibernateTemplate, HibernateMutableAclService aclService, BambooAclHelper aclHelper, EnvironmentService environmentService, BambooPermissionManager bambooPermissionManager, BambooUserManager bambooUserManager)
@NotNull public Iterable<String> listUsersWithPermissionsForEnvironment(long environmentId)
listUsersWithPermissionsForEnvironment
in interface EnvironmentPermissionsService
@NotNull public List<BambooPermission> getUserPermissionsForEnvironment(long environmentId, @NotNull String username)
getUserPermissionsForEnvironment
in interface EnvironmentPermissionsService
public boolean addUserPermissionsToEnvironment(long environmentId, @NotNull String username, @NotNull List<BambooPermission> permissionsToAdd)
addUserPermissionsToEnvironment
in interface EnvironmentPermissionsService
public boolean removeUserPermissionsFromEnvironment(long environmentId, @NotNull String username, @NotNull List<BambooPermission> permissionsToRemove)
removeUserPermissionsFromEnvironment
in interface EnvironmentPermissionsService
@NotNull public Iterable<String> listGroupsWithPermissionsForEnvironment(long environmentId)
listGroupsWithPermissionsForEnvironment
in interface EnvironmentPermissionsService
@NotNull public List<BambooPermission> getGroupPermissionsForEnvironment(long environmentId, @NotNull String groupName)
getGroupPermissionsForEnvironment
in interface EnvironmentPermissionsService
public boolean addGroupPermissionsToEnvironment(long environmentId, @NotNull String groupName, @NotNull List<BambooPermission> permissionsToAdd)
addGroupPermissionsToEnvironment
in interface EnvironmentPermissionsService
public boolean removeGroupPermissionsFromEnvironment(long environmentId, @NotNull String groupName, @NotNull List<BambooPermission> permissionsToRemove)
removeGroupPermissionsFromEnvironment
in interface EnvironmentPermissionsService
@NotNull public List<BambooPermission> getLoggedInPermissionsForEnvironment(long environmentId)
getLoggedInPermissionsForEnvironment
in interface EnvironmentPermissionsService
public boolean addLoggedInPermissionsToEnvironment(long environmentId, @NotNull List<BambooPermission> permissionsToAdd)
addLoggedInPermissionsToEnvironment
in interface EnvironmentPermissionsService
public boolean removeLoggedInPermissionsFromEnvironment(long environmentId, @NotNull List<BambooPermission> permissionsToRemove)
removeLoggedInPermissionsFromEnvironment
in interface EnvironmentPermissionsService
@NotNull public List<BambooPermission> getAnonymousPermissionsForEnvironment(long environmentId)
getAnonymousPermissionsForEnvironment
in interface EnvironmentPermissionsService
public boolean addAnonymousPermissionsToEnvironment(long environmentId)
addAnonymousPermissionsToEnvironment
in interface EnvironmentPermissionsService
public boolean removeAnonymousPermissionsFromEnvironment(long environmentId)
removeAnonymousPermissionsFromEnvironment
in interface EnvironmentPermissionsService
@NotNull public Collection<BambooPermission> supportedPermissions()
EnvironmentPermissionsService
Ordered by permission importance. Least granting permissions come first.
supportedPermissions
in interface EnvironmentPermissionsService
@NotNull public Collection<BambooPermission> permissionDependencies(@NotNull BambooPermission permission)
EnvironmentPermissionsService
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 EnvironmentPermissionsService
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.