|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.compoze.todo.ToDoSession
This class provides a session for managing to do information, and is the entry point into the ToDo API. It collects together properties used by the ToDo API and is not subclassed.
An instance of the ToDoSession
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. If you wish to begin manipulating to dos, you
should use the getToDos()
method to get the todos collection.
Alternatively, if you already have the ID of the to do
that you wish to retrieve you may use the getToDo(long)
.
Method Summary | |
static ToDoSession |
getSession(User user)
Gets the to do session using the specified user. |
ToDo |
getToDo(long lToDoID)
Gets a to do with the given id. |
ToDos |
getToDos()
Gets the to dos collection for all of the to dos the authenticated user has ToDoPermission.READ permission. |
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 ToDoSession getSession(User user)
user
- the authenticated userpublic ToDos getToDos()
ToDoPermission.READ
permission.public ToDo getToDo(long lToDoID) throws java.security.AccessControlException
lToDoID
- the to do idnull
if not foundjava.security.AccessControlException
- if the authenticated user is not allowed to read the to dopublic 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 |