com.atlassian.greenhopper.web.project
Class ProjectHelper

java.lang.Object
  extended by com.atlassian.greenhopper.web.project.ProjectHelper

@Service
public class ProjectHelper
extends java.lang.Object


Constructor Summary
ProjectHelper()
           
 
Method Summary
 ServiceOutcome<java.util.List<ProjectModel>> getAllBrowseableProjects(com.atlassian.crowd.embedded.api.User user)
          Blatantly ripping off JIRA's com.atlassian.jira.rest.v2.issue.ProjectResource because it doesn't do one small thing that I want it to do.
 ServiceOutcome<com.atlassian.jira.project.Project> getProject(com.atlassian.crowd.embedded.api.User user, java.lang.Long projectId)
          Wrapping the project service method so that we can use the ServiceOutcome in our REST resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectHelper

public ProjectHelper()
Method Detail

getAllBrowseableProjects

public ServiceOutcome<java.util.List<ProjectModel>> getAllBrowseableProjects(com.atlassian.crowd.embedded.api.User user)
Blatantly ripping off JIRA's com.atlassian.jira.rest.v2.issue.ProjectResource 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.crowd.embedded.api.User user,
                                                                     java.lang.Long projectId)
Wrapping the project service method so that we can use the ServiceOutcome in our REST resource.



Copyright © 2007-2013 Atlassian. All Rights Reserved.