Package com.sas.lsaf.content.repository
Class VersionLimits
java.lang.Object
com.sas.lsaf.content.repository.VersionLimits
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionVersionLimits(Integer majorVersionLimit, Integer minorVersionLimit) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the limit of the major versions that are retained for a versioned file.Gets the limit of the minor versions retained for a versioned file.inthashCode()voidsetMajorVersionLimit(Integer majorVersionLimit) Sets the limit of the minor versions that re retained for a versioned file.voidsetMinorVersionLimit(Integer minorVersionLimit) Sets the limit of the minor versions that are retained for a versioned file.toString()
-
Constructor Details
-
VersionLimits
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
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
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
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
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() -
equals
-
toString
-