Class ModelEvent
- java.lang.Object
-
- com.evolveum.midpoint.notifications.api.events.BaseEvent
-
- com.evolveum.midpoint.notifications.api.events.ModelEvent
-
- All Implemented Interfaces:
Event
,DebugDumpable
,ShortDumpable
public class ModelEvent extends BaseEvent
- Author:
- mederly
-
-
Field Summary
-
Fields inherited from class com.evolveum.midpoint.notifications.api.events.BaseEvent
adHocHandler
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Constructor Summary
Constructors Constructor Description ModelEvent(LightweightIdentifierGenerator lightweightIdentifierGenerator, ModelContext modelContext)
-
Method Summary
-
Methods inherited from class com.evolveum.midpoint.notifications.api.events.BaseEvent
containsItem, containsItem, createExpressionVariables, debugDumpCommon, getAdHocHandler, getChannel, getId, getNotificationFunctions, getPrismContext, getRequestee, getRequesteeDisplayName, getRequesteeName, getRequesteeObject, getRequesteeOid, getRequester, getRequesterDisplayName, getRequesterName, getRequesterObject, getRequesterOid, getStatusAsText, isAccountRelated, isAdd, isAlsoSuccess, isCertCampaignStageRelated, isDelete, isFailure, isInProgress, isModify, isOnlyFailure, isPolicyRuleRelated, isSuccess, isWorkflowProcessRelated, isWorkflowRelated, isWorkItemRelated, setChannel, setNotificationFunctions, setPrismContext, setRequestee, setRequester, shortDump, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
-
Methods inherited from interface com.evolveum.midpoint.util.ShortDumpable
shortDump, shortDumpLazily
-
-
-
-
Constructor Detail
-
ModelEvent
public ModelEvent(LightweightIdentifierGenerator lightweightIdentifierGenerator, ModelContext modelContext)
-
-
Method Detail
-
getModelContext
public ModelContext getModelContext()
-
getFocusContext
public ModelElementContext<?> getFocusContext()
-
getProjectionContexts
public Collection<? extends ModelProjectionContext> getProjectionContexts()
-
getFocusExecutedDeltas
public List<? extends ObjectDeltaOperation> getFocusExecutedDeltas()
-
getAllExecutedDeltas
public List<ObjectDeltaOperation> getAllExecutedDeltas()
-
isStatusType
public boolean isStatusType(EventStatusType eventStatusType)
- Specified by:
isStatusType
in interfaceEvent
- Specified by:
isStatusType
in classBaseEvent
-
getChangeType
public ChangeType getChangeType()
-
isOperationType
public boolean isOperationType(EventOperationType eventOperationType)
- Specified by:
isOperationType
in interfaceEvent
- Specified by:
isOperationType
in classBaseEvent
-
isCategoryType
public boolean isCategoryType(EventCategoryType eventCategoryType)
- Specified by:
isCategoryType
in interfaceEvent
- Specified by:
isCategoryType
in classBaseEvent
-
getFocusPrimaryDelta
public ObjectDelta<?> getFocusPrimaryDelta()
-
getFocusSecondaryDelta
public ObjectDelta<?> getFocusSecondaryDelta()
-
getFocusDeltas
public List<ObjectDelta<FocusType>> getFocusDeltas()
-
getSummarizedFocusDeltas
public ObjectDelta<? extends FocusType> getSummarizedFocusDeltas() throws SchemaException
- Throws:
SchemaException
-
hasFocusOfType
public boolean hasFocusOfType(QName focusType)
-
isRelatedToItem
public boolean isRelatedToItem(ItemPath itemPath)
Description copied from interface:Event
Checks if the event is related to an item with a given path. The meaning of the result depends on a kind of event (focal, resource object, workflow) and on operation (add, modify, delete). Namely, this method is currently defined for ADD and MODIFY (not for DELETE) operations, for focal and resource objects events (not for workflow ones). For MODIFY it checks whether an item with a given path is touched. For ADD it checks whether there is a value for an item with a given path in the object created. For unsupported events the method returns false. Paths are compared without taking ID segments into account. EXPERIMENTAL; does not always work (mainly for values being deleted)- Returns:
-
isUserRelated
public boolean isUserRelated()
- Specified by:
isUserRelated
in interfaceEvent
- Overrides:
isUserRelated
in classBaseEvent
-
getFocusTypeName
public String getFocusTypeName()
-
getContentAsFormattedList
public String getContentAsFormattedList()
-
getContentAsFormattedList
public String getContentAsFormattedList(boolean showSynchronizationItems, boolean showAuxiliaryAttributes)
-
getFocusPassword
public String getFocusPassword()
Description copied from interface:Event
Returns plaintext focus password value, if known. Beware: might not always work correctly: 1. If the change execution was only partially successful, the value returned might or might not be stored in the repo 2. If the password was changed to null, the 'null' value is returned. So the caller cannot distinguish it from "no change" situation. A new method for this would be needed.
-
debugDump
public String debugDump(int indent)
-
-