org.alfresco.repo.descriptor
Interface DescriptorDAO

All Known Implementing Classes:
RepositoryDescriptorDAOImpl, ServerDescriptorDAOImpl

public interface DescriptorDAO

Abstracts out the mechanism used to persist repository descriptors.


Method Summary
 Descriptor getDescriptor()
          Create repository descriptor.
 byte[] getLicenseKey()
          Gets the license key.
 Descriptor updateDescriptor(Descriptor serverDescriptor, RepoUsage.LicenseMode licenseMode)
          Push the current server descriptor properties into persistence.
 void updateLicenseKey(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


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.