protected static String fromDescription(PropertyList propertyList) { Description iCalObj = (Description) propertyList.getProperty(Description.DESCRIPTION); if (iCalObj == null) { return null; } return iCalObj.getValue(); }
public String getDisplayAlarmDescription() { VAlarm alarm = getDisplayAlarm(); if(alarm==null) { return null; } Description description = (Description) alarm.getProperties() .getProperty(Property.DESCRIPTION); if(description==null) { return null; } return description.getValue(); }
public String getDisplayAlarmDescription() { VAlarm alarm = getDisplayAlarm(); if(alarm==null) { return null; } Description description = (Description) alarm.getProperties() .getProperty(Property.DESCRIPTION); if(description==null) { return null; } return description.getValue(); }
@Override public boolean fromVEvent(final TeamEventDO event, final VEvent vEvent) { if (vEvent.getDescription() != null) { event.setNote(vEvent.getDescription().getValue()); return true; } return false; } }
@Override public void applyTo(VAlarm element) { Action action = element.getAction(); if (action == null || !"DISPLAY".equals(action.getValue()) || element.getDescription() != null && element.getDescription().getValue() != null) { return; } Description description = new Description("display"); element.getProperties().add(description); }
@Override public void applyTo(VAlarm element) { Action action = element.getAction(); if (action == null || !"DISPLAY".equals(action.getValue()) || element.getDescription() != null && element.getDescription().getValue() != null) { return; } Description description = new Description("display"); element.getProperties().add(description); }
@Override public void applyTo(VAlarm element) { Action action = element.getAction(); if (action == null || !"DISPLAY".equals(action.getValue()) || element.getDescription() != null && element.getDescription().getValue() != null) { return; } Description description = new Description("display"); element.getProperties().add(description); }
/** * Sets calendar attributes. * @param note The note item. * @param journal The VJournal. */ private void setCalendarAttributes(NoteItem note, VJournal journal) { // UID if(journal.getUid()!=null) { note.setIcalUid(journal.getUid().getValue()); } // for now displayName is limited to 1024 chars if (journal.getSummary() != null) { note.setDisplayName(StringUtils.substring(journal.getSummary() .getValue(), 0, 1024)); } if (journal.getDescription() != null) { note.setBody(journal.getDescription().getValue()); } // look for DTSTAMP if (journal.getDateStamp() != null) { note.setClientModifiedDate(journal.getDateStamp().getDate()); } }
/** * Sets calendar attributes. * @param note The note item. * @param journal The VJournal. */ private void setCalendarAttributes(NoteItem note, VJournal journal) { // UID if(journal.getUid()!=null) { note.setIcalUid(journal.getUid().getValue()); } // for now displayName is limited to 1024 chars if (journal.getSummary() != null) { note.setDisplayName(StringUtils.substring(journal.getSummary() .getValue(), 0, 1024)); } if (journal.getDescription() != null) { note.setBody(journal.getDescription().getValue()); } // look for DTSTAMP if (journal.getDateStamp() != null) { note.setClientModifiedDate(journal.getDateStamp().getDate()); } }
note.setBody(event.getDescription().getValue());
note.setBody(event.getDescription().getValue());
note.setBody(task.getDescription().getValue());
note.setBody(task.getDescription().getValue());
ICalendarUtils.setDescription(event.getDescription().getValue(), event); } else if (note.getBody()==null && isMod) { ICalendarUtils.setDescription(note.getModifies().getBody(), event);
ICalendarUtils.setDescription(event.getDescription().getValue(), event); } else if (note.getBody()==null && isMod) { ICalendarUtils.setDescription(note.getModifies().getBody(), event);