Package org.alfresco.repo.node.integrity
Class AssocTargetRoleIntegrityEvent
- java.lang.Object
-
- org.alfresco.repo.node.integrity.AbstractIntegrityEvent
-
- org.alfresco.repo.node.integrity.AssocTargetRoleIntegrityEvent
-
- All Implemented Interfaces:
IntegrityEvent
public class AssocTargetRoleIntegrityEvent extends AbstractIntegrityEvent
Event to check the association target role name- Author:
- Derek Hulley
-
-
Field Summary
-
Fields inherited from class org.alfresco.repo.node.integrity.AbstractIntegrityEvent
dictionaryService, nodeService
-
-
Constructor Summary
Constructors Constructor Description AssocTargetRoleIntegrityEvent(NodeService nodeService, DictionaryService dictionaryService, NodeRef sourceNodeRef, QName assocTypeQName, QName assocName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckAssocQNameRegex(List<IntegrityRecord> eventResults, ChildAssociationDefinition assocDef, QName assocQName, NodeRef sourceNodeRef)Checks that the association name matches the constraints imposed by the model.voidcheckIntegrity(List<IntegrityRecord> eventResults)Checks integrity pertinent to the event-
Methods inherited from class org.alfresco.repo.node.integrity.AbstractIntegrityEvent
addTrace, equals, getAssocDef, getMultiplicityString, getNodeRef, getNodeType, getQName, getTraces, getTypeQName, hashCode, toString
-
-
-
-
Constructor Detail
-
AssocTargetRoleIntegrityEvent
public AssocTargetRoleIntegrityEvent(NodeService nodeService, DictionaryService dictionaryService, NodeRef sourceNodeRef, QName assocTypeQName, QName assocName)
-
-
Method Detail
-
checkIntegrity
public void checkIntegrity(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
-
checkAssocQNameRegex
protected void checkAssocQNameRegex(List<IntegrityRecord> eventResults, ChildAssociationDefinition assocDef, QName assocQName, NodeRef sourceNodeRef)
Checks that the association name matches the constraints imposed by the model.
-
-