Class GroupServiceImpl
- java.lang.Object
-
- com.atlassian.confluence.api.impl.service.people.GroupServiceImpl
-
- All Implemented Interfaces:
GroupService
public class GroupServiceImpl extends Object implements GroupService
- Since:
- 5.10
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classGroupServiceImpl.GroupFinderImplclassGroupServiceImpl.GroupValidator-
Nested classes/interfaces inherited from interface com.atlassian.confluence.api.service.people.GroupService
GroupService.GroupFinder, GroupService.Validator
-
-
Constructor Summary
Constructors Constructor Description GroupServiceImpl(com.atlassian.user.GroupManager groupManager, ConfluenceAccessManager confluenceAccessManager, UserAccessorInternal userAccessor, GroupFactory groupFactory, FinderProxyFactory finderProxyFactory, PermissionManager permissionManager, DefaultWritableDirectoryForGroupsExistsCriteria writableDirectoryForGroupsExistsCriteria, SpacePermissionManager spacePermissionManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GroupcreateGroup(String groupName)Create a newGroupidentified by groupName.voiddeleteGroup(String groupName)Delete an existingGroupidentified by groupName.GroupService.GroupFinderfind(Expansion... expansions)Create a GroupFinder for locating groups, the expansions will be applied to each group that matches the finder.GroupService.Validatorvalidator()Get the validator view of the GroupService.
-
-
-
Constructor Detail
-
GroupServiceImpl
public GroupServiceImpl(com.atlassian.user.GroupManager groupManager, ConfluenceAccessManager confluenceAccessManager, UserAccessorInternal userAccessor, GroupFactory groupFactory, FinderProxyFactory finderProxyFactory, PermissionManager permissionManager, DefaultWritableDirectoryForGroupsExistsCriteria writableDirectoryForGroupsExistsCriteria, SpacePermissionManager spacePermissionManager)
-
-
Method Detail
-
find
public GroupService.GroupFinder find(Expansion... expansions)
Description copied from interface:GroupServiceCreate a GroupFinder for locating groups, the expansions will be applied to each group that matches the finder. No expansions are currently supported on groups. Groups will be retrieved by using the fetch methods on the returned GroupFinder.For example, to fetch a group called "developers"
groupService.find() .withName("developers") .fetchOneOrNull();- Specified by:
findin interfaceGroupService- Returns:
- a groupFinder for locating groups
-
createGroup
public Group createGroup(String groupName)
Description copied from interface:GroupServiceCreate a newGroupidentified by groupName.- Specified by:
createGroupin interfaceGroupService- Parameters:
groupName- The name identifying the new group to create.
-
deleteGroup
public void deleteGroup(String groupName)
Description copied from interface:GroupServiceDelete an existingGroupidentified by groupName.- Specified by:
deleteGroupin interfaceGroupService- Parameters:
groupName- The name identifying the existing group to delete.
-
validator
public GroupService.Validator validator()
Description copied from interface:GroupServiceGet the validator view of the GroupService.- Specified by:
validatorin interfaceGroupService- Returns:
- a Validator that can be used to validate service requests.
-
-