Package com.flowable.engage.engine.impl
Class ConversationDefinitionRegistrationBuilderImpl
- java.lang.Object
-
- com.flowable.engage.engine.impl.ConversationDefinitionRegistrationBuilderImpl
-
- All Implemented Interfaces:
ConversationDefinitionRegistrationBuilder
public class ConversationDefinitionRegistrationBuilderImpl extends Object implements ConversationDefinitionRegistrationBuilder
- Author:
- Tijs Rademakers
-
-
Field Summary
Fields Modifier and Type Field Description protected List<ConversationDefinitionRegistrationObject>conversationDefinitionModelsprotected ConversationDefinitionServiceImplconversationDefinitionServiceprotected com.fasterxml.jackson.databind.ObjectMapperobjectMapperprotected StringtenantId
-
Constructor Summary
Constructors Constructor Description ConversationDefinitionRegistrationBuilderImpl(ConversationDefinitionServiceImpl conversationDefinitionService, CommandContext commandContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConversationDefinitionRegistrationBuilderaddInputStream(String resourceName, InputStream inputStream)Register the static conversation definitions defined in theinputStreamwith aresourceNamevoidaddModelObject(com.fasterxml.jackson.databind.JsonNode modelNode)List<ConversationDefinitionRegistrationObject>getConversationDefinitionModels()StringgetTenantId()List<ConversationDefinition>register()Perform the registration of all registered definitions within the resourcesConversationDefinitionRegistrationBuildertenantId(String tenantId)Register the converations definitions with the giventenantId
-
-
-
Field Detail
-
conversationDefinitionService
protected final ConversationDefinitionServiceImpl conversationDefinitionService
-
objectMapper
protected final com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
conversationDefinitionModels
protected final List<ConversationDefinitionRegistrationObject> conversationDefinitionModels
-
tenantId
protected String tenantId
-
-
Constructor Detail
-
ConversationDefinitionRegistrationBuilderImpl
public ConversationDefinitionRegistrationBuilderImpl(ConversationDefinitionServiceImpl conversationDefinitionService, CommandContext commandContext)
-
-
Method Detail
-
addInputStream
public ConversationDefinitionRegistrationBuilder addInputStream(String resourceName, InputStream inputStream)
Description copied from interface:ConversationDefinitionRegistrationBuilderRegister the static conversation definitions defined in theinputStreamwith aresourceName- Specified by:
addInputStreamin interfaceConversationDefinitionRegistrationBuilder- Parameters:
resourceName- the name of the resourceinputStream- the stream containing the conversation definition schema- Returns:
- the builder for chaining
-
addModelObject
public void addModelObject(com.fasterxml.jackson.databind.JsonNode modelNode) throws IOException- Throws:
IOException
-
tenantId
public ConversationDefinitionRegistrationBuilder tenantId(String tenantId)
Description copied from interface:ConversationDefinitionRegistrationBuilderRegister the converations definitions with the giventenantId- Specified by:
tenantIdin interfaceConversationDefinitionRegistrationBuilder- Parameters:
tenantId- the tenant id for the definitions
-
register
public List<ConversationDefinition> register()
Description copied from interface:ConversationDefinitionRegistrationBuilderPerform the registration of all registered definitions within the resources- Specified by:
registerin interfaceConversationDefinitionRegistrationBuilder- Returns:
- the list of all registered
ConversationDefinition(s)
-
getConversationDefinitionModels
public List<ConversationDefinitionRegistrationObject> getConversationDefinitionModels()
-
getTenantId
public String getTenantId()
-
-