Class UserGroupResource
- java.lang.Object
-
- com.atlassian.confluence.plugins.restapi.resources.UserGroupResource
-
public final class UserGroupResource extends Object
- Since:
- 8.2.0
-
-
Constructor Summary
Constructors Constructor Description UserGroupResource(PersonService personService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
delete(String username, String groupName)
javax.ws.rs.core.Response
update(String username, String groupName)
-
-
-
Constructor Detail
-
UserGroupResource
public UserGroupResource(PersonService personService)
-
-
Method Detail
-
update
public javax.ws.rs.core.Response update(String username, String groupName)
Add the givenUser
identified by username to the givenGroup
identified by groupName. This method is idempotent i.e. if the membership already exists then no action will be taken.- Parameters:
username
- The username identifying the given user.groupName
- The group name identifying the given group.
-
delete
public javax.ws.rs.core.Response delete(String username, String groupName)
Remove the givenUser
identified by username from the givenGroup
identified by groupName. This method is idempotent i.e. if the membership is not present then no action will be taken.- Parameters:
username
- The username identifying the given user.groupName
- The group name identifying the given group.
-
-