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 Object
implements ProjectConverter


Constructor Summary
ProjectConverterImpl(ProjectManager projectManager)
           
 
Method Summary
 org.ofbiz.core.entity.GenericValue getProject(Long projectId)
          Get the Project for the given ID.
 org.ofbiz.core.entity.GenericValue getProject(String stringValue)
          Get the Project that this String value represents.
 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)
          Get the String value that represents the given Project.
 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 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 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(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(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(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(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-2012 Atlassian. All Rights Reserved.