Package org.dependency.domain
Class ProjectVersion
- java.lang.Object
-
- org.dependency.domain.ProjectVersion
-
- All Implemented Interfaces:
Serializable
public class ProjectVersion extends Object implements Serializable
Contains the information for each version for a given project.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ProjectVersion()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OffsetDateTimegetCreatedDateTime()List<Dependency>getDependencyList()StringgetVersion()longgetVersionId()booleanisVersionSunset()voidsetCreatedDateTime(OffsetDateTime createdDateTime)Setter for the createDateTime.voidsetDependencyList(List<Dependency> dependencyList)Setter for this versions dependency list.voidsetVersion(String version)Setter of the version.voidsetVersionId(long versionId)Setter of the version id.voidsetVersionSunset(boolean versionSunset)Setter for the sunset version.
-
-
-
Method Detail
-
getVersionId
public long getVersionId()
- Returns:
- the id of the version used by the database.
-
setVersionId
public void setVersionId(long versionId)
Setter of the version id.- Parameters:
versionId-
-
getVersion
public String getVersion()
- Returns:
- version identifier - i.e. 0.0.1-SNAPSHOT
-
setVersion
public void setVersion(String version)
Setter of the version.- Parameters:
version-
-
isVersionSunset
public boolean isVersionSunset()
- Returns:
- if this version has been sunset. This should only be true if the particular version is no longer deployed to any of the servers.
-
setVersionSunset
public void setVersionSunset(boolean versionSunset)
Setter for the sunset version.- Parameters:
versionSunset-
-
getCreatedDateTime
public OffsetDateTime getCreatedDateTime()
- Returns:
- - the OffsetDateTime containing when this entry was created.
-
setCreatedDateTime
public void setCreatedDateTime(OffsetDateTime createdDateTime)
Setter for the createDateTime.- Parameters:
createdDateTime-
-
getDependencyList
public List<Dependency> getDependencyList()
- Returns:
- - the list of dependencies that this version has.
-
setDependencyList
public void setDependencyList(List<Dependency> dependencyList)
Setter for this versions dependency list.- Parameters:
dependencyList-
-
-