/** * {@inheritDoc} */ public void startCalendar() { calendar = new Calendar(); }
/** * {@inheritDoc} */ public void startCalendar() { calendar = new Calendar(); }
/** * {@inheritDoc} */ @Override public void startCalendar() { calendar = new Calendar(); }
@Override public void startCalendar() { calendar = new Calendar(); propertiesWithTzId = new ArrayList<>(); }
@Override public void startCalendar() { calendar = new Calendar(); propertiesWithTzId = new ArrayList<>(); }
/** * Wraps a component in a calendar. * @param component the component to wrap with a calendar * @return a calendar containing the specified component */ public static Calendar wrap(final CalendarComponent... component) { final ComponentList<CalendarComponent> components = new ComponentList<>(Arrays.asList(component)); return new Calendar(components); }
/** * Wraps a component in a calendar. * @param component the component to wrap with a calendar * @return a calendar containing the specified component */ public static Calendar wrap(final CalendarComponent... component) { final ComponentList<CalendarComponent> components = new ComponentList<>(Arrays.asList(component)); return new Calendar(components); }
/** * Wraps a component in a calendar. * @param component the component to wrap with a calendar * @return a calendar containing the specified component */ public static Calendar wrap(final CalendarComponent component) { final ComponentList<CalendarComponent> components = new ComponentList<CalendarComponent>(); components.add(component); return new Calendar(components); }
/** * Wraps a component in a calendar. * @param component the component to wrap with a calendar * @return a calendar containing the specified component */ public static Calendar wrap(final Component component) { final ComponentList components = new ComponentList(); components.add(component); return new Calendar(components); }
@Override public void run() { try { Calendar cal = new Calendar(calendar); size.addAndGet(cal.getComponents().size()); } catch (IOException | ParseException | URISyntaxException e) { e.printStackTrace(); } } });
public Stamp copy() { EventStamp stamp = new HibEventStamp(); // Need to copy Calendar, and indexes try { stamp.setEventCalendar(new Calendar(getEventCalendar())); } catch (Exception e) { throw new CosmoException("Cannot copy calendar", e); } return stamp; }
public Stamp copy() { EventExceptionStamp stamp = new HibEventExceptionStamp(); // Need to copy Calendar try { stamp.setEventCalendar(new Calendar(getEventCalendar())); } catch (Exception e) { throw new CosmoException("Cannot copy calendar", e); } return stamp; }
public Stamp copy() { EventStamp stamp = new HibEventStamp(); // Need to copy Calendar, and indexes try { stamp.setEventCalendar(new Calendar(getEventCalendar())); } catch (Exception e) { throw new CosmoException("Cannot copy calendar", e); } return stamp; }
public Stamp copy() { EventExceptionStamp stamp = new HibEventExceptionStamp(); // Need to copy Calendar try { stamp.setEventCalendar(new Calendar(getEventCalendar())); } catch (Exception e) { throw new CosmoException("Cannot copy calendar", e); } return stamp; }
public ImportStorage<TeamEventDO> importEvents(final List<VEvent> vEvents, final ActionLog actionLog) { final Calendar calendar = new Calendar(); vEvents.forEach(event -> calendar.getComponents().add(event)); ICalParser parser = ICalParser.parseAllFields(); parser.parse(calendar); final List<TeamEventDO> events = parser.getExtractedEvents(); events.forEach(teamEventDO -> eventService.fixAttendees(teamEventDO)); return importEvents(events, "none", actionLog); }
@Override public void run() { try(FileInputStream fis = new FileInputStream("src/test/resources/samples/valid/lotr.ics");) { Calendar calendar = new CalendarBuilder().build(fis); Calendar cal = new Calendar(calendar); size.addAndGet(cal.getComponents().size()); } catch (IOException | ParserException | URISyntaxException | ParseException e) { e.printStackTrace(); } } });
/** * */ public void testCreateDefinition() { Calendar calendar = new Calendar(); calendar.getComponents().add(tz); log.info(calendar.toString()); }
public Attribute copy() { ICalendarAttribute attr = new HibICalendarAttribute(); attr.setQName(getQName().copy()); try { attr.setValue(new Calendar(value)); } catch (Exception e) { throw new CosmoException("Error copying ICalendar attribute", e); } return attr; }
/** * Create a base Calendar containing no components. * @return base Calendar */ public static Calendar createBaseCalendar() { Calendar cal = new Calendar(); cal.getProperties().add(new ProdId(CosmoConstants.PRODUCT_ID)); cal.getProperties().add(Version.VERSION_2_0); cal.getProperties().add(CalScale.GREGORIAN); return cal; }
@Before public void setUp() { calendar = new Calendar(); calendar.getProperties().add(new ProdId("-//Ben Fortuna//iCal4j 1.0//EN")); calendar.getProperties().add(Version.VERSION_2_0); calendar.getProperties().add(CalScale.GREGORIAN); VEvent vEvent = new VEvent(); vEvent.getProperties().add(new Uid("1")); calendar.getComponents().add(vEvent); }