Interface VersionManager


@ProviderType public interface VersionManager
VersionManager provides methods to manage page versions.
  • Method Details

    • purgeVersions

      List<VersionManager.PurgeInfo> purgeVersions(Node node, boolean dryRun)
      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 purged
      dryRun - if true the 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 purged
      dryRun - if true the versions are not removed
      maxVersions - max number of versions to retain
      maxAge - 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 operations
      path - of which the versions are to be purged
      dryRun - if true the versions are not removed
      recursive - 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 operations
      path - of which the versions are to be purged
      dryRun - if true the versions are not removed
      recursive - if versions for paths below given path should be purged
      maxVersions - max number of versions to retain
      maxAge - 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 operations
      path - of which the versions are to be purged
      dryRun - if true the versions are not removed
      recursive - if versions for paths below given path should be purged
      maxVersions - max number of versions to retain
      maxAge - max age (in days) of versions to retain
      minVersions - min number of versions to retain if possible
      Returns:
      list of versions to purge