public Property createProperty(final ParameterList parameters, final String value) throws IOException, URISyntaxException, ParseException { return new Summary(parameters, value); }
/** * @param aList a list of parameters for this component * @param aValue a value string for this component */ public Summary(final ParameterList aList, final String aValue) { super(SUMMARY, aList, new Factory()); setValue(aValue); }
protected static String fromSummary(PropertyList propertyList) { Summary iCalObj = (Summary) propertyList.getProperty(Summary.SUMMARY); if (iCalObj == null) { return null; } return iCalObj.getValue(); }
/** * Update the SUMMARY property on a component. * @param text SUMMARY value to update. If null, the SUMMARY property * will be removed * @param comp component to update */ public static void setSummary(String text, Component comp) { Summary summary = (Summary) comp.getProperties().getProperty(Property.SUMMARY); if (text == null) { if (summary != null) { comp.getProperties().remove(summary); } return; } if (summary == null) { summary = new Summary(); comp.getProperties().add(summary); } summary.setValue(text); }
/** * {@inheritDoc} */ public final void validate() throws ValidationException { /* * ; the following are optional, ; but MUST NOT occur more than once (";" altrepparam) / (";" languageparam) / */ ParameterValidator.getInstance().assertOneOrLess(Parameter.ALTREP, getParameters()); ParameterValidator.getInstance().assertOneOrLess(Parameter.LANGUAGE, getParameters()); /* * ; the following is optional, ; and MAY occur more than once (";" xparam) */ }
/** * Update the SUMMARY property on a component. * @param text SUMMARY value to update. If null, the SUMMARY property * will be removed * @param comp component to update */ public static void setSummary(String text, Component comp) { Summary summary = (Summary) comp.getProperties().getProperty(Property.SUMMARY); if (text == null) { if (summary != null) { comp.getProperties().remove(summary); } return; } if (summary == null) { summary = new Summary(); comp.getProperties().add(summary); } summary.setValue(text); }
protected static Summary toSummary(String javaObj) { if (javaObj == null) { return null; } return new Summary(javaObj); }
/** * @param aList a list of parameters for this component * @param aValue a value string for this component */ public Summary(final ParameterList aList, final String aValue) { super(SUMMARY, aList, PropertyFactoryImpl.getInstance()); setValue(aValue); }
@Override public boolean fromVEvent(final TeamEventDO event, final VEvent vEvent) { if (vEvent.getSummary() != null) { event.setSubject(vEvent.getSummary().getValue()); return true; } return false; } }
public Property createProperty(final String name, final ParameterList parameters, final String value) throws IOException, URISyntaxException, ParseException { return new Summary(parameters, value); }
/** * @param aList a list of parameters for this component * @param aValue a value string for this component */ public Summary(final ParameterList aList, final String aValue) { super(SUMMARY, aList, new Factory()); setValue(aValue); }
if (vEvent.getSummary() != null && StringUtils.equals(vEvent.getSummary().getValue(), TeamCalConfig.SETUP_EVENT)) { continue;
public Property createProperty(final ParameterList parameters, final String value) throws IOException, URISyntaxException, ParseException { return new Summary(parameters, value); }
/** * @param aValue a value string for this component */ public Summary(final String aValue) { super(SUMMARY, PropertyFactoryImpl.getInstance()); setValue(aValue); }
public void parseEvent(EventResource r, String data) throws IOException, ParserException { CalendarBuilder builder = new CalendarBuilder(); net.fortuna.ical4j.model.Calendar calendar = builder.build(new ByteArrayInputStream(data.getBytes("UTF-8"))); if (calendar == null) { return; } VEvent ev = event(calendar); if( ev == null) { return ; } String summary = null; if (ev.getSummary() != null) { summary = ev.getSummary().getValue(); } r.setSummary(summary); r.setStart(ev.getStartDate().getDate()); Date endDate = null; if (ev.getEndDate() != null) { endDate = ev.getEndDate().getDate(); } r.setEnd(endDate); }
public Property createProperty(final ParameterList parameters, final String value) throws IOException, URISyntaxException, ParseException { return new Summary(parameters, value); }
/** * @param aValue a value string for this component */ public Summary(final String aValue) { super(SUMMARY, new ParameterList(), new Factory()); setValue(aValue); }
/** * 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()); } }
public Property createProperty() { return new Summary(); } }
/** * @param aValue a value string for this component */ public Summary(final String aValue) { super(SUMMARY, new ParameterList(), new Factory()); setValue(aValue); }