Interface DescriptorDAO

All Known Implementing Classes:
RepositoryDescriptorDAOImpl, ServerDescriptorDAOImpl

public interface DescriptorDAO
Abstracts out the mechanism used to persist repository descriptors.
Author:
dward
  • Method Details

    • 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