Package wt.session
Interface SessionManager
- All Known Implementing Classes:
StandardSessionManager
Interface containing the methods for setting and retrieving the current
principal.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionReturns the default administrator.Retrieves current principal.Retrieves a reference to the current principal.Sets the default administrator as the current principal.voidsetAuthenticatedPrincipal(String web_name) Set the current principal given its web server authentication id.setPrincipal(String name) Sets the current principal given the principal's name.
-
Method Details
-
getPrincipal
Retrieves current principal.
Supported API: true- Returns:
- WTPrincipal
- Throws:
WTException
-
getPrincipalReference
Retrieves a reference to the current principal.
Supported API: true- Returns:
- WTPrincipalReference
- Throws:
WTException
-
setPrincipal
Sets the current principal given the principal's name. Throws 'UserNotFoundexception' if principal can't be found.This method is accessible at the client only when the wt.session.clientAuthenticatedLogin is set to false in wt.properties or the current principal is part of the administrators group.
Supported API: true- Parameters:
name-- Returns:
- WTPrincipal
- Throws:
WTException
-
setAdministrator
Sets the default administrator as the current principal.This method is accessible at the client only when the wt.session.clientAuthenticatedLogin is set to false in wt.properties or the current principal is part of the administrators group.
Supported API: true- Returns:
- WTPrincipal
- Throws:
WTException
-
getAdministrator
Returns the default administrator.
Supported API: true- Returns:
- WTPrincipal
- Throws:
WTException
-
setAuthenticatedPrincipal
Set the current principal given its web server authentication id. Throws 'UserNotFoundException' if principal can't be found.
Supported API: true- Parameters:
web_name-- Throws:
WTException
-