Class AssocSourceTypeIntegrityEvent

  • All Implemented Interfaces:
    IntegrityEvent

    public class AssocSourceTypeIntegrityEvent
    extends AbstractIntegrityEvent
    Event to check the source type of an association

    Checks are ignored if the source node has been deleted.

    Author:
    Derek Hulley
    • Constructor Detail

      • AssocSourceTypeIntegrityEvent

        public AssocSourceTypeIntegrityEvent​(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)
    • Method Detail

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

        protected void checkSourceType​(java.util.List<IntegrityRecord> eventResults,
                                       org.alfresco.service.cmr.dictionary.AssociationDefinition assocDef,
                                       org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
                                       org.alfresco.service.namespace.QName sourceNodeTypeQName)
        Checks that the source node type is valid for the association.