@Manager public class DefaultWorkObjectDefinitionManager extends Object implements WorkObjectDefinitionManager
Manages operations on AnyWorkObjectDefinition
s
Constructor and Description |
---|
DefaultWorkObjectDefinitionManager(EntityTemplateManager entityTemplateManager,
AnyWorkObjectDefinitionService workObjectDefinitionService) |
Modifier and Type | Method and Description |
---|---|
EntityTemplate |
findEntityTemplateByModelId(String modelId)
Finds the latest active work object definition by model global id
|
QueryResponse |
findWorkObjectDefinitions(String type,
String typedText,
Integer offset,
Integer limit)
Finds the work object definitions with a matching name to the typed text parameter
|
QueryResponse |
findWorkObjectDefinitionsByModelId(String modelId)
Finds the latest active work object definition by model global id
|
QueryResponse |
findWorkObjectDefinitionsWithCaseId(String type,
String caseId,
String typedText,
Integer offset,
Integer limit)
Finds the latest work object definitions with a matching name to the typed text parameter and the case id
|
ValueMap |
getWorkObjectDefinition(String ambiguousWorkObjectDefinitionId,
DefinitionViewFilter definitionViewFilter,
Collection<String> fields,
String... allowedTypes)
Gets the definition by id
|
public DefaultWorkObjectDefinitionManager(EntityTemplateManager entityTemplateManager, AnyWorkObjectDefinitionService workObjectDefinitionService)
public QueryResponse findWorkObjectDefinitions(String type, String typedText, Integer offset, Integer limit)
WorkObjectDefinitionManager
Finds the work object definitions with a matching name to the typed text parameter
findWorkObjectDefinitions
in interface WorkObjectDefinitionManager
type
- work object definition type to search fortypedText
- search in the definitions according to the namesoffset
- the start of the rows to fetchlimit
- the size of fetched datapublic QueryResponse findWorkObjectDefinitionsWithCaseId(String type, String caseId, String typedText, Integer offset, Integer limit)
WorkObjectDefinitionManager
Finds the latest work object definitions with a matching name to the typed text parameter and the case id
findWorkObjectDefinitionsWithCaseId
in interface WorkObjectDefinitionManager
type
- work object definition type to search forcaseId
- case id or case global id to restrict the definitions searchtypedText
- search in the definitions according to the namesoffset
- the start of the rows to fetchlimit
- the size of fetched datapublic QueryResponse findWorkObjectDefinitionsByModelId(String modelId)
WorkObjectDefinitionManager
Finds the latest active work object definition by model global id
findWorkObjectDefinitionsByModelId
in interface WorkObjectDefinitionManager
modelId
- global id of the model to find the latest work object definitionpublic ValueMap getWorkObjectDefinition(String ambiguousWorkObjectDefinitionId, DefinitionViewFilter definitionViewFilter, Collection<String> fields, String... allowedTypes)
WorkObjectDefinitionManager
Gets the definition by id
getWorkObjectDefinition
in interface WorkObjectDefinitionManager
ambiguousWorkObjectDefinitionId
- definition Id or global modal IddefinitionViewFilter
- definition view filter to limit returned attributesfields
- attributes included into responseallowedTypes
- types expected in the response. If empty all types are allowed.public EntityTemplate findEntityTemplateByModelId(String modelId)
WorkObjectDefinitionManager
Finds the latest active work object definition by model global id
findEntityTemplateByModelId
in interface WorkObjectDefinitionManager
modelId
- global id of the model to find the latest work object definitionCopyright © 2010 - 2018 edorasware ag. All Rights Reserved.