|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectserver.CalendarDatabase
A object of this class encapsulates the whole calendar database on the server side. This class is used for getting/modifying and adding/removing of calendar events.
| Constructor Summary | |
CalendarDatabase(java.util.Vector vecCategories)
Simple constructur. |
|
| Method Summary | |
void |
addEvent(ClientRequest clientRequest)
This method adds a calendar event to the calendar database. |
void |
deleteEvent(ClientRequest clientRequest)
This method deletes a calendar event of the calendar database. |
void |
flush()
This method flushes all the changed calendar categories of the calendar database to the filesystem. |
java.util.Vector |
getAllEvents()
This method returns a Vector of all available calendar events. |
java.util.Vector |
getCategories()
Gets all calendar categories. |
CalendarCategory |
getCategory(java.lang.String sCategoryName)
Returns a specific calendar category using fast hash lookup. |
CalendarEvent |
getEvent(int iEventID)
Returns a specific calendar event using fast hash lookup. |
java.util.Vector |
getMatchingEvents(ClientRequest clientRequest)
This method looks for all calendar events which match the a given client request. |
void |
modifyEvent(ClientRequest clientRequest)
This method modifies an calendar event of the calendar database. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CalendarDatabase(java.util.Vector vecCategories)
vecCategories - Specifies the vector of CalendarCategory objects for initial database content.| Method Detail |
public CalendarEvent getEvent(int iEventID)
iEventID - Specifies the ID of the calendar event to lookup.
public CalendarCategory getCategory(java.lang.String sCategoryName)
sCategoryName - Specifies the name of the calendar category to lookup.
public java.util.Vector getCategories()
public java.util.Vector getAllEvents()
public java.util.Vector getMatchingEvents(ClientRequest clientRequest)
clientRequest - Specifies the client request sent by the calendar client.
public void addEvent(ClientRequest clientRequest)
clientRequest - Specifies the client request sent by the netcalendar client. Its containing the new event to add.public void modifyEvent(ClientRequest clientRequest)
clientRequest - Specifies the client request sent by the calendar client.public void deleteEvent(ClientRequest clientRequest)
clientRequest - Specifies the client request sent by the netcalendar client.public void flush()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||