@Internal public interface

ProjectConverter

com.atlassian.jira.issue.customfields.converters.ProjectConverter
Known Indirect Subclasses

@Internal

This interface is an internal implementation detail and will change without notice.

Clients that depend on @Internal classes and interfaces can not expect to be compatible with any version other than the version they were compiled against (even minor version and milestone releases may break binary compatibility with respect to @Internal elements).

Summary

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.

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.
Throws
FieldValidationException if we are unable to convert the String representation.

public Project getProject (Long projectId)

Get the Project for the given ID.

Parameters
projectId the Project ID.
Returns
  • the Project for the given ID.
Throws
FieldValidationException if the Project ID is invalid.

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.
Throws
FieldValidationException if we are unable to convert the String representation.

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.
Throws
FieldValidationException if the Project ID is invalid.

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.