Beispiel #1
0
 public void update(AcUser e) {
   super.update(e);
   getAccess().getUserRoleDb().updateRolesFor(e);
   getAccess().getUserAirportDb().updateAirportsFor(e);
   getAccess()
       .getUserAirportMobileDeviceCacheDb()
       .insertFromUserAirportWithLogin(e.getLogin(), AcGlobals.nowUtc());
 }
  protected byte[] run() {
    _nowUtcTs = AcGlobals.nowUtc();

    makeModels();

    String accountCode = _access.getAccountCode();
    AcPropertyRegistry pr = AcPropertyRegistries.getAccount(accountCode);
    AcCn46Document document = new AcCn46Document(pr);
    byte[] pdf = document.makeDocument(_models.getValues());
    _isValidCn46Document = document.isValidDocument();
    return pdf;
  }
 private JwList<AcScheduledFlightUploadErrorVo> fillErrors(JwList<AcScheduledFlightUpload> v) {
   JwList<AcScheduledFlightUploadErrorVo> r = new JwList<AcScheduledFlightUploadErrorVo>(v.size());
   // we need some sort of starting "date" - we don't care what it is or what timezone it uses
   JwDate date = AcGlobals.nowUtc().getDate().getCopy();
   JwMap<String, AcAirport> airportCache = new JwMap<String, AcAirport>();
   for (AcScheduledFlightUpload o : v) {
     AcScheduledFlightUploadErrorVo e = new AcScheduledFlightUploadErrorVo();
     e.setScheduledFlightUpload(o);
     validateDates(e);
     validateTimes(date, airportCache, e);
     r.add(e);
   }
   return r;
 }
  protected JwList<AcUspsInternationalNominatedRoute> getInternationalNominatedRoutes(
      JwDate startUtcDt,
      JwDate endUtcDt,
      String contract,
      String originAirport,
      String destinationAirport,
      String flightNumber) {
    AcPageSession ps = getPageSession();
    Integer i = ps.getInternationalNominatedRouteSummaryDuration();
    JwTimestamp ts = AcGlobals.nowUtc().getCopy();
    ts.subtractHours(i);

    return getUspsInternationalNominatedRouteService()
        .getNewByBlockBeginEndCreatedUtcTsOnOrAfter(
            startUtcDt, endUtcDt, contract, originAirport, destinationAirport, flightNumber, ts);
  }