Package org.alfresco.repo.node.integrity
Class AssocSourceMultiplicityIntegrityEvent
- java.lang.Object
-
- org.alfresco.repo.node.integrity.AbstractIntegrityEvent
-
- org.alfresco.repo.node.integrity.AssocSourceMultiplicityIntegrityEvent
-
- All Implemented Interfaces:
IntegrityEvent
public class AssocSourceMultiplicityIntegrityEvent extends AbstractIntegrityEvent
Event raised to check the source 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
Constructors Constructor Description AssocSourceMultiplicityIntegrityEvent(org.alfresco.service.cmr.repository.NodeService nodeService, org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService, org.alfresco.service.cmr.repository.NodeRef targetNodeRef, org.alfresco.service.namespace.QName assocTypeQName, boolean isDelete)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckIntegrity(java.util.List<IntegrityRecord> eventResults)Checks integrity pertinent to the eventprotected voidcheckSourceMultiplicity(java.util.List<IntegrityRecord> eventResults, org.alfresco.service.cmr.dictionary.AssociationDefinition assocDef, org.alfresco.service.namespace.QName assocTypeQName, org.alfresco.service.cmr.repository.NodeRef targetNodeRef)Checks that the source multiplicity has not been violated for the target of the association.booleanequals(java.lang.Object obj)Compares 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 Detail
-
AssocSourceMultiplicityIntegrityEvent
public AssocSourceMultiplicityIntegrityEvent(org.alfresco.service.cmr.repository.NodeService nodeService, org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService, org.alfresco.service.cmr.repository.NodeRef targetNodeRef, org.alfresco.service.namespace.QName assocTypeQName, boolean isDelete)
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object obj)
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
public void checkIntegrity(java.util.List<IntegrityRecord> eventResults)
Description copied from interface:IntegrityEventChecks integrity pertinent to the event- Parameters:
eventResults- the list of event results that can be added to
-
checkSourceMultiplicity
protected void checkSourceMultiplicity(java.util.List<IntegrityRecord> eventResults, org.alfresco.service.cmr.dictionary.AssociationDefinition assocDef, org.alfresco.service.namespace.QName assocTypeQName, org.alfresco.service.cmr.repository.NodeRef targetNodeRef)
Checks that the source multiplicity has not been violated for the target of the association.
-
-