Class RepositoryCheckinSpecification

java.lang.Object
com.sas.lsaf.content.repository.RepositoryCheckinSpecification
All Implemented Interfaces:
Serializable

public class RepositoryCheckinSpecification extends Object implements 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 Details

    • RepositoryCheckinSpecification

      public RepositoryCheckinSpecification()
      Default constructor.
    • RepositoryCheckinSpecification

      public RepositoryCheckinSpecification(String comment)
      Constructor.
      Parameters:
      comment - A description of the version to create.
    • RepositoryCheckinSpecification

      public RepositoryCheckinSpecification(String comment, VersionType versionType)
      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 is CUSTOM.
    • 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 is CUSTOM.
    • 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 is CUSTOM.
      comment - A description of the version.
  • Method Details

    • getVersionType

      public VersionType getVersionType()
      Gets the method to generate the next version.
      Returns:
      The method to generate the next version.
    • setVersionType

      public void setVersionType(VersionType versionType)
      Sets the method to generate the next version.
      Parameters:
      versionType - The method to generate the next version.
    • getCustomVersion

      public String getCustomVersion()
      Gets the version to use, if the version type is CUSTOM.
      Returns:
      The version, if the version type is CUSTOM.
    • setCustomVersion

      public void setCustomVersion(String customVersion)
      Sets the version, if the version type is CUSTOM.
      Parameters:
      customVersion - The version, if the version type is CUSTOM.
    • getComment

      public String getComment()
      Gets the description of the version to create.
      Returns:
      The description of the version to create.
    • setComment

      public void setComment(String comment)
      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()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object