Class EntityModelServiceImpl
java.lang.Object
ch.tocco.nice2.rest.entitymodel.impl.services.EntityModelServiceImpl
- All Implemented Interfaces:
- EntityModelService
- 
Constructor SummaryConstructorsConstructorDescriptionEntityModelServiceImpl(NiceDataModel dataModel, ValidationDataService validationDataService, EntityDefaultValueService entityDefaultValueService, DefaultDisplayService defaultDisplayService, Context context) 
- 
Method SummaryModifier 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- 
EntityModelServiceImplpublic EntityModelServiceImpl(NiceDataModel dataModel, ValidationDataService validationDataService, EntityDefaultValueService entityDefaultValueService, DefaultDisplayService defaultDisplayService, Context context) 
 
- 
- 
Method Details- 
getModelDescription 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 interface- EntityModelService
- Parameters:
- modelName- the model to create the bean for
- Returns:
- the model bean
 
- 
getStaticModelDescription 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 interface- EntityModelService
- Parameters:
- modelName- the model to create the bean for
- Returns:
- the model bean
 
- 
getFieldModelBean- Specified by:
- getFieldModelBeanin interface- EntityModelService
 
- 
getRelationModelBean- Specified by:
- getRelationModelBeanin interface- EntityModelService
 
- 
getValidationData- Specified by:
- getValidationDatain interface- EntityModelService
 
- 
getValidationData- Specified by:
- getValidationDatain interface- EntityModelService
 
- 
getValidationData- Specified by:
- getValidationDatain interface- EntityModelService
 
 
-