Package java.util

Examples of java.util.Date.after()


                XMLString.append(icalEvent.toXML());
                XMLString.append("\n");
            }   
            // Condition 4.
            else if (thisTimeFrom.before(icalDateStart)
            &&       thisTimeTo.after(icalDateStart))
            {
                // Create event with starttime time as thisTimeFrom, end time as speced.
//                    XMLString.append("Cond4");
                icalEvent.setDateStart(icalDateStart);
                icalEvent.setDateEnd(thisTimeTo);
View Full Code Here


    Boolean showResultsActive = (Boolean)modConfig.get(IQEditController.CONFIG_KEY_DATE_DEPENDENT_RESULTS);
    if(showResultsActive!=null && showResultsActive.booleanValue()) {
      Date startDate = (Date)modConfig.get(IQEditController.CONFIG_KEY_RESULTS_START_DATE);
      Date endDate = (Date)modConfig.get(IQEditController.CONFIG_KEY_RESULTS_END_DATE);
      Date currentDate = new Date();
      if(currentDate.after(startDate) && (endDate==null || currentDate.before(endDate))) {
        isVisible = true;
      }
    } else {
      isVisible = true;
    }
View Full Code Here

              WikiPage element = it.next();
             
              // do only show entries newer then the ones already seen
              Date modDate = new Date(element.getModificationTime());
              logDebug("modDate=" + modDate + " ; compareDate=" + compareDate, null);
              if (modDate.after(compareDate)) {
                if((element.getPageName().startsWith("O_") || element.getPageName().startsWith(WikiPage.WIKI_MENU_PAGE)) &&
                    (element.getModifyAuthor() <= 0)) {
                    //theses pages are created sometimes automatically. Check if this is the case
                    continue;
                }
View Full Code Here

  /**
   * @return True if this is published
   */
  public boolean isPublished() {
    Date now = new Date();
    return !draft && publishDate != null && now.after(publishDate);
  }

  /**
   * @return True if this is publication is scheduled
   */
 
View Full Code Here

        String time = periodElement.getAttribute("single_start");
        if (date==null || time==null) return false;
       
        Date scheduledRuntime=SOSDate.getTime(date+" "+time);
        Date now = SOSDate.getTime();
        return(now.after(scheduledRuntime));
      } catch(Exception e){}
      return false;
    }

}
View Full Code Here

              // a course
              // coach. in the second case, only tests of users are shown that
              // the coach does actually
              // coach himself. he does not have access to other users
              Date modDate = qrs.getLastModified();
              if (modDate.after(compareDate) && (hasFullAccess || PersistenceHelper.listContainsObjectByKey(coachedUsers, qrs.getIdentity()))) {
                String score = (new Float(qrs.getScore())).toString();
                String desc = translator.translate("notifications.entry", new String[] { test.getShortTitle(),
                    NotificationHelper.getFormatedName(qrs.getIdentity()), score });

                String urlToSend = null;
View Full Code Here

                }
                // setback this order for future target date
                if (mailOrder.getTargeted() != null) {
                    Date currentDate = SOSDate.getTime();
                    Date targetDate = mailOrder.getTargeted();
                    if (targetDate.after(currentDate)) {
                        Calendar target = Calendar.getInstance();
                        target.setTime(targetDate);
                        spooler_task.job().set_delay_order_after_setback(1, (target.getTimeInMillis()-System.currentTimeMillis())/1000);
                        spooler_task.order().setback();
                        if (this.getLogger() != null) this.getLogger().info("order is set back for target date: " + mailOrder.getTargeted().toString());
View Full Code Here

        if (now.before(handoutEvent.getStartDate())) {
          return false;
        }
      }
      if (handoutEvent.getEndDate() != null) {
        if (now.after(handoutEvent.getEndDate())) {
          return false;
        }
      }
    }
    return true;
View Full Code Here

        if (now.before(handoutEvent.getStartDate())) {
          return false;
        }
      }
      if (handoutEvent.getEndDate() != null) {
        if (now.after(handoutEvent.getEndDate())) {
          return false;
        }
      }
    }
    return true;
View Full Code Here

        if (now.before(enrollmentEvent.getStartDate())) {
          return false;
        }
      }
      if (enrollmentEvent.getEndDate() != null) {
        if (now.after(enrollmentEvent.getEndDate())) {
          return false;
        }
      }
      if ( (enrollmentEvent.getStartDate() == null ) && (enrollmentEvent.getEndDate() == null) ) {
        // no enrollment date define => access ok
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.