Package com.nomagic.magicdraw.teamwork2
Class ProjectVersion
java.lang.Object
com.nomagic.magicdraw.teamwork2.ProjectVersion
- All Implemented Interfaces:
com.nomagic.ci.persistence.versioning.IVersionDescriptor
@OpenApiAll
public class ProjectVersion
extends Object
implements com.nomagic.ci.persistence.versioning.IVersionDescriptor
Project version information
-
Constructor Summary
ConstructorsConstructorDescriptionProjectVersion(com.nomagic.ci.persistence.versioning.IVersionDescriptor v) Constructs a version from version descriptorProjectVersion(String user, long number, Date date, String comment, List<String> tags, long revertedVersion) Constructs new version with given user, number and date. -
Method Summary
Modifier and TypeMethodDescriptionReturns the user who created the version.getDate()Returns the date of the version.longReturns the number of the version.getName()getTags()voidSets user for the versionvoidsetComment(String com) Sets comment text.voidSets version date.voidsetLongNumber(long number) Sets version numbervoidsetLongRevertedVersion(long revertedVersion) voidSets tags.
-
Constructor Details
-
ProjectVersion
public ProjectVersion(com.nomagic.ci.persistence.versioning.IVersionDescriptor v) Constructs a version from version descriptor- Parameters:
v- version
-
ProjectVersion
public ProjectVersion(String user, long number, Date date, String comment, @CheckForNull List<String> tags, long revertedVersion) Constructs new version with given user, number and date.- Parameters:
user- the user login name.number- the version number.date- the date when this version was created.comment- the comment text.tags- tagsrevertedVersion- reverted version
-
-
Method Details
-
getDate
Returns the date of the version.- Specified by:
getDatein interfacecom.nomagic.ci.persistence.versioning.IVersionDescriptor- Returns:
- the date.
-
setDate
Sets version date.- Parameters:
date- date
-
getLongNumber
public long getLongNumber()Returns the number of the version.- Returns:
- the number.
-
setLongNumber
public void setLongNumber(long number) Sets version number- Parameters:
number- number
-
getAuthor
Returns the user who created the version.- Specified by:
getAuthorin interfacecom.nomagic.ci.persistence.versioning.IVersionDescriptor- Returns:
- the user who created the version.
-
setAuthor
Sets user for the version- Parameters:
user- user
-
getComment
- Specified by:
getCommentin interfacecom.nomagic.ci.persistence.versioning.IVersionDescriptor- Returns:
- comment for this version.
-
setComment
Sets comment text.- Parameters:
com- the comment text.
-
getTags
- Returns:
- all tags.
-
setTags
Sets tags.- Parameters:
tags- tags
-
getRevertedVersion
- Specified by:
getRevertedVersionin interfacecom.nomagic.ci.persistence.versioning.IVersionDescriptor
-
setLongRevertedVersion
public void setLongRevertedVersion(long revertedVersion) -
getName
- Specified by:
getNamein interfacecom.nomagic.ci.persistence.versioning.IVersionDescriptor
-