Examples of deleteTimestampFor()


Examples of org.olat.commons.lifecycle.LifeCycleManager.deleteTimestampFor()

      RepositoryEntry reloadedRe = (RepositoryEntry) DBFactory.getInstance().loadObject(repositoryEntry, true);
      reloadedRe.setLastUsage(new Date());
      LifeCycleManager lcManager = LifeCycleManager.createInstanceFor(reloadedRe);
      if (lcManager.lookupLifeCycleEntry(RepositoryDeletionManager.SEND_DELETE_EMAIL_ACTION) != null) {
        Tracing.logAudit("Repository-Deletion: Remove from delete-list repositoryEntry=" + reloadedRe, RepositoryManager.class);
        lcManager.deleteTimestampFor(RepositoryDeletionManager.SEND_DELETE_EMAIL_ACTION);
      }
      RepositoryManager.getInstance().updateRepositoryEntry(reloadedRe);
    } else {
      log.info("Could not executeTask, because repositoryEntry does no longer exist");
    }
View Full Code Here

Examples of org.olat.commons.lifecycle.LifeCycleManager.deleteTimestampFor()

          if (Tracing.isDebugEnabled(this.getClass())) Tracing.logDebug("setIdentityAsActiv beginSingleTransaction identity=" + identity, this.getClass());
          identity.setLastLogin(new Date());
          LifeCycleManager lifeCycleManagerForIdenitiy = LifeCycleManager.createInstanceFor(identity);
          if (lifeCycleManagerForIdenitiy.lookupLifeCycleEntry(SEND_DELETE_EMAIL_ACTION) != null) {
            Tracing.logAudit("User-Deletion: Remove from delete-list identity=" + identity, this.getClass());
            lifeCycleManagerForIdenitiy.deleteTimestampFor(SEND_DELETE_EMAIL_ACTION);
          }
          if (Tracing.isDebugEnabled(this.getClass())) Tracing.logDebug("setIdentityAsActiv updateObject identity=" + identity, this.getClass());
          DBFactory.getInstance().updateObject(identity);
          if (Tracing.isDebugEnabled(this.getClass())) Tracing.logDebug("setIdentityAsActiv committed identity=" + identity, this.getClass());
        }
View Full Code Here

Examples of org.olat.commons.lifecycle.LifeCycleManager.deleteTimestampFor()

    LifeCycleManager lifeCycleManager = LifeCycleManager.createInstanceFor(this);
    log.debug("setProjectEvent projectEvent=" + projectEvent);
    if (projectEvent.getStartDate() != null) {
      lifeCycleManager.markTimestampFor(projectEvent.getStartDate(), projectEvent.getEventType().toString(), EVENT_START);
    } else {
      lifeCycleManager.deleteTimestampFor(projectEvent.getEventType().toString(), EVENT_START);
      log.debug("delete timestamp for " + projectEvent.getEventType().toString(), EVENT_START);
    }
    if (projectEvent.getEndDate() != null) {
      lifeCycleManager.markTimestampFor(projectEvent.getEndDate(), projectEvent.getEventType().toString(), EVENT_END);
    } else {
View Full Code Here

Examples of org.olat.commons.lifecycle.LifeCycleManager.deleteTimestampFor()

      log.debug("delete timestamp for " + projectEvent.getEventType().toString(), EVENT_START);
    }
    if (projectEvent.getEndDate() != null) {
      lifeCycleManager.markTimestampFor(projectEvent.getEndDate(), projectEvent.getEventType().toString(), EVENT_END);
    } else {
      lifeCycleManager.deleteTimestampFor(projectEvent.getEventType().toString(), EVENT_END);
      log.debug("delete timestamp for " + projectEvent.getEventType().toString(), EVENT_END);
    }

  }
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.