public class AssocTargetMultiplicityIntegrityEvent extends AbstractIntegrityEvent
Checks are ignored is the target node doesn't exist.
dictionaryService, nodeService
Constructor and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
void |
checkIntegrity(List<IntegrityRecord> eventResults)
Checks integrity pertinent to the event
|
protected void |
checkTargetMultiplicity(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.
|
boolean |
equals(Object obj)
Compares based on the class of this instance and the incoming instance, before
comparing based on all the internal data.
|
addTrace, getAssocDef, getMultiplicityString, getNodeRef, getNodeType, getQName, getTraces, getTypeQName, hashCode, toString
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)
public boolean equals(Object obj)
AbstractIntegrityEvent
equals
in class AbstractIntegrityEvent
public void checkIntegrity(List<IntegrityRecord> eventResults)
IntegrityEvent
eventResults
- the list of event results that can be added toprotected void checkTargetMultiplicity(List<IntegrityRecord> eventResults, org.alfresco.service.cmr.dictionary.AssociationDefinition assocDef, org.alfresco.service.namespace.QName assocTypeQName, org.alfresco.service.cmr.repository.NodeRef sourceNodeRef)
Copyright © 2005–2017 Alfresco Software. All rights reserved.