Class EntityModelServiceImpl
java.lang.Object
ch.tocco.nice2.rest.entitymodel.impl.services.EntityModelServiceImpl
- All Implemented Interfaces:
EntityModelService
-
Constructor Summary
ConstructorDescriptionEntityModelServiceImpl
(NiceDataModel dataModel, TextResources textResources, ValidationDataService validationDataService, EntityDefaultValueService entityDefaultValueService, DefaultDisplayService defaultDisplayService, Context context) -
Method Summary
Modifier and TypeMethodDescriptiongetFieldModelBean
(String entityModelName, FieldModel fieldModel) build a model bean for a given entity model, relation default values are evaluated and added to bean as entitiesgetRelationModelBean
(RelationModel relationModel) getStaticModel
(String modelName) build a model bean for a given entity model, relation default values are not evaluated but instead their definition is added as a string value to the beangetValidationData
(FieldModel field) getValidationData
(RelationModel relation) getValidationData
(GroupValidator groupValidator)
-
Constructor Details
-
EntityModelServiceImpl
public EntityModelServiceImpl(NiceDataModel dataModel, TextResources textResources, ValidationDataService validationDataService, EntityDefaultValueService entityDefaultValueService, DefaultDisplayService defaultDisplayService, Context context)
-
-
Method Details
-
getModel
Description copied from interface:EntityModelService
build a model bean for a given entity model, relation default values are evaluated and added to bean as entities- Specified by:
getModel
in interfaceEntityModelService
- Parameters:
modelName
- the model to create the bean for- Returns:
- the model bean
-
getStaticModel
Description copied from interface:EntityModelService
build a model bean for a given entity model, relation default values are not evaluated but instead their definition is added as a string value to the bean- Specified by:
getStaticModel
in interfaceEntityModelService
- Parameters:
modelName
- the model to create the bean for- Returns:
- the model bean
-
getFieldModelBean
- Specified by:
getFieldModelBean
in interfaceEntityModelService
-
getRelationModelBean
- Specified by:
getRelationModelBean
in interfaceEntityModelService
-
getValidationData
- Specified by:
getValidationData
in interfaceEntityModelService
-
getValidationData
- Specified by:
getValidationData
in interfaceEntityModelService
-
getValidationData
- Specified by:
getValidationData
in interfaceEntityModelService
-