Package net.fortuna.ical4j.model.property

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


      vEvent.getProperties().getProperty(Property.DTSTART).getParameters().add(Value.DATE);
      vEvent.getProperties().getProperty(Property.DTEND).getParameters().add(Value.DATE);
    }
   
    if(kEvent.getCreated() > 0) {
      Created created = new Created(new DateTime(kEvent.getCreated()));
      vEvent.getProperties().add(created);
    }
   
    if(kEvent.getLastModified() > 0) {
      LastModified lastMod = new LastModified(new DateTime(kEvent.getLastModified()));
View Full Code Here


      else if (sClass.equals(ICAL_CLASS_X_FREEBUSY.getValue())) iClassification = KalendarEvent.CLASS_X_FREEBUSY;
      else if (sClass.equals(ICAL_CLASS_PUBLIC.getValue())) iClassification = KalendarEvent.CLASS_PUBLIC;
      calEvent.setClassification(iClassification);
    }
    // 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());
    }
View Full Code Here

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

            if(event.isOccupied())
                vevent.getProperties().add(new Transp("OPAQUE"));
            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()));
View Full Code Here

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

TOP

Related Classes of net.fortuna.ical4j.model.property.Created

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.