Class JSCalTranslator

java.lang.Object
org.bedework.convert.IcalTranslator
org.bedework.convert.jscal.JSCalTranslator
All Implemented Interfaces:
Serializable, org.bedework.util.logging.Logged

public class JSCalTranslator extends IcalTranslator
User: mike Date: 5/7/20 Time: 23:05
See Also:
  • Constructor Details

    • JSCalTranslator

      public JSCalTranslator(IcalCallback cb)
      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

      public org.bedework.jsforj.model.JSGroup toJScal(Collection<EventInfo> vals, int methodType)
      Turn a collection of events into a jsgroup
      Parameters:
      vals - collection of events
      methodType - int value fromIcalendar
      Returns:
      Calendar
      Throws:
      RuntimeException - on fatal error
    • writeJSCalendar

      public static void writeJSCalendar(org.bedework.jsforj.model.JSCalendarObject obj, Writer wtr)
      Write a JSCalendar object
      Parameters:
      obj - JSCalendarObject to convert
      wtr - Writer for output
    • fromIcal

      public Icalendar fromIcal(BwCalendar col, Reader rdr, String contentType, boolean mergeAttendees)
      Description copied from class: IcalTranslator
      Convert the Icalendar reader to a Collection of Calendar objects. Handles xCal, jCal and ics
      Overrides:
      fromIcal in class IcalTranslator
      Parameters:
      col - collection the entities will live in - possibly null
      rdr - Icalendar reader
      contentType - "application/calendar+xml" etc
      mergeAttendees - True if we should only update our own attendee.
      Returns:
      Icalendar