|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The entry point into the WCM repository.
This interface provides methods for obtaining a
Workspace. A Workspace represents
a view of the repository for the specified user.
| Method Summary | |
void |
endWorkspace()
Performs a logout from the currently associated Workspace and
unregisters the current thread from its session. |
com.ibm.workplace.wcm.api.Workspace |
getAnonymousWorkspace()
Returns a Workspace object representing a view of the repository
for the Anonymous user. |
com.ibm.workplace.wcm.api.Workspace |
getSystemWorkspace()
Returns a Workspace object representing a sytem view of the repository. |
com.ibm.workplace.wcm.api.Workspace |
getWorkspace(java.security.Principal principal)
Returns a Workspace object representing a view of the repository
for the specified Principal. |
com.ibm.workplace.wcm.api.Workspace |
getWorkspace(java.lang.String username,
java.lang.String password)
Returns a Workspace object that represents a view of the
repository for a user with the specified credentials. |
| Method Detail |
public com.ibm.workplace.wcm.api.Workspace getWorkspace(java.lang.String username,
java.lang.String password)
throws ServiceNotAvailableException,
OperationFailedException
Workspace object that represents a view of the
repository for a user with the specified credentials.
username - the username of the user to get a
Workspace forpassword - the user's password
Workspace for the specified user; returns an
Anonymous Workspace if the user could not be authenticated.
ServiceNotAvailableException - if the WCM service is not available
OperationFailedException - if a Workspace could not be
created for this user
java.lang.NullPointerException - if either of the arguments to this method is
null
public com.ibm.workplace.wcm.api.Workspace getAnonymousWorkspace()
throws ServiceNotAvailableException,
OperationFailedException
Workspace object representing a view of the repository
for the Anonymous user.
ServiceNotAvailableException - if the WCM service is not available
OperationFailedException - if a workspace could not be
created for this user
public com.ibm.workplace.wcm.api.Workspace getWorkspace(java.security.Principal principal)
throws ServiceNotAvailableException,
OperationFailedException
Workspace object representing a view of the repository
for the specified Principal.
principal - The java.security.Principal to retrieve a Workspace for.
ServiceNotAvailableException - if the WCM service is not available
OperationFailedException - if a workspace could not be
created for the specified Principal
java.lang.NullPointerException - if the argument to this method is
null
public com.ibm.workplace.wcm.api.Workspace getSystemWorkspace()
throws ServiceNotAvailableException,
OperationFailedException
Workspace object representing a sytem view of the repository.
ServiceNotAvailableException - if the WCM service is not available
OperationFailedException - if a workspace could not be
created for the specified Principal
java.lang.NullPointerException - if the argument to this method is
nullpublic void endWorkspace()
Workspace and
unregisters the current thread from its session.
N.B. You don't need to call endWorkspace() when using a JSP component as
rendering and session management is handled by Web Content Management.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||