Class VersionLimits

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

public final class VersionLimits extends Object implements Serializable
The class that represents the version retention limits for versioned files. If this is set on a container, the value controls the default version limits for new versioned files that are added to the container. The default limit is null, which means that there is no limit to the number of versions. If version limits are applied, the value must be in the range of 1 to 10. If a file has 10 versions, and a new version is checked in, the oldest version is deleted to allow the addition of the latest version.
Since:
2.2.1
See Also:
  • Constructor Details

    • VersionLimits

      public VersionLimits(Integer majorVersionLimit, Integer minorVersionLimit)
      Constructor.
      Parameters:
      majorVersionLimit - The limit of the major versions that are retained for a versioned file.
      minorVersionLimit - The limit of the minor versions that are retained for a versioned file.
  • Method Details

    • getMajorVersionLimit

      public Integer getMajorVersionLimit()
      Gets the limit of the major versions that are retained for a versioned file. The default limit is null, which means that there is no limit. If version limits are applied, the value must be in the range of 1 to 10.
      Returns:
      The limit of the major versions that are retained for a versioned file.
    • setMajorVersionLimit

      public void setMajorVersionLimit(Integer majorVersionLimit)
      Sets the limit of the minor versions that re retained for a versioned file. The default limit is null, which means that there is no limit. If version limits are applied, the value must be in the range of 1 to 10.
      Parameters:
      majorVersionLimit - The limit of the major versions that are retained for a versioned file.
    • getMinorVersionLimit

      public Integer getMinorVersionLimit()
      Gets the limit of the minor versions retained for a versioned file. The default limit is null, which means that there is no limit. If version limits are applied, the value must be in the range of 1 to 10.
      Returns:
      The limit of the minor versions that are retained for a versioned file.
    • setMinorVersionLimit

      public void setMinorVersionLimit(Integer minorVersionLimit)
      Sets the limit of the minor versions that are retained for a versioned file. The default limit is null, which means that there is no limit. If version limits are applied, the value must be in the range of 1 to 10.
      Parameters:
      minorVersionLimit - The limit of the minor versions that are retained for a versioned file.
    • 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