Class EntityModelServiceImpl
java.lang.Object
ch.tocco.nice2.rest.entitymodel.impl.services.EntityModelServiceImpl
- All Implemented Interfaces:
EntityModelService
-
Constructor Summary
ConstructorsConstructorDescriptionEntityModelServiceImpl(NiceDataModel dataModel, 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, ValidationDataService validationDataService, EntityDefaultValueService entityDefaultValueService, DefaultDisplayService defaultDisplayService, Context context)
-
-
Method Details
-
getModel
Description copied from interface:EntityModelServicebuild a model bean for a given entity model, relation default values are evaluated and added to bean as entities- Specified by:
getModelin interfaceEntityModelService- Parameters:
modelName- the model to create the bean for- Returns:
- the model bean
-
getStaticModel
Description copied from interface:EntityModelServicebuild 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:
getStaticModelin interfaceEntityModelService- Parameters:
modelName- the model to create the bean for- Returns:
- the model bean
-
getFieldModelBean
- Specified by:
getFieldModelBeanin interfaceEntityModelService
-
getRelationModelBean
- Specified by:
getRelationModelBeanin interfaceEntityModelService
-
getValidationData
- Specified by:
getValidationDatain interfaceEntityModelService
-
getValidationData
- Specified by:
getValidationDatain interfaceEntityModelService
-
getValidationData
- Specified by:
getValidationDatain interfaceEntityModelService
-