Class GroupBean

    • Constructor Detail

      • GroupBean

        public GroupBean()
    • Method Detail

      • initialize

        public void initialize​(BeanContext context,
                               org.apache.sling.api.resource.Resource resource)
        Description copied from class: AbstractSlingBean
        This basic initialization sets up the context and resource attributes only, all the other attributes are set 'lazy' during their getter calls.
        Specified by:
        initialize in interface SlingBean
        Overrides:
        initialize in class ConsoleSlingBean
        Parameters:
        context - the scripting context (e.g. a JSP PageContext or a Groovy scripting context)
        resource - the resource to use (normally the resource addressed by the request)
        See Also:
        BeanContext.withResource(Resource)
      • getPackagePathIfVersion

        protected String getPackagePathIfVersion​(String path,
                                                 List<org.apache.jackrabbit.vault.packaging.PackageId> registeredpackage,
                                                 org.apache.jackrabbit.vault.packaging.registry.PackageRegistry singleRegistry)
        If a version is selected for cleanup, we want to find the versions of it's package.
      • pathsToHighestVersion

        protected List<String> pathsToHighestVersion​(String path,
                                                     org.apache.jackrabbit.vault.packaging.registry.PackageRegistry singleRegistry,
                                                     Comparator<org.apache.jackrabbit.vault.packaging.PackageId> comparator,
                                                     Stream<Map.Entry<org.apache.commons.lang3.tuple.Pair<String,​String>,​List<org.apache.jackrabbit.vault.packaging.PackageId>>> versionsPackageGrouped)
      • getPackagePaths

        public List<String> getPackagePaths()
        Sorted collection of paths to the highest version of packages contained below this path.
      • getMultiVersionPackagePaths

        public List<String> getMultiVersionPackagePaths()
        Sorted collection of paths to the highest version of packages contained below this path which have several versions.