net.rcarz.jiraclient
Class Project
java.lang.Object
net.rcarz.jiraclient.Resource
net.rcarz.jiraclient.Project
public final class Project
- extends Resource
Represents a JIRA project.
Constructor Summary |
protected |
Project(RestClient restclient,
net.sf.json.JSONObject json)
Creates a project from a JSON payload. |
Project
protected Project(RestClient restclient,
net.sf.json.JSONObject json)
- Creates a project from a JSON payload.
- Parameters:
restclient
- REST client instancejson
- JSON payload
get
public static Project get(RestClient restclient,
String key)
throws JiraException
- Retrieves the given project record.
- Parameters:
restclient
- REST client instancekey
- Project key
- Returns:
- a project instance
- Throws:
JiraException
- when the retrieval fails
getAll
public static List<Project> getAll(RestClient restclient)
throws JiraException
- Retrieves all project records visible to the session user.
- Parameters:
restclient
- REST client instance
- Returns:
- a list of projects
- Throws:
JiraException
- when the retrieval fails
toString
public String toString()
- Overrides:
toString
in class Object
getAvatarUrls
public Map<String,String> getAvatarUrls()
getKey
public String getKey()
getName
public String getName()
getDescription
public String getDescription()
getLead
public User getLead()
getAssigneeType
public String getAssigneeType()
getComponents
public List<Component> getComponents()
getIssueTypes
public List<IssueType> getIssueTypes()
getVersions
public List<Version> getVersions()
getRoles
public Map<String,String> getRoles()
Copyright © 2013. All Rights Reserved.