Class BeCPGIntegrityChecker

java.lang.Object
org.alfresco.repo.node.integrity.IntegrityChecker
fr.becpg.repo.node.integrity.BeCPGIntegrityChecker
All Implemented Interfaces:
org.alfresco.repo.node.NodeServicePolicies.OnAddAspectPolicy, org.alfresco.repo.node.NodeServicePolicies.OnCreateAssociationPolicy, org.alfresco.repo.node.NodeServicePolicies.OnCreateChildAssociationPolicy, org.alfresco.repo.node.NodeServicePolicies.OnCreateNodePolicy, org.alfresco.repo.node.NodeServicePolicies.OnDeleteAssociationPolicy, org.alfresco.repo.node.NodeServicePolicies.OnDeleteChildAssociationPolicy, org.alfresco.repo.node.NodeServicePolicies.OnDeleteNodePolicy, org.alfresco.repo.node.NodeServicePolicies.OnRemoveAspectPolicy, org.alfresco.repo.node.NodeServicePolicies.OnUpdatePropertiesPolicy, org.alfresco.repo.policy.AssociationPolicy, org.alfresco.repo.policy.ClassPolicy, org.alfresco.repo.policy.Policy, org.alfresco.util.transaction.TransactionListener

public class BeCPGIntegrityChecker extends org.alfresco.repo.node.integrity.IntegrityChecker

BeCPGIntegrityChecker class.

Version:
$Id: $Id
Author:
matthieu
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.alfresco.repo.policy.Policy

    org.alfresco.repo.policy.Policy.Arg
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
     
     
    private static final String
     
    private static final String
     
    private org.alfresco.service.cmr.repository.NodeService
     
    static final Pattern
    Constant targetNodeRefRegex

    Fields inherited from interface org.alfresco.repo.node.NodeServicePolicies.OnAddAspectPolicy

    QNAME

    Fields inherited from interface org.alfresco.repo.node.NodeServicePolicies.OnCreateAssociationPolicy

    QNAME

    Fields inherited from interface org.alfresco.repo.node.NodeServicePolicies.OnCreateChildAssociationPolicy

    QNAME

    Fields inherited from interface org.alfresco.repo.node.NodeServicePolicies.OnCreateNodePolicy

    QNAME

    Fields inherited from interface org.alfresco.repo.node.NodeServicePolicies.OnDeleteAssociationPolicy

    QNAME

    Fields inherited from interface org.alfresco.repo.node.NodeServicePolicies.OnDeleteChildAssociationPolicy

    QNAME

    Fields inherited from interface org.alfresco.repo.node.NodeServicePolicies.OnDeleteNodePolicy

    QNAME

    Fields inherited from interface org.alfresco.repo.node.NodeServicePolicies.OnRemoveAspectPolicy

    QNAME

    Fields inherited from interface org.alfresco.repo.node.NodeServicePolicies.OnUpdatePropertiesPolicy

    ARG_0, ARG_1, ARG_2, QNAME

    Fields inherited from interface org.alfresco.repo.policy.Policy

    NAMESPACE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Runs several types of checks, querying specifically for events that will necessitate each type of test.
    private String
    decorate(String message)
     
    void
    Setter for the field attributeExtractorService.
    void
    Setter for the field entityDictionaryService.
    void
    Setter for the field entityListDAO.
    void
    setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)

    Methods inherited from class org.alfresco.repo.node.integrity.IntegrityChecker

    afterCommit, afterRollback, beforeCommit, beforeCompletion, init, isWarnInTransaction, onAddAspect, onCreateAssociation, onCreateChildAssociation, onCreateNode, onDeleteAssociation, onDeleteChildAssociation, onDeleteNode, onRemoveAspect, onUpdateProperties, setDictionaryService, setEnabled, setFailOnViolation, setMaxErrorsPerTransaction, setPolicyComponent, setStoresToIgnore, setTenantService, setTraceOn, setWarnInTransaction

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.alfresco.util.transaction.TransactionListener

    getCustomOrder
  • Field Details

    • MSG_INTEGRITY_MULTIPLICITY

      private static final String MSG_INTEGRITY_MULTIPLICITY
      See Also:
    • MSG_INTEGRITY_CONSTRAINT

      private static final String MSG_INTEGRITY_CONSTRAINT
      See Also:
    • targetNodeRefRegex

      public static final Pattern targetNodeRefRegex
      Constant targetNodeRefRegex
    • entityDictionaryService

      private EntityDictionaryService entityDictionaryService
    • attributeExtractorService

      private AttributeExtractorService attributeExtractorService
    • entityListDAO

      private EntityListDAO entityListDAO
    • nodeService

      private org.alfresco.service.cmr.repository.NodeService nodeService
  • Constructor Details

    • BeCPGIntegrityChecker

      public BeCPGIntegrityChecker()
  • Method Details

    • setEntityDictionaryService

      public void setEntityDictionaryService(EntityDictionaryService entityDictionaryService)

      Setter for the field entityDictionaryService.

      Parameters:
      entityDictionaryService - a EntityDictionaryService object.
    • setAttributeExtractorService

      public void setAttributeExtractorService(AttributeExtractorService attributeExtractorService)

      Setter for the field attributeExtractorService.

      Parameters:
      attributeExtractorService - a AttributeExtractorService object.
    • setEntityListDAO

      public void setEntityListDAO(EntityListDAO entityListDAO)

      Setter for the field entityListDAO.

      Parameters:
      entityListDAO - a EntityListDAO object.
    • setNodeService

      public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
      Overrides:
      setNodeService in class org.alfresco.repo.node.integrity.IntegrityChecker
    • checkIntegrity

      public void checkIntegrity() throws org.alfresco.repo.node.integrity.IntegrityException
      Runs several types of checks, querying specifically for events that will necessitate each type of test.

      The interface contracts also requires that all events for the transaction get cleaned up.

      Overrides:
      checkIntegrity in class org.alfresco.repo.node.integrity.IntegrityChecker
      Throws:
      org.alfresco.repo.node.integrity.IntegrityException
    • decorate

      private String decorate(String message)