public abstract class AbstractIntegrityEvent extends Object implements IntegrityEvent
| Modifier and Type | Field and Description |
|---|---|
protected DictionaryService |
dictionaryService |
protected NodeService |
nodeService |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractIntegrityEvent(NodeService nodeService,
DictionaryService dictionaryService,
NodeRef nodeRef,
QName typeQName,
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 AssociationDefinition |
getAssocDef(List<IntegrityRecord> eventResults,
QName assocTypeQName)
Gets the association definition from the dictionary.
|
protected String |
getMultiplicityString(boolean mandatory,
boolean allowMany) |
protected NodeRef |
getNodeRef() |
protected QName |
getNodeType(NodeRef nodeRef)
Gets the node type if the node exists
|
protected QName |
getQName() |
List<StackTraceElement[]> |
getTraces() |
protected QName |
getTypeQName() |
int |
hashCode() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcheckIntegrityprotected final NodeService nodeService
protected final DictionaryService dictionaryService
protected AbstractIntegrityEvent(NodeService nodeService, DictionaryService dictionaryService, NodeRef nodeRef, QName typeQName, QName qname)
public boolean equals(Object obj)
protected QName getNodeType(NodeRef nodeRef)
nodeRef - NodeRefpublic List<StackTraceElement[]> getTraces()
getTraces in interface IntegrityEventpublic void addTrace(StackTraceElement[] trace)
addTrace in interface IntegrityEventprotected NodeRef getNodeRef()
protected QName getTypeQName()
protected QName getQName()
protected AssociationDefinition getAssocDef(List<IntegrityRecord> eventResults, QName assocTypeQName)
eventResults - results to add a violation message toassocTypeQName - the type of the associationprotected String getMultiplicityString(boolean mandatory, boolean allowMany)
Copyright © 2005–2020 Alfresco Software. All rights reserved.