Interface ProjectRolesRestClient


public interface ProjectRolesRestClient
The com.atlassian.jira.rest.client.api handling roles resources.
Since:
1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    io.atlassian.util.concurrent.Promise<ProjectRole>
    getRole(URI uri)
    Retrieves a full information about the selected role.
    io.atlassian.util.concurrent.Promise<ProjectRole>
    getRole(URI projectUri, Long roleId)
    Retrieves a full information about the selected role.
    io.atlassian.util.concurrent.Promise<Iterable<ProjectRole>>
    getRoles(URI projectUri)
    Retrieves a collection of roles in the selected project.
  • Method Details

    • getRole

      io.atlassian.util.concurrent.Promise<ProjectRole> getRole(URI uri)
      Retrieves a full information about the selected role.
      Parameters:
      uri - URI of the role to retrieve.
      Returns:
      full information about selected role.
      Throws:
      RestClientException - in case of problems (connectivity, malformed messages, etc.)
    • getRole

      io.atlassian.util.concurrent.Promise<ProjectRole> getRole(URI projectUri, Long roleId)
      Retrieves a full information about the selected role.
      Parameters:
      projectUri - uri of the project of the role to retrieve.
      roleId - unique role id.
      Returns:
      full information about selected role.
      Throws:
      RestClientException - in case of problems (connectivity, malformed messages, etc.)
    • getRoles

      io.atlassian.util.concurrent.Promise<Iterable<ProjectRole>> getRoles(URI projectUri)
      Retrieves a collection of roles in the selected project.
      Parameters:
      projectUri - uri of the project of the roles to retrieve.
      Returns:
      a collection of roles in the selected project.
      Throws:
      RestClientException - in case of problems (connectivity, malformed messages, etc.)