Class AbstractEntityResource
java.lang.Object
ch.tocco.nice2.rest.core.spi.AbstractRestResource
ch.tocco.nice2.rest.entity.spi.entities.AbstractEntityValidationResource
ch.tocco.nice2.rest.entity.impl.resources.entities.AbstractEntityResource
- All Implemented Interfaces:
RestResource
- Direct Known Subclasses:
EntityResource
-
Field Summary
Modifier and TypeFieldDescriptionprotected final CascadingDeleteService
protected final Context
protected final DataModel
protected final EntityBeanRebinder
Fields inherited from class ch.tocco.nice2.rest.entity.spi.entities.AbstractEntityValidationResource
validationResultConverter
Fields inherited from class ch.tocco.nice2.rest.core.spi.AbstractRestResource
uriInfo
-
Constructor Summary
ConstructorDescriptionAbstractEntityResource
(DataModel dataModel, Context context, EntityBeanRebinder entityBeanRebinder, CascadingDeleteService cascadingDeleteService, ValidationResultConverter validationResultConverter) -
Method Summary
Modifier and TypeMethodDescriptionprotected jakarta.ws.rs.core.Response
doDeleteEntity
(String modelName, String pk, @Nullable EntityRebindingData[] excludedBeans) protected <T> jakarta.ws.rs.core.Response
doUpdateEntity
(EntityRebindingData entityData, RebindMode rebindMode, Function<EntityRebindingData, T> responseEntityCreator) Methods inherited from class ch.tocco.nice2.rest.entity.spi.entities.AbstractEntityValidationResource
validateEntities, validateEntity
Methods inherited from class ch.tocco.nice2.rest.core.spi.AbstractRestResource
getPathParameter, setUriInfo, tryGetInt
-
Field Details
-
dataModel
-
context
-
entityBeanRebinder
-
cascadingDeleteService
-
-
Constructor Details
-
AbstractEntityResource
public AbstractEntityResource(DataModel dataModel, Context context, EntityBeanRebinder entityBeanRebinder, CascadingDeleteService cascadingDeleteService, ValidationResultConverter validationResultConverter)
-
-
Method Details
-
doDeleteEntity
protected jakarta.ws.rs.core.Response doDeleteEntity(String modelName, String pk, @Nullable @Nullable EntityRebindingData[] excludedBeans) -
doUpdateEntity
protected <T> jakarta.ws.rs.core.Response doUpdateEntity(EntityRebindingData entityData, RebindMode rebindMode, Function<EntityRebindingData, T> responseEntityCreator)
-