com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client
Class ProjectRoleClient

java.lang.Object
  extended by com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client.RestApiClient<ProjectRoleClient>
      extended by com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client.ProjectRoleClient

public class ProjectRoleClient
extends RestApiClient<ProjectRoleClient>

Since:
v4.4

Nested Class Summary
 
Nested classes/interfaces inherited from class com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client.RestApiClient
RestApiClient.Method
 
Field Summary
 com.sun.jersey.api.client.GenericType<Map<String,String>> TYPE
           
 
Fields inherited from class com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client.RestApiClient
REST_VERSION
 
Constructor Summary
ProjectRoleClient(JIRAEnvironmentData environmentData)
           
ProjectRoleClient(JIRAEnvironmentData environmentData, String version)
           
 
Method Summary
 Response addActors(String projectKey, String role, String[] groupNames, String[] userNames)
           
 Response deleteGroup(String projectKey, String role, String groupName)
           
 Response deleteUser(String projectKey, String role, String userName)
           
 Map<String,String> get(String projectKey)
           
 ProjectRole get(String projectKey, String role)
           
protected  com.sun.jersey.api.client.WebResource rolesWithProjectKey(String projectKey)
           
 Response setActors(String projectKey, String role, Map<String,String[]> actors)
           
 
Methods inherited from class com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client.RestApiClient
anonymous, createResource, errorResponse, expanded, loginAs, loginAs, percentEncode, resourceRoot, setOf, toResponse, toResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE

public com.sun.jersey.api.client.GenericType<Map<String,String>> TYPE
Constructor Detail

ProjectRoleClient

public ProjectRoleClient(JIRAEnvironmentData environmentData)

ProjectRoleClient

public ProjectRoleClient(JIRAEnvironmentData environmentData,
                         String version)
Method Detail

get

public Map<String,String> get(String projectKey)
                       throws com.sun.jersey.api.client.UniformInterfaceException
Throws:
com.sun.jersey.api.client.UniformInterfaceException

get

public ProjectRole get(String projectKey,
                       String role)

addActors

public Response addActors(String projectKey,
                          String role,
                          @Nullable
                          String[] groupNames,
                          @Nullable
                          String[] userNames)

deleteGroup

public Response deleteGroup(String projectKey,
                            String role,
                            String groupName)

deleteUser

public Response deleteUser(String projectKey,
                           String role,
                           String userName)

rolesWithProjectKey

protected com.sun.jersey.api.client.WebResource rolesWithProjectKey(String projectKey)

setActors

public Response setActors(String projectKey,
                          String role,
                          Map<String,String[]> actors)


Copyright © 2002-2012 Atlassian. All Rights Reserved.