|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface containing the methods for setting and retrieving the current
principal.
Supported API: true
Extendable: false
Field Summary | |
static String |
ACCEPT_LANGUAGE
|
Method Summary | |
void |
destroySessionContext(String prefix,
String sessionId)
Given prefix and sessionId of a SessionContext created via getContext(prefix,sessionId), find that session and destroy it. |
WTPrincipal |
getAdministrator()
Returns the default administrator. |
Vector |
getLanguagePreference()
Supported API: false |
Locale |
getLocale()
Supported API: false |
WTPrincipal |
getPrincipal()
Retrieves current principal. |
WTPrincipalReference |
getPrincipalReference()
Retrieves a reference to the current principal. |
WTPrincipal |
setAdministrator()
Sets the default administrator as the current principal. |
void |
setAuthenticatedPrincipal(String web_name)
Set the current principal given its web server authentication id. |
WTPrincipal |
setPrincipal(String name)
Sets the current principal given the principal's name. |
Field Detail |
public static final String ACCEPT_LANGUAGE
Method Detail |
public WTPrincipal getPrincipal() throws WTException
WTException
public WTPrincipalReference getPrincipalReference() throws WTException
WTException
public WTPrincipal setPrincipal(String name) throws WTException
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
name
-
WTException
public WTPrincipal setAdministrator() throws WTException
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
WTException
public WTPrincipal getAdministrator() throws WTException
WTException
public void setAuthenticatedPrincipal(String web_name) throws WTException
web_name
-
WTException
public Locale getLocale() throws WTException
WTException
public Vector getLanguagePreference() throws WTException
WTException
public void destroySessionContext(String prefix, String sessionId) throws WTException
This is intended for use from the servlet engine to allow the Windchill
SessionContext to be destroyed when the servlet session is destroyed
to release objects more quickly in some cases.
Supported API: false
prefix
- used guarentee uniqueness to the keysessionId
- session id of the JSP/Servlet engine calling the method server
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |