@Manager public class DefaultEntityTemplateManager extends Object implements EntityTemplateManager
This class implements default behavior for providing localized object definitions from BE to frontend.
Constructor and Description |
---|
DefaultEntityTemplateManager(AnyWorkObjectDefinitionService anyWorkObjectDefinitionService,
WorkObjectService workObjectService,
UserManager userManager,
EntityTemplateLookupService entityTemplateLookupService,
AmbiguousIdHelper ambiguousIdHelper) |
Modifier and Type | Method and Description |
---|---|
EntityTemplate |
getEntityTemplateById(String definitionId,
Locale locale)
Get work object definition for a given definition id.
|
EntityTemplate |
getEntityTemplateByModelId(String modelId,
Locale locale)
Returns the latest version of
EntityTemplate with the given model id. |
List<EntityTemplate> |
getEntityTemplatesByType(String type,
String nameContains,
Locale locale)
Returns all localized definitions for a given definition Type.
|
List<EntityTemplate> |
getEntityTemplatesByTypeAndCase(String type,
String ambiguousId,
String nameContains,
Locale locale)
Returns all localized definitions for a given definition Type and a given case ID.
|
public DefaultEntityTemplateManager(AnyWorkObjectDefinitionService anyWorkObjectDefinitionService, WorkObjectService workObjectService, UserManager userManager, EntityTemplateLookupService entityTemplateLookupService, AmbiguousIdHelper ambiguousIdHelper)
public EntityTemplate getEntityTemplateById(String definitionId, Locale locale)
EntityTemplateManager
Get work object definition for a given definition id.
getEntityTemplateById
in interface EntityTemplateManager
definitionId
- definitionId to providelocale
- the locale to be used for translationpublic EntityTemplate getEntityTemplateByModelId(String modelId, Locale locale)
EntityTemplateManager
Returns the latest version of EntityTemplate
with the given model id.
getEntityTemplateByModelId
in interface EntityTemplateManager
modelId
- the model id of the entity templatelocale
- the locale to be used for translationpublic List<EntityTemplate> getEntityTemplatesByType(String type, String nameContains, Locale locale)
EntityTemplateManager
Returns all localized definitions for a given definition Type.
getEntityTemplatesByType
in interface EntityTemplateManager
type
- the type of the definitionnameContains
- the text used for the name like searchlocale
- the locale to be used for translationpublic List<EntityTemplate> getEntityTemplatesByTypeAndCase(String type, String ambiguousId, String nameContains, Locale locale)
EntityTemplateManager
Returns all localized definitions for a given definition Type and a given case ID.
getEntityTemplatesByTypeAndCase
in interface EntityTemplateManager
type
- the type of the definitionambiguousId
- the case id (may be work object ID value or global ID value)nameContains
- the text used for the name like searchlocale
- the locale to be used for translationCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.