Class ParticipantJoiningBuilderImpl
java.lang.Object
com.flowable.engage.engine.impl.conversation.ParticipantJoiningBuilderImpl
- All Implemented Interfaces:
ParticipantJoiningBuilder
Default implementation of the joining builder to define the exact time of when to join a set of participants.
- Author:
- Micha Kiener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final JoinParticipantsData
protected final ConversationParticipantBuilder
-
Constructor Summary
ConstructorsConstructorDescriptionParticipantJoiningBuilderImpl
(ConversationParticipantBuilder rootBuilder, JoinParticipantsData joinParticipantsData) -
Method Summary
Modifier and TypeMethodDescriptionWill join the selected participant(s) from the beginning of the conversation.Just use the default behaviour which isParticipantJoiningBuilder.fromNow()
for all conversation types except channels, where the default isParticipantJoiningBuilder.fromBeginning()
.fromDuration
(Duration duration) Will join the selected participant(s) from the past in the given duration, so they can read messages from the past.fromMessage
(String messageId) Will join the selected participant(s) from the time of when the given message was posted, in order to be able to read that message and every one after it.fromNow()
This will join the new participants as of now so they can only see the new messages after being joined.fromPastMessages
(int numberOfMessages) Will join the selected participant(s) from the creation time of x messages back (basically the new participants will be able to read those x messaages).Will join the selected participant(s) from the given absolute timestamp.
-
Field Details
-
rootBuilder
-
joinParticipantsData
-
-
Constructor Details
-
ParticipantJoiningBuilderImpl
public ParticipantJoiningBuilderImpl(ConversationParticipantBuilder rootBuilder, JoinParticipantsData joinParticipantsData)
-
-
Method Details
-
fromDefault
Description copied from interface:ParticipantJoiningBuilder
Just use the default behaviour which isParticipantJoiningBuilder.fromNow()
for all conversation types except channels, where the default isParticipantJoiningBuilder.fromBeginning()
.- Specified by:
fromDefault
in interfaceParticipantJoiningBuilder
- Returns:
- the conversation participant (root) builder to continue manage participants
-
fromNow
Description copied from interface:ParticipantJoiningBuilder
This will join the new participants as of now so they can only see the new messages after being joined.- Specified by:
fromNow
in interfaceParticipantJoiningBuilder
- Returns:
- the conversation participant (root) builder to continue manage participants
-
fromBeginning
Description copied from interface:ParticipantJoiningBuilder
Will join the selected participant(s) from the beginning of the conversation.- Specified by:
fromBeginning
in interfaceParticipantJoiningBuilder
- Returns:
- the conversation participant (root) builder to continue manage participants
-
fromTime
Description copied from interface:ParticipantJoiningBuilder
Will join the selected participant(s) from the given absolute timestamp.- Specified by:
fromTime
in interfaceParticipantJoiningBuilder
- Parameters:
joiningTime
- the time from which the participant(s) will be able to see messages- Returns:
- the conversation participant (root) builder to continue manage participants
-
fromMessage
Description copied from interface:ParticipantJoiningBuilder
Will join the selected participant(s) from the time of when the given message was posted, in order to be able to read that message and every one after it.- Specified by:
fromMessage
in interfaceParticipantJoiningBuilder
- Parameters:
messageId
- the id of the message to use as the time when to join the new participants- Returns:
- the conversation participant (root) builder to continue manage participants
-
fromPastMessages
Description copied from interface:ParticipantJoiningBuilder
Will join the selected participant(s) from the creation time of x messages back (basically the new participants will be able to read those x messaages).- Specified by:
fromPastMessages
in interfaceParticipantJoiningBuilder
- Parameters:
numberOfMessages
- the number of messages the new participants will be able to read- Returns:
- the conversation participant (root) builder to continue manage participants
-
fromDuration
Description copied from interface:ParticipantJoiningBuilder
Will join the selected participant(s) from the past in the given duration, so they can read messages from the past.- Specified by:
fromDuration
in interfaceParticipantJoiningBuilder
- Parameters:
duration
- the duration to go into the past to join the new participant(s)- Returns:
- the conversation participant (root) builder to continue manage participants
-
getJoinParticipantsData
-