1 | IComponentInfoList list = new ComponentInfoList();↵ | | 1 | ArrayList<String> result = new ArrayList<String>();↵
|
|
2 | Iterator it = dataStorage.iterator();↵ | | 2 | Iterator it = dataStorage.iterator();↵
|
3 | while (it.hasNext()) {↵ | | 3 | while (it.hasNext()) {↵
|
4 | Document document = (Document) it.next();↵ | | 4 | Document document = (Document) it.next();↵
|
|
5 | IComponentInfo basicModel = null;↵ | | 5 | IComponentInfo basicModel = null;↵
|
6 | try {↵ | | 6 | try {↵
|
7 | basicModel = VCalendarModelFactory.unmarshall(document);↵ | | 7 | basicModel = VCalendarModelFactory.unmarshall(document);↵
|
8 | } catch (SyntaxException e) {↵ | | 8 | } catch (SyntaxException e) {↵
|
9 | throw new StoreException(e);↵ | | 9 | throw new StoreException(e);↵
|
10 | } catch (IllegalArgumentException e) {↵ | | 10 | } catch (IllegalArgumentException e) {↵
|
11 | throw new StoreException(e);↵ | | 11 | throw new StoreException(e);↵
|
12 | }↵ | | 12 | }↵
|
|
13 | if (basicModel.getType() == IComponent.TYPE.EVENT) {↵ | | 13 | if (basicModel.getType() == IComponent.TYPE.EVENT) {↵
|
14 | IEventInfo event = (IEventInfo) basicModel;↵ | | 14 | IEventInfo event = (IEventInfo) basicModel;↵
|
15 | lis↵ | | 15 | if (event.getCalendar().equals(calendarId))↵
|
16 | t.add(event);↵ | | 16 | result.add(event.getId());↵
|
17 | }↵ | | 17 | }↵
|
18 | }↵ | | 18 | }↵
|
|
19 | return list; | | 19 | return result.iterator();
|