com.atlassian.jira.rest.v2.issue
Class ProjectResource

java.lang.Object
  extended by com.atlassian.jira.rest.v2.issue.ProjectResource

public class ProjectResource
extends Object

Since:
4.2

Constructor Summary
ProjectResource(ProjectService projectService, JiraAuthenticationContext authContext)
           
 
Method Summary
 javax.ws.rs.core.Response getAllProjects(javax.ws.rs.core.UriInfo uriInfo)
          Returns all projects which are visible for the currently logged in user.
 javax.ws.rs.core.Response getProject(String key, javax.ws.rs.core.Request request, javax.ws.rs.core.UriInfo uriInfo)
          Contains a full representation of a project in JSON format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectResource

public ProjectResource(ProjectService projectService,
                       JiraAuthenticationContext authContext)
Method Detail

getProject

public javax.ws.rs.core.Response getProject(String key,
                                            @Context
                                            javax.ws.rs.core.Request request,
                                            @Context
                                            javax.ws.rs.core.UriInfo uriInfo)
Contains a full representation of a project in JSON format.

Parameters:
key - the project key
request - a Request
uriInfo - a UriInfo
Returns:
a project

getAllProjects

public javax.ws.rs.core.Response getAllProjects(@Context
                                                javax.ws.rs.core.UriInfo uriInfo)
Returns all projects which are visible for the currently logged in user. If no user is logged in, it returns the list of projects that are visible when using anonymous access.

Parameters:
uriInfo - a UriInfo
Returns:
all projects for which the user has the BROWSE project permission. If no user is logged in, it returns all projects, which are visible when using anonymous access.
Since:
v4.3


Copyright © 2002-2011 Atlassian. All Rights Reserved.