Class VersionBean

    • Field Detail

      • BY_GROUP_AND_NAME_COMPARATOR

        protected static final Comparator<org.apache.jackrabbit.vault.packaging.PackageId> BY_GROUP_AND_NAME_COMPARATOR
      • PACKAGE_ID_COMPARATOR

        protected static final Comparator<org.apache.jackrabbit.vault.packaging.PackageId> PACKAGE_ID_COMPARATOR
      • namespace

        protected String namespace
      • packageId

        protected org.apache.jackrabbit.vault.packaging.PackageId packageId
      • loaded

        protected boolean loaded
      • regPckg

        protected transient org.apache.jackrabbit.vault.packaging.registry.RegisteredPackage regPckg
      • vltPckg

        protected transient org.apache.jackrabbit.vault.packaging.VaultPackage vltPckg
      • packageProps

        protected transient org.apache.jackrabbit.vault.packaging.PackageProperties packageProps
      • invalid

        protected transient boolean invalid
      • registryNamespace

        protected transient String registryNamespace
      • satisfiedDependencies

        protected String[] satisfiedDependencies
      • notInstalledDependencies

        protected String[] notInstalledDependencies
      • unresolvedDependencies

        protected String[] unresolvedDependencies
    • Constructor Detail

      • VersionBean

        public VersionBean()
      • VersionBean

        public VersionBean​(BeanContext context,
                           String namespace,
                           org.apache.jackrabbit.vault.packaging.PackageId packageId)
    • 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)
      • loadPackage

        protected void loadPackage()
        Performs the expensive parts of the loading process (that need actually opening the package) if needed.
      • getPathWithRegistry

        public String getPathWithRegistry()
        Returns a path containing the registry namespace even in merged mode.
      • getRegistryNamespace

        public String getRegistryNamespace()
        Namespace of the registry, if the package was really found.
      • getPackageId

        public org.apache.jackrabbit.vault.packaging.PackageId getPackageId()
        Specified by:
        getPackageId in interface PackageView
      • getDescription

        public String getDescription()
      • getCssClasses

        public String getCssClasses()
      • getFilename

        public String getFilename()
      • getDownloadUrl

        public String getDownloadUrl()
      • getFilterList

        public List<org.apache.jackrabbit.vault.fs.api.PathFilterSet> getFilterList()
      • getAuditLogUrl

        public String getAuditLogUrl()
      • getInstallationTime

        public String getInstallationTime()
      • getCreated

        public String getCreated()
      • getCreatedBy

        public String getCreatedBy()
      • getLastModified

        public String getLastModified()
      • getLastModifiedBy

        public String getLastModifiedBy()
      • getLastWrapped

        public String getLastWrapped()
      • getLastWrappedBy

        public String getLastWrappedBy()
      • getAcHandling

        public String getAcHandling()
      • getAcHandlingLabel

        public String getAcHandlingLabel()
      • getRequiresRestart

        public boolean getRequiresRestart()
      • getRequiresRoot

        public boolean getRequiresRoot()
      • getProviderName

        public String getProviderName()
      • getProviderUrl

        public String getProviderUrl()
      • getProviderLink

        public String getProviderLink()
      • getDependencies

        public String[] getDependencies()
      • calculateDependencies

        protected void calculateDependencies()
      • getSatisfiedDependencies

        public String[] getSatisfiedDependencies()
      • getNotInstalledDependencies

        public String[] getNotInstalledDependencies()
      • getUnresolvedDependencies

        public String[] getUnresolvedDependencies()
      • getReplaces

        public String[] getReplaces()
      • getUsages

        public String[] getUsages()