Package io.extact.rms.external.webapi
Class RentalReservationResource
java.lang.Object
io.extact.rms.external.webapi.RentalReservationResource
- All Implemented Interfaces:
WebApiSpec
@Path("/rms")
@ApplicationScoped
public class RentalReservationResource
extends Object
implements WebApiSpec
-
Field Summary
Fields inherited from interface io.extact.rms.external.webapi.WebApiSpec
ADMIN_ROLE, MEMBER_ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddRentalItem(AddRentalItemDto addDto) addReservation(AddReservationDto addDto) addUserAccount(AddUserAccountDto addDto) authenticate(LoginDto loginDto) authenticate(String loginId, String password) voidcancelReservation(Integer reservationId) booleancanRentedItemAtTerm(Integer rentalItemId, LocalDateTime from, LocalDateTime to) voiddeleteRentalItem(Integer rentalItemId) voiddeleteReservation(Integer reservationId) voiddeleteUserAccount(Integer userAccountId) findReservationByRentalItemAndStartDate(Integer rentalItemId, LocalDate date) findReservationByRentalItemId(Integer rentalItemId) findReservationByReserverId(Integer reserverId) updateRentalItem(RentalItemResourceDto updateDto) updateReservation(ReservationResourceDto updateDto) updateUserAccount(UserAccountResourceDto updateDto) updateUserProfile(UserAccountResourceDto updateDto)
-
Constructor Details
-
RentalReservationResource
-
-
Method Details
-
authenticate
- Specified by:
authenticatein interfaceWebApiSpec
-
authenticate
- Specified by:
authenticatein interfaceWebApiSpec
-
findReservationByRentalItemAndStartDate
@RolesAllowed("MEMBER") public List<ReservationResourceDto> findReservationByRentalItemAndStartDate(Integer rentalItemId, LocalDate date) - Specified by:
findReservationByRentalItemAndStartDatein interfaceWebApiSpec
-
findReservationByReserverId
@RolesAllowed("MEMBER") public List<ReservationResourceDto> findReservationByReserverId(Integer reserverId) - Specified by:
findReservationByReserverIdin interfaceWebApiSpec
-
getOwnReservations
- Specified by:
getOwnReservationsin interfaceWebApiSpec
-
getAllRentalItems
- Specified by:
getAllRentalItemsin interfaceWebApiSpec
-
addReservation
- Specified by:
addReservationin interfaceWebApiSpec
-
cancelReservation
- Specified by:
cancelReservationin interfaceWebApiSpec
-
findReservationByRentalItemId
@RolesAllowed("MEMBER") public List<ReservationResourceDto> findReservationByRentalItemId(Integer rentalItemId) - Specified by:
findReservationByRentalItemIdin interfaceWebApiSpec
-
findCanRentedItemAtTerm
@RolesAllowed("MEMBER") public List<RentalItemResourceDto> findCanRentedItemAtTerm(LocalDateTime from, LocalDateTime to) - Specified by:
findCanRentedItemAtTermin interfaceWebApiSpec
-
canRentedItemAtTerm
@RolesAllowed("MEMBER") public boolean canRentedItemAtTerm(Integer rentalItemId, LocalDateTime from, LocalDateTime to) - Specified by:
canRentedItemAtTermin interfaceWebApiSpec
-
addRentalItem
- Specified by:
addRentalItemin interfaceWebApiSpec
-
updateRentalItem
@RolesAllowed("ADMIN") public RentalItemResourceDto updateRentalItem(RentalItemResourceDto updateDto) - Specified by:
updateRentalItemin interfaceWebApiSpec
-
deleteRentalItem
- Specified by:
deleteRentalItemin interfaceWebApiSpec
-
getAllReservations
- Specified by:
getAllReservationsin interfaceWebApiSpec
-
updateReservation
@RolesAllowed("ADMIN") public ReservationResourceDto updateReservation(ReservationResourceDto updateDto) - Specified by:
updateReservationin interfaceWebApiSpec
-
deleteReservation
- Specified by:
deleteReservationin interfaceWebApiSpec
-
getAllUserAccounts
- Specified by:
getAllUserAccountsin interfaceWebApiSpec
-
addUserAccount
- Specified by:
addUserAccountin interfaceWebApiSpec
-
updateUserAccount
@RolesAllowed("ADMIN") public UserAccountResourceDto updateUserAccount(UserAccountResourceDto updateDto) - Specified by:
updateUserAccountin interfaceWebApiSpec
-
deleteUserAccount
- Specified by:
deleteUserAccountin interfaceWebApiSpec
-
getOwnUserProfile
- Specified by:
getOwnUserProfilein interfaceWebApiSpec
-
updateUserProfile
@RolesAllowed({"MEMBER","ADMIN"}) public UserAccountResourceDto updateUserProfile(UserAccountResourceDto updateDto) - Specified by:
updateUserProfilein interfaceWebApiSpec
-