Package net.fortuna.ical4j.model.property

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


        linkEncoded.append(link.getDisplayName());
        linkEncoded.append("§");
        linkEncoded.append(link.getURI());
        linkEncoded.append("§");
        linkEncoded.append(link.getIconCssClass());
        XProperty linkProperty = new XProperty(ICAL_X_OLAT_LINK, linkEncoded.toString());
        vEventProperties.add(linkProperty);
      }
    }
   
    if (kEvent.getComment() != null) {
      vEventProperties.add(new XProperty(ICAL_X_OLAT_COMMENT, kEvent.getComment()));
    }
    if (kEvent.getNumParticipants() != null) {
      vEventProperties.add(new XProperty(ICAL_X_OLAT_NUMPARTICIPANTS, Integer.toString(kEvent.getNumParticipants())));
    }
    if (kEvent.getParticipants() != null) {
      StringBuffer strBuf = new StringBuffer();
      String[] participants = kEvent.getParticipants();
      for ( String participant : participants ) {
        strBuf.append(participant);
        strBuf.append("§");
      }
      vEventProperties.add(new XProperty(ICAL_X_OLAT_PARTICIPANTS, strBuf.toString()));
    }
    if (kEvent.getSourceNodeId() != null) {
      vEventProperties.add(new XProperty(ICAL_X_OLAT_SOURCENODEID, kEvent.getSourceNodeId()));
    }
   
    // recurrence
    String recurrence = kEvent.getRecurrenceRule();
    if(recurrence != null && !recurrence.equals("")) {
View Full Code Here


   
    // links if any
    List linkProperties = event.getProperties(ICAL_X_OLAT_LINK);
    List kalendarEventLinks = new ArrayList();
    for (Iterator iter = linkProperties.iterator(); iter.hasNext();) {
      XProperty linkProperty = (XProperty) iter.next();
      if (linkProperty != null) {
        String encodedLink = linkProperty.getValue();
        StringTokenizer st = new StringTokenizer(encodedLink, "§", false);
        if (st.countTokens() >= 4) {
          String provider = st.nextToken();
          String id = st.nextToken();
          String displayName = st.nextToken();
View Full Code Here

            }
            if (newAlarm) {
                alarm = createAlarm(reminder);
                alarms.add(alarm);
                alarmProps = alarm.getProperties();
                alarmProps.add(new XProperty(reminderXPropName, reminderId));
            }
            GenericValue contactMech = reminder.getRelatedOne("ContactMech");
            if (contactMech != null && "EMAIL_ADDRESS".equals(contactMech.get("contactMechTypeId"))) {
                try {
                    alarmProps.add(new Attendee(contactMech.getString("infoString")));
View Full Code Here

                calendar = new Calendar();
            }
        }
        PropertyList propList = calendar.getProperties();
        replaceProperty(propList, prodId);
        replaceProperty(propList, new XProperty(workEffortIdXPropName, workEffort.getString("workEffortId")));
        if (newCalendar) {
            propList.add(Version.VERSION_2_0);
            propList.add(CalScale.GREGORIAN);
            // TODO: Get time zone from publish properties value
            java.util.TimeZone tz = java.util.TimeZone.getDefault();
View Full Code Here

    protected static XProperty toXProperty(String name, String value) {
        if (name == null || value == null) {
            return null;
        }
        return new XProperty(name, value);
    }
View Full Code Here

            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));
            vevents.add(vevent);
        }
        icalendar.getComponents().addAll(vevents);
View Full Code Here

            }
            if (newAlarm) {
                alarm = createAlarm(reminder);
                alarms.add(alarm);
                alarmProps = alarm.getProperties();
                alarmProps.add(new XProperty(reminderXPropName, reminderId));
            }
            GenericValue contactMech = reminder.getRelatedOne("ContactMech");
            if (contactMech != null && "EMAIL_ADDRESS".equals(contactMech.get("contactMechTypeId"))) {
                try {
                    alarmProps.add(new Attendee(contactMech.getString("infoString")));
View Full Code Here

                calendar = new Calendar();
            }
        }
        PropertyList propList = calendar.getProperties();
        replaceProperty(propList, prodId);
        replaceProperty(propList, new XProperty(workEffortIdXPropName, workEffort.getString("workEffortId")));
        if (newCalendar) {
            propList.add(Version.VERSION_2_0);
            propList.add(CalScale.GREGORIAN);
            // TODO: Get time zone from publish properties value
            java.util.TimeZone tz = java.util.TimeZone.getDefault();
View Full Code Here

    protected static XProperty toXProperty(String name, String value) {
        if (name == null || value == null) {
            return null;
        }
        return new XProperty(name, value);
    }
View Full Code Here

        }

        Calendar calendar = new Calendar();
        calendar.getProperties().add(PROD_ID);
        calendar.getProperties().add(Version.VERSION_2_0);
        calendar.getProperties().add(new XProperty("X-WR-CALNAME", CALNAME));

        NicoliveMeta n = NicoliveMeta.get();
        NicoliveIndexMeta ni = NicoliveIndexMeta.get();

        ModelQuery<Nicolive> query =
View Full Code Here

TOP

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

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.