Interface DescriptorService

  • All Known Implementing Classes:
    DescriptorServiceImpl

    public interface DescriptorService
    Service for retrieving meta-data about Alfresco stack.
    Author:
    David Caruana
    • Method Detail

      • getServerDescriptor

        @NotAuditable
        Descriptor getServerDescriptor()
        Get descriptor for the alfresco software installed on the server.

        The information contained by this descriptor is read from a property file. The following properties are available in the descriptor

        • Major
        • Minor
        • Revision
        • Label
        • Build
        • Edition
        • Schema
        The following properties are not applicable to the server descriptor.
        • id
        • licenceKey
        • name - unknown
        Returns:
        server descriptor
      • getCurrentRepositoryDescriptor

        @NotAuditable
        Descriptor getCurrentRepositoryDescriptor()
        Get current descriptor for the repository.

        The information in this descriptor is read from a node in the system store. After the patch process runs successfully, the version Major/Minor/Revision should be equal to the server descriptor.

        The "repository id" that uniquely identifies each alfresco repository is available in the "id" property.

        The following properties are available in the descriptor

        • Major
        • Minor
        • Revision
        • Label
        • Build
        • Schema
        • name
        • id
        The following properties may be present
        • LicenceKey
        • Edition
        Returns:
        repository descriptor
      • getInstalledRepositoryDescriptor

        @NotAuditable
        Descriptor getInstalledRepositoryDescriptor()
        Get descriptor for the repository as it was when first installed.

        The information in this descriptor is read from a node in the system store.

        Returns:
        repository descriptor
      • getLicenseDescriptor

        @NotAuditable
        LicenseDescriptor getLicenseDescriptor()
        Gets the License Descriptor
        Returns:
        the license descriptor
      • loadLicense

        java.lang.String loadLicense()
        Attempts to load the license.
        Returns:
        Returns a message telling the user what happened
      • loadLicense

        java.lang.String loadLicense​(java.io.InputStream licenseStream)
        Attempts to load the license from the input stream.
        Returns:
        Returns a message telling the user what happened
      • isBootstrapped

        boolean isBootstrapped()
        Is this service bootstrapped?
        Returns:
        true, the service is bootstrapped and available