Examples of IBookingManager


Examples of it.hotel.model.booking.manager.IBookingManager

   */
  public int doStartTag() {
    WebApplicationContext context = WebApplicationContextUtils.getWebApplicationContext(pageContext.getServletContext());
    UserContainer container = (UserContainer) context.getBean("userContainer");
    IStructureManager structureManager = (IStructureManager) context.getBean("structureRawManager");
    IBookingManager bookingManager = (IBookingManager) context.getBean("bookingRawManager");
      try {
        IUser user = container.getUser();
        Structure structure = (Structure) structureManager.get(user.getStructureId());
        if (structure != null){         
          Collection<Room> rooms = bookingManager.getVacantRoomsForStructure(structure, CalendarUtils.GetToday(), CalendarUtils.GetToday());
          pageContext.getOut().print(rooms.size());
        }
       
       
      } catch (IOException e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.