Class GroupAdministrationConfigurationServiceImpl
java.lang.Object
com.atlassian.crowd.service.permission.GroupAdministrationConfigurationServiceImpl
- All Implemented Interfaces:
GroupAdministrationConfigurationService
@Transactional
public class GroupAdministrationConfigurationServiceImpl
extends Object
implements GroupAdministrationConfigurationService
Implementation of
GroupAdministrationConfigurationService
which only works for cached directories and users- Since:
- 3.3.0
-
Constructor Summary
ConstructorsConstructorDescriptionGroupAdministrationConfigurationServiceImpl
(UserAdministrationGrantGroupDao userGrantDao, GroupAdministrationGrantGroupDao groupGrantDao, InternalGroupDao internalGroupDao, InternalUserDao internalUserDao) -
Method Summary
Modifier and TypeMethodDescriptiongetGroupAdministrators
(Group group) Searches and returns all administrators a given groupvoid
Grants administration rights basing on the passed mappingvoid
Grants administration rights basing on the passed mappingvoid
Removes grant for the specified admin group and the target groupvoid
Removes grant for the specified admin user and the target group
-
Constructor Details
-
GroupAdministrationConfigurationServiceImpl
public GroupAdministrationConfigurationServiceImpl(UserAdministrationGrantGroupDao userGrantDao, GroupAdministrationGrantGroupDao groupGrantDao, InternalGroupDao internalGroupDao, InternalUserDao internalUserDao)
-
-
Method Details
-
grantGroupPermissions
public void grantGroupPermissions(UserGroupAdministrationMapping mapping) throws UserNotFoundException, GroupNotFoundException, FeatureInaccessibleException Description copied from interface:GroupAdministrationConfigurationService
Grants administration rights basing on the passed mapping- Specified by:
grantGroupPermissions
in interfaceGroupAdministrationConfigurationService
- Parameters:
mapping
- the mapping- Throws:
UserNotFoundException
GroupNotFoundException
FeatureInaccessibleException
-
grantGroupPermissions
public void grantGroupPermissions(GroupGroupAdministrationMapping mapping) throws GroupNotFoundException, FeatureInaccessibleException Description copied from interface:GroupAdministrationConfigurationService
Grants administration rights basing on the passed mapping- Specified by:
grantGroupPermissions
in interfaceGroupAdministrationConfigurationService
- Parameters:
mapping
- the mapping- Throws:
GroupNotFoundException
FeatureInaccessibleException
-
revokeGroupPermissions
public void revokeGroupPermissions(UserGroupAdministrationMapping mapping) throws UserNotFoundException, GroupNotFoundException, FeatureInaccessibleException Description copied from interface:GroupAdministrationConfigurationService
Removes grant for the specified admin user and the target group- Specified by:
revokeGroupPermissions
in interfaceGroupAdministrationConfigurationService
- Parameters:
mapping
- data regarding the admin user and the target group- Throws:
UserNotFoundException
GroupNotFoundException
FeatureInaccessibleException
-
revokeGroupPermissions
public void revokeGroupPermissions(GroupGroupAdministrationMapping mapping) throws GroupNotFoundException, FeatureInaccessibleException Description copied from interface:GroupAdministrationConfigurationService
Removes grant for the specified admin group and the target group- Specified by:
revokeGroupPermissions
in interfaceGroupAdministrationConfigurationService
- Parameters:
mapping
- data regarding the admin group and the target group- Throws:
GroupNotFoundException
FeatureInaccessibleException
-
getGroupAdministrators
public SingleGroupAdministrationMappings getGroupAdministrators(Group group) throws GroupNotFoundException, FeatureInaccessibleException Description copied from interface:GroupAdministrationConfigurationService
Searches and returns all administrators a given group- Specified by:
getGroupAdministrators
in interfaceGroupAdministrationConfigurationService
- Parameters:
group
- the group- Returns:
- the administrators
- Throws:
GroupNotFoundException
FeatureInaccessibleException
-