public static org.sakaiproject.time.api.Time newTime(long param0) { org.sakaiproject.time.api.TimeService service = getInstance(); if (service == null) return null; return service.newTime(param0); }
public static org.sakaiproject.time.api.Time newTime(long param0) { org.sakaiproject.time.api.TimeService service = getInstance(); if (service == null) return null; return service.newTime(param0); }
public static org.sakaiproject.time.api.Time newTime() { org.sakaiproject.time.api.TimeService service = getInstance(); if (service == null) return null; return service.newTime(); }
public static org.sakaiproject.time.api.Time newTime(java.util.GregorianCalendar param0) { org.sakaiproject.time.api.TimeService service = getInstance(); if (service == null) return null; return service.newTime(param0); }
public static org.sakaiproject.time.api.Time newTime() { org.sakaiproject.time.api.TimeService service = getInstance(); if (service == null) return null; return service.newTime(); }
public static org.sakaiproject.time.api.Time newTime(java.util.GregorianCalendar param0) { org.sakaiproject.time.api.TimeService service = getInstance(); if (service == null) return null; return service.newTime(param0); }
@Override public void setInstant(Instant instant) { setDate(m_timeService.newTime(instant.toEpochMilli())); }
@Override public void setReleaseInstant(Instant date) { setReleaseDate(timeService.newTime(date.toEpochMilli())); }
/** * This will convert the Java date object to a Sakai's Time object, which * provides all the useful methods for output. * * @param date * a Java Date object. * @return a Sakai's Time object. */ protected Time getTime(Date date) { Time time = getSakaiFacade().getTimeService().newTime(date.getTime()); return time; }
/** * @inheritDoc */ public Time getStart() { return this.usageSessionServiceAdaptor.timeService().newTime(m_start.getTime()); }
/** * @inheritDoc */ public Time getEnd() { return this.usageSessionServiceAdaptor.timeService().newTime(m_end.getTime()); }
/** * Update the live properties for an AuthzGroup for when modified. */ protected void addLiveUpdateProperties(BaseAuthzGroup azGroup) { String current = sessionManager().getCurrentSessionUserId(); azGroup.m_lastModifiedUserId = current; azGroup.m_lastModifiedTime = timeService().newTime(); }
protected void updateIndividualDropboxRecord(String individualDropboxId) { String sql = contentServiceSql.getUpdateIndividualDropboxChangeSql(); Object[] fields = new Object[3]; fields[0] = isolateContainingId(individualDropboxId); fields[1] = Long.toString(timeService.newTime().getTime()); fields[2] = individualDropboxId; boolean ok = m_sqlService.dbWrite(sql, fields); }
/** * Update the live properties for a site for when modified. */ protected void addLiveUpdateProperties(BaseSite site) { String current = sessionManager().getCurrentSessionUserId(); site.m_lastModifiedUserId = current; site.m_lastModifiedTime = timeService().newTime(); }
/** * Close the session. */ protected void close() { if (!isClosed()) { m_end = this.usageSessionServiceAdaptor.timeService().newTime(); m_active = false; this.usageSessionServiceAdaptor.m_storage.closeSession(this); } }
/** * Update the live properties for a user for when modified. */ protected void addLiveUpdateProperties(ResourcePropertiesEdit props) { String current = sessionManager().getCurrentSessionUserId(); props.addProperty(ResourceProperties.PROP_MODIFIED_BY, current); props.addProperty(ResourceProperties.PROP_MODIFIED_DATE, timeService().newTime().toString()); } // addLiveUpdateProperties
public String getReportTimePeriod(Report report) { if(report.getReportDefinition().getReportParams().getWhen().equals(ReportManager.WHEN_ALL)){ return msgs.getString("report_when_all"); }else{ Time from = M_ts.newTime(report.getReportDefinition().getReportParams().getWhenFrom().getTime()); Time to = M_ts.newTime(report.getReportDefinition().getReportParams().getWhenTo().getTime()); return from.toStringLocalFull() + " - " + to.toStringLocalFull(); } }
/** * Create the live properties for the azGroup. */ protected void addLiveProperties(BaseAuthzGroup azGroup) { String current = sessionManager().getCurrentSessionUserId(); azGroup.m_createdUserId = current; azGroup.m_lastModifiedUserId = current; Time now = timeService().newTime(); azGroup.m_createdTime = now; azGroup.m_lastModifiedTime = (Time) now.clone(); }
/** * Create the live properties for the site. */ protected void addLiveProperties(BaseSite site) { String current = sessionManager().getCurrentSessionUserId(); site.m_createdUserId = current; site.m_lastModifiedUserId = current; Time now = timeService().newTime(); site.m_createdTime = now; site.m_lastModifiedTime = (Time) now.clone(); }
/** * Create the live properties for the user. */ protected void addLiveProperties(ResourcePropertiesEdit props) { String current = sessionManager().getCurrentSessionUserId(); props.addProperty(ResourceProperties.PROP_CREATOR, current); props.addProperty(ResourceProperties.PROP_MODIFIED_BY, current); String now = timeService().newTime().toString(); props.addProperty(ResourceProperties.PROP_CREATION_DATE, now); props.addProperty(ResourceProperties.PROP_MODIFIED_DATE, now); } // addLiveProperties