Package com.day.cq.wcm.api
Interface VersionManager
VersionManager provides methods to manage page versions.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceGeneral info about version purging. -
Method Summary
Modifier and TypeMethodDescriptionpurgeVersions(Node node, boolean dryRun) Returns a list of purge infos of the versions that are purged using the configured conditions.purgeVersions(Node node, boolean dryRun, int maxVersions, int maxAge) Returns a list of purge infos of the versions that are purged using the specified conditions.purgeVersions(Session session, String path, boolean dryRun, boolean recursive) Returns a list of purge infos of the versions that are purged using the configured conditions.purgeVersions(Session session, String path, boolean dryRun, boolean recursive, int maxVersions, int maxAge) Returns a list of purge infos of the versions that are purged using the specified conditions.purgeVersions(Session session, String path, boolean dryRun, boolean recursive, int maxVersions, int maxAge, int minVersions) Returns a list of purge infos of the versions that are purged using the specified conditions.
-
Method Details
-
purgeVersions
Returns a list of purge infos of the versions that are purged using the configured conditions.- Parameters:
node- of which the versions are to be purgeddryRun- iftruethe versions are not removed- Returns:
- list of versions to purge
-
purgeVersions
List<VersionManager.PurgeInfo> purgeVersions(Node node, boolean dryRun, int maxVersions, int maxAge) Returns a list of purge infos of the versions that are purged using the specified conditions.- Parameters:
node- of which the versions are to be purgeddryRun- iftruethe versions are not removedmaxVersions- max number of versions to retainmaxAge- max age (in days) of versions to retain- Returns:
- list of versions to purge
-
purgeVersions
List<VersionManager.PurgeInfo> purgeVersions(Session session, String path, boolean dryRun, boolean recursive) Returns a list of purge infos of the versions that are purged using the configured conditions.- Parameters:
session- to use for repository operationspath- of which the versions are to be purgeddryRun- iftruethe versions are not removedrecursive- if versions for paths below given path should be purged- Returns:
- list of versions to purge
-
purgeVersions
List<VersionManager.PurgeInfo> purgeVersions(Session session, String path, boolean dryRun, boolean recursive, int maxVersions, int maxAge) Returns a list of purge infos of the versions that are purged using the specified conditions.- Parameters:
session- to use for repository operationspath- of which the versions are to be purgeddryRun- iftruethe versions are not removedrecursive- if versions for paths below given path should be purgedmaxVersions- max number of versions to retainmaxAge- max age (in days) of versions to retain- Returns:
- list of versions to purge
-
purgeVersions
List<VersionManager.PurgeInfo> purgeVersions(Session session, String path, boolean dryRun, boolean recursive, int maxVersions, int maxAge, int minVersions) Returns a list of purge infos of the versions that are purged using the specified conditions.- Parameters:
session- to use for repository operationspath- of which the versions are to be purgeddryRun- iftruethe versions are not removedrecursive- if versions for paths below given path should be purgedmaxVersions- max number of versions to retainmaxAge- max age (in days) of versions to retainminVersions- min number of versions to retain if possible- Returns:
- list of versions to purge
-