Package org.alfresco.repo.node.integrity
Class AssocSourceTypeIntegrityEvent
- java.lang.Object
-
- org.alfresco.repo.node.integrity.AbstractIntegrityEvent
-
- org.alfresco.repo.node.integrity.AssocSourceTypeIntegrityEvent
-
- All Implemented Interfaces:
IntegrityEvent
public class AssocSourceTypeIntegrityEvent extends AbstractIntegrityEvent
Event to check the source type of an associationChecks are ignored if the source node has been deleted.
- Author:
- Derek Hulley
-
-
Field Summary
-
Fields inherited from class org.alfresco.repo.node.integrity.AbstractIntegrityEvent
dictionaryService, nodeService
-
-
Constructor Summary
Constructors Constructor Description 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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckIntegrity(java.util.List<IntegrityRecord> eventResults)Checks integrity pertinent to the eventprotected voidcheckSourceType(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.-
Methods inherited from class org.alfresco.repo.node.integrity.AbstractIntegrityEvent
addTrace, equals, getAssocDef, getMultiplicityString, getNodeRef, getNodeType, getQName, getTraces, getTypeQName, hashCode, toString
-
-
-
-
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:IntegrityEventChecks 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.
-
-