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
Modifier and TypeFieldDescriptionprotected final com.fasterxml.jackson.databind.ObjectMapper
protected String
protected final List<UserDefinitionRegistrationObject>
protected final UserDefinitionServiceImpl
-
Constructor Summary
ConstructorDescriptionUserDefinitionRegistrationBuilderImpl
(UserDefinitionServiceImpl userDefinitionService, CommandContext commandContext) -
Method Summary
Modifier and TypeMethodDescriptionaddInputStream
(String resourceName, InputStream inputStream) Register the static user definitions defined in theinputStream
with aresourceName
void
addModelObject
(com.fasterxml.jackson.databind.JsonNode modelNode) addUserDefinitionModel
(UserDefinitionModel userDefinitionModel) Register the static user definitionregister()
Perform the registration of all registered definitions within the resourcesRegister the user definitions with the giventenantId
-
Field Details
-
userDefinitionService
-
objectMapper
protected final com.fasterxml.jackson.databind.ObjectMapper objectMapper -
userDefinitionModels
-
tenantId
-
-
Constructor Details
-
UserDefinitionRegistrationBuilderImpl
public UserDefinitionRegistrationBuilderImpl(UserDefinitionServiceImpl userDefinitionService, CommandContext commandContext)
-
-
Method Details
-
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
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
- Throws:
IOException
-
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
-
getTenantId
-