Package fr.becpg.repo.node.integrity
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
FieldsModifier and TypeFieldDescriptionprivate AttributeExtractorServiceprivate EntityDictionaryServiceprivate EntityListDAOprivate static final Stringprivate static final Stringprivate org.alfresco.service.cmr.repository.NodeServicestatic final PatternConstanttargetNodeRefRegexFields inherited from interface org.alfresco.repo.node.NodeServicePolicies.OnAddAspectPolicy
QNAMEFields inherited from interface org.alfresco.repo.node.NodeServicePolicies.OnCreateAssociationPolicy
QNAMEFields inherited from interface org.alfresco.repo.node.NodeServicePolicies.OnCreateChildAssociationPolicy
QNAMEFields inherited from interface org.alfresco.repo.node.NodeServicePolicies.OnCreateNodePolicy
QNAMEFields inherited from interface org.alfresco.repo.node.NodeServicePolicies.OnDeleteAssociationPolicy
QNAMEFields inherited from interface org.alfresco.repo.node.NodeServicePolicies.OnDeleteChildAssociationPolicy
QNAMEFields inherited from interface org.alfresco.repo.node.NodeServicePolicies.OnDeleteNodePolicy
QNAMEFields inherited from interface org.alfresco.repo.node.NodeServicePolicies.OnRemoveAspectPolicy
QNAMEFields inherited from interface org.alfresco.repo.node.NodeServicePolicies.OnUpdatePropertiesPolicy
ARG_0, ARG_1, ARG_2, QNAMEFields inherited from interface org.alfresco.repo.policy.Policy
NAMESPACE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidRuns several types of checks, querying specifically for events that will necessitate each type of test.private StringvoidsetAttributeExtractorService(AttributeExtractorService attributeExtractorService) Setter for the fieldattributeExtractorService.voidsetEntityDictionaryService(EntityDictionaryService entityDictionaryService) Setter for the fieldentityDictionaryService.voidsetEntityListDAO(EntityListDAO entityListDAO) Setter for the fieldentityListDAO.voidsetNodeService(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, setWarnInTransactionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.alfresco.util.transaction.TransactionListener
getCustomOrder
-
Field Details
-
MSG_INTEGRITY_MULTIPLICITY
- See Also:
-
MSG_INTEGRITY_CONSTRAINT
- See Also:
-
targetNodeRefRegex
ConstanttargetNodeRefRegex -
entityDictionaryService
-
attributeExtractorService
-
entityListDAO
-
nodeService
private org.alfresco.service.cmr.repository.NodeService nodeService
-
-
Constructor Details
-
BeCPGIntegrityChecker
public BeCPGIntegrityChecker()
-
-
Method Details
-
setEntityDictionaryService
Setter for the field
entityDictionaryService.- Parameters:
entityDictionaryService- aEntityDictionaryServiceobject.
-
setAttributeExtractorService
Setter for the field
attributeExtractorService.- Parameters:
attributeExtractorService- aAttributeExtractorServiceobject.
-
setEntityListDAO
Setter for the field
entityListDAO.- Parameters:
entityListDAO- aEntityListDAOobject.
-
setNodeService
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) - Overrides:
setNodeServicein classorg.alfresco.repo.node.integrity.IntegrityChecker
-
checkIntegrity
public void checkIntegrity() throws org.alfresco.repo.node.integrity.IntegrityExceptionRuns 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:
checkIntegrityin classorg.alfresco.repo.node.integrity.IntegrityChecker- Throws:
org.alfresco.repo.node.integrity.IntegrityException
-
decorate
-