001: package com.sun.portal.comm.url;
002:
003: import com.sun.comclient.calendar.DateTime;
004:
005: public interface CalURL {
006:
007: /**
008: * Lets invoking classes know if multiple view urls are available
009: * in this URLBuilder.
010: *
011: * @return boolean Are view URLs available
012: */
013: public boolean allowsViewURL();
014:
015: /**
016: * Return URL string for specific view to be opened in cal client.
017: *
018: * @param String View
019: * @param String Date
020: * @return String View URL string
021: */
022: public String getViewURL(String view, String date);
023:
024: /**
025: * Lets invoking classes know if task URLs are available
026: * in this URLBuilder.
027: *
028: * @return boolean Are task URLs available
029: */
030: public boolean allowsTaskURL();
031:
032: /**
033: * Return URL string for specific task to be opened in cal client.
034: *
035: * @param Object Task Object
036: * @return String Task URL string
037: */
038: public String getTaskURL(Object task);
039:
040: /**
041: * Lets invoking classes know if event URLs are available
042: * in this URLBuilder.
043: *
044: * @return boolean Are event URLs available
045: */
046: public boolean allowsEventURL();
047:
048: /**
049: * Return URL string for specific event to be opened in cal client.
050: *
051: * @param Object Event Object
052: * @return String Event URL string
053: */
054: public String getEventURL(Object event);
055:
056: /**
057: * Sets the calendar id
058: *
059: * @param String Calendar ID
060: */
061: public void setCalid(String calid);
062:
063: /**
064: * Return the calendar id
065: *
066: * @return String Calendar ID
067: */
068: public String getCalid();
069:
070: /**
071: * Lets invoking clasess know is composeEvent is available
072: * in this URLBuilder
073: * @return boolean , is composeEvent available
074: */
075: public boolean allowsComposeEventURL();
076:
077: /**
078: * Lets invoking clasess know is composeTask is available
079: * in this URLBuilder
080: * @return boolean , is composeTask available
081: */
082: public boolean allowsComposeTaskURL();
083:
084: /**
085: * Return URL string to open the client's composeEvent window.
086: *
087: * @param String Subject of the event
088: * @param DateTime the DateTimeat which event should be created
089: * @return String Composition URL string
090: */
091: public String getComposeEventURL(DateTime datetime);
092:
093: /**
094: * Return URL string to open the client's composeTask window.
095: *
096: * @param String Subject of the task
097: * @param DateTime the DateTimeat which event should be created
098: * @return String Composition URL string
099: */
100: public String getComposeTaskURL(DateTime datetime);
101:
102: }
|