|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.jira.rest.v2.issue.GroupResource
public class GroupResource
Constructor Summary | |
---|---|
GroupResource(PermissionManager permissionManager,
JiraAuthenticationContext authContext,
I18nHelper i18n,
GroupManager groupManager,
GroupService groupService,
JiraBaseUrls jiraBaseUrls,
com.atlassian.crowd.embedded.api.CrowdService crowdService)
|
Method Summary | |
---|---|
javax.ws.rs.core.Response |
addUserToGroup(String groupName,
UpdateUserToGroupBean userBean)
Adds given user to a group. |
javax.ws.rs.core.Response |
createGroup(AddGroupBean groupBean)
Creates a group by given group parameter Returns REST representation for the requested group. |
javax.ws.rs.core.Response |
getGroup(String groupName,
StringList expand)
Returns REST representation for the requested group. |
javax.ws.rs.core.Response |
removeGroup(String groupName,
String swapGroup)
Deletes a group by given group parameter. |
javax.ws.rs.core.Response |
removeUserFromGroup(String groupName,
String username)
Removes given user from a group. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GroupResource(PermissionManager permissionManager, JiraAuthenticationContext authContext, I18nHelper i18n, GroupManager groupManager, GroupService groupService, JiraBaseUrls jiraBaseUrls, com.atlassian.crowd.embedded.api.CrowdService crowdService)
Method Detail |
---|
public javax.ws.rs.core.Response getGroup(String groupName, StringList expand)
groupName
- A name of requested group.expand
- List of fields to expand. Currently only available expand is "users".
@ExperimentalApi public javax.ws.rs.core.Response createGroup(AddGroupBean groupBean)
groupBean
- a group to add
@ExperimentalApi public javax.ws.rs.core.Response removeGroup(String groupName, String swapGroup)
groupName
- a group to deleteswapGroup
- a group to transfer visibility restrictions of the group that is being deleted
@ExperimentalApi public javax.ws.rs.core.Response addUserToGroup(String groupName, UpdateUserToGroupBean userBean)
groupName
- A name of requested group.userBean
- User to add to a group
@ExperimentalApi public javax.ws.rs.core.Response removeUserFromGroup(String groupName, String username)
groupName
- A name of requested group.username
- User to remove from a group
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |