Class ProjectConverterImpl
java.lang.Object
com.atlassian.jira.issue.customfields.converters.ProjectConverterImpl
- All Implemented Interfaces:
ProjectConverter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetProject
(Long projectId) Get the Project for the given ID.getProject
(String stringValue) Get the Project that this String value represents.getProjectObject
(Long projectId) Get the Project for the given ID.getProjectObject
(String stringValue) Get the Project that this String value represents.Get the String value that represents the given Project.
-
Constructor Details
-
ProjectConverterImpl
-
-
Method Details
-
getString
Description copied from interface:ProjectConverter
Get the String value that represents the given Project.- Specified by:
getString
in interfaceProjectConverter
- Parameters:
project
- Project to convert- Returns:
- the String value that represents the given Project.
-
getProjectObject
Description copied from interface:ProjectConverter
Get the Project that this String value represents.Same as getProject() and exists for legacy reasons.
- Specified by:
getProjectObject
in interfaceProjectConverter
- 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
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.Same as getProject() and exists for legacy reasons.
- Specified by:
getProjectObject
in interfaceProjectConverter
- Parameters:
projectId
- the Project ID.- Returns:
- the Project for the given ID.
- Throws:
FieldValidationException
- if the Project ID is invalid.
-
getProject
Description copied from interface:ProjectConverter
Get the Project that this String value represents.- Specified by:
getProject
in interfaceProjectConverter
- 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
Description copied from interface:ProjectConverter
Get the Project for the given ID.- Specified by:
getProject
in interfaceProjectConverter
- Parameters:
projectId
- the Project ID.- Returns:
- the Project for the given ID.
- Throws:
FieldValidationException
- if the Project ID is invalid.
-