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 EventHandlerType
adHocHandler
If 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:
isStatusType
in interfaceEvent
-
isOperationType
public abstract boolean isOperationType(EventOperationType eventOperationType)
- Specified by:
isOperationType
in interfaceEvent
-
isCategoryType
public abstract boolean isCategoryType(EventCategoryType eventCategoryType)
- Specified by:
isCategoryType
in interfaceEvent
-
isAccountRelated
public boolean isAccountRelated()
- Specified by:
isAccountRelated
in interfaceEvent
-
isUserRelated
public boolean isUserRelated()
- Specified by:
isUserRelated
in interfaceEvent
-
isWorkItemRelated
public boolean isWorkItemRelated()
- Specified by:
isWorkItemRelated
in interfaceEvent
-
isWorkflowProcessRelated
public boolean isWorkflowProcessRelated()
- Specified by:
isWorkflowProcessRelated
in interfaceEvent
-
isWorkflowRelated
public boolean isWorkflowRelated()
- Specified by:
isWorkflowRelated
in interfaceEvent
-
isPolicyRuleRelated
public boolean isPolicyRuleRelated()
- Specified by:
isPolicyRuleRelated
in interfaceEvent
-
isCertCampaignStageRelated
public boolean isCertCampaignStageRelated()
-
isAlsoSuccess
public boolean isAlsoSuccess()
- Specified by:
isAlsoSuccess
in interfaceEvent
-
isOnlyFailure
public boolean isOnlyFailure()
- Specified by:
isOnlyFailure
in interfaceEvent
-
isInProgress
public boolean isInProgress()
- Specified by:
isInProgress
in interfaceEvent
-
getRequester
public SimpleObjectRef getRequester()
- Specified by:
getRequester
in interfaceEvent
-
getRequesterOid
public String getRequesterOid()
- Specified by:
getRequesterOid
in interfaceEvent
-
setRequester
public void setRequester(SimpleObjectRef requester)
- Specified by:
setRequester
in interfaceEvent
-
getRequestee
public SimpleObjectRef getRequestee()
- Specified by:
getRequestee
in interfaceEvent
-
getRequesteeOid
public String getRequesteeOid()
- Specified by:
getRequesteeOid
in 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:
setRequestee
in interfaceEvent
-
createExpressionVariables
public void createExpressionVariables(VariablesMap variables, OperationResult result)
- Specified by:
createExpressionVariables
in 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:
getChannel
in 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:Event
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.- Specified by:
getAdHocHandler
in interfaceEvent
-
debugDumpCommon
protected void debugDumpCommon(StringBuilder sb, int indent)
-
shortDump
public void shortDump(StringBuilder sb)
Description copied from interface:ShortDumpable
Show 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:
shortDump
in interfaceShortDumpable
- Parameters:
sb
- StringBuilder to which to a compact one-line content of the object intended for diagnostics by system administrator should be appended.
-
-