Class AcceptConflictResource
java.lang.Object
ch.tocco.nice2.rest.core.spi.AbstractRestResource
ch.tocco.nice2.optional.reservation.impl.actions.AcceptConflictResource
- All Implemented Interfaces:
RestResource
@Path("reservation/actions/acceptConflict")
public class AcceptConflictResource
extends AbstractRestResource
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
static final record
static final record
-
Field Summary
Fields inherited from class ch.tocco.nice2.rest.core.spi.AbstractRestResource
uriInfo
-
Constructor Summary
ConstructorDescriptionAcceptConflictResource
(SelectionService selectionService, Context context, ReservationConflictManager reservationConflictManager, ConflictManager conflictManager, SecurityManager securityManager, BusinessUnitManager businessUnitManager, TextResources textResources, TimezoneResolverService timezoneResolverService, QueryBuilderFactory queryBuilderFactory) -
Method Summary
Modifier and TypeMethodDescriptionloadConflicts
(EntitySelectionBean selectionBean) void
setAccepted
(String id, boolean accepted) void
setConflictingItemRelations
(List<String> relations) jakarta.ws.rs.core.Response
updateConflicts
(AcceptConflictResource.UpdateConflictBean conflictBean) Methods inherited from class ch.tocco.nice2.rest.core.spi.AbstractRestResource
getPathParameter, setUriInfo, tryGetInt
-
Constructor Details
-
AcceptConflictResource
public AcceptConflictResource(SelectionService selectionService, Context context, ReservationConflictManager reservationConflictManager, ConflictManager conflictManager, SecurityManager securityManager, BusinessUnitManager businessUnitManager, TextResources textResources, TimezoneResolverService timezoneResolverService, QueryBuilderFactory queryBuilderFactory)
-
-
Method Details
-
loadConflicts
@POST @Path("/loadConflicts") @Consumes("application/json") @Produces("application/json") public List<AcceptConflictResource.ConflictData> loadConflicts(EntitySelectionBean selectionBean) -
updateConflicts
@POST @Path("/updateConflicts") @Consumes("application/json") public jakarta.ws.rs.core.Response updateConflicts(AcceptConflictResource.UpdateConflictBean conflictBean) -
setAccepted
-
setConflictingItemRelations
-