Interface ProjectConverter
- All Known Implementing Classes:
ProjectConverterImpl
@Internal
public interface ProjectConverter
-
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.
-
Method Details
-
getString
Get the String value that represents the given Project.- Parameters:
project
- Project to convert- Returns:
- the String value that represents the given Project.
-
getProjectObject
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.
-
getProjectObject
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.
-
getProject
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
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.
-