public class

ProjectConverterImpl

extends Object
implements ProjectConverter
java.lang.Object
   ↳ com.atlassian.jira.issue.customfields.converters.ProjectConverterImpl

Summary

Public Constructors
ProjectConverterImpl(ProjectManager projectManager)
Public Methods
Project getProject(String stringValue)
Get the Project that this String value represents.
Project getProject(Long projectId)
Get the Project for the given ID.
Project getProjectObject(String stringValue)
Get the Project that this String value represents.
Project getProjectObject(Long projectId)
Get the Project for the given ID.
String getString(Project project)
Get the String value that represents the given Project.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.issue.customfields.converters.ProjectConverter

Public Constructors

public ProjectConverterImpl (ProjectManager projectManager)

Public Methods

public Project getProject (String stringValue)

Get the Project that this String value represents.

Parameters
stringValue the String representation.
Returns
  • the Project that this String value represents.

public Project getProject (Long projectId)

Get the Project for the given ID.

Parameters
projectId the Project ID.
Returns
  • the Project for the given ID.

public Project getProjectObject (String stringValue)

Get the Project that this String value represents.

Same as getProject() and exists for legacy reasons.

Parameters
stringValue the String representation.
Returns
  • the Project that this String value represents.

public Project getProjectObject (Long projectId)

Get the Project for the given ID. If a null projectId is passed in, then a null Project is returned.

Same as getProject() and exists for legacy reasons.

Parameters
projectId the Project ID.
Returns
  • the Project for the given ID.

public String getString (Project project)

Get the String value that represents the given Project.

Parameters
project Project to convert
Returns
  • the String value that represents the given Project.