Class BaseEvent
- java.lang.Object
-
- com.evolveum.midpoint.notifications.api.events.BaseEvent
-
- All Implemented Interfaces:
Event,DebugDumpable,ShortDumpable
- Direct Known Subclasses:
AccessCertificationEvent,CustomEvent,ModelEvent,PolicyRuleEvent,ResourceObjectEvent,TaskEvent,WorkflowEvent
public abstract class BaseEvent extends Object implements Event, DebugDumpable, ShortDumpable
- Author:
- mederly
-
-
Field Summary
Fields Modifier and Type Field Description protected EventHandlerTypeadHocHandlerIf needed, we can prescribe the handler that should process this event.-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Constructor Summary
Constructors Constructor Description BaseEvent(LightweightIdentifierGenerator lightweightIdentifierGenerator)BaseEvent(LightweightIdentifierGenerator lightweightIdentifierGenerator, EventHandlerType adHocHandler)
-
Method Summary
-
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, debugDump, debugDumpLazily, debugDumpLazily
-
Methods inherited from interface com.evolveum.midpoint.notifications.api.events.Event
getFocusPassword, isRelatedToItem
-
Methods inherited from interface com.evolveum.midpoint.util.ShortDumpable
shortDump, shortDumpLazily
-
-
-
-
Field Detail
-
adHocHandler
protected final EventHandlerType adHocHandler
If needed, we can prescribe the handler that should process this event. It is recommended only for ad-hoc situations. A better is to define handlers in system configuration.
-
-
Constructor Detail
-
BaseEvent
public BaseEvent(@NotNull LightweightIdentifierGenerator lightweightIdentifierGenerator)
-
BaseEvent
public BaseEvent(@NotNull LightweightIdentifierGenerator lightweightIdentifierGenerator, EventHandlerType adHocHandler)
-
-
Method Detail
-
getId
public LightweightIdentifier getId()
-
isStatusType
public abstract boolean isStatusType(EventStatusType eventStatusType)
- Specified by:
isStatusTypein interfaceEvent
-
isOperationType
public abstract boolean isOperationType(EventOperationType eventOperationType)
- Specified by:
isOperationTypein interfaceEvent
-
isCategoryType
public abstract boolean isCategoryType(EventCategoryType eventCategoryType)
- Specified by:
isCategoryTypein interfaceEvent
-
isAccountRelated
public boolean isAccountRelated()
- Specified by:
isAccountRelatedin interfaceEvent
-
isUserRelated
public boolean isUserRelated()
- Specified by:
isUserRelatedin interfaceEvent
-
isWorkItemRelated
public boolean isWorkItemRelated()
- Specified by:
isWorkItemRelatedin interfaceEvent
-
isWorkflowProcessRelated
public boolean isWorkflowProcessRelated()
- Specified by:
isWorkflowProcessRelatedin interfaceEvent
-
isWorkflowRelated
public boolean isWorkflowRelated()
- Specified by:
isWorkflowRelatedin interfaceEvent
-
isPolicyRuleRelated
public boolean isPolicyRuleRelated()
- Specified by:
isPolicyRuleRelatedin interfaceEvent
-
isCertCampaignStageRelated
public boolean isCertCampaignStageRelated()
-
isAlsoSuccess
public boolean isAlsoSuccess()
- Specified by:
isAlsoSuccessin interfaceEvent
-
isOnlyFailure
public boolean isOnlyFailure()
- Specified by:
isOnlyFailurein interfaceEvent
-
isInProgress
public boolean isInProgress()
- Specified by:
isInProgressin interfaceEvent
-
getRequester
public SimpleObjectRef getRequester()
- Specified by:
getRequesterin interfaceEvent
-
getRequesterOid
public String getRequesterOid()
- Specified by:
getRequesterOidin interfaceEvent
-
setRequester
public void setRequester(SimpleObjectRef requester)
- Specified by:
setRequesterin interfaceEvent
-
getRequestee
public SimpleObjectRef getRequestee()
- Specified by:
getRequesteein interfaceEvent
-
getRequesteeOid
public String getRequesteeOid()
- Specified by:
getRequesteeOidin interfaceEvent
-
getRequesteeObject
public ObjectType getRequesteeObject()
-
getRequesterObject
public ObjectType getRequesterObject()
-
getRequesteeDisplayName
public PolyStringType getRequesteeDisplayName()
-
getRequesterDisplayName
public PolyStringType getRequesterDisplayName()
-
getRequesteeName
public PolyStringType getRequesteeName()
-
getRequesterName
public PolyStringType getRequesterName()
-
setRequestee
public void setRequestee(SimpleObjectRef requestee)
- Specified by:
setRequesteein interfaceEvent
-
createExpressionVariables
public void createExpressionVariables(VariablesMap variables, OperationResult result)
- Specified by:
createExpressionVariablesin interfaceEvent
-
containsItem
public <O extends ObjectType> boolean containsItem(ObjectDelta<O> delta, ItemPath itemPath)
-
containsItem
public boolean containsItem(List<ObjectDelta<FocusType>> deltas, ItemPath itemPath)
-
getChannel
public String getChannel()
- Specified by:
getChannelin interfaceEvent
-
setChannel
public void setChannel(String channel)
-
getNotificationFunctions
public NotificationFunctions getNotificationFunctions()
-
setNotificationFunctions
public void setNotificationFunctions(NotificationFunctions notificationFunctions)
-
getPrismContext
public PrismContext getPrismContext()
-
setPrismContext
public void setPrismContext(PrismContext prismContext)
-
getStatusAsText
public String getStatusAsText()
-
getAdHocHandler
public EventHandlerType getAdHocHandler()
Description copied from interface:EventIf needed, we can prescribe the handler that should process this event. It is recommended only for ad-hoc situations. A better is to define handlers in system configuration.- Specified by:
getAdHocHandlerin interfaceEvent
-
debugDumpCommon
protected void debugDumpCommon(StringBuilder sb, int indent)
-
shortDump
public void shortDump(StringBuilder sb)
Description copied from interface:ShortDumpableShow the content of the object intended for diagnostics. This method is supposed to append a compact, human-readable output in a single line. Unlike toString() method, there is no requirement to identify the actual class or type of the object. It is assumed that the class/type will be obvious from the context in which the output is used.- Specified by:
shortDumpin interfaceShortDumpable- Parameters:
sb- StringBuilder to which to a compact one-line content of the object intended for diagnostics by system administrator should be appended.
-
-