Package com.flowable.idm.engine.impl
Class UserDefinitionRegistrationBuilderImpl
- java.lang.Object
-
- com.flowable.idm.engine.impl.UserDefinitionRegistrationBuilderImpl
-
- All Implemented Interfaces:
UserDefinitionRegistrationBuilder
public class UserDefinitionRegistrationBuilderImpl extends Object implements UserDefinitionRegistrationBuilder
- Author:
- Tijs Rademakers
-
-
Field Summary
Fields Modifier and Type Field Description protected com.fasterxml.jackson.databind.ObjectMapper
objectMapper
protected String
tenantId
protected List<UserDefinitionRegistrationObject>
userDefinitionModels
protected UserDefinitionServiceImpl
userDefinitionService
-
Constructor Summary
Constructors Constructor Description UserDefinitionRegistrationBuilderImpl(UserDefinitionServiceImpl userDefinitionService, CommandContext commandContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserDefinitionRegistrationBuilder
addInputStream(String resourceName, InputStream inputStream)
Register the static user definitions defined in theinputStream
with aresourceName
void
addModelObject(com.fasterxml.jackson.databind.JsonNode modelNode)
UserDefinitionRegistrationBuilder
addUserDefinitionModel(UserDefinitionModel userDefinitionModel)
Register the static user definitionString
getTenantId()
List<UserDefinitionRegistrationObject>
getUserDefinitionModels()
List<UserDefinition>
register()
Perform the registration of all registered definitions within the resourcesUserDefinitionRegistrationBuilder
tenantId(String tenantId)
Register the user definitions with the giventenantId
-
-
-
Field Detail
-
userDefinitionService
protected final UserDefinitionServiceImpl userDefinitionService
-
objectMapper
protected final com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
userDefinitionModels
protected final List<UserDefinitionRegistrationObject> userDefinitionModels
-
tenantId
protected String tenantId
-
-
Constructor Detail
-
UserDefinitionRegistrationBuilderImpl
public UserDefinitionRegistrationBuilderImpl(UserDefinitionServiceImpl userDefinitionService, CommandContext commandContext)
-
-
Method Detail
-
addInputStream
public UserDefinitionRegistrationBuilder addInputStream(String resourceName, InputStream inputStream)
Description copied from interface:UserDefinitionRegistrationBuilder
Register the static user definitions defined in theinputStream
with aresourceName
- Specified by:
addInputStream
in interfaceUserDefinitionRegistrationBuilder
- Parameters:
resourceName
- the name of the resourceinputStream
- the stream containing the user definition model- Returns:
- the builder for chaining
-
addUserDefinitionModel
public UserDefinitionRegistrationBuilder addUserDefinitionModel(UserDefinitionModel userDefinitionModel)
Description copied from interface:UserDefinitionRegistrationBuilder
Register the static user definition- Specified by:
addUserDefinitionModel
in interfaceUserDefinitionRegistrationBuilder
- Parameters:
userDefinitionModel
- the user definition model- Returns:
- the builder for chaining
-
tenantId
public UserDefinitionRegistrationBuilder tenantId(String tenantId)
Description copied from interface:UserDefinitionRegistrationBuilder
Register the user definitions with the giventenantId
- Specified by:
tenantId
in interfaceUserDefinitionRegistrationBuilder
- 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<UserDefinition> register()
Description copied from interface:UserDefinitionRegistrationBuilder
Perform the registration of all registered definitions within the resources- Specified by:
register
in interfaceUserDefinitionRegistrationBuilder
- Returns:
- the list of all registered
UserDefinition
(s)
-
getUserDefinitionModels
public List<UserDefinitionRegistrationObject> getUserDefinitionModels()
-
getTenantId
public String getTenantId()
-
-