Class ParticipantJoiningBuilderImpl
- java.lang.Object
-
- com.flowable.engage.engine.impl.conversation.ParticipantJoiningBuilderImpl
-
- All Implemented Interfaces:
ParticipantJoiningBuilder
public class ParticipantJoiningBuilderImpl extends Object implements 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
Fields Modifier and Type Field Description protected JoinParticipantsDatajoinParticipantsDataprotected ConversationParticipantBuilderrootBuilder
-
Constructor Summary
Constructors Constructor Description ParticipantJoiningBuilderImpl(ConversationParticipantBuilder rootBuilder, JoinParticipantsData joinParticipantsData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConversationParticipantBuilderfromBeginning()Will join the selected participant(s) from the beginning of the conversation.ConversationParticipantBuilderfromDefault()Just use the default behaviour which isParticipantJoiningBuilder.fromNow()for all conversation types except channels, where the default isParticipantJoiningBuilder.fromBeginning().ConversationParticipantBuilderfromDuration(Duration duration)Will join the selected participant(s) from the past in the given duration, so they can read messages from the past.ConversationParticipantBuilderfromMessage(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.ConversationParticipantBuilderfromNow()This will join the new participants as of now so they can only see the new messages after being joined.ConversationParticipantBuilderfromPastMessages(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).ConversationParticipantBuilderfromTime(Date joiningTime)Will join the selected participant(s) from the given absolute timestamp.JoinParticipantsDatagetJoinParticipantsData()
-
-
-
Field Detail
-
rootBuilder
protected final ConversationParticipantBuilder rootBuilder
-
joinParticipantsData
protected final JoinParticipantsData joinParticipantsData
-
-
Constructor Detail
-
ParticipantJoiningBuilderImpl
public ParticipantJoiningBuilderImpl(ConversationParticipantBuilder rootBuilder, JoinParticipantsData joinParticipantsData)
-
-
Method Detail
-
fromDefault
public ConversationParticipantBuilder fromDefault()
Description copied from interface:ParticipantJoiningBuilderJust use the default behaviour which isParticipantJoiningBuilder.fromNow()for all conversation types except channels, where the default isParticipantJoiningBuilder.fromBeginning().- Specified by:
fromDefaultin interfaceParticipantJoiningBuilder- Returns:
- the conversation participant (root) builder to continue manage participants
-
fromNow
public ConversationParticipantBuilder fromNow()
Description copied from interface:ParticipantJoiningBuilderThis will join the new participants as of now so they can only see the new messages after being joined.- Specified by:
fromNowin interfaceParticipantJoiningBuilder- Returns:
- the conversation participant (root) builder to continue manage participants
-
fromBeginning
public ConversationParticipantBuilder fromBeginning()
Description copied from interface:ParticipantJoiningBuilderWill join the selected participant(s) from the beginning of the conversation.- Specified by:
fromBeginningin interfaceParticipantJoiningBuilder- Returns:
- the conversation participant (root) builder to continue manage participants
-
fromTime
public ConversationParticipantBuilder fromTime(Date joiningTime)
Description copied from interface:ParticipantJoiningBuilderWill join the selected participant(s) from the given absolute timestamp.- Specified by:
fromTimein 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
public ConversationParticipantBuilder fromMessage(String messageId)
Description copied from interface:ParticipantJoiningBuilderWill 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:
fromMessagein 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
public ConversationParticipantBuilder fromPastMessages(int numberOfMessages)
Description copied from interface:ParticipantJoiningBuilderWill 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:
fromPastMessagesin 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
public ConversationParticipantBuilder fromDuration(Duration duration)
Description copied from interface:ParticipantJoiningBuilderWill join the selected participant(s) from the past in the given duration, so they can read messages from the past.- Specified by:
fromDurationin 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
public JoinParticipantsData getJoinParticipantsData()
-
-