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.Responsedelete(String username, String groupName)javax.ws.rs.core.Responseupdate(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 givenUseridentified by username to the givenGroupidentified 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 givenUseridentified by username from the givenGroupidentified 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.
-
-