Class ConfigurationChecker

java.lang.Object
org.springframework.extensions.surf.util.AbstractLifecycleBean
org.alfresco.repo.admin.ConfigurationChecker
All Implemented Interfaces:
EventListener, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener

public class ConfigurationChecker extends org.springframework.extensions.surf.util.AbstractLifecycleBean
Component 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 Details

    • ConfigurationChecker

      public ConfigurationChecker()
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class 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 - true to prevent system startup if problems are found, otherwise false to allow the system to startup regardless.
    • setDirRoot

      public void setDirRoot(String dirRoot)
    • setSystemBootstrap

      public void setSystemBootstrap(ImporterBootstrap systemBootstrap)
    • setTransactionService

      public void setTransactionService(TransactionService transactionService)
    • setNamespaceService

      public void setNamespaceService(NamespaceService namespaceService)
    • setNodeService

      public void setNodeService(NodeService nodeService)
    • setSearchService

      public void setSearchService(SearchService searchService)
    • setContentService

      public void setContentService(ContentService contentService)
    • onBootstrap

      protected void onBootstrap(org.springframework.context.ApplicationEvent event)
      Specified by:
      onBootstrap in class org.springframework.extensions.surf.util.AbstractLifecycleBean
    • getSystemDescriptor

      public NodeRef getSystemDescriptor()
      Returns:
      Returns the system descriptor node or null
    • onShutdown

      protected void onShutdown(org.springframework.context.ApplicationEvent event)
      Specified by:
      onShutdown in class org.springframework.extensions.surf.util.AbstractLifecycleBean