Package org.alfresco.repo.descriptor
Class RepositoryDescriptorDAOImpl
java.lang.Object
org.alfresco.repo.descriptor.RepositoryDescriptorDAOImpl
- All Implemented Interfaces:
DescriptorDAO
Manages persistence and retrieval of Descriptors whose meta-data are retrieved from the repository stores.
- Author:
- dward
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate repository descriptor.byte[]Gets the license key.voidsetContentService(ContentService contentService) Sets the content service.voidSets the name.voidsetNamespaceService(NamespaceService namespaceService) Sets the namespace service.voidsetNodeService(NodeService nodeService) Sets the node service.voidsetSearchService(SearchService searchService) Sets the search service.voidsetSystemBootstrap(ImporterBootstrap systemBootstrap) Sets the system bootstrap.voidsetTransactionService(TransactionService transactionService) Sets the transaction service.updateDescriptor(Descriptor serverDescriptor, RepoUsage.LicenseMode licenseMode) Push the current server descriptor properties into persistence.voidupdateLicenseKey(byte[] key) Update license key.
-
Constructor Details
-
RepositoryDescriptorDAOImpl
public RepositoryDescriptorDAOImpl()
-
-
Method Details
-
setName
Sets the name.- Parameters:
name- the new name
-
setNodeService
Sets the node service.- Parameters:
nodeService- the new node service
-
setContentService
Sets the content service.- Parameters:
contentService- the new content service
-
setSearchService
Sets the search service.- Parameters:
searchService- the new search service
-
setNamespaceService
Sets the namespace service.- Parameters:
namespaceService- the new namespace service
-
setSystemBootstrap
Sets the system bootstrap.- Parameters:
systemBootstrap- the new system bootstrap
-
setTransactionService
Sets the transaction service.- Parameters:
transactionService- the new transaction service
-
getDescriptor
Description copied from interface:DescriptorDAOCreate repository descriptor.- Specified by:
getDescriptorin interfaceDescriptorDAO- Returns:
- descriptor
-
updateDescriptor
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
-