public class ServerDescriptorDAOImpl extends Object implements DescriptorDAO
| Modifier and Type | Field and Description |
|---|---|
protected Properties |
serverProperties
The server properties.
|
| Constructor and Description |
|---|
ServerDescriptorDAOImpl() |
| Modifier and Type | Method and Description |
|---|---|
Descriptor |
getDescriptor()
Create repository descriptor.
|
byte[] |
getLicenseKey()
Gets the license key.
|
void |
setRepositoryName(String repositoryName)
Sets the repository properties from a resource file.
|
void |
setResource(org.springframework.core.io.Resource[] locations)
Sets the server descriptor from a resource file.
|
Descriptor |
updateDescriptor(Descriptor serverDescriptor,
RepoUsage.LicenseMode licenseMode)
Push the current server descriptor properties into persistence.
|
void |
updateLicenseKey(byte[] key)
Update license key.
|
protected Properties serverProperties
public void setRepositoryName(String repositoryName) throws IOException
repositoryName - the repository nameIOException - Signals that an I/O exception has occurred.public void setResource(org.springframework.core.io.Resource[] locations)
throws IOException
locations - resources containing server descriptor meta-dataIOException - Signals that an I/O exception has occurred.public Descriptor getDescriptor()
DescriptorDAOgetDescriptor in interface DescriptorDAOpublic byte[] getLicenseKey()
DescriptorDAOgetLicenseKey in interface DescriptorDAOpublic Descriptor updateDescriptor(Descriptor serverDescriptor, RepoUsage.LicenseMode licenseMode)
DescriptorDAOupdateDescriptor in interface DescriptorDAOserverDescriptor - the current server descriptorUnsupportedOperationExceptionpublic void updateLicenseKey(byte[] key)
DescriptorDAOupdateLicenseKey in interface DescriptorDAOkey - the keyCopyright © 2005–2018 Alfresco Software. All rights reserved.