Class GroupServiceImpl
java.lang.Object
com.atlassian.confluence.api.impl.service.people.GroupServiceImpl
- All Implemented Interfaces:
GroupService
- Since:
- 5.10
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
class
Nested classes/interfaces inherited from interface com.atlassian.confluence.api.service.people.GroupService
GroupService.GroupFinder, GroupService.Validator
-
Constructor Summary
ConstructorsConstructorDescriptionGroupServiceImpl
(GroupManagerInternal groupManager, ConfluenceAccessManager confluenceAccessManager, UserAccessorInternal userAccessor, GroupFactory groupFactory, FinderProxyFactory finderProxyFactory, PermissionManager permissionManager, DefaultWritableDirectoryForGroupsExistsCriteria writableDirectoryForGroupsExistsCriteria, SpacePermissionManager spacePermissionManager, CrowdDirectoryEntityHelper crowdDirectoryEntityHelper, ScopesRequestCacheDelegate scopesRequestCacheDelegate) -
Method Summary
Modifier and TypeMethodDescriptioncreateGroup
(String groupName) Create a newGroup
identified by groupName.void
deleteGroup
(String groupName) Delete an existingGroup
identified by groupName.Create a GroupFinder for locating groups, the expansions will be applied to each group that matches the finder.Get the validator view of the GroupService.
-
Constructor Details
-
GroupServiceImpl
public GroupServiceImpl(GroupManagerInternal groupManager, ConfluenceAccessManager confluenceAccessManager, UserAccessorInternal userAccessor, GroupFactory groupFactory, FinderProxyFactory finderProxyFactory, PermissionManager permissionManager, DefaultWritableDirectoryForGroupsExistsCriteria writableDirectoryForGroupsExistsCriteria, SpacePermissionManager spacePermissionManager, CrowdDirectoryEntityHelper crowdDirectoryEntityHelper, ScopesRequestCacheDelegate scopesRequestCacheDelegate)
-
-
Method Details
-
find
Description copied from interface:GroupService
Create 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:
find
in interfaceGroupService
- Returns:
- a groupFinder for locating groups
-
createGroup
Description copied from interface:GroupService
Create a newGroup
identified by groupName.- Specified by:
createGroup
in interfaceGroupService
- Parameters:
groupName
- The name identifying the new group to create.
-
deleteGroup
Description copied from interface:GroupService
Delete an existingGroup
identified by groupName.- Specified by:
deleteGroup
in interfaceGroupService
- Parameters:
groupName
- The name identifying the existing group to delete.
-
validator
Description copied from interface:GroupService
Get the validator view of the GroupService.- Specified by:
validator
in interfaceGroupService
- Returns:
- a Validator that can be used to validate service requests.
-