Examples of before()


Examples of java.util.Date.before()

    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

Examples of java.util.Date.before()

      } else {
        myBuildinfo.contextPut("existsPatchFile", true);
        Date patchesFileDate = new Date(patchesNewest.lastModified());
        myBuildinfo.contextPut("patchesFileDate", patchesFileDate);
       
        final boolean patchesActive = patchesFileDate.before(timeOfServerStartup);
        if (patchesActive) {
          myBuildinfo.contextPut("patchesActive", "yes, patch(es) active");
        } else {
          myBuildinfo.contextPut("patchesActive", "probably not: they are deployed but server hasn't been restarted since. Will be active after restart!");
        }
View Full Code Here

Examples of java.util.Date.before()

  /**
   * @return True if this is publication is scheduled
   */
  public boolean isScheduled() {
    Date now = new Date();
    return !draft && publishDate != null && now.before(publishDate);
  }

  /**
   * @return An extra CSS class for drafts and scheduled items
   */
 
View Full Code Here

Examples of java.util.Date.before()

          HistoryEntry objHistoryEntry = objHistoryEntries.get(0);
          String strErrorText = objHistoryEntry.getErrorText();
          String strEndTime = objHistoryEntry.getEndTime();
          Date objDateEndTime = SOSDate.getDate(strEndTime, SOSDate.dateTimeFormat);       
          boolean flgRunSuccessful = isEmpty(strErrorText);
          boolean flgRunTooLate = objDateEndTime.before(objDateStartTime);
         
          if(flgRunTooLate || !flgRunSuccessful ) {
            logger.info(String.format("last run of %1$s on %2$s", strJobName, strEndTime));
            if(!flgRunSuccessful) {
              logger.info(String.format("with error: %1$s", strErrorText));
View Full Code Here

Examples of java.util.Date.before()

  private boolean isDropboxAccessible(Project project, ProjectBrokerModuleConfiguration moduleConfig) {
    if (moduleConfig.isProjectEventEnabled(EventType.HANDOUT_EVENT)) {
      ProjectEvent handoutEvent = project.getProjectEvent(EventType.HANDOUT_EVENT);
      Date now = new Date();
      if (handoutEvent.getStartDate() != null) {
        if (now.before(handoutEvent.getStartDate())) {
          return false;
        }
      }
      if (handoutEvent.getEndDate() != null) {
        if (now.after(handoutEvent.getEndDate())) {
View Full Code Here

Examples of java.util.Date.before()

  private boolean isDropboxAccessible(Project project, ProjectBrokerModuleConfiguration moduleConfig) {
    if (moduleConfig.isProjectEventEnabled(EventType.HANDOUT_EVENT)) {
      ProjectEvent handoutEvent = project.getProjectEvent(EventType.HANDOUT_EVENT);
      Date now = new Date();
      if (handoutEvent.getStartDate() != null) {
        if (now.before(handoutEvent.getStartDate())) {
          return false;
        }
      }
      if (handoutEvent.getEndDate() != null) {
        if (now.after(handoutEvent.getEndDate())) {
View Full Code Here

Examples of java.util.Date.before()

  private boolean isEnrollmentDateOk(Project project, ProjectBrokerModuleConfiguration moduleConfig) {
    if (moduleConfig.isProjectEventEnabled(EventType.ENROLLMENT_EVENT)) {
      ProjectEvent enrollmentEvent = project.getProjectEvent(EventType.ENROLLMENT_EVENT);
      Date now = new Date();
      if (enrollmentEvent.getStartDate() != null) {
        if (now.before(enrollmentEvent.getStartDate())) {
          return false;
        }
      }
      if (enrollmentEvent.getEndDate() != null) {
        if (now.after(enrollmentEvent.getEndDate())) {
View Full Code Here

Examples of java.util.Date.before()

        String strIndex = StrUtil.unzipStringFromBytes(data);
        indexFromString(strIndex);
        indexModDate = file.getLastModifiedTime();
        Date dt = (Date)getBusiness().getSystemService().getCache()
            .getMemcache().get(getIndexKey());
        if (dt == null || dt.before(indexModDate)) {
          getBusiness().getSystemService().getCache().getMemcache()
              .put(getIndexKey(), indexModDate);
        }
      }
      else {
View Full Code Here

Examples of java.util.Date.before()

        SubscriptionItem subsitem = null;
        if (latestEmail == null || compareDate.after(latestEmail)){
          // no notif. ever sent until now
          if (latestEmail == null) {
            latestEmail = defaultCompareDate;
          else if (latestEmail.before(defaultCompareDate)) {
            //no notification older than a month
            latestEmail = defaultCompareDate;
          }
          subsitem = createSubscriptionItem(sub, locale, SubscriptionInfo.MIME_PLAIN, SubscriptionInfo.MIME_PLAIN, latestEmail);
        else if(latestEmail != null && latestEmail.after(compareDate)) {
View Full Code Here

Examples of java.util.Date.before()

            }
            if (tempComparison == ATTRIBUTE_GREATER){
                if (tempDate.after(myAttributeValue)) return true;
            }
            if (tempComparison == ATTRIBUTE_LESS){
                if (tempDate.before(myAttributeValue)) return true;
            }
        }
        return false;
    }
    /** Get the configuration information for this filter  */
 
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.