org.alfresco.repo.node.integrity
Class AssocSourceTypeIntegrityEvent

java.lang.Object
  extended by org.alfresco.repo.node.integrity.AbstractIntegrityEvent
      extended by org.alfresco.repo.node.integrity.AssocSourceTypeIntegrityEvent
All Implemented Interfaces:
IntegrityEvent

public class AssocSourceTypeIntegrityEvent
extends AbstractIntegrityEvent

Event to check the source type of an association

Checks are ignored if the source node has been deleted.


Field Summary
 
Fields inherited from class org.alfresco.repo.node.integrity.AbstractIntegrityEvent
dictionaryService, nodeService
 
Constructor Summary
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
 void checkIntegrity(java.util.List eventResults)
          Checks integrity pertinent to the event
protected  void checkSourceType(java.util.List 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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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 eventResults)
Description copied from interface: IntegrityEvent
Checks integrity pertinent to the event

Parameters:
eventResults - the list of event results that can be added to

checkSourceType

protected void checkSourceType(java.util.List 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.



Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.