Class WrappingInstalledExtension<E extends InstalledExtension>

    • Constructor Detail

      • WrappingInstalledExtension

        public WrappingInstalledExtension​(E installedExtension)
        Parameters:
        installedExtension - the wrapped installed extension
    • Method Detail

      • isInstalled

        public boolean isInstalled()
        Specified by:
        isInstalled in interface InstalledExtension
        Returns:
        indicate if the extension is installed
      • isValid

        public boolean isValid​(String namespace)
        Description copied from interface: InstalledExtension
        Indicate if the extension is working.

        An installed extension can be invalid for example when one of the core extensions has been changed and is now incompatible with this installed extension.

        Specified by:
        isValid in interface InstalledExtension
        Parameters:
        namespace - the namespace to look at, if null it means the extension is installed on the root namespace
        Returns:
        true is valid
      • isInstalled

        public boolean isInstalled​(String namespace)
        Description copied from interface: InstalledExtension
        Indicate if the extension is installed in the provided namespace.
        Specified by:
        isInstalled in interface InstalledExtension
        Parameters:
        namespace - the namespace to look at, if null it means the extension is installed on the root namespace
        Returns:
        true if the extension is installed in the provided namespace
      • isDependency

        public boolean isDependency()
        Description copied from interface: InstalledExtension
        Indicate if the extension as been installed as a dependency of another one.

        The idea is to be able to make the difference between extension specifically installed by a user so that it's possible to know which extension are not really required anymore.

        Specified by:
        isDependency in interface InstalledExtension
        Returns:
        true if the the extension has been installed only because it was a dependency of another extension
      • isDependency

        public boolean isDependency​(String namespace)
        Description copied from interface: InstalledExtension
        Indicate if the extension as been installed as a dependency of another one.

        The idea is to be able to make the difference between extension specifically installed by a user so that it's possible to know which extension are not really required anymore.

        Specified by:
        isDependency in interface InstalledExtension
        Parameters:
        namespace - the namespace to look at, null indicate the root namespace
        Returns:
        true if the the extension has been installed only because it was a dependency of another extension
      • getInstallDate

        public Date getInstallDate​(String namespace)
        Specified by:
        getInstallDate in interface InstalledExtension
        Parameters:
        namespace - the namespace to look at, null indicates the root namespace
        Returns:
        the date when this extension has been installed on the specified namespace, null if the install date is not available or if this extension is not installed on the specified namespace
      • getNamespaceProperty

        public Object getNamespaceProperty​(String key,
                                           String namespace)
        Description copied from interface: InstalledExtension
        An installed extension can have different values for its properties depending on the namespace where it is installed. This method allows us to access the value of a specific extension property on a given namespace.
        Specified by:
        getNamespaceProperty in interface InstalledExtension
        Parameters:
        key - the name of the property to look for
        namespace - the namespace to look at, null indicates the root namespace
        Returns:
        the value of the specified extension property on the given namespace