Package org.alfresco.service.descriptor
Interface DescriptorService
-
- All Known Implementing Classes:
DescriptorServiceImpl
public interface DescriptorServiceService for retrieving meta-data about Alfresco stack.- Author:
- David Caruana
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DescriptorgetCurrentRepositoryDescriptor()Get current descriptor for the repository.DescriptorgetInstalledRepositoryDescriptor()Get descriptor for the repository as it was when first installed.LicenseDescriptorgetLicenseDescriptor()Gets the License DescriptorDescriptorgetServerDescriptor()Get descriptor for the alfresco software installed on the server.booleanisBootstrapped()Is this service bootstrapped?java.lang.StringloadLicense()Attempts to load the license.java.lang.StringloadLicense(java.io.InputStream licenseStream)Attempts to load the license from the input stream.
-
-
-
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
- 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
- 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
-
-