Package com.atlassian.jira.mock.project
Class MockVersion
java.lang.Object
com.atlassian.jira.mock.project.MockVersion
- All Implemented Interfaces:
WithId,ProjectConstant,Version,Named,NamedWithDescription
-
Field Summary
Fields inherited from interface com.atlassian.jira.util.Named
NAME_COMPARATORFields inherited from interface com.atlassian.jira.entity.WithId
ID_COMPARATOR -
Constructor Summary
ConstructorsConstructorDescriptionMockVersion(long id, String name) MockVersion(long id, String name, Project project) MockVersion(long id, String name, Project project, Long sequence) MockVersion(org.ofbiz.core.entity.GenericValue genericValue) -
Method Summary
Modifier and TypeMethodDescriptionclone()org.ofbiz.core.entity.GenericValuegetId()getName()Returns project this version relates to.Returns the ID of the project that this version belongs to.Returns project this version relates to.Returns the start date of the versiongetTimestamp(String name) booleanbooleanstatic VersionvoidsetArchived(boolean archived) voidsetDescription(String description) voidvoidsetProjectObject(Project project) voidsetReleased(boolean released) voidsetReleaseDate(Date releasedate) voidsetSequence(Long sequence) voidsetStartDate(Date startDate) voidstore()toString()
-
Constructor Details
-
MockVersion
public MockVersion() -
MockVersion
public MockVersion(org.ofbiz.core.entity.GenericValue genericValue) -
MockVersion
-
MockVersion
-
MockVersion
-
-
Method Details
-
named
-
getProject
Description copied from interface:VersionReturns project this version relates to.- Specified by:
getProjectin interfaceVersion- Returns:
- project this version relates to.
-
getProjectId
Description copied from interface:VersionReturns the ID of the project that this version belongs to.- Specified by:
getProjectIdin interfaceProjectConstant- Specified by:
getProjectIdin interfaceVersion- Returns:
- the ID of the project that this version belongs to.
-
getProjectObject
Description copied from interface:VersionReturns project this version relates to.Same as getProject() and exists for legacy reasons.
- Specified by:
getProjectObjectin interfaceVersion- Returns:
- project domain object
-
setProjectObject
-
getId
-
setId
-
getName
-
setName
-
getDescription
- Specified by:
getDescriptionin interfaceNamedWithDescription- Specified by:
getDescriptionin interfaceProjectConstant- Specified by:
getDescriptionin interfaceVersion
-
setDescription
-
getSequence
- Specified by:
getSequencein interfaceVersion
-
setSequence
-
isArchived
public boolean isArchived()- Specified by:
isArchivedin interfaceVersion
-
setArchived
public void setArchived(boolean archived) -
isReleased
public boolean isReleased()- Specified by:
isReleasedin interfaceVersion
-
setReleased
public void setReleased(boolean released) -
getStartDate
Description copied from interface:VersionReturns the start date of the version- Specified by:
getStartDatein interfaceVersion- Returns:
- The start date of the version
-
setStartDate
-
clone
-
getReleaseDate
- Specified by:
getReleaseDatein interfaceVersion
-
setReleaseDate
-
getString
-
getTimestamp
-
getLong
-
getGenericValue
public org.ofbiz.core.entity.GenericValue getGenericValue() -
store
public void store() -
toString
-