Class PackageBean

    • Constructor Detail

      • PackageBean

        public PackageBean()
      • PackageBean

        public PackageBean​(com.composum.sling.core.BeanContext context,
                           String path)
      • PackageBean

        public PackageBean​(com.composum.sling.core.BeanContext context,
                           String namespace,
                           org.apache.jackrabbit.vault.packaging.PackageId packageId)
    • Method Detail

      • initialize

        public void initialize​(com.composum.sling.core.BeanContext context)
        Specified by:
        initialize in interface com.composum.sling.core.SlingBean
        Overrides:
        initialize in class com.composum.sling.core.AbstractSlingBean
      • getPackageId

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

        public String getName()
        Specified by:
        getName in interface PackageView
        Specified by:
        getName in interface com.composum.sling.core.SlingBean
        Overrides:
        getName in class com.composum.sling.core.AbstractSlingBean
      • getCurrentVersion

        public VersionBean getCurrentVersion()
      • load

        public void load​(com.composum.sling.core.BeanContext context)
                  throws IOException
        Throws:
        IOException
      • getCssClasses

        public String getCssClasses()
      • getDownloadUrl

        public String getDownloadUrl()
      • getUrl

        public String getUrl()
        Overrides:
        getUrl in class com.composum.sling.core.AbstractSlingBean
      • getAllVersions

        public Collection<VersionBean> getAllVersions()
        All versions of the package that are currently in the registry.
      • getObsoleteVersions

        public Collection<VersionBean> getObsoleteVersions()
        A list of package versions that are obsolete because older than the current version.
      • isHasAlternativeVersions

        public boolean isHasAlternativeVersions()
        True iff there is more than one version of the package present.