Package org.alfresco.repo.admin
Class ConfigurationChecker
- java.lang.Object
-
- org.springframework.extensions.surf.util.AbstractLifecycleBean
-
- org.alfresco.repo.admin.ConfigurationChecker
-
- All Implemented Interfaces:
java.util.EventListener,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationListener
public class ConfigurationChecker extends org.springframework.extensions.surf.util.AbstractLifecycleBeanComponent to perform a bootstrap check of the alignment of the database and content store.The algorithm is:
- Checks that an absolute path is used
- Ensures that the system descriptor content is available (created at bootstrap)
- Author:
- Derek Hulley
-
-
Constructor Summary
Constructors Constructor Description ConfigurationChecker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.alfresco.service.cmr.repository.NodeRefgetSystemDescriptor()protected voidonBootstrap(org.springframework.context.ApplicationEvent event)protected voidonShutdown(org.springframework.context.ApplicationEvent event)voidsetContentService(ContentService contentService)voidsetDirRoot(java.lang.String dirRoot)voidsetNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)voidsetNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)voidsetSearchService(org.alfresco.service.cmr.search.SearchService searchService)voidsetStrict(boolean strict)This flag controls the behaviour of the component in the event of problems being found.voidsetSystemBootstrap(ImporterBootstrap systemBootstrap)voidsetTransactionService(TransactionService transactionService)java.lang.StringtoString()
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
setStrict
public void setStrict(boolean strict)
This flag controls the behaviour of the component in the event of problems being found. Generally, the system should be strict, but this can be changed if indexes are going to be recovered, or if missing content is acceptable.- Parameters:
strict-trueto prevent system startup if problems are found, otherwisefalseto allow the system to startup regardless.
-
setDirRoot
public void setDirRoot(java.lang.String dirRoot)
-
setSystemBootstrap
public void setSystemBootstrap(ImporterBootstrap systemBootstrap)
-
setTransactionService
public void setTransactionService(TransactionService transactionService)
-
setNamespaceService
public void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
-
setNodeService
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
-
setSearchService
public void setSearchService(org.alfresco.service.cmr.search.SearchService searchService)
-
setContentService
public void setContentService(ContentService contentService)
-
onBootstrap
protected void onBootstrap(org.springframework.context.ApplicationEvent event)
- Specified by:
onBootstrapin classorg.springframework.extensions.surf.util.AbstractLifecycleBean
-
getSystemDescriptor
public org.alfresco.service.cmr.repository.NodeRef getSystemDescriptor()
- Returns:
- Returns the system descriptor node or null
-
onShutdown
protected void onShutdown(org.springframework.context.ApplicationEvent event)
- Specified by:
onShutdownin classorg.springframework.extensions.surf.util.AbstractLifecycleBean
-
-