Package com.sas.lsaf.content.repository
Class RepositoryCheckinSpecification
java.lang.Object
com.sas.lsaf.content.repository.RepositoryCheckinSpecification
- All Implemented Interfaces:
Serializable
The class that represents the method to generate a new version for a repository file is generated or what the new
version number is.
In general, a specification with a version type of MAJOR indicates that the major number
field is incremented by one. A version type of MINOR indicates that the minor number field is
incremented by one. A version type of CUSTOM enables you to specify the next version
number.
When specifying a CUSTOM check in specification, the specified number must be greater than
the current version of the file.
- Since:
- 1.1
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.RepositoryCheckinSpecification(boolean enableVersioningForNewFiles, VersionType versionType, String customVersion) Constructor.RepositoryCheckinSpecification(boolean enableVersioningForNewFiles, VersionType versionType, String customVersion, String comment) Constructor.RepositoryCheckinSpecification(String comment) Constructor.RepositoryCheckinSpecification(String comment, VersionType versionType) Constructor.RepositoryCheckinSpecification(String comment, VersionType versionType, String customVersion) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the description of the version to create.Gets the version to use, if the version type isCUSTOM.Gets the method to generate the next version.inthashCode()booleanGets whether new files are versioned when created.voidsetComment(String comment) Sets the description of the version to create.voidsetCustomVersion(String customVersion) Sets the version, if the version type isCUSTOM.voidsetEnableVersioningForNewFiles(boolean enableVersioningForNewFiles) Sets whether new files are versioned when they are created.voidsetVersionType(VersionType versionType) Sets the method to generate the next version.toString()
-
Constructor Details
-
RepositoryCheckinSpecification
public RepositoryCheckinSpecification()Default constructor. -
RepositoryCheckinSpecification
Constructor.- Parameters:
comment- A description of the version to create.
-
RepositoryCheckinSpecification
Constructor.- Parameters:
comment- A description of the version to create.versionType- The method to generate the next version.
-
RepositoryCheckinSpecification
public RepositoryCheckinSpecification(String comment, VersionType versionType, String customVersion) Constructor.- Parameters:
comment- A description of the version to create.versionType- The method to generate the next version.customVersion- The version, if the version type isCUSTOM.
-
RepositoryCheckinSpecification
public RepositoryCheckinSpecification(boolean enableVersioningForNewFiles, VersionType versionType, String customVersion) Constructor.- Parameters:
enableVersioningForNewFiles- Indicates whether to version new files.versionType- The method to generate the next version.customVersion- The version, if the version type isCUSTOM.
-
RepositoryCheckinSpecification
public RepositoryCheckinSpecification(boolean enableVersioningForNewFiles, VersionType versionType, String customVersion, String comment) Constructor.- Parameters:
enableVersioningForNewFiles- Indicates whether to version new files.versionType- The method to generate the next version.customVersion- The version, if the version type isCUSTOM.comment- A description of the version.
-
-
Method Details
-
getVersionType
Gets the method to generate the next version.- Returns:
- The method to generate the next version.
-
setVersionType
Sets the method to generate the next version.- Parameters:
versionType- The method to generate the next version.
-
getCustomVersion
Gets the version to use, if the version type isCUSTOM.- Returns:
- The version, if the version type is
CUSTOM.
-
setCustomVersion
Sets the version, if the version type isCUSTOM.- Parameters:
customVersion- The version, if the version type isCUSTOM.
-
getComment
Gets the description of the version to create.- Returns:
- The description of the version to create.
-
setComment
Sets the description of the version to create.- Parameters:
comment- The description of the version to create.
-
isEnableVersioningForNewFiles
public boolean isEnableVersioningForNewFiles()Gets whether new files are versioned when created.- Returns:
- The indication that new files are versioned when they are created.
-
setEnableVersioningForNewFiles
public void setEnableVersioningForNewFiles(boolean enableVersioningForNewFiles) Sets whether new files are versioned when they are created.- Parameters:
enableVersioningForNewFiles- Indicator whether new files are versioned when they are created.
-
hashCode
public int hashCode() -
equals
-
toString
-