public class RemoteLoginManagerImpl extends Object implements RemoteLoginManager
Constructor and Description |
---|
RemoteLoginManagerImpl() |
Modifier and Type | Method and Description |
---|---|
protected FdkSessionImpl |
getConnectedSession()
Return the web service session.
|
NamedValue[] |
interopTest(long[] longarray,
String[] strings,
NamedValue[] nv) |
protected boolean |
isWebServiceCall()
Returns
true if the current call was made from a web services
client. |
protected NamedValue[] |
login(FdkCredential c,
NamedValue[] options,
AttributeRequest[] userAttributes)
Internal login method used by web services login managers.
|
NamedValue[] |
login(String username,
String password,
NamedValue[] options,
AttributeRequest[] userAttributes)
Start a session authenticated as the given user.
|
void |
logout()
Disconnects the current session, if any.
|
void |
referenceTypes(TypeReference ref)
Dummy web service method to create a reference to data types used
in the web services to insure that they are defined in the WSDL.
|
public NamedValue[] login(String username, String password, NamedValue[] options, AttributeRequest[] userAttributes) throws FdkException
login
in interface RemoteLoginManager
username
- The username.password
- The password.options
- Options that should be set on the session.
NOTE:
Currently no options are supported, this argument is
ignored and null
can be safely passed.userAttributes
- Optional attributes on the user item that should
be returned. Can be null
.NamedValue[]
set of properties that contains the
following keys (listed below as defined constants and literal
strings):
WebServicesConstants.LOGIN_USER ("LOGIN_USER")
-
The user item, which includes the requested attributes.
WebServicesConstants.SESSION_TIMEOUT
("SESSION_TIMEOUT")
-
The session inactivity timeout, in seconds.
WebServicesConstants.TRANSACTION_TIMEOUT
("TRANSACTION_TIMEOUT")
-
The transaction inactivity timeout, in seconds.FdkException
public void logout() throws FdkException
logout
in interface RemoteLoginManager
FdkException
public NamedValue[] interopTest(long[] longarray, String[] strings, NamedValue[] nv) throws FdkException
FdkException
protected final boolean isWebServiceCall()
true
if the current call was made from a web services
client. This check can be made by any subclasses in order to determine
functionality and restrictions based on the originating call. This
feature should be used lightly and only where really necessary as
this is not an idea way of implementing business logic.public void referenceTypes(TypeReference ref)
protected final NamedValue[] login(FdkCredential c, NamedValue[] options, AttributeRequest[] userAttributes) throws FdkException
FdkException
protected final FdkSessionImpl getConnectedSession() throws FdkException
FdkException
Copyright © 2023. All rights reserved.