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 descriptorResource)
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 descriptorResource) throws IOException
descriptorResource
- resource containing server descriptor meta-dataIOException
- Signals that an I/O exception has occurred.public Descriptor getDescriptor()
DescriptorDAO
getDescriptor
in interface DescriptorDAO
public byte[] getLicenseKey()
DescriptorDAO
getLicenseKey
in interface DescriptorDAO
public Descriptor updateDescriptor(Descriptor serverDescriptor, RepoUsage.LicenseMode licenseMode)
DescriptorDAO
updateDescriptor
in interface DescriptorDAO
serverDescriptor
- the current server descriptorUnsupportedOperationException
public void updateLicenseKey(byte[] key)
DescriptorDAO
updateLicenseKey
in interface DescriptorDAO
key
- the keyCopyright © 2005–2017 Alfresco Software. All rights reserved.