Package org.alfresco.repo.descriptor
Class ServerDescriptorDAOImpl
java.lang.Object
org.alfresco.repo.descriptor.ServerDescriptorDAOImpl
- All Implemented Interfaces:
DescriptorDAO
Manages retrieval of the server Descriptor from a read-only resource file.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate repository descriptor.byte[]Gets the license key.voidsetRepositoryName(String repositoryName) Sets the repository properties from a resource file.voidsetResource(org.springframework.core.io.Resource[] locations) Sets the server descriptor from a resource file.updateDescriptor(Descriptor serverDescriptor, RepoUsage.LicenseMode licenseMode) Push the current server descriptor properties into persistence.voidupdateLicenseKey(byte[] key) Update license key.
-
Field Details
-
serverProperties
The server properties.
-
-
Constructor Details
-
ServerDescriptorDAOImpl
public ServerDescriptorDAOImpl()
-
-
Method Details
-
setRepositoryName
Sets the repository properties from a resource file.- Parameters:
repositoryName- the repository name- Throws:
IOException- Signals that an I/O exception has occurred.
-
setResource
Sets the server descriptor from a resource file.- Parameters:
locations- resources containing server descriptor meta-data- Throws:
IOException- Signals that an I/O exception has occurred.
-
getDescriptor
Description copied from interface:DescriptorDAOCreate repository descriptor.- Specified by:
getDescriptorin interfaceDescriptorDAO- Returns:
- descriptor
-
getLicenseKey
public byte[] getLicenseKey()Description copied from interface:DescriptorDAOGets the license key.- Specified by:
getLicenseKeyin interfaceDescriptorDAO- Returns:
- the license key
-
updateDescriptor
Description copied from interface:DescriptorDAOPush the current server descriptor properties into persistence.- Specified by:
updateDescriptorin interfaceDescriptorDAO- Parameters:
serverDescriptor- the current server descriptor- Returns:
- the descriptor
- Throws:
UnsupportedOperationException
-
updateLicenseKey
public void updateLicenseKey(byte[] key) Description copied from interface:DescriptorDAOUpdate license key.- Specified by:
updateLicenseKeyin interfaceDescriptorDAO- Parameters:
key- the key
-