|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.services.StandardManager
wt.session.StandardSessionManager
Standard implementation of the SessionManager interface.
Use the newStandardSessionManager
static factory method(s),
not the StandardSessionManager
constructor, to construct
instances of this class. Instances must be constructed using the static
factory(s), in order to ensure proper initialization of the instance.
Supported API: true
Extendable: false
Field Summary | |
private static String |
administratorDn
|
private static boolean |
AUTH_TO_LOWER_CASE
|
private static boolean |
CASE_SENSITIVE
|
private static String |
CLASSNAME
|
private static boolean |
CLIENT_AUTHENTICATED_LOGIN
|
private static String |
ENFORCE_KEY
|
private static DirectoryContextProvider |
exchangeContext
|
private static boolean |
GET_PRINCIPAL_VERBOSE
|
private static String |
PRINCIPAL_KEY
|
private static String |
RESOURCE
|
Fields inherited from class wt.services.StandardManager |
|
Fields inherited from interface wt.session.SessionManager |
ACCEPT_LANGUAGE |
Fields inherited from interface wt.services.Manager |
MANAGER_SERVICE, STARTUP_AUTOMATIC, STARTUP_MANUAL, STATUS_EMERGENCY_SHUTDOWN, STATUS_EMERGENCY_SHUTTING_DOWN, STATUS_SHUTDOWN, STATUS_SHUTDOWN_ERRORS, STATUS_SHUTDOWN_FAILURE, STATUS_SHUTTING_DOWN, STATUS_STARTED, STATUS_STARTED_ERRORS, STATUS_STARTING_UP, STATUS_STARTUP_FAILURE |
Constructor Summary | |
StandardSessionManager()
|
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. |
private WTUser |
getAuthenticatedUser(String auth_name)
|
private String |
getAuthenticationName()
|
String |
getConceptualClassname()
Deprecated. |
private DirectoryContextProvider |
getExchangeContext()
|
Vector |
getLanguagePreference()
Supported API: false |
Locale |
getLocale()
Supported API: false |
WTPrincipal |
getPrincipal()
Retrieves current principal. |
WTPrincipalReference |
getPrincipalReference()
Retrieves a reference to the current principal. |
private WTUser |
getUser(String name)
|
boolean |
isAccessEnforced()
Returns true if access control was not reset through a 'setAccessEnforced (false)' call; returns false otherwise. |
static StandardSessionManager |
newStandardSessionManager()
Default factory for the class. |
private boolean |
realUserIsAdministrator()
|
WTUser |
refreshPrincipal()
Refreshes principal stored in the SessionContext cache. |
boolean |
setAccessEnforced(boolean enforce)
Suspends or resumes access control enforcement. |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private static String administratorDn
private static DirectoryContextProvider exchangeContext
private static final String PRINCIPAL_KEY
private static final boolean CLIENT_AUTHENTICATED_LOGIN
private static final boolean CASE_SENSITIVE
private static final boolean AUTH_TO_LOWER_CASE
private static final String ENFORCE_KEY
private static final boolean GET_PRINCIPAL_VERBOSE
Constructor Detail |
public StandardSessionManager()
Method Detail |
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
getConceptualClassname
in class StandardManager
public static StandardSessionManager newStandardSessionManager() throws WTException
WTException
public WTPrincipal getPrincipal() throws WTException
getPrincipal
in interface SessionManager
WTException
public WTPrincipalReference getPrincipalReference() throws WTException
getPrincipalReference
in interface SessionManager
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
setPrincipal
in interface SessionManager
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
setAdministrator
in interface SessionManager
WTException
public WTPrincipal getAdministrator() throws WTException
getAdministrator
in interface SessionManager
WTException
public void setAuthenticatedPrincipal(String web_name) throws WTException
setAuthenticatedPrincipal
in interface SessionManager
web_name
-
WTException
public Locale getLocale() throws WTException
getLocale
in interface SessionManager
WTException
public Vector getLanguagePreference() throws WTException
getLanguagePreference
in interface SessionManager
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
destroySessionContext
in interface SessionManager
prefix
- used guarentee uniqueness to the keysessionId
- session id of the JSP/Servlet engine calling the method server
WTException
public boolean setAccessEnforced(boolean enforce)
This method can be used to
temporarily suspend access control enforcement using a try/finally
block, in which the enforcement is suspended in the try block and
restored in the finally block. The return value can be used to restore
the value to whatever it was before the enforcement was suspended.
Supported API: true
setAccessEnforced
in interface SessionManagerSvr
enforce
-
public boolean isAccessEnforced()
isAccessEnforced
in interface SessionManagerSvr
public WTUser refreshPrincipal() throws WTException
refreshPrincipal
in interface SessionManagerSvr
WTException
private WTUser getUser(String name) throws WTException
WTException
private WTUser getAuthenticatedUser(String auth_name) throws WTException
WTException
private DirectoryContextProvider getExchangeContext() throws WTException
WTException
private boolean realUserIsAdministrator() throws WTException
WTException
private String getAuthenticationName()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |