Class DayBookApp
java.lang.Object
sk.iway.iwcm.components.WebjetComponentAbstract
sk.iway.iwcm.components.reservation.DayBookApp
- All Implemented Interfaces:
WebjetComponentInterface
App for Booking of rooms, cars, etc. for a whole day.
-
Field Summary
Fields inherited from class sk.iway.iwcm.components.WebjetComponentAbstract
cacheMinutes, device, showForLoggedUser -
Constructor Summary
ConstructorsConstructorDescriptionDayBookApp(ReservationObjectRepository ror, ReservationRepository rr, ReservationObjectPriceRepository ropr) -
Method Summary
Modifier and TypeMethodDescriptiongetRopr()getRor()getRr()voidinit(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Initialization method for custom component initialization Called every time a component is inserted into the pagesaveForm(@Valid ReservationEntity entity, org.springframework.validation.BindingResult result, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request) voidsetReservationObjectIds(String reservationObjectIds) voidvoidvoidview(org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request) Methods inherited from class sk.iway.iwcm.components.WebjetComponentAbstract
addCurrentValueToOptions, addCurrentValueToOptions, addOptions, getAppOptions, getCacheMinutes, getDevice, getShowForLoggedUser, getViewFolder, init, initAppEditor, setCacheMinutes, setDevice, setShowForLoggedUser, setViewFolder
-
Constructor Details
-
DayBookApp
@Autowired public DayBookApp(ReservationObjectRepository ror, ReservationRepository rr, ReservationObjectPriceRepository ropr)
-
-
Method Details
-
init
public void init(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Description copied from class:WebjetComponentAbstractInitialization method for custom component initialization Called every time a component is inserted into the page- Specified by:
initin interfaceWebjetComponentInterface- Overrides:
initin classWebjetComponentAbstract
-
view
public String view(org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request) -
saveForm
public String saveForm(@Valid @ModelAttribute("entity") @Valid ReservationEntity entity, org.springframework.validation.BindingResult result, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request) -
getRor
-
getRr
-
getRopr
-
getReservationObjectIds
-
setRor
-
setRr
-
setRopr
-
setReservationObjectIds
-