com.atlassian.jira.rest.client.api
Interface MyPermissionsRestClient


public interface MyPermissionsRestClient


Method Summary
 com.atlassian.util.concurrent.Promise<Permissions> getMyPermissions(MyPermissionsInput permissionInput)
          Returns permissions for current user and context defined by permissionInput
 

Method Detail

getMyPermissions

com.atlassian.util.concurrent.Promise<Permissions> getMyPermissions(@Nullable
                                                                    MyPermissionsInput permissionInput)
Returns permissions for current user and context defined by permissionInput

Parameters:
permissionInput - Permissions context ie. projectKey OR projectId OR issueKey OR issueId.
  • When no context supplied (null) the project related permissions will return true if the user has that permission in ANY project
  • If a project context is provided, project related permissions will return true if the user has the permissions in the specified project. For permissions that are determined using issue data (e.g Current Assignee), true will be returned if the user meets the permission criteria in ANY issue in that project
  • If an issue context is provided, it will return whether or not the user has each permission in that specific issue
Returns:
Permissions for user in the context


Copyright © 2014 Atlassian. All Rights Reserved.