org.alfresco.repo.descriptor
Class RepositoryDescriptorDAOImpl

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

public class RepositoryDescriptorDAOImpl
extends java.lang.Object
implements DescriptorDAO

Manages persistence and retrieval of Descriptors whose meta-data are retrieved from the repository stores.


Constructor Summary
RepositoryDescriptorDAOImpl()
           
 
Method Summary
 Descriptor getDescriptor()
          Create repository descriptor.
 byte[] getLicenseKey()
          Gets the license key.
 void setContentService(ContentService contentService)
          Sets the content service.
 void setName(java.lang.String name)
          Sets the name.
 void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
          Sets the namespace service.
 void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
          Sets the node service.
 void setSearchService(org.alfresco.service.cmr.search.SearchService searchService)
          Sets the search service.
 void setSystemBootstrap(ImporterBootstrap systemBootstrap)
          Sets the system bootstrap.
 void setTransactionService(TransactionService transactionService)
          Sets the transaction service.
 Descriptor updateDescriptor(Descriptor serverDescriptor, RepoUsage.LicenseMode licenseMode)
          Push the current server descriptor properties into persistence.
 void updateLicenseKey(byte[] key)
          Update license key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepositoryDescriptorDAOImpl

public RepositoryDescriptorDAOImpl()
Method Detail

setName

public void setName(java.lang.String name)
Sets the name.

Parameters:
name - the new name

setNodeService

public void setNodeService(org.alfresco.service.cmr.repository.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(org.alfresco.service.cmr.search.SearchService searchService)
Sets the search service.

Parameters:
searchService - the new search service

setNamespaceService

public void setNamespaceService(org.alfresco.service.namespace.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


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