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
  • Constructor Details

    • AssocSourceMultiplicityIntegrityEvent

      public AssocSourceMultiplicityIntegrityEvent(NodeService nodeService, DictionaryService dictionaryService, NodeRef targetNodeRef, QName assocTypeQName, boolean isDelete)
  • Method Details

    • equals

      public boolean equals(Object obj)
      Description copied from class: AbstractIntegrityEvent
      Compares 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:
      equals in class AbstractIntegrityEvent
    • checkIntegrity

      public void checkIntegrity(List<IntegrityRecord> eventResults)
      Description copied from interface: IntegrityEvent
      Checks integrity pertinent to the event
      Parameters:
      eventResults - the list of event results that can be added to
    • checkSourceMultiplicity

      protected void checkSourceMultiplicity(List<IntegrityRecord> eventResults, AssociationDefinition assocDef, QName assocTypeQName, NodeRef targetNodeRef)
      Checks that the source multiplicity has not been violated for the target of the association.