public class DefaultGlobalPermissionsService extends Object implements GlobalPermissionsService
Constructor and Description |
---|
DefaultGlobalPermissionsService(TransactionAndHibernateTemplate hibernateTemplate,
HibernateMutableAclService aclService,
BambooAclHelper aclHelper,
BambooAclUpdateHelper aclUpdateHelper,
AdministrationConfigurationAccessor administrationConfigurationAccessor,
AdministrationConfigurationPersister administrationConfigurationPersister,
BambooUserManager bambooUserManager,
BambooPermissionManager bambooPermissionManager) |
@Autowired public DefaultGlobalPermissionsService(TransactionAndHibernateTemplate hibernateTemplate, HibernateMutableAclService aclService, BambooAclHelper aclHelper, BambooAclUpdateHelper aclUpdateHelper, AdministrationConfigurationAccessor administrationConfigurationAccessor, AdministrationConfigurationPersister administrationConfigurationPersister, BambooUserManager bambooUserManager, BambooPermissionManager bambooPermissionManager)
@NotNull public Iterable<String> listUsersWithGlobalPermissions()
listUsersWithGlobalPermissions
in interface GlobalPermissionsService
@NotNull public List<BambooPermission> getUserGlobalPermissions(@NotNull String username)
getUserGlobalPermissions
in interface GlobalPermissionsService
public boolean addUserGlobalPermissions(@NotNull String username, @NotNull List<BambooPermission> permissionsToAdd)
addUserGlobalPermissions
in interface GlobalPermissionsService
public boolean removeUserGlobalPermissions(@NotNull String username, @NotNull List<BambooPermission> permissionsToRemove)
removeUserGlobalPermissions
in interface GlobalPermissionsService
@NotNull public Iterable<String> listGroupsWithGlobalPermissions()
listGroupsWithGlobalPermissions
in interface GlobalPermissionsService
@NotNull public List<BambooPermission> getGroupGlobalPermissions(@NotNull String group)
getGroupGlobalPermissions
in interface GlobalPermissionsService
public boolean addGroupGlobalPermissions(@NotNull String group, @NotNull List<BambooPermission> permissionsToAdd)
addGroupGlobalPermissions
in interface GlobalPermissionsService
public boolean removeGroupGlobalPermissions(@NotNull String group, @NotNull List<BambooPermission> permissionsToRemove)
removeGroupGlobalPermissions
in interface GlobalPermissionsService
@NotNull public List<BambooPermission> getLoggedInGlobalPermissions()
getLoggedInGlobalPermissions
in interface GlobalPermissionsService
public boolean addLoggedInGlobalPermissions(@NotNull List<BambooPermission> permissionsToAdd)
addLoggedInGlobalPermissions
in interface GlobalPermissionsService
public boolean removeLoggedInGlobalPermissions(@NotNull List<BambooPermission> permissionsToRemove)
removeLoggedInGlobalPermissions
in interface GlobalPermissionsService
@NotNull public List<BambooPermission> getAnonymousGlobalPermissions()
getAnonymousGlobalPermissions
in interface GlobalPermissionsService
public boolean addAnonymousGlobalPermissions()
addAnonymousGlobalPermissions
in interface GlobalPermissionsService
public boolean removeAnonymousGlobalPermissions()
removeAnonymousGlobalPermissions
in interface GlobalPermissionsService
@NotNull public Collection<BambooPermission> supportedPermissions()
GlobalPermissionsService
Ordered by permission importance. Least granting permissions come first.
supportedPermissions
in interface GlobalPermissionsService
@NotNull public Collection<BambooPermission> editablePermissions()
GlobalPermissionsService
BambooPermission.ADMINISTRATION
.editablePermissions
in interface GlobalPermissionsService
@NotNull public Collection<BambooPermission> permissionDependencies(@NotNull BambooPermission permission)
GlobalPermissionsService
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 GlobalPermissionsService
Copyright © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.