1 | while (it.hasNext()) {↵ | | 1 | while (it.hasNext()) {↵
|
2 | Document document = (Document) it.next();↵ | | 2 | Document document = (Document) it.next();↵
|
|
3 | IComponentInfo basicModel = null;↵ | | 3 | IComponentInfo basicModel = null;↵
|
4 | try {↵ | | 4 | try {↵
|
5 | basicModel = VCalendarModelFactory.unmarshall(document);↵ | | 5 | basicModel = VCalendarModelFactory.unmarshall(document);↵
|
6 | } catch (SyntaxException e) {↵ | | 6 | } catch (SyntaxException e) {↵
|
7 | throw new StoreException(e);↵ | | 7 | throw new StoreException(e);↵
|
8 | } catch (IllegalArgumentException e) {↵ | | 8 | } catch (IllegalArgumentException e) {↵
|
9 | throw new StoreException(e);↵ | | 9 | throw new StoreException(e);↵
|
10 | }↵ | | 10 | }↵
|
|
11 | if (basicModel.getType() == IComponent.TYPE.EVENT) {↵ | | 11 | if (basicModel.getType() == IComponent.TYPE.EVENT) {↵
|
12 | IEventInfo event = (IEventInfo) basicModel;↵ | | 12 | IEventInfo event = (IEventInfo) basicModel;↵
|
13 | if (event.getCalendar().equals(calendarId)) {↵ | | 13 | if (event.getCalendar().equals(calendarId))↵
|
14 | list.add(event);↵ | | 14 | result.add(event.getId());↵
|
15 | | | 15 |
|