Package org.alfresco.repo.descriptor
Class RepositoryDescriptorDAOImpl
- java.lang.Object
-
- 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.- Author:
- dward
-
-
Constructor Summary
Constructors Constructor Description RepositoryDescriptorDAOImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescriptorgetDescriptor()Create repository descriptor.byte[]getLicenseKey()Gets the license key.voidsetContentService(ContentService contentService)Sets the content service.voidsetName(java.lang.String name)Sets the name.voidsetNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)Sets the namespace service.voidsetNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)Sets the node service.voidsetSearchService(org.alfresco.service.cmr.search.SearchService searchService)Sets the search service.voidsetSystemBootstrap(ImporterBootstrap systemBootstrap)Sets the system bootstrap.voidsetTransactionService(TransactionService transactionService)Sets the transaction service.DescriptorupdateDescriptor(Descriptor serverDescriptor, RepoUsage.LicenseMode licenseMode)Push the current server descriptor properties into persistence.voidupdateLicenseKey(byte[] key)Update license key.
-
-
-
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:DescriptorDAOCreate repository descriptor.- Specified by:
getDescriptorin interfaceDescriptorDAO- Returns:
- descriptor
-
updateDescriptor
public Descriptor updateDescriptor(Descriptor serverDescriptor, RepoUsage.LicenseMode licenseMode)
Description copied from interface:DescriptorDAOPush the current server descriptor properties into persistence.- Specified by:
updateDescriptorin interfaceDescriptorDAO- Parameters:
serverDescriptor- the current server descriptor- Returns:
- the descriptor
-
getLicenseKey
public byte[] getLicenseKey()
Description copied from interface:DescriptorDAOGets the license key.- Specified by:
getLicenseKeyin interfaceDescriptorDAO- Returns:
- the license key
-
updateLicenseKey
public void updateLicenseKey(byte[] key)
Description copied from interface:DescriptorDAOUpdate license key.- Specified by:
updateLicenseKeyin interfaceDescriptorDAO- Parameters:
key- the key
-
-