@OpenApiAll public class ProjectVersion extends java.lang.Object implements IVersionDescriptor
Constructor and Description |
---|
ProjectVersion(IVersionDescriptor v)
Constructs a version from version descriptor
|
ProjectVersion(java.lang.String user,
int number,
java.util.Date date,
java.lang.String comment,
java.util.List<java.lang.String> tags,
int revertedVersion)
Constructs new version with given user, number and date.
|
ProjectVersion(com.nomagic.teamwork.common.projects.Version v)
Constructs are version from teamwork version
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAuthor()
Returns the user who created the version.
|
java.lang.String |
getComment()
Gets comment of this version.
|
java.util.Date |
getDate()
Returns the date of the version.
|
java.lang.String |
getName()
Returns user friendly version name or tag.
|
int |
getNumber()
Returns the number of the version.
|
java.lang.String |
getRevertedVersion()
Gets version from which this version was reverted
|
java.util.List<java.lang.String> |
getTags() |
void |
setAuthor(java.lang.String user)
Sets user for the version
|
void |
setComment(java.lang.String com)
Sets comment text.
|
void |
setDate(java.util.Date date)
Sets version date.
|
void |
setNumber(int number)
Sets version number
|
void |
setRevertedVersion(int revertedVersion) |
void |
setTags(java.util.List<java.lang.String> tags)
Sets tags.
|
public ProjectVersion(com.nomagic.teamwork.common.projects.Version v)
v
- versionpublic ProjectVersion(IVersionDescriptor v)
v
- versionpublic ProjectVersion(java.lang.String user, int number, java.util.Date date, java.lang.String comment, java.util.List<java.lang.String> tags, int revertedVersion)
user
- the user login name.number
- the version number.date
- the date when this version was created.comment
- the comment text.tags
- tagsrevertedVersion
- reverted versionpublic java.util.Date getDate()
getDate
in interface IVersionDescriptor
public void setDate(java.util.Date date)
date
- datepublic int getNumber()
public void setNumber(int number)
number
- numberpublic java.lang.String getAuthor()
getAuthor
in interface IVersionDescriptor
public void setAuthor(java.lang.String user)
user
- userpublic java.lang.String getComment()
IVersionDescriptor
getComment
in interface IVersionDescriptor
public void setComment(java.lang.String com)
com
- the comment text.public java.util.List<java.lang.String> getTags()
public void setTags(java.util.List<java.lang.String> tags)
tags
- tagspublic java.lang.String getRevertedVersion()
IVersionDescriptor
getRevertedVersion
in interface IVersionDescriptor
null
if nonepublic void setRevertedVersion(int revertedVersion)
public java.lang.String getName()
IVersionDescriptor
getName
in interface IVersionDescriptor