@OpenApiAll
public class ProjectVersion
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ProjectVersion.ProjectVersionAscendingSort
Sort Collection of ProjectVersion in ascending
|
static class |
ProjectVersion.ProjectVersionDescendingSort
Sort Collection of ProjectVersion in descending
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ASCENDING |
static java.lang.String |
DESCENDING |
Constructor and Description |
---|
ProjectVersion(ProjectDescriptor projectDescriptor,
java.lang.Object version,
java.lang.String comment,
java.util.Date date,
long number,
java.lang.String user)
Constructs new version with given projectDescriptor, version object, comment, user, number and date.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAuthor()
Returns the user who created the version.
|
java.lang.String |
getComment() |
java.util.Date |
getDate()
Returns the date of the version.
|
java.lang.String |
getDateAsString()
Returns date represented by string.
|
long |
getNumber()
Returns the number of the version.
|
java.lang.String |
getNumberAsString()
Deprecated.
|
ProjectDescriptor |
getProjectDescriptor() |
java.util.List<java.lang.String> |
getTags()
Returns all tags.
|
java.lang.String |
getUser()
Returns the user who created the version.
|
java.lang.Object |
getVersion()
Returns version object of project
|
java.lang.String |
getVersionAsString()
Returns string representation about version number.
|
void |
setComment(java.lang.String comment)
Sets comment text.
|
void |
setDate(java.util.Date date)
Sets version date.
|
void |
setNumber(long number)
Sets version number
|
void |
setProjectDescriptor(ProjectDescriptor projectDescriptor)
Set project descriptor.
|
void |
setUser(java.lang.String user)
Sets user for the version
|
void |
setVersion(java.lang.Object version)
Sets version object
|
public static final java.lang.String DESCENDING
public static final java.lang.String ASCENDING
public ProjectVersion(ProjectDescriptor projectDescriptor, java.lang.Object version, java.lang.String comment, java.util.Date date, long number, java.lang.String user)
projectDescriptor
- Project Descriptorversion
- version objectcomment
- comment of versiondate
- date of versionnumber
- number of versionuser
- user of versionpublic java.lang.String getComment()
public void setComment(java.lang.String comment)
com
- the comment text.public java.util.Date getDate()
public void setDate(java.util.Date date)
date
- public long getNumber()
public void setNumber(long number)
number
- public java.lang.String getUser()
public java.lang.String getAuthor()
public void setUser(java.lang.String user)
user
- public java.lang.String getDateAsString()
public java.lang.String getVersionAsString()
@Deprecated public java.lang.String getNumberAsString()
public java.lang.Object getVersion()
public void setVersion(java.lang.Object version)
user
- public java.util.List<java.lang.String> getTags()
public ProjectDescriptor getProjectDescriptor()
public void setProjectDescriptor(ProjectDescriptor projectDescriptor)
projectDescriptor
- project Descriptor