Class FlowableIdmEventBuilder
java.lang.Object
com.flowable.idm.engine.delegate.event.impl.FlowableIdmEventBuilder
public class FlowableIdmEventBuilder
extends java.lang.Object
Builder class used to create
FlowableEvent implementations.- Author:
- Tijs Rademakers
-
Method Summary
Modifier and Type Method Description static org.flowable.common.engine.api.delegate.event.FlowableEntityEventcreateEntityEvent(org.flowable.idm.api.event.FlowableIdmEventType type, java.lang.Object entity)static org.flowable.common.engine.api.delegate.event.FlowableEventcreateGlobalEvent(org.flowable.idm.api.event.FlowableIdmEventType type)static org.flowable.idm.api.event.FlowableIdmMembershipEventcreateMembershipEvent(org.flowable.idm.api.event.FlowableIdmEventType type, java.lang.String groupId, java.lang.String userId)static FlowableIdmIdentityInfoSetEventcreatePlatformIdentityInfoSetEvent(PlatformIdentityInfo platformIdentityInfo)static FlowableUserPresenceChangeEventcreateUserPresenceChangeEvent(java.lang.String userId, java.lang.String presence)
-
Method Details
-
createGlobalEvent
public static org.flowable.common.engine.api.delegate.event.FlowableEvent createGlobalEvent(org.flowable.idm.api.event.FlowableIdmEventType type)- Parameters:
type- type of event- Returns:
- an
FlowableEventthat doesn't have it's execution context-fields filled, as the event is a global event, independent of any running execution.
-
createEntityEvent
public static org.flowable.common.engine.api.delegate.event.FlowableEntityEvent createEntityEvent(org.flowable.idm.api.event.FlowableIdmEventType type, java.lang.Object entity)- Parameters:
type- type of evententity- the entity this event targets- Returns:
- an
FlowableEntityEvent. In case an execution context is active, the execution related event fields will be populated. If not, execution details will be retrieved from theObjectif possible.
-
createMembershipEvent
public static org.flowable.idm.api.event.FlowableIdmMembershipEvent createMembershipEvent(org.flowable.idm.api.event.FlowableIdmEventType type, java.lang.String groupId, java.lang.String userId) -
createPlatformIdentityInfoSetEvent
public static FlowableIdmIdentityInfoSetEvent createPlatformIdentityInfoSetEvent(PlatformIdentityInfo platformIdentityInfo) -
createUserPresenceChangeEvent
public static FlowableUserPresenceChangeEvent createUserPresenceChangeEvent(java.lang.String userId, java.lang.String presence)
-