|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.stff.ical.CalendarManager
The CalendarManager presents the facade to the Calendar data. All access to Calendar data is routed through here.
| Constructor Summary | |
CalendarManager()
|
|
| Method Summary | |
void |
addCalendar(ICal cal)
Stores an ICal Object in the datastore |
void |
addCalendar(java.lang.String name,
java.lang.String user)
Adds a new Calendar. |
void |
delete(java.lang.String name,
java.lang.String user)
Deletes a calendar from the datastore. |
void |
deleteEvent(IEvent event)
Deletes the given event from the datastore. |
ICal |
editEvent(IEvent event)
Updates a given event in the datastore. |
ICal |
getCalendar(java.lang.String name,
java.lang.String user)
Retrieves a calendar. |
java.util.List |
getCalendarNames(java.lang.String user)
Returns a List of all calendarnames associated to the given user. |
java.util.List |
getCalendars(java.lang.String user)
Returns a List of all calendars associated to the given user. |
IEvent |
getEvent(java.lang.String id)
Returns an event. |
java.util.List |
getEventsForPeriod(java.util.Date s,
java.util.Date e,
java.lang.String user,
int which)
Returns a List of events that start within the given time range. |
void |
rename(java.lang.String name,
java.lang.String newName,
java.lang.String user)
Utility method to rename a given calendar |
void |
setColor(java.lang.String name,
java.lang.String col,
java.lang.String user)
Utility method that saves the color attribute of a given calendar |
void |
setICalDAO(ICalDAO iCalDAO)
Sets the DAO object. |
void |
setShown(java.lang.String name,
boolean shown,
java.lang.String user)
Utility method that saves the shown attribute of a given calendar |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CalendarManager()
| Method Detail |
public java.util.List getCalendars(java.lang.String user)
user - The user associated to the calendars to be returned.
public java.util.List getCalendarNames(java.lang.String user)
user - The user associated to the calendarnames to be returned.
public void addCalendar(java.lang.String name,
java.lang.String user)
name - The key under which the calendar is to be stored. The key must be unique for the given user.user - The user to be associated to the new calendar.public void addCalendar(ICal cal)
cal - The Calendar object to be added
public ICal getCalendar(java.lang.String name,
java.lang.String user)
name - The key under which the calendar is storeduser - The user that is associated to the calendar to return.
public java.util.List getEventsForPeriod(java.util.Date s,
java.util.Date e,
java.lang.String user,
int which)
s - The earliest moment a returned event is to sart ate - The latest moment a returned event is to sart atuser - the associated user.which - Discerns between available event types. @see iCalDAO
public ICal editEvent(IEvent event)
event - The event to be updated
public IEvent getEvent(java.lang.String id)
id - The event id.
public void setShown(java.lang.String name,
boolean shown,
java.lang.String user)
name - The name under which the calendar is storedshown - the value to be saveduser - The associated user
public void setColor(java.lang.String name,
java.lang.String col,
java.lang.String user)
name - The name under which the calendar is storedcol - the value to be saveduser - The associated user
public void rename(java.lang.String name,
java.lang.String newName,
java.lang.String user)
name - The name under which the calendar is currently storednewName - the new value for the calendar nameuser - The associated user
public void delete(java.lang.String name,
java.lang.String user)
name - the name of the calendar to be deleteduser - the associated userpublic void deleteEvent(IEvent event)
event - the given event.public void setICalDAO(ICalDAO iCalDAO)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||