Examples of LastModified


Examples of net.fortuna.ical4j.model.property.LastModified

      Created created = new Created(new DateTime(kEvent.getCreated()));
      vEvent.getProperties().add(created);
    }
   
    if(kEvent.getLastModified() > 0) {
      LastModified lastMod = new LastModified(new DateTime(kEvent.getLastModified()));
      vEvent.getProperties().add(lastMod);
    }

    // Uid
    PropertyList vEventProperties = vEvent.getProperties();
View Full Code Here

Examples of net.fortuna.ical4j.model.property.LastModified

    // created/last modified
    Created created = event.getCreated();
    if (created != null) {
      calEvent.setCreated(created.getDate().getTime());
    }
    LastModified lastModified = event.getLastModified();
    if (lastModified != null) {
      calEvent.setLastModified(lastModified.getDate().getTime());
    }
   
    // location
    Location location = event.getLocation();
    if (location != null) {
View Full Code Here

Examples of net.fortuna.ical4j.model.property.LastModified

        } else if (event.getCreatedAt() != null){
            modifiedAt = new DateTime(event.getCreatedAt().getTime());
        }
        if (modifiedAt != null) {
            modifiedAt.setTimeZone(JST_TIMEZONE);
            vEvent.getProperties().add(new LastModified(modifiedAt));
        }

        // sequence
        vEvent.getProperties().add(new Sequence(event.getRevision()));
View Full Code Here

Examples of net.fortuna.ical4j.model.property.LastModified

        TimeDuration td = new TimeDuration(0, 0, (dur.getWeeks() * 7) + dur.getDays(), dur.getHours(), dur.getMinutes(), dur.getSeconds(), 0);
        return new Double(TimeDuration.toLong(td));
    }

    protected static Timestamp fromLastModified(PropertyList propertyList) {
        LastModified iCalObj = (LastModified) propertyList.getProperty(LastModified.LAST_MODIFIED);
        if (iCalObj == null) {
            return null;
        }
        Date date = iCalObj.getDate();
        return new Timestamp(date.getTime());
    }
View Full Code Here

Examples of net.fortuna.ical4j.model.property.LastModified

    protected static LastModified toLastModified(Timestamp javaObj) {
        if (javaObj == null) {
            return null;
        }
        return new LastModified(new DateTime(javaObj));
    }
View Full Code Here

Examples of net.fortuna.ical4j.model.property.LastModified

            else
                vevent.getProperties().add(new Transp("TRANSPARENT"));
            vevent.getProperties().add(new Summary(event.getTitle()));
            vevent.getProperties().add(new Created(new DateTime(event.getCreateDate())));
            vevent.getProperties().add(new DtStamp(new DateTime(event.getModifyDate())));
            vevent.getProperties().add(new LastModified(new DateTime(event.getModifyDate())));
            vevent.getProperties().add(new Description(event.getDescription()));
            vevent.getProperties().add(new Uid(event.getId().toString() + "@opencustomer"));
            vevent.getProperties().add(new XProperty("X-OC-ID",event.getId().toString()));
            if(event.getRecurrenceType() != EventVO.RecurrenceType.NONE)
                vevent.getProperties().add(getRRule(event));
View Full Code Here

Examples of net.fortuna.ical4j.model.property.LastModified

        TimeDuration td = new TimeDuration(0, 0, (dur.getWeeks() * 7) + dur.getDays(), dur.getHours(), dur.getMinutes(), dur.getSeconds(), 0);
        return new Double(TimeDuration.toLong(td));
    }

    protected static Timestamp fromLastModified(PropertyList propertyList) {
        LastModified iCalObj = (LastModified) propertyList.getProperty(LastModified.LAST_MODIFIED);
        if (iCalObj == null) {
            return null;
        }
        Date date = iCalObj.getDate();
        return new Timestamp(date.getTime());
    }
View Full Code Here

Examples of net.fortuna.ical4j.model.property.LastModified

    protected static LastModified toLastModified(Timestamp javaObj) {
        if (javaObj == null) {
            return null;
        }
        return new LastModified(new DateTime(javaObj));
    }
View Full Code Here

Examples of org.gatein.wsrp.jcr.mapping.mixins.LastModified

      if (old != null)
      {
         session.remove(old);

         // update last modified of element linked to toDelete if needed
         final LastModified lastModified = manager.lastModifiedToUpdateOnDelete(session);
         if (lastModified != null)
         {
            lastModified.setLastModified(SupportsLastModified.now());
         }
         closeSession(true);
         return true;
      }
      else
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.