|
Web Dynpro API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.sap.tc.webdynpro.services.sal.um.api.WDClientUser
WDClientUser provides static methods to access
an IWDClientUser instance.
Example: An IWDClientUser can be accessed as follows:
// Let clientUserID be an identifier of a client user IWDClientUser clientUser = WDClientUser.getClientUser(clientUserID);
IWDClientUser| Constructor Summary | |
WDClientUser()
|
|
| Method Summary | |
static boolean |
checkAuthentication(WDDeployableObjectPart applicationPart)
This method checks the configuration whether authentication is required. |
static IWDClientUser |
forceLoggedInClientUser()
Checks whether the client user is currently logged in and returns the associated IWDClientUser object. |
static IWDClientUser |
forceLoggedInClientUser(java.lang.Object request,
java.lang.Object response)
Deprecated. This method has been superceded by the parameterless forceLoggedInClientUser()
and may be withdrawn with the first new NetWeaver release in 2006. |
static void |
forceLogoffClientUser(java.lang.Object request,
java.lang.Object response,
java.lang.String url)
Deprecated. This method has been superceded by forceLogoffClientUser(String)
and may be withdrawn with the first new NetWeaver release in 2006. |
static void |
forceLogoffClientUser(java.lang.String url)
Logs off client user by invalidating the session and deleting the authentication cookies. |
static IWDClientUser |
getClientUser(java.lang.String clientUserID)
Gets the IWDClientUser with the client user ID supplied
as input parameter, if existing. |
static IWDClientUser[] |
getClientUsers()
Return is the array of client users which currently run on the Web Dynpro runtime. |
static IWDClientUser |
getCurrentUser()
Gets the current IWDClientUser object, what is either an
authenticated or anonymous client user. |
static IWDClientUser |
getLoggedInClientUser()
Checks whether the client user is currently logged in and returns his/her user id. |
static IWDClientUser |
getLoggedInClientUser(java.lang.Object request,
java.lang.Object response)
Deprecated. This method has been superceded by the parameterless getLoggedInClientUser()
and may be withdrawn with the first new NetWeaver release in 2006. |
static boolean |
isAuthenticationRequired(WDDeployableObjectPart applicationPart)
Return is true if the authentication flag is set for the application specified as input parameter. |
static void |
releaseClientUser(IWDClientUser clientUser)
Deprecated. the method is no longer supported and may be withdrawn with the first new NetWeaver release in 2006. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public WDClientUser()
| Method Detail |
public static IWDClientUser getClientUser(java.lang.String clientUserID)
IWDClientUser with the client user ID supplied
as input parameter, if existing. If not existing, an anonymous
client user is returned with an arbitrary clientUserID.
No user login is forced by this method call.clientUserID - the unique ID of the client user; if null
or not existing yet, an anonymous client user is created. Note that this ID
is a Web Dynpro used identifier for an already created client user
and does not match with the user id of the user management system.
public static IWDClientUser getCurrentUser()
throws WDUMException
IWDClientUser object, what is either an
authenticated or anonymous client user.WDUMException - if there is no user (neither authenticated nor anonymous user)
for the current request
public static IWDClientUser forceLoggedInClientUser(java.lang.Object request,
java.lang.Object response)
forceLoggedInClientUser()
and may be withdrawn with the first new NetWeaver release in 2006.
IWDClientUser object. If the user
is not yet logged in, a respective logon page is written as
response and null is returned.
Note: This method has been superceded by forceLoggedInClientUser().
Using this old method results in a call to forceLoggedInClientUser(), the
additional parameters request and response are ignored.
Note: Delayed logon is currently request - the request object (ignored)response - the response object (ignored)null otherwisepublic static IWDClientUser forceLoggedInClientUser()
IWDClientUser object. If the user
is not yet logged in, a respective logon page is written as
response and null is returned.
null otherwise
public static IWDClientUser getLoggedInClientUser(java.lang.Object request,
java.lang.Object response)
getLoggedInClientUser()
and may be withdrawn with the first new NetWeaver release in 2006.
null is returned.
Note: This method has been superceded by getLoggedInClientUser().
Using this old method results in a call to getLoggedInClientUser(), the
additional parameters request and response are ignored. request - the request object (ignored)response - the response object (ignored)null otherwisepublic static IWDClientUser getLoggedInClientUser()
null is returned.null otherwise
public static void forceLogoffClientUser(java.lang.Object request,
java.lang.Object response,
java.lang.String url)
forceLogoffClientUser(String)
and may be withdrawn with the first new NetWeaver release in 2006.
Note: This method has been superceded by forceLogoffClientUser(String).
Using this old method results in a call to forceLogoffClientUser(url), the
additional parameters request and response are ignored.
request - the request object (ignored)response - the response object (ignored)url - the URL of the page that is shown to the user of logoff was donepublic static void forceLogoffClientUser(java.lang.String url)
A call of forceLogoffClientUser does the following concrete steps:
url - the URL of the page that is shown to the user after logoff was done.
If the parameter is null, the redirect is done to the "LogoffURL" URL that can be
specified in the application properties. If this URL is also not defined, a redirect
to a Web Dynpro internal logoff page is done.public static void releaseClientUser(IWDClientUser clientUser)
IWDClientUser instance associated to the user.clientUser - the client user to releasepublic static IWDClientUser[] getClientUsers()
public static boolean checkAuthentication(WDDeployableObjectPart applicationPart)
forceLoggedInClientUser
method is called. The method returns true if authentication was successful, i.e. either the user was
correctly authenticated or no authentication is required in the current session. Otherwise, false is returned. In
this latter case, the application should abort execution of the program flow since authentication is required
but there is no authenticated user yet.
applicationPart - the application part containing the configuration of the applicationWDIllegalArgumentException - if applicationPart is null
or applicationPart.getType() != WDDeployableObjectPartType.APPLICATIONpublic static boolean isAuthenticationRequired(WDDeployableObjectPart applicationPart)
applicationPart - a deployable object part that specifies an applicationWDIllegalArgumentException - if applicationPart is null or
applicationPart.getType() != WDDeployableObjectPartType.APPLICATION
|
Web Dynpro API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||