Class UserPermissionAdminServiceImpl
java.lang.Object
com.atlassian.crowd.manager.permission.UserPermissionAdminServiceImpl
- All Implemented Interfaces:
UserPermissionAdminService
@Transactional
public class UserPermissionAdminServiceImpl
extends Object
implements UserPermissionAdminService
All methods on this class require at least ADMIN permissions. This is handled by
AdminRequiredInterceptor via
applicationContext-CrowdServer.xml. For this reason we are not doing any permission checks inside this method,
except for ensuring that ADMINs cannot revoke or downgrade the permissions of SYSADMINs.-
Constructor Summary
ConstructorsConstructorDescriptionUserPermissionAdminServiceImpl(com.atlassian.crowd.dao.permission.InternalUserPermissionDAO permissionDAO, UserPermissionService permissionService, AuthenticatedUserProvider userProvider, DirectoryManager directoryManager, InternalApplicationHelper applicationHelper) -
Method Summary
Modifier and TypeMethodDescriptionfindGroups(int start, int limit) findGroupsByPrefix(String prefix, int start, int limit) findGroupsWithPermission(int start, int limit) findGroupsWithPermissionByPrefix(String prefix, int start, int limit) voidvoidsetPermissionForGroups(List<? extends DirectoryGroup> directoryGroups, com.atlassian.crowd.model.permission.UserPermission permission)
-
Constructor Details
-
UserPermissionAdminServiceImpl
public UserPermissionAdminServiceImpl(com.atlassian.crowd.dao.permission.InternalUserPermissionDAO permissionDAO, UserPermissionService permissionService, AuthenticatedUserProvider userProvider, DirectoryManager directoryManager, InternalApplicationHelper applicationHelper)
-
-
Method Details
-
findGroups
- Specified by:
findGroupsin interfaceUserPermissionAdminService
-
findGroupsByPrefix
- Specified by:
findGroupsByPrefixin interfaceUserPermissionAdminService
-
revokePermissionsForGroup
public void revokePermissionsForGroup(DirectoryGroup group) throws com.atlassian.crowd.exception.DirectoryNotFoundException, com.atlassian.crowd.exception.OperationFailedException, com.atlassian.crowd.exception.ApplicationNotFoundException, UserPermissionDowngradeException - Specified by:
revokePermissionsForGroupin interfaceUserPermissionAdminService- Throws:
com.atlassian.crowd.exception.DirectoryNotFoundExceptioncom.atlassian.crowd.exception.OperationFailedExceptioncom.atlassian.crowd.exception.ApplicationNotFoundExceptionUserPermissionDowngradeException
-
setPermissionForGroups
public void setPermissionForGroups(List<? extends DirectoryGroup> directoryGroups, com.atlassian.crowd.model.permission.UserPermission permission) throws com.atlassian.crowd.exception.DirectoryNotFoundException, com.atlassian.crowd.exception.OperationFailedException, com.atlassian.crowd.exception.ApplicationNotFoundException, UserPermissionException, UserPermissionDowngradeException - Specified by:
setPermissionForGroupsin interfaceUserPermissionAdminService- Throws:
com.atlassian.crowd.exception.DirectoryNotFoundExceptioncom.atlassian.crowd.exception.OperationFailedExceptioncom.atlassian.crowd.exception.ApplicationNotFoundExceptionUserPermissionExceptionUserPermissionDowngradeException
-
findGroupsWithPermission
public Page<PermittedGroup> findGroupsWithPermission(int start, int limit) throws UserPermissionException - Specified by:
findGroupsWithPermissionin interfaceUserPermissionAdminService- Throws:
UserPermissionException
-
findGroupsWithPermissionByPrefix
public Page<PermittedGroup> findGroupsWithPermissionByPrefix(@Nonnull String prefix, int start, int limit) throws UserPermissionException - Specified by:
findGroupsWithPermissionByPrefixin interfaceUserPermissionAdminService- Throws:
UserPermissionException
-