Package com.flowable.idm.engine.impl
Class UserAccountDefinitionRegistrationBuilderImpl
- java.lang.Object
-
- com.flowable.idm.engine.impl.UserAccountDefinitionRegistrationBuilderImpl
-
- All Implemented Interfaces:
UserAccountDefinitionRegistrationBuilder
public class UserAccountDefinitionRegistrationBuilderImpl extends Object implements UserAccountDefinitionRegistrationBuilder
- Author:
- Filip Hrisafov
-
-
Field Summary
Fields Modifier and Type Field Description protected com.fasterxml.jackson.databind.ObjectMapper
objectMapper
protected String
tenantId
protected List<UserAccountDefinitionRegistrationObject>
userAccountDefinitionModels
protected UserAccountDefinitionServiceImpl
userAccountDefinitionService
-
Constructor Summary
Constructors Constructor Description UserAccountDefinitionRegistrationBuilderImpl(UserAccountDefinitionServiceImpl userAccountDefinitionService, CommandContext commandContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserAccountDefinitionRegistrationBuilder
addInputStream(String resourceName, InputStream inputStream)
Register the static conversation definitions defined in theinputStream
with aresourceName
void
addModelObject(com.fasterxml.jackson.databind.JsonNode modelNode)
UserAccountDefinitionRegistrationBuilder
addUserAccountDefinitionModel(UserAccountDefinitionModel userAccountDefinitionModel)
Register the static user account definitionString
getTenantId()
List<UserAccountDefinitionRegistrationObject>
getUserAccountDefinitionModels()
List<UserAccountDefinition>
register()
Perform the registration of all registered definitions within the resourcesUserAccountDefinitionRegistrationBuilder
tenantId(String tenantId)
Register the user account definitions with the giventenantId
-
-
-
Field Detail
-
userAccountDefinitionService
protected final UserAccountDefinitionServiceImpl userAccountDefinitionService
-
objectMapper
protected final com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
userAccountDefinitionModels
protected final List<UserAccountDefinitionRegistrationObject> userAccountDefinitionModels
-
tenantId
protected String tenantId
-
-
Constructor Detail
-
UserAccountDefinitionRegistrationBuilderImpl
public UserAccountDefinitionRegistrationBuilderImpl(UserAccountDefinitionServiceImpl userAccountDefinitionService, CommandContext commandContext)
-
-
Method Detail
-
addInputStream
public UserAccountDefinitionRegistrationBuilder addInputStream(String resourceName, InputStream inputStream)
Description copied from interface:UserAccountDefinitionRegistrationBuilder
Register the static conversation definitions defined in theinputStream
with aresourceName
- Specified by:
addInputStream
in interfaceUserAccountDefinitionRegistrationBuilder
- Parameters:
resourceName
- the name of the resourceinputStream
- the stream containing the conversation definition schema- Returns:
- the builder for chaining
-
addUserAccountDefinitionModel
public UserAccountDefinitionRegistrationBuilder addUserAccountDefinitionModel(UserAccountDefinitionModel userAccountDefinitionModel)
Description copied from interface:UserAccountDefinitionRegistrationBuilder
Register the static user account definition- Specified by:
addUserAccountDefinitionModel
in interfaceUserAccountDefinitionRegistrationBuilder
- Parameters:
userAccountDefinitionModel
- the user account definition model- Returns:
- the builder for chainingO
-
tenantId
public UserAccountDefinitionRegistrationBuilder tenantId(String tenantId)
Description copied from interface:UserAccountDefinitionRegistrationBuilder
Register the user account definitions with the giventenantId
- Specified by:
tenantId
in interfaceUserAccountDefinitionRegistrationBuilder
- Parameters:
tenantId
- the tenant id for the definitions
-
addModelObject
public void addModelObject(com.fasterxml.jackson.databind.JsonNode modelNode) throws IOException
- Throws:
IOException
-
register
public List<UserAccountDefinition> register()
Description copied from interface:UserAccountDefinitionRegistrationBuilder
Perform the registration of all registered definitions within the resources- Specified by:
register
in interfaceUserAccountDefinitionRegistrationBuilder
- Returns:
- the list of all registered
UserAccountDefinition
(s)
-
getUserAccountDefinitionModels
public List<UserAccountDefinitionRegistrationObject> getUserAccountDefinitionModels()
-
getTenantId
public String getTenantId()
-
-