|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.compoze.calendar.CalendarSession
This class provides a session for managing calendar information, and is the entry point into the Calendar API. It collects together properties used by the Calendar API and is not subclassed.
An instance of the CalendarSession
can be
obtained by calling getSession()
with an authenticated
user. Once a session is
obtained, there are several entry points into the rest
of the API.
Method Summary | |
Appointment |
getAppointment(long lAptID)
Gets a appointment with the given appointment id. |
Appointment |
getAppointment(long lAptID,
java.util.Date instanceDate)
Gets a appointment with the given appointment id. |
Appointments |
getAppointments()
Gets the appointments collection for all of the appointments the authenticated user has CalendarPermission.READ permission. |
static CalendarSession |
getSession(User user)
Gets the calendar session using the specified user. |
User |
getUser()
Gets the authenticated user for this session. |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public static CalendarSession getSession(User user)
user
- the authenticated userpublic Appointment getAppointment(long lAptID) throws java.security.AccessControlException
lAptID
- the appointment idnull
if not foundjava.security.AccessControlException
- if the authenticated user is not allowed to read the appointmentpublic Appointment getAppointment(long lAptID, java.util.Date instanceDate) throws java.security.AccessControlException
lAptID
- the appointment idinstanceDate
- the instance date (ignored if not recuring appointment)null
if not foundjava.security.AccessControlException
- if the authenticated user is not allowed to read the appointmentpublic Appointments getAppointments()
CalendarPermission.READ
permission.public User getUser()
public java.lang.String toString()
toString
in class java.lang.Object
|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |