Class AssocTargetMultiplicityIntegrityEvent

  • All Implemented Interfaces:
    IntegrityEvent

    public class AssocTargetMultiplicityIntegrityEvent
    extends AbstractIntegrityEvent
    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
    • Constructor Detail

      • AssocTargetMultiplicityIntegrityEvent

        public AssocTargetMultiplicityIntegrityEvent​(org.alfresco.service.cmr.repository.NodeService nodeService,
                                                     org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService,
                                                     org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
                                                     org.alfresco.service.namespace.QName assocTypeQName,
                                                     boolean isDelete)
    • Method Detail

      • equals

        public boolean equals​(java.lang.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​(java.util.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
      • checkTargetMultiplicity

        protected void checkTargetMultiplicity​(java.util.List<IntegrityRecord> eventResults,
                                               org.alfresco.service.cmr.dictionary.AssociationDefinition assocDef,
                                               org.alfresco.service.namespace.QName assocTypeQName,
                                               org.alfresco.service.cmr.repository.NodeRef sourceNodeRef)
        Checks that the target multiplicity has not been violated for the source of the association.