Class EventRegistrationResource
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
ch.tocco.nice2.optional.event.impl.widget.eventregistration.EventRegistrationResource
- All Implemented Interfaces:
RestResource
@Path("/widgets/eventRegistration/{pk}")
public class EventRegistrationResource
extends AbstractEntitiesResource
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
-
Field Summary
Fields inherited from class ch.tocco.nice2.rest.entity.spi.entities.AbstractEntitiesResource
context, entityBeanRebinder, 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
ConstructorDescriptionEventRegistrationResource
(Context context, EntityBeanRebinder entityBeanRebinder, ValidationResultConverter validationResultConverter, RestSearchService restSearchService, SecurityManager securityManager, QueryBuilderFactory queryBuilderFactory, CommandExecutor commandExecutor, EntityDefaultValueService defaultValueService, BusinessUnitManager businessUnitManager, L10N l10N, WidgetConfigService widgetConfigService, EventRegistrationPermissionService eventRegistrationPermissionService, EventRegistrationModuleInformationService eventRegistrationModuleInformationService) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
register
(EventRegistrationResource.EventRegistrationData data, String eventKey) void
setAddressTypeUniqueId
(String addressTypeUniqueId) void
void
setEditable
(Boolean editable) void
setEventRegistrationModuleExtensions
(List<EventRegistrationModuleExtension> eventRegistrationModuleExtensions) jakarta.ws.rs.core.Response
validateCreate
(EntityBean data, String eventKey) jakarta.ws.rs.core.Response
validateUpdate
(EntityBean data, String eventKey) Methods inherited from class ch.tocco.nice2.rest.entity.spi.entities.AbstractEntitiesResource
getCount, getNameFromPath, getUriBuilder, isValidate, postCount, rebind, rebind, rebind, rebind, rebind
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
-
Constructor Details
-
EventRegistrationResource
public EventRegistrationResource(Context context, EntityBeanRebinder entityBeanRebinder, ValidationResultConverter validationResultConverter, RestSearchService restSearchService, SecurityManager securityManager, QueryBuilderFactory queryBuilderFactory, CommandExecutor commandExecutor, EntityDefaultValueService defaultValueService, BusinessUnitManager businessUnitManager, L10N l10N, WidgetConfigService widgetConfigService, EventRegistrationPermissionService eventRegistrationPermissionService, EventRegistrationModuleInformationService eventRegistrationModuleInformationService)
-
-
Method Details
-
validateUpdate
@PATCH @Path("/validate") @Consumes("application/json") @Produces("application/json") public jakarta.ws.rs.core.Response validateUpdate(EntityBean data, @PathParam("pk") String eventKey) -
validateCreate
@POST @Path("/validate") @Consumes("application/json") @Produces("application/json") public jakarta.ws.rs.core.Response validateCreate(EntityBean data, @PathParam("pk") String eventKey) -
register
@POST @Path("/register") @Consumes("application/json") @Produces("application/json") public jakarta.ws.rs.core.Response register(EventRegistrationResource.EventRegistrationData data, @PathParam("pk") String eventKey) -
setAllowedPaths
-
setEventRegistrationModuleExtensions
@Autowired(required=false) public void setEventRegistrationModuleExtensions(List<EventRegistrationModuleExtension> eventRegistrationModuleExtensions) -
setAddressTypeUniqueId
-
setEditable
-