001: /**
002: * $Id: APimFreeBusy.java,v 1.1 2003/10/31 22:23:28 rakeshn Exp $
003: * Copyright 2002 Sun Microsystems, Inc. All
004: * rights reserved. Use of this product is subject
005: * to license terms. Federal Acquisitions:
006: * Commercial Software -- Government Users
007: * Subject to Standard License Terms and
008: * Conditions.
009: *
010: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
011: * are trademarks or registered trademarks of Sun Microsystems,
012: * Inc. in the United States and other countries.
013: *
014: */package com.sun.ssoadapter.calendar.pim;
015:
016: import java.util.*;
017:
018: import com.sun.comclient.calendar.*;
019:
020: import com.aligo.pim.interfaces.*;
021: import com.aligo.pim.exceptions.*;
022: import com.aligo.pim.*;
023:
024: public class APimFreeBusy extends VFreeBusy {
025:
026: private boolean hasDuration = false;
027: private FreeBusy[] freeBusyArr = null;
028:
029: public APimFreeBusy(boolean hasDurationFlag, FreeBusy[] freeBusyList) {
030: this .hasDuration = hasDurationFlag;
031: freeBusyArr = freeBusyList;
032: }
033:
034: public FreeBusy[] getFreeBusy() {
035: return freeBusyArr;
036: }
037:
038: public boolean hasDuration() {
039: return false;
040: }
041:
042: /**
043: * Determine whether this compoent has (at least one) attendee
044: * <br><br>
045: *
046: * @return true or false
047: */
048: public boolean hasAttendee() throws OperationNotSupportedException,
049: CalendarComponentException {
050: throw new OperationNotSupportedException("Not Supported on Pim");
051: }
052:
053: /**
054: * Get attendees of this calendar component.
055: * <br><br>
056: *
057: * @return Array of attendees
058: */
059: public Attendee[] getAttendees()
060: throws OperationNotSupportedException,
061: CalendarComponentException {
062: throw new OperationNotSupportedException("Not Supported on Pim");
063: };
064:
065: /**
066: * Check if the calid is a attendee of the component and return attendee object corresponding to calid
067: * <br><br>
068: *
069: * @return attendee Attendee
070: */
071: public Attendee getAttendee(String calid)
072: throws OperationNotSupportedException,
073: CalendarComponentException {
074:
075: throw new OperationNotSupportedException("Not Supported on Pim");
076: }
077:
078: /**
079: * Add an attendee to this calendar component.
080: * <br><br>
081: *
082: * @param attendee attendee of this calendar component
083: */
084: public void addAttendee(Attendee attendee)
085: throws OperationNotSupportedException,
086: CalendarComponentException {
087:
088: throw new OperationNotSupportedException("Not Supported on Pim");
089: }
090:
091: /**
092: * Remove an attendee from this calendar component.
093: * <br><br>
094: *
095: * @param attendee Attendees to be removed from this calendar component
096: */
097: public void removeAttendee(Attendee attendee)
098: throws OperationNotSupportedException,
099: CalendarComponentException {
100:
101: throw new OperationNotSupportedException("Not Supported on Pim");
102: }
103:
104: /**
105: * Remove all attendees from this calendar component.
106: * <br><br>
107: *
108: */
109: public void removeAllAttendees()
110: throws OperationNotSupportedException,
111: CalendarComponentException {
112:
113: throw new OperationNotSupportedException("Not Supported on Pim");
114: }
115:
116: /**
117: * Get all contact lists
118: * <br><br>
119: *
120: * @return Array of contacts
121: */
122: public String[] getContacts()
123: throws OperationNotSupportedException,
124: CalendarComponentException {
125:
126: throw new OperationNotSupportedException("Not Supported on Pim");
127: }
128:
129: /**
130: * Add a contact to this calendar component.
131: * <br><br>
132: *
133: * @param contact contact of this calendar component
134: */
135: public void addContact(String contact)
136: throws OperationNotSupportedException,
137: CalendarComponentException {
138:
139: throw new OperationNotSupportedException("Not Supported on Pim");
140: }
141:
142: /**
143: * Remove a contact from this calendar component.
144: * <br><br>
145: *
146: * @param contact contact to be removed from this calendar component
147: */
148: public void removeContact(String contact)
149: throws OperationNotSupportedException,
150: CalendarComponentException {
151:
152: throw new OperationNotSupportedException("Not Supported on Pim");
153: }
154:
155: /**
156: * Remove all contacts from this calendar component.
157: * <br><br>
158: *
159: */
160: public void removeAllContacts()
161: throws OperationNotSupportedException,
162: CalendarComponentException {
163:
164: throw new OperationNotSupportedException("Not Supported on Pim");
165: }
166:
167: /**
168: * Get all comments
169: * <br><br>
170: *
171: * @return Array of comments
172: */
173: public String[] getComments()
174: throws OperationNotSupportedException,
175: CalendarComponentException {
176:
177: throw new OperationNotSupportedException("Not Supported on Pim");
178: }
179:
180: /**
181: * Add a comment to this calendar component.
182: * <br><br>
183: *
184: * @param comment comment of this calendar component
185: */
186: public void addComment(String comment)
187: throws OperationNotSupportedException,
188: CalendarComponentException {
189:
190: throw new OperationNotSupportedException("Not Supported on Pim");
191: }
192:
193: /**
194: * Remove a comment from this calendar component.
195: * <br><br>
196: *
197: * @param comment comment to be removed from this calendar component
198: */
199: public void removeComment(String comment)
200: throws OperationNotSupportedException,
201: CalendarComponentException {
202:
203: throw new OperationNotSupportedException("Not Supported on Pim");
204: }
205:
206: /**
207: * Remove all comments from this calendar component.
208: * <br><br>
209: *
210: */
211: public void removeAllComments()
212: throws OperationNotSupportedException,
213: CalendarComponentException {
214:
215: throw new OperationNotSupportedException("Not Supported on Pim");
216: }
217:
218: /**
219: * Get the creation time of this iCalendar object.
220: * <br><br>
221: *
222: * @return creation time of this iCalendar object
223: */
224: public DateTime getStamp() throws OperationNotSupportedException,
225: CalendarComponentException {
226:
227: throw new OperationNotSupportedException("Not Supported on Pim");
228: }
229:
230: /**
231: * Set the creation time for this iCalendar object.
232: * <br><br>
233: *
234: * @param dtstamp creation time for this iCalendar object
235: */
236: public void setStamp(DateTime dtstamp)
237: throws OperationNotSupportedException,
238: CalendarComponentException {
239:
240: throw new OperationNotSupportedException("Not Supported on Pim");
241: }
242:
243: /**
244: * Get the duration of this calendar component
245: * <br><br>
246: *
247: * return duration Duration of this calendar component
248: */
249: public Duration getDuration()
250: throws OperationNotSupportedException,
251: CalendarComponentException {
252:
253: throw new OperationNotSupportedException("Not Supported on Pim");
254: }
255:
256: /**
257: * Set the duration for this calendar component
258: * <br><br>
259: *
260: * @param duration duration for this calendar component
261: */
262: public void setDuration(Duration duration)
263: throws OperationNotSupportedException,
264: CalendarComponentException {
265:
266: throw new OperationNotSupportedException("Not Supported on Pim");
267: }
268:
269: /**
270: * Get the organizer of this calendar component
271: * <br><br>
272: *
273: * return organizer of this calendar component
274: */
275: public Organizer getOrganizer()
276: throws OperationNotSupportedException,
277: CalendarComponentException {
278:
279: throw new OperationNotSupportedException("Not Supported on Pim");
280: }
281:
282: /**
283: * Set the organizer for this calendar component
284: * <br><br>
285: *
286: * @param organizer organizer for this calendar component
287: */
288: public void setOrganizer(Organizer organizer)
289: throws OperationNotSupportedException,
290: CalendarComponentException {
291:
292: throw new OperationNotSupportedException("Not Supported on Pim");
293: }
294:
295: /*
296: * Checks if the calid is the organizer
297: *<br><br>
298: *
299: *@param calid String the calid to be compared against Organizers Calid
300: *return boolean
301: *@exception CalendarComponentException
302: *@exception OperationNotSupportedException
303: */
304: public boolean isCalIdTheOrganizer(String calId)
305: throws OperationNotSupportedException,
306: CalendarComponentException {
307:
308: throw new OperationNotSupportedException("Not Supported on Pim");
309: }
310:
311: /**
312: * Get all request status info of this component
313: * <br><br>
314: * @return Array of request status info
315: */
316: public String[] getRequestStatus()
317: throws OperationNotSupportedException,
318: CalendarComponentException {
319:
320: throw new OperationNotSupportedException("Not Supported on Pim");
321: }
322:
323: /**
324: * Add a request status info
325: * <br><br>
326: * @param requeststatus request status info to be added to this component
327: */
328: public void addRequestStatus(String requeststatus)
329: throws OperationNotSupportedException,
330: CalendarComponentException {
331:
332: throw new OperationNotSupportedException("Not Supported on Pim");
333: }
334:
335: /**
336: * Remove the request status info
337: * <br><br>
338: * @param requeststatus request status info to be deleted from this component
339: */
340: public void removeRequestStatus(String requeststatus)
341: throws OperationNotSupportedException,
342: CalendarComponentException {
343:
344: throw new OperationNotSupportedException("Not Supported on Pim");
345: }
346:
347: /**
348: * Remove all the request status info from this component
349: */
350: public void removeAllRequestStatus()
351: throws OperationNotSupportedException,
352: CalendarComponentException {
353:
354: throw new OperationNotSupportedException("Not Supported on Pim");
355: }
356:
357: /**
358: * Get the id of the CalendarComponent.
359: * <br><br>
360: *
361: * return unique id for this component
362: */
363: public String getID() throws OperationNotSupportedException,
364: CalendarComponentException {
365:
366: throw new OperationNotSupportedException("Not Supported on Pim");
367: }
368:
369: /**
370: * Set the id of the CalendarComponent.
371: * <br><br>
372: *
373: * @param uid unique id for this component
374: */
375: public void setID(String uid)
376: throws OperationNotSupportedException,
377: CalendarComponentException {
378:
379: throw new OperationNotSupportedException("Not Supported on Pim");
380: }
381:
382: /**
383: * Get the url of the CalendarComponent.
384: * <br><br>
385: *
386: * return url for this component
387: */
388: public String getUrl() throws OperationNotSupportedException,
389: CalendarComponentException {
390:
391: throw new OperationNotSupportedException("Not Supported on Pim");
392: }
393:
394: /**
395: * Set the url of the CalendarComponent.
396: * <br><br>
397: *
398: * @param url for this component
399: */
400: public void setUrl(String url)
401: throws OperationNotSupportedException,
402: CalendarComponentException {
403:
404: throw new OperationNotSupportedException("Not Supported on Pim");
405: }
406:
407: /**
408: * Retrieves the ID of the calendar to which this component belongs.
409: * @return calID the calendar ID
410: */
411: public String getCalID() throws OperationNotSupportedException,
412: CalendarComponentException {
413:
414: throw new OperationNotSupportedException("Not Supported on Pim");
415: }
416:
417: /**
418: * Sets the ID of the calendar to which this component belongs.
419: * @id the ID of the calendar
420: */
421: public void setCalID(String id)
422: throws OperationNotSupportedException,
423: CalendarComponentException {
424:
425: throw new OperationNotSupportedException("Not Supported on Pim");
426: }
427:
428: /**
429: * Get the End Time.
430: * <br><br>
431: *
432: * return end time of this component
433: * @exception OperationNotSupportedException
434: * @exception CalendarComponentException
435: */
436: public DateTime getEnd() throws OperationNotSupportedException,
437: CalendarComponentException {
438:
439: throw new OperationNotSupportedException("Not Supported on Pim");
440: }
441:
442: /**
443: * Set the End Time.
444: * <br><br>
445: *
446: * @param dtend end time of this component
447: * @exception OperationNotSupportedException
448: * @exception CalendarComponentException
449: */
450: public void setEnd(DateTime dtstart)
451: throws OperationNotSupportedException,
452: CalendarComponentException {
453:
454: throw new OperationNotSupportedException("Not Supported on Pim");
455: }
456:
457: /**
458: * Get the Start Time.
459: * <br><br>
460: *
461: * @return start time of this component
462: * @exception OperationNotSupportedException
463: * @exception CalendarComponentException
464: */
465: public DateTime getStart() throws OperationNotSupportedException,
466: CalendarComponentException {
467:
468: throw new OperationNotSupportedException("Not Supported on Pim");
469: }
470:
471: /**
472: * Set the Start Time.
473: * <br><br>
474: *
475: * @param dtstart start time of this component
476: * @exception OperationNotSupportedException
477: * @exception CalendarComponentException
478: */
479: public void setStart(DateTime dtstart)
480: throws OperationNotSupportedException,
481: CalendarComponentException {
482:
483: throw new OperationNotSupportedException("Not Supported on Pim");
484: }
485:
486: }
|