com.atlassian.jira.issue.customfields.converters
Interface ProjectConverter

All Known Implementing Classes:
ProjectConverterImpl

@Internal
public interface ProjectConverter


Method Summary
 org.ofbiz.core.entity.GenericValue getProject(Long projectId)
          Deprecated. - Use getProjectObject(String). Deprecated since v4.0
 org.ofbiz.core.entity.GenericValue getProject(String stringValue)
          Deprecated. - Use getProjectObject(String). Deprecated since v4.0
 Project getProjectObject(Long projectId)
          Get the Project for the given ID.
 Project getProjectObject(String stringValue)
          Get the Project that this String value represents.
 String getString(org.ofbiz.core.entity.GenericValue project)
          Deprecated. - Use getString(com.atlassian.jira.project.Project). Deprecated since v4.0
 String getString(Project project)
          Get the String value that represents the given Project.
 

Method Detail

getString

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.

getString

@Deprecated
String getString(org.ofbiz.core.entity.GenericValue project)
Deprecated. - Use getString(com.atlassian.jira.project.Project). Deprecated since v4.0

Get the String value that represents the given Project.

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

getProjectObject

Project getProjectObject(String stringValue)
                         throws FieldValidationException
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.

getProjectObject

Project getProjectObject(Long projectId)
                         throws FieldValidationException
Get the Project for the given ID. If a null projectId is passed in, then a null Project is returned.

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

getProject

@Deprecated
org.ofbiz.core.entity.GenericValue getProject(String stringValue)
                                              throws FieldValidationException
Deprecated. - Use getProjectObject(String). Deprecated since v4.0

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.

getProject

@Deprecated
org.ofbiz.core.entity.GenericValue getProject(Long projectId)
                                              throws FieldValidationException
Deprecated. - Use getProjectObject(String). Deprecated since v4.0

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.


Copyright © 2002-2012 Atlassian. All Rights Reserved.