Package de.xima.fc.workflow.event
Class FormRecordMessagePostedEventBuilder
- java.lang.Object
-
- de.xima.fc.workflow.event.FormRecordMessagePostedEventBuilder
-
- All Implemented Interfaces:
org.apache.commons.lang3.builder.Builder<IFormRecordMessagePostedEvent>
public final class FormRecordMessagePostedEventBuilder extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected Booleananonymizeprotected Clockclockprotected VorgangformRecordprotected IFormRecordLockContextformRecordLockContextprotected Localelocaleprotected IUseruserprotected List<IWorkflowExecutionPostProcessor>workflowExecutionPostProcessors
-
Constructor Summary
Constructors Constructor Description FormRecordMessagePostedEventBuilder(Vorgang formRecord, FormRecordMessage message)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description TThisaddWorkflowExecutionPostProcessor(IWorkflowExecutionPostProcessor workflowExecutionPostProcessor)TThisanonymize(Boolean anonymize)IFormRecordMessagePostedEventbuild()FormRecordMessagePostedEventBuilderchat(FormRecordChat chat)Sets the chat containing the posted message.TThisclock(Clock clock)TThisformRecordLockContext(IFormRecordLockContext formRecordLockContext)protected FormRecordMessagePostedEventBuildergetThis()TThislocale(Locale locale)TThisuser(Benutzer user)Deprecated.Useuser(IUser)instead.TThisuser(IUser user)TThisworkflowExecutionPostProcessors(Iterable<IWorkflowExecutionPostProcessor> workflowExecutionPostProcessors)
-
-
-
Field Detail
-
anonymize
protected Boolean anonymize
-
clock
protected Clock clock
-
formRecord
protected final Vorgang formRecord
-
formRecordLockContext
protected IFormRecordLockContext formRecordLockContext
-
locale
protected Locale locale
-
user
protected IUser user
-
workflowExecutionPostProcessors
protected List<IWorkflowExecutionPostProcessor> workflowExecutionPostProcessors
-
-
Constructor Detail
-
FormRecordMessagePostedEventBuilder
public FormRecordMessagePostedEventBuilder(Vorgang formRecord, FormRecordMessage message)
-
-
Method Detail
-
build
public IFormRecordMessagePostedEvent build()
-
chat
public FormRecordMessagePostedEventBuilder chat(FormRecordChat chat)
Sets the chat containing the posted message. When not set explicitly, the chat is resolved from the message. This may fail when the chat's data are loaded lazily and no database connection is active anymore.- Parameters:
chat- The chat containing the posted message.- Returns:
- This builder for chaining methods calls.
-
getThis
protected FormRecordMessagePostedEventBuilder getThis()
-
addWorkflowExecutionPostProcessor
public TThis addWorkflowExecutionPostProcessor(IWorkflowExecutionPostProcessor workflowExecutionPostProcessor)
-
anonymize
public TThis anonymize(Boolean anonymize)
-
clock
public TThis clock(Clock clock)
-
formRecordLockContext
public TThis formRecordLockContext(IFormRecordLockContext formRecordLockContext)
-
locale
public TThis locale(Locale locale)
-
user
public TThis user(IUser user)
-
workflowExecutionPostProcessors
public TThis workflowExecutionPostProcessors(Iterable<IWorkflowExecutionPostProcessor> workflowExecutionPostProcessors)
-
user
@Deprecated public TThis user(Benutzer user)
Deprecated.Useuser(IUser)instead.- Parameters:
user- The user who started the workflow.- Returns:
- This builder instance for chaining method calls.
-
-