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
Event to check the target type of an association
Checks 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
ConstructorsConstructorDescriptionAssocTargetTypeIntegrityEvent(NodeService nodeService, DictionaryService dictionaryService, NodeRef targetNodeRef, QName assocTypeQName) -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckIntegrity(List<IntegrityRecord> eventResults) Checks integrity pertinent to the eventprotected voidcheckTargetType(List<IntegrityRecord> eventResults, AssociationDefinition assocDef, NodeRef targetNodeRef, 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 Details
-
AssocTargetTypeIntegrityEvent
public AssocTargetTypeIntegrityEvent(NodeService nodeService, DictionaryService dictionaryService, NodeRef targetNodeRef, QName assocTypeQName)
-
-
Method Details
-
checkIntegrity
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(List<IntegrityRecord> eventResults, AssociationDefinition assocDef, NodeRef targetNodeRef, QName targetNodeTypeQName) Checks that the target node type is valid for the association.
-