public Property createProperty(final String name, final ParameterList parameters, final String value) throws IOException, URISyntaxException, ParseException { return new Method(parameters, value); }
public Method createProperty() { return new Method(); } }
public Property createProperty(final ParameterList parameters, final String value) throws IOException, URISyntaxException, ParseException { return new Method(parameters, value); }
public Property createProperty() { return new Method(); } }
public Method createProperty() { return new Method(); } }
public Property createProperty(final String name) { return new Method(); } };
public Property createProperty(final ParameterList parameters, final String value) throws IOException, URISyntaxException, ParseException { return new Method(parameters, value); }
public Property createProperty() { return new Method(); } }
private static void calendarProps(final JsonGenerator jgen, final int methodType) throws CalFacadeException { try { jgen.writeString("vcalendar"); jgen.writeStartArray(); JsonProperty.addFields(jgen, new ProdId(IcalTranslator.prodId)); JsonProperty.addFields(jgen, Version.VERSION_2_0); if ((methodType > ScheduleMethods.methodTypeNone) && (methodType < ScheduleMethods.methodTypeUnknown)) { JsonProperty.addFields(jgen, new Method( ScheduleMethods.methods[methodType])); } jgen.writeEndArray(); } catch (final Throwable t) { throw new CalFacadeException(t); } } }
method = REQUEST; } else { method = new Method(parameters, value);
method = REQUEST; } else { method = new Method(parameters, value);
/** Make a new Calendar with default properties * * @param methodType * @return Calendar * @throws CalFacadeException */ public static Calendar newIcal(final int methodType) throws CalFacadeException { Calendar cal = new Calendar(); PropertyList pl = cal.getProperties(); pl.add(new ProdId(prodId)); pl.add(Version.VERSION_2_0); if ((methodType > ScheduleMethods.methodTypeNone) && (methodType < ScheduleMethods.methodTypeUnknown)) { pl.add(new Method(ScheduleMethods.methods[methodType])); } return cal; }
pl.add(new Method(ScheduleMethods.methods[methodType]));
/** * Helper method to setup the standard parts of the calendar * @return */ private Calendar setupCalendar(String method) { String serverName = sakaiProxy.getServerName(); //setup calendar Calendar calendar = new Calendar(); calendar.getProperties().add(new ProdId("-//"+serverName+"//Sakai External Calendaring Service//EN")); calendar.getProperties().add(Version.VERSION_2_0); calendar.getProperties().add(CalScale.GREGORIAN); if (method != null) { calendar.getProperties().add(new Method(method)); } return calendar; }