public class ProjectConverterImpl extends Object implements ProjectConverter
Constructor and Description |
---|
ProjectConverterImpl(ProjectManager projectManager) |
Modifier and Type | Method and Description |
---|---|
Project |
getProject(Long projectId)
Get the Project for the given ID.
|
Project |
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(Project project)
Get the String value that represents the given Project.
|
public ProjectConverterImpl(ProjectManager projectManager)
public String getString(Project project)
ProjectConverter
getString
in interface ProjectConverter
project
- Project to convertpublic Project getProjectObject(String stringValue) throws FieldValidationException
ProjectConverter
Same as getProject() and exists for legacy reasons.
getProjectObject
in interface ProjectConverter
stringValue
- the String representation.FieldValidationException
- if we are unable to convert the String representation.public Project getProjectObject(Long projectId) throws FieldValidationException
ProjectConverter
Same as getProject() and exists for legacy reasons.
getProjectObject
in interface ProjectConverter
projectId
- the Project ID.FieldValidationException
- if the Project ID is invalid.public Project getProject(String stringValue) throws FieldValidationException
ProjectConverter
getProject
in interface ProjectConverter
stringValue
- the String representation.FieldValidationException
- if we are unable to convert the String representation.public Project getProject(Long projectId) throws FieldValidationException
ProjectConverter
getProject
in interface ProjectConverter
projectId
- the Project ID.FieldValidationException
- if the Project ID is invalid.Copyright © 2002-2024 Atlassian. All Rights Reserved.