|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.descriptor.ServerDescriptorDAOImpl
public class ServerDescriptorDAOImpl
Manages retrieval of the server Descriptor from a read-only resource file.
Field Summary | |
---|---|
protected java.util.Properties |
serverProperties
The server properties. |
Constructor Summary | |
---|---|
ServerDescriptorDAOImpl()
|
Method Summary | |
---|---|
Descriptor |
getDescriptor()
Create repository descriptor. |
byte[] |
getLicenseKey()
Gets the license key. |
void |
setRepositoryName(java.lang.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Properties serverProperties
Constructor Detail |
---|
public ServerDescriptorDAOImpl()
Method Detail |
---|
public void setRepositoryName(java.lang.String repositoryName) throws java.io.IOException
repositoryName
- the repository name
java.io.IOException
- Signals that an I/O exception has occurred.public void setResource(org.springframework.core.io.Resource descriptorResource) throws java.io.IOException
descriptorResource
- resource containing server descriptor meta-data
java.io.IOException
- 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 descriptor
java.lang.UnsupportedOperationException
public void updateLicenseKey(byte[] key)
DescriptorDAO
updateLicenseKey
in interface DescriptorDAO
key
- the key
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |