@Manager public class DefaultWorkObjectDefinitionManager extends Object implements WorkObjectDefinitionManager
Manages operations on AnyWorkObjectDefinitions
| Constructor and Description |
|---|
DefaultWorkObjectDefinitionManager(EntityTemplateManager entityTemplateManager,
AnyWorkObjectDefinitionService workObjectDefinitionService) |
| Modifier and Type | Method and Description |
|---|---|
EntityTemplate |
findEntityTemplateByModelId(String modelId,
Locale locale)
Finds the latest active work object definition by model global id
|
QueryResponse |
findWorkObjectDefinitions(String type,
String typedText,
Integer offset,
Integer limit,
Locale locale)
Finds the work object definitions with a matching name to the typed text parameter
|
QueryResponse |
findWorkObjectDefinitionsByModelId(String modelId,
Locale locale)
Finds the latest active work object definition by model global id
|
QueryResponse |
findWorkObjectDefinitionsWithCaseId(String type,
String caseId,
String typedText,
Integer offset,
Integer limit,
Locale locale)
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,
Locale locale,
String... allowedTypes)
Gets the definition by id
|
public DefaultWorkObjectDefinitionManager(EntityTemplateManager entityTemplateManager, AnyWorkObjectDefinitionService workObjectDefinitionService)
public QueryResponse findWorkObjectDefinitions(String type, String typedText, Integer offset, Integer limit, Locale locale)
WorkObjectDefinitionManagerFinds the work object definitions with a matching name to the typed text parameter
findWorkObjectDefinitions in interface WorkObjectDefinitionManagertype - 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 datalocale - the translation localepublic QueryResponse findWorkObjectDefinitionsWithCaseId(String type, String caseId, String typedText, Integer offset, Integer limit, Locale locale)
WorkObjectDefinitionManagerFinds the latest work object definitions with a matching name to the typed text parameter and the case id
findWorkObjectDefinitionsWithCaseId in interface WorkObjectDefinitionManagertype - 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 datalocale - the translation localepublic QueryResponse findWorkObjectDefinitionsByModelId(String modelId, Locale locale)
WorkObjectDefinitionManagerFinds the latest active work object definition by model global id
findWorkObjectDefinitionsByModelId in interface WorkObjectDefinitionManagermodelId - global id of the model to find the latest work object definitionlocale - the translation localepublic ValueMap getWorkObjectDefinition(String ambiguousWorkObjectDefinitionId, DefinitionViewFilter definitionViewFilter, Collection<String> fields, Locale locale, String... allowedTypes)
WorkObjectDefinitionManagerGets the definition by id
getWorkObjectDefinition in interface WorkObjectDefinitionManagerambiguousWorkObjectDefinitionId - definition Id or global modal IddefinitionViewFilter - definition view filter to limit returned attributesfields - attributes included into responselocale - the translation localeallowedTypes - types expected in the response. If empty all types are allowed.public EntityTemplate findEntityTemplateByModelId(String modelId, Locale locale)
WorkObjectDefinitionManagerFinds the latest active work object definition by model global id
findEntityTemplateByModelId in interface WorkObjectDefinitionManagermodelId - global id of the model to find the latest work object definitionlocale - the translation localeCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.