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
Event to check the source type of an association
Checks 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
ConstructorsConstructorDescriptionAssocSourceTypeIntegrityEvent(NodeService nodeService, DictionaryService dictionaryService, NodeRef sourceNodeRef, QName assocTypeQName) -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckIntegrity(List<IntegrityRecord> eventResults) Checks integrity pertinent to the eventprotected voidcheckSourceType(List<IntegrityRecord> eventResults, AssociationDefinition assocDef, NodeRef sourceNodeRef, 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 Details
-
AssocSourceTypeIntegrityEvent
public AssocSourceTypeIntegrityEvent(NodeService nodeService, DictionaryService dictionaryService, NodeRef sourceNodeRef, 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
-
checkSourceType
protected void checkSourceType(List<IntegrityRecord> eventResults, AssociationDefinition assocDef, NodeRef sourceNodeRef, QName sourceNodeTypeQName) Checks that the source node type is valid for the association.
-