|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.services.StandardManager
wt.session.StandardSessionManager
public class 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
| Method Summary | |
|---|---|
WTPrincipal |
getAdministrator()
Returns the default administrator. |
WTPrincipal |
getPrincipal()
Retrieves current principal. |
WTPrincipalReference |
getPrincipalReference()
Retrieves a reference to the current principal. |
boolean |
isAccessEnforced()
Returns true if access control was not reset through a 'setAccessEnforced (false)' call; returns false otherwise. |
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 wt.services.StandardManager |
|---|
getManagerService, getManagerStatus, getName, getStartupType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public WTPrincipal getPrincipal()
throws WTException
getPrincipal in interface SessionManagerWTException
public WTPrincipalReference getPrincipalReference()
throws WTException
getPrincipalReference in interface SessionManagerWTException
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 SessionManagername -
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 SessionManagerWTException
public WTPrincipal getAdministrator()
throws WTException
getAdministrator in interface SessionManagerWTException
public void setAuthenticatedPrincipal(String web_name)
throws WTException
setAuthenticatedPrincipal in interface SessionManagerweb_name -
WTExceptionpublic 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 SessionManagerSvrenforce -
public boolean isAccessEnforced()
isAccessEnforced in interface SessionManagerSvr
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||