Class AbstractEntitiesResource
java.lang.Object
ch.tocco.nice2.rest.core.spi.AbstractRestResource
ch.tocco.nice2.rest.entity.spi.entities.AbstractEntityValidationResource
ch.tocco.nice2.rest.entity.spi.entities.AbstractEntitiesResource
- All Implemented Interfaces:
RestResource
- Direct Known Subclasses:
EntitiesResource
,EventRegistrationFormResource
,EventRegistrationResource
,FunctionMutationWidgetResource
,JobApplicationResource
,MembershipRegistrationResource
,UserAvailabilityCreateResource
,WageViewCreateResource
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Context
protected final EntityBeanRebinder
protected final RestSearchService
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
ConstructorDescriptionAbstractEntitiesResource
(Context context, EntityBeanRebinder entityBeanRebinder, ValidationResultConverter validationResultConverter, RestSearchService restSearchService) -
Method Summary
Modifier and TypeMethodDescriptiongetCount()
protected String
getNameFromPath
(jakarta.ws.rs.core.UriInfo uriInfo) protected jakarta.ws.rs.core.UriBuilder
getUriBuilder
(jakarta.ws.rs.core.UriInfo uriInfo, String modelName, Class<?> path) protected boolean
postCount
(EntitySearchBean searchBean) protected jakarta.ws.rs.core.Response
rebind
(EntityRebindingData... entityBeans) protected jakarta.ws.rs.core.Response
rebind
(List<EntityRebindingData> entityBeans) protected jakarta.ws.rs.core.Response
rebind
(List<EntityRebindingData> entityBeans, Consumer<Entity> entityFinisher) protected jakarta.ws.rs.core.Response
rebind
(List<EntityRebindingData> entityBeans, Consumer<Entity> entityFinisher, RebindLimitConfiguration limitConfiguration) protected jakarta.ws.rs.core.Response
rebind
(List<EntityRebindingData> entityBeans, Consumer<Entity> entityFinisher, Consumer<List<Entity>> afterCommit, RebindLimitConfiguration limitConfiguration) 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
-
context
-
entityBeanRebinder
-
restSearchService
-
-
Constructor Details
-
AbstractEntitiesResource
public AbstractEntitiesResource(Context context, EntityBeanRebinder entityBeanRebinder, ValidationResultConverter validationResultConverter, RestSearchService restSearchService)
-
-
Method Details
-
getCount
-
postCount
-
rebind
-
rebind
-
rebind
protected jakarta.ws.rs.core.Response rebind(List<EntityRebindingData> entityBeans, Consumer<Entity> entityFinisher) -
rebind
protected jakarta.ws.rs.core.Response rebind(List<EntityRebindingData> entityBeans, Consumer<Entity> entityFinisher, RebindLimitConfiguration limitConfiguration) -
rebind
protected jakarta.ws.rs.core.Response rebind(List<EntityRebindingData> entityBeans, Consumer<Entity> entityFinisher, Consumer<List<Entity>> afterCommit, RebindLimitConfiguration limitConfiguration) -
isValidate
protected boolean isValidate() -
getNameFromPath
-
getUriBuilder
-