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
  • Constructor Details

  • Method Details

    • find

      public GroupService.GroupFinder find(Expansion... expansions)
      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 interface GroupService
      Parameters:
      expansions -
      Returns:
      a groupFinder for locating groups
    • createGroup

      public Group createGroup(String groupName)
      Description copied from interface: GroupService
      Create a new Group identified by groupName.
      Specified by:
      createGroup in interface GroupService
      Parameters:
      groupName - The name identifying the new group to create.
    • deleteGroup

      public void deleteGroup(String groupName)
      Description copied from interface: GroupService
      Delete an existing Group identified by groupName.
      Specified by:
      deleteGroup in interface GroupService
      Parameters:
      groupName - The name identifying the existing group to delete.
    • validator

      public GroupService.Validator validator()
      Description copied from interface: GroupService
      Get the validator view of the GroupService.
      Specified by:
      validator in interface GroupService
      Returns:
      a Validator that can be used to validate service requests.