Package org.alfresco.repo.node.integrity
Class AssocTargetMultiplicityIntegrityEvent
java.lang.Object
org.alfresco.repo.node.integrity.AbstractIntegrityEvent
org.alfresco.repo.node.integrity.AssocTargetMultiplicityIntegrityEvent
- All Implemented Interfaces:
IntegrityEvent
Event raised to check the target multiplicity for an association type from the given node.
Checks are ignored is the target node doesn't exist.
- Author:
- Derek Hulley
-
Field Summary
Fields inherited from class org.alfresco.repo.node.integrity.AbstractIntegrityEvent
dictionaryService, nodeService -
Constructor Summary
ConstructorsConstructorDescriptionAssocTargetMultiplicityIntegrityEvent(NodeService nodeService, DictionaryService dictionaryService, NodeRef sourceNodeRef, QName assocTypeQName, boolean isDelete) -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckIntegrity(List<IntegrityRecord> eventResults) Checks integrity pertinent to the eventprotected voidcheckTargetMultiplicity(List<IntegrityRecord> eventResults, AssociationDefinition assocDef, QName assocTypeQName, NodeRef sourceNodeRef) Checks that the target multiplicity has not been violated for the source of the association.booleanCompares based on the class of this instance and the incoming instance, before comparing based on all the internal data.Methods inherited from class org.alfresco.repo.node.integrity.AbstractIntegrityEvent
addTrace, getAssocDef, getMultiplicityString, getNodeRef, getNodeType, getQName, getTraces, getTypeQName, hashCode, toString
-
Constructor Details
-
AssocTargetMultiplicityIntegrityEvent
public AssocTargetMultiplicityIntegrityEvent(NodeService nodeService, DictionaryService dictionaryService, NodeRef sourceNodeRef, QName assocTypeQName, boolean isDelete)
-
-
Method Details
-
equals
Description copied from class:AbstractIntegrityEventCompares based on the class of this instance and the incoming instance, before comparing based on all the internal data. If derived classes store additional data for their functionality, then they should override this.- Overrides:
equalsin classAbstractIntegrityEvent
-
checkIntegrity
Description copied from interface:IntegrityEventChecks integrity pertinent to the event- Parameters:
eventResults- the list of event results that can be added to
-
checkTargetMultiplicity
protected void checkTargetMultiplicity(List<IntegrityRecord> eventResults, AssociationDefinition assocDef, QName assocTypeQName, NodeRef sourceNodeRef) Checks that the target multiplicity has not been violated for the source of the association.
-