Package org.alfresco.service.descriptor
Interface DescriptorService
- All Known Implementing Classes:
DescriptorServiceImpl
public interface DescriptorService
Service for retrieving meta-data about Alfresco stack.
- Author:
- David Caruana
-
Method Summary
Modifier and TypeMethodDescriptionGet current descriptor for the repository.Get descriptor for the repository as it was when first installed.Gets the License DescriptorGet descriptor for the alfresco software installed on the server.booleanIs this service bootstrapped?Attempts to load the license.loadLicense(InputStream licenseStream) Attempts to load the license from the input stream.
-
Method Details
-
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
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
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
Gets the License Descriptor- Returns:
- the license descriptor
-
loadLicense
String loadLicense()Attempts to load the license.- Returns:
- Returns a message telling the user what happened
-
loadLicense
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
-