com.atlassian.jira.issue.customfields.converters
Class ProjectConverterImpl

java.lang.Object
  extended by com.atlassian.jira.issue.customfields.converters.ProjectConverterImpl
All Implemented Interfaces:
ProjectConverter

public class ProjectConverterImpl
extends java.lang.Object
implements ProjectConverter


Constructor Summary
ProjectConverterImpl(ProjectManager projectManager)
           
 
Method Summary
 org.ofbiz.core.entity.GenericValue getProject(java.lang.Long projectId)
          Get the Project for the given ID.
 org.ofbiz.core.entity.GenericValue getProject(java.lang.String stringValue)
          Get the Project that this String value represents.
 Project getProjectObject(java.lang.Long projectId)
          Get the Project for the given ID.
 Project getProjectObject(java.lang.String stringValue)
          Get the Project that this String value represents.
 java.lang.String getString(org.ofbiz.core.entity.GenericValue project)
          Get the String value that represents the given Project.
 java.lang.String getString(Project project)
          Get the String value that represents the given Project.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectConverterImpl

public ProjectConverterImpl(ProjectManager projectManager)
Method Detail

getString

public java.lang.String getString(Project project)
Description copied from interface: ProjectConverter
Get the String value that represents the given Project.

Specified by:
getString in interface ProjectConverter
Parameters:
project - Project to convert
Returns:
the String value that represents the given Project.

getString

public java.lang.String getString(org.ofbiz.core.entity.GenericValue project)
Description copied from interface: ProjectConverter
Get the String value that represents the given Project.

Specified by:
getString in interface ProjectConverter
Parameters:
project - Project to convert
Returns:
the String value that represents the given Project.

getProjectObject

public Project getProjectObject(java.lang.String stringValue)
                         throws FieldValidationException
Description copied from interface: ProjectConverter
Get the Project that this String value represents.

Specified by:
getProjectObject in interface ProjectConverter
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

public Project getProjectObject(java.lang.Long projectId)
                         throws FieldValidationException
Description copied from interface: ProjectConverter
Get the Project for the given ID. If a null projectId is passed in, then a null Project is returned.

Specified by:
getProjectObject in interface ProjectConverter
Parameters:
projectId - the Project ID.
Returns:
the Project for the given ID.
Throws:
FieldValidationException - if the Project ID is invalid.

getProject

public org.ofbiz.core.entity.GenericValue getProject(java.lang.String stringValue)
                                              throws FieldValidationException
Description copied from interface: ProjectConverter
Get the Project that this String value represents.

Specified by:
getProject in interface ProjectConverter
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

public org.ofbiz.core.entity.GenericValue getProject(java.lang.Long projectId)
                                              throws FieldValidationException
Description copied from interface: ProjectConverter
Get the Project for the given ID.

Specified by:
getProject in interface ProjectConverter
Parameters:
projectId - the Project ID.
Returns:
the Project for the given ID.
Throws:
FieldValidationException - if the Project ID is invalid.


Copyright © 2002-2010 Atlassian. All Rights Reserved.