Package org.alfresco.repo.node.integrity
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 associationChecks are ignored if the target 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 AssocTargetTypeIntegrityEvent(org.alfresco.service.cmr.repository.NodeService nodeService, org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService, org.alfresco.service.cmr.repository.NodeRef targetNodeRef, 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 voidcheckTargetType(java.util.List<IntegrityRecord> eventResults, org.alfresco.service.cmr.dictionary.AssociationDefinition assocDef, org.alfresco.service.cmr.repository.NodeRef targetNodeRef, org.alfresco.service.namespace.QName targetNodeTypeQName)Checks that the target 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
-
AssocTargetTypeIntegrityEvent
public AssocTargetTypeIntegrityEvent(org.alfresco.service.cmr.repository.NodeService nodeService, org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService, org.alfresco.service.cmr.repository.NodeRef targetNodeRef, 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
-
checkTargetType
protected void checkTargetType(java.util.List<IntegrityRecord> eventResults, org.alfresco.service.cmr.dictionary.AssociationDefinition assocDef, org.alfresco.service.cmr.repository.NodeRef targetNodeRef, org.alfresco.service.namespace.QName targetNodeTypeQName)
Checks that the target node type is valid for the association.
-
-