Package org.bedework.convert.jscal
Class JSCalTranslator
java.lang.Object
org.bedework.convert.IcalTranslator
org.bedework.convert.jscal.JSCalTranslator
- All Implemented Interfaces:
Serializable,org.bedework.util.logging.Logged
User: mike Date: 5/7/20 Time: 23:05
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bedework.convert.IcalTranslator
IcalTranslator.Pars -
Field Summary
Fields inherited from class org.bedework.convert.IcalTranslator
cb, pars -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromIcal(BwCalendar col, Reader rdr, String contentType, boolean mergeAttendees) Convert the Icalendar reader to a Collection of Calendar objects.static org.bedework.jsforj.model.JSGroupnewJSGroup(int methodType) Make a new JSGroup with default propertiesorg.bedework.jsforj.model.JSGrouptoJScal(Collection<EventInfo> vals, int methodType) Turn a collection of events into a jsgroupstatic voidwriteJSCalendar(org.bedework.jsforj.model.JSCalendarObject obj, Writer wtr) Write a JSCalendar objectMethods inherited from class org.bedework.convert.IcalTranslator
addIcalTimezones, addOverride, freebusyToIcalString, fromIcal, fromIcal, getLogger, getMethod, setSystemProperties, toIcal, toIcal, tzFromTzdefMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bedework.util.logging.Logged
audit, debug, debug, debug, enableAuditLogger, enableErrorLogger, enableMetricsLogger, error, error, error, getLogLevel, info, isAuditLoggerEnabled, isErrorLoggerEnabled, isMetricsDebugEnabled, isMetricsLoggerEnabled, metrics, setLoggerClass, setLoggerClass, trace, trace, trace, warn
-
Constructor Details
-
JSCalTranslator
Constructor:- Parameters:
cb- IcalCallback object for retrieval of entities
-
-
Method Details
-
newJSGroup
public static org.bedework.jsforj.model.JSGroup newJSGroup(int methodType) Make a new JSGroup with default properties- Parameters:
methodType- - ical method- Returns:
- JSGroup
-
toJScal
Turn a collection of events into a jsgroup- Parameters:
vals- collection of eventsmethodType- int value fromIcalendar- Returns:
- Calendar
- Throws:
RuntimeException- on fatal error
-
writeJSCalendar
Write a JSCalendar object- Parameters:
obj- JSCalendarObject to convertwtr- Writer for output
-
fromIcal
Description copied from class:IcalTranslatorConvert the Icalendar reader to a Collection of Calendar objects. Handles xCal, jCal and ics- Overrides:
fromIcalin classIcalTranslator- Parameters:
col- collection the entities will live in - possibly nullrdr- Icalendar readercontentType- "application/calendar+xml" etcmergeAttendees- True if we should only update our own attendee.- Returns:
- Icalendar
-