public class GroupClient extends com.atlassian.jira.testkit.client.RestApiClient<GroupClient>
Modifier and Type | Field and Description |
---|---|
static String |
GROUP_NAME |
static String |
GROUP_RESOURCE |
static String |
NAME |
static String |
USER_NAME |
Constructor and Description |
---|
GroupClient(JIRAEnvironmentData environmentData) |
Modifier and Type | Method and Description |
---|---|
com.sun.jersey.api.client.ClientResponse |
addUserToGroup(String group,
String user) |
void |
close() |
com.sun.jersey.api.client.ClientResponse |
createGroup(String groupName)
Create a group
|
com.sun.jersey.api.client.ClientResponse |
deleteGroup(String group) |
com.sun.jersey.api.client.ClientResponse |
getGroup(String group)
Get a group.
|
com.sun.jersey.api.client.ClientResponse |
getGroup(String group,
String expand)
Get a group
|
GroupBean |
getGroupBean(String group)
Get a group and unwrap the GroupBean.
|
GroupBean |
getGroupBean(String group,
String expand)
Get a group and unwrap the GroupBean.
|
UsersPageBean |
getNextPage(UsersPageBean usersPageBean) |
UsersPageBean |
getPaginatedUsersForGroup(String group,
Boolean includeInactiveUsers,
Long startAt,
Long maxResults) |
com.sun.jersey.api.client.ClientResponse |
removeUserFromGroup(String group,
String user) |
GroupBean |
toGroupBean(com.sun.jersey.api.client.ClientResponse response)
Unwrap the GroupBean body from the response
|
anonymous, cleanUp, client, createResource, createResourceGadget, createResourceInternal, errorResponse, expanded, getEnvironmentData, loginAs, loginAs, percentEncode, registerResponse, resourceRoot, setOf, toResponse, toResponse, toResponse
public static final String GROUP_RESOURCE
public static final String GROUP_NAME
public static final String USER_NAME
public static final String NAME
public GroupClient(JIRAEnvironmentData environmentData)
public GroupBean toGroupBean(com.sun.jersey.api.client.ClientResponse response)
response
- the responsepublic com.sun.jersey.api.client.ClientResponse createGroup(String groupName)
groupName
- the group namepublic com.sun.jersey.api.client.ClientResponse getGroup(String group, @Nullable String expand)
group
- nameexpand
- the expand parameter, e.g. users[0:50]public com.sun.jersey.api.client.ClientResponse getGroup(String group)
group
- the grouppublic GroupBean getGroupBean(String group)
group
- the grouppublic GroupBean getGroupBean(String group, String expand)
group
- the groupexpand
- the expand parameterpublic com.sun.jersey.api.client.ClientResponse deleteGroup(String group)
public com.sun.jersey.api.client.ClientResponse addUserToGroup(String group, String user)
public com.sun.jersey.api.client.ClientResponse removeUserFromGroup(String group, String user)
public UsersPageBean getPaginatedUsersForGroup(String group, Boolean includeInactiveUsers, Long startAt, Long maxResults)
public UsersPageBean getNextPage(UsersPageBean usersPageBean)
public void close()
Copyright © 2002-2024 Atlassian. All Rights Reserved.