Package org.alfresco.repo.descriptor
Interface DescriptorDAO
- All Known Implementing Classes:
RepositoryDescriptorDAOImpl,ServerDescriptorDAOImpl
public interface DescriptorDAO
Abstracts out the mechanism used to persist repository descriptors.
- Author:
- dward
-
Method Summary
Modifier and TypeMethodDescriptionCreate repository descriptor.byte[]Gets the license key.updateDescriptor(Descriptor serverDescriptor, RepoUsage.LicenseMode licenseMode) Push the current server descriptor properties into persistence.voidupdateLicenseKey(byte[] key) Update license key.
-
Method Details
-
getDescriptor
Descriptor getDescriptor()Create repository descriptor.- Returns:
- descriptor
-
updateDescriptor
Push the current server descriptor properties into persistence.- Parameters:
serverDescriptor- the current server descriptor- Returns:
- the descriptor
-
getLicenseKey
byte[] getLicenseKey()Gets the license key.- Returns:
- the license key
-
updateLicenseKey
void updateLicenseKey(byte[] key) Update license key.- Parameters:
key- the key
-