Class RepositoryDescriptorDAOImpl

java.lang.Object
org.alfresco.repo.descriptor.RepositoryDescriptorDAOImpl
All Implemented Interfaces:
DescriptorDAO

public class RepositoryDescriptorDAOImpl extends Object implements DescriptorDAO
Manages persistence and retrieval of Descriptors whose meta-data are retrieved from the repository stores.
Author:
dward
  • Constructor Details

    • RepositoryDescriptorDAOImpl

      public RepositoryDescriptorDAOImpl()
  • Method Details

    • setName

      public void setName(String name)
      Sets the name.
      Parameters:
      name - the new name
    • setNodeService

      public void setNodeService(NodeService nodeService)
      Sets the node service.
      Parameters:
      nodeService - the new node service
    • setContentService

      public void setContentService(ContentService contentService)
      Sets the content service.
      Parameters:
      contentService - the new content service
    • setSearchService

      public void setSearchService(SearchService searchService)
      Sets the search service.
      Parameters:
      searchService - the new search service
    • setNamespaceService

      public void setNamespaceService(NamespaceService namespaceService)
      Sets the namespace service.
      Parameters:
      namespaceService - the new namespace service
    • setSystemBootstrap

      public void setSystemBootstrap(ImporterBootstrap systemBootstrap)
      Sets the system bootstrap.
      Parameters:
      systemBootstrap - the new system bootstrap
    • setTransactionService

      public void setTransactionService(TransactionService transactionService)
      Sets the transaction service.
      Parameters:
      transactionService - the new transaction service
    • getDescriptor

      public Descriptor getDescriptor()
      Description copied from interface: DescriptorDAO
      Create repository descriptor.
      Specified by:
      getDescriptor in interface DescriptorDAO
      Returns:
      descriptor
    • updateDescriptor

      public Descriptor updateDescriptor(Descriptor serverDescriptor, RepoUsage.LicenseMode licenseMode)
      Description copied from interface: DescriptorDAO
      Push the current server descriptor properties into persistence.
      Specified by:
      updateDescriptor in interface DescriptorDAO
      Parameters:
      serverDescriptor - the current server descriptor
      Returns:
      the descriptor
    • getLicenseKey

      public byte[] getLicenseKey()
      Description copied from interface: DescriptorDAO
      Gets the license key.
      Specified by:
      getLicenseKey in interface DescriptorDAO
      Returns:
      the license key
    • updateLicenseKey

      public void updateLicenseKey(byte[] key)
      Description copied from interface: DescriptorDAO
      Update license key.
      Specified by:
      updateLicenseKey in interface DescriptorDAO
      Parameters:
      key - the key