public abstract class AbstractIntegrityEvent extends Object implements IntegrityEvent
Modifier and Type | Field and Description |
---|---|
protected org.alfresco.service.cmr.dictionary.DictionaryService |
dictionaryService |
protected org.alfresco.service.cmr.repository.NodeService |
nodeService |
Modifier | Constructor and Description |
---|---|
protected |
AbstractIntegrityEvent(org.alfresco.service.cmr.repository.NodeService nodeService,
org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService,
org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName typeQName,
org.alfresco.service.namespace.QName qname)
Constructor with helper values for storage
|
Modifier and Type | Method and Description |
---|---|
void |
addTrace(StackTraceElement[] trace) |
boolean |
equals(Object obj)
Compares based on the class of this instance and the incoming instance, before
comparing based on all the internal data.
|
protected org.alfresco.service.cmr.dictionary.AssociationDefinition |
getAssocDef(List<IntegrityRecord> eventResults,
org.alfresco.service.namespace.QName assocTypeQName)
Gets the association definition from the dictionary.
|
protected String |
getMultiplicityString(boolean mandatory,
boolean allowMany) |
protected org.alfresco.service.cmr.repository.NodeRef |
getNodeRef() |
protected org.alfresco.service.namespace.QName |
getNodeType(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Gets the node type if the node exists
|
protected org.alfresco.service.namespace.QName |
getQName() |
List<StackTraceElement[]> |
getTraces() |
protected org.alfresco.service.namespace.QName |
getTypeQName() |
int |
hashCode() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
checkIntegrity
protected final org.alfresco.service.cmr.repository.NodeService nodeService
protected final org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService
protected AbstractIntegrityEvent(org.alfresco.service.cmr.repository.NodeService nodeService, org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService, org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName typeQName, org.alfresco.service.namespace.QName qname)
public boolean equals(Object obj)
protected org.alfresco.service.namespace.QName getNodeType(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef
- NodeRefpublic List<StackTraceElement[]> getTraces()
getTraces
in interface IntegrityEvent
public void addTrace(StackTraceElement[] trace)
addTrace
in interface IntegrityEvent
protected org.alfresco.service.cmr.repository.NodeRef getNodeRef()
protected org.alfresco.service.namespace.QName getTypeQName()
protected org.alfresco.service.namespace.QName getQName()
protected org.alfresco.service.cmr.dictionary.AssociationDefinition getAssocDef(List<IntegrityRecord> eventResults, org.alfresco.service.namespace.QName assocTypeQName)
eventResults
- results to add a violation message toassocTypeQName
- the type of the associationprotected String getMultiplicityString(boolean mandatory, boolean allowMany)
Copyright © 2005–2017 Alfresco Software. All rights reserved.