Package org.olat.commons.lifecycle

Examples of org.olat.commons.lifecycle.LifeCycleEntry


      return (value == null ? "n/a" : value);     
    } else if(col == userPropertyHandlers.size()+1) {
      Date lastLogin= identity.getLastLogin();
      return (lastLogin == null ? "n/a" : lastLogin);     
    } else if(col == userPropertyHandlers.size()+2) {
      LifeCycleEntry lcEvent = LifeCycleManager.createInstanceFor(identity).lookupLifeCycleEntry(UserDeletionManager.SEND_DELETE_EMAIL_ACTION);
      if (lcEvent == null) {
        return "n/a";
      }
      Date deleteEmail= lcEvent.getLcTimestamp();
      return (deleteEmail == null ? "n/a" : deleteEmail);         
    } else {
      return "error";     
    }
  }
View Full Code Here


    customfields.put(CUSTOMFIELD_KEY + index, value);
  }

  public ProjectEvent getProjectEvent(Project.EventType eventType) {
    LifeCycleManager lifeCycleManager = LifeCycleManager.createInstanceFor(this);
    LifeCycleEntry startLifeCycleEntry = lifeCycleManager.lookupLifeCycleEntry(eventType.toString(), EVENT_START);
    LifeCycleEntry endLifeCycleEntry = lifeCycleManager.lookupLifeCycleEntry(eventType.toString(), EVENT_END);
    Date startDate = null;
    if (startLifeCycleEntry != null) {
      startDate = startLifeCycleEntry.getLcTimestamp();
    }
    Date endDate = null;
    if (endLifeCycleEntry != null) {
      endDate = endLifeCycleEntry.getLcTimestamp();
    }
   
    ProjectEvent projectEvent = new ProjectEvent(eventType, startDate , endDate);
    log.debug("getProjectEvent projectEvent=" + projectEvent);
    return projectEvent;
View Full Code Here

TOP

Related Classes of org.olat.commons.lifecycle.LifeCycleEntry

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.