Package org.alfresco.repo.descriptor
Interface DescriptorDAO
-
- All Known Implementing Classes:
RepositoryDescriptorDAOImpl,ServerDescriptorDAOImpl
public interface DescriptorDAOAbstracts out the mechanism used to persist repository descriptors.- Author:
- dward
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DescriptorgetDescriptor()Create repository descriptor.byte[]getLicenseKey()Gets the license key.DescriptorupdateDescriptor(Descriptor serverDescriptor, RepoUsage.LicenseMode licenseMode)Push the current server descriptor properties into persistence.voidupdateLicenseKey(byte[] key)Update license key.
-
-
-
Method Detail
-
getDescriptor
Descriptor getDescriptor()
Create repository descriptor.- Returns:
- descriptor
-
updateDescriptor
Descriptor updateDescriptor(Descriptor serverDescriptor, RepoUsage.LicenseMode licenseMode)
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
-
-