Package models.transit

Examples of models.transit.Agency


            Secure.login();
        }

        if(session.get("agencyId") == null) {
           
          Agency agency = agencies.get(0);

            session.put("agencyId", agency.id);
            session.put("agencyName", agency.name);
            session.put("lat", agency.defaultLat);
            session.put("lon", agency.defaultLon);
View Full Code Here


    }

    public static void search() {
      
        Long agencyId = Long.parseLong(session.get("agencyId"));
        Agency selectedAgency = Agency.findById(agencyId);
        List<Route> routes = Route.find("agency = ? order by routeShortName", selectedAgency).fetch();
        render(routes);
    }
View Full Code Here

   
    Application.index();
  }
   
    public static void setAgency(Long agencyId) {
        Agency agency = Agency.findById(agencyId);

        if(agency == null)
            badRequest();

        session.put("agencyId", agencyId);
View Full Code Here

       
        if(agencySelect != null || agencySelect.size() > 0) {

            for(Long agencyId : agencySelect) {
               
              Agency a = Agency.findById(agencyId);
                if(a != null)
                  agencyObjects.add(a);
           
            }
        }
View Full Code Here

        params.flash();
        validation.keep();
        agencyForm();
        }
     
      Agency agency = new Agency(gtfsId, name, url, timezone, language, phone);
     
      agency.defaultLat = defaultLat;
      agency.defaultLon = defaultLon;
     
      agency.save();
     
      Bootstrap.index();
    }
View Full Code Here

TOP

Related Classes of models.transit.Agency

Copyright © 2018 www.massapicom. 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.