com.atlassian.jira.rest.client.api.domain.input
Class MyPermissionsInput

java.lang.Object
  extended by com.atlassian.jira.rest.client.api.domain.input.MyPermissionsInput

public class MyPermissionsInput
extends Object

Permissions context for MyPermissionsRestClient


Constructor Summary
MyPermissionsInput(String projectKey, Integer projectId, String issueKey, Integer issueId)
          Creates permissions context
 
Method Summary
 Integer getIssueId()
           
 String getIssueKey()
           
 Integer getProjectId()
           
 String getProjectKey()
           
 String toString()
           
static MyPermissionsInput withAny()
          Creates permissions context for any project or issue
static MyPermissionsInput withIssue(int issueId)
          Creates permissions context with issue defined by id
static MyPermissionsInput withIssue(String issueKey)
          Creates permissions context with issue defined by key
static MyPermissionsInput withProject(int projectId)
          Creates permissions context with project defined by id
static MyPermissionsInput withProject(String projectKey)
          Creates permissions context with project defined by key
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MyPermissionsInput

public MyPermissionsInput(@Nullable
                          String projectKey,
                          @Nullable
                          Integer projectId,
                          @Nullable
                          String issueKey,
                          @Nullable
                          Integer issueId)
Creates permissions context

Parameters:
projectKey - key of project to scope returned permissions for
projectId - id of project to scope returned permissions for
issueKey - key of the issue to scope returned permissions for
issueId - id of the issue to scope returned permissions for
Method Detail

getProjectKey

@Nullable
public String getProjectKey()

getProjectId

@Nullable
public Integer getProjectId()

getIssueKey

@Nullable
public String getIssueKey()

getIssueId

@Nullable
public Integer getIssueId()

toString

public String toString()
Overrides:
toString in class Object

withProject

public static MyPermissionsInput withProject(String projectKey)
Creates permissions context with project defined by key


withProject

public static MyPermissionsInput withProject(int projectId)
Creates permissions context with project defined by id


withIssue

public static MyPermissionsInput withIssue(String issueKey)
Creates permissions context with issue defined by key


withIssue

public static MyPermissionsInput withIssue(int issueId)
Creates permissions context with issue defined by id


withAny

public static MyPermissionsInput withAny()
Creates permissions context for any project or issue



Copyright © 2014 Atlassian. All Rights Reserved.