Class ProjectHelper
java.lang.Object
com.atlassian.greenhopper.web.project.ProjectHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAllBrowseableProjects
(com.atlassian.jira.user.ApplicationUser user) Blatantly ripping off JIRA'sProjectResource
because it doesn't do one small thing that I want it to do.ServiceOutcome<com.atlassian.jira.project.Project>
getProject
(com.atlassian.jira.user.ApplicationUser user, Long projectId) Wrapping the project service method so that we can use the ServiceOutcome in our REST resource.ServiceOutcome<com.atlassian.jira.project.Project>
getProjectByKey
(com.atlassian.jira.user.ApplicationUser user, String projectKey)
-
Constructor Details
-
ProjectHelper
public ProjectHelper()
-
-
Method Details
-
getAllBrowseableProjects
@GET public ServiceOutcome<List<ProjectModel>> getAllBrowseableProjects(com.atlassian.jira.user.ApplicationUser user) Blatantly ripping off JIRA'sProjectResource
because it doesn't do one small thing that I want it to do. If JIRA ever changes it's API to allow you to get projects with an option on permissions, then we can remove this. -
getProject
public ServiceOutcome<com.atlassian.jira.project.Project> getProject(com.atlassian.jira.user.ApplicationUser user, Long projectId) Wrapping the project service method so that we can use the ServiceOutcome in our REST resource. -
getProjectByKey
public ServiceOutcome<com.atlassian.jira.project.Project> getProjectByKey(com.atlassian.jira.user.ApplicationUser user, String projectKey)
-