Class AssocTargetTypeIntegrityEvent

java.lang.Object
org.alfresco.repo.node.integrity.AbstractIntegrityEvent
org.alfresco.repo.node.integrity.AssocTargetTypeIntegrityEvent
All Implemented Interfaces:
IntegrityEvent

public class AssocTargetTypeIntegrityEvent extends AbstractIntegrityEvent
Event to check the target type of an association

Checks are ignored if the target node has been deleted.

Author:
Derek Hulley
  • Constructor Details

  • Method Details

    • 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
    • checkTargetType

      protected void checkTargetType(List<IntegrityRecord> eventResults, AssociationDefinition assocDef, NodeRef targetNodeRef, QName targetNodeTypeQName)
      Checks that the target node type is valid for the association.