public class FlowableIdmEventBuilder extends Object
FlowableEvent
implementations.Modifier and Type | Method and Description |
---|---|
static FlowableEntityEvent |
createEntityEvent(FlowableIdmEventType type,
Object entity) |
static FlowableEvent |
createGlobalEvent(FlowableIdmEventType type) |
static FlowableIdmMembershipEvent |
createMembershipEvent(FlowableIdmEventType type,
String groupId,
String userId) |
static FlowableIdmIdentityInfoSetEvent |
createPlatformIdentityInfoSetEvent(PlatformIdentityInfo platformIdentityInfo) |
static FlowableUserPresenceChangeEvent |
createUserPresenceChangeEvent(String userId,
String presence) |
public static FlowableEvent createGlobalEvent(FlowableIdmEventType type)
type
- type of eventFlowableEvent
that doesn't have it's execution context-fields filled, as the event is a global event, independent of any running execution.public static FlowableEntityEvent createEntityEvent(FlowableIdmEventType type, Object entity)
type
- type of evententity
- the entity this event targetsFlowableEntityEvent
. In case an execution context is active, the execution related event fields will be populated. If not, execution details will be retrieved from the
Object
if possible.public static FlowableIdmMembershipEvent createMembershipEvent(FlowableIdmEventType type, String groupId, String userId)
public static FlowableIdmIdentityInfoSetEvent createPlatformIdentityInfoSetEvent(PlatformIdentityInfo platformIdentityInfo)
public static FlowableUserPresenceChangeEvent createUserPresenceChangeEvent(String userId, String presence)