Package com.portal.web.comp
Class PLoginBeanImpl
java.lang.Object
com.portal.bas.PControllerImpl
com.portal.web.comp.PLoginBeanImpl
- All Implemented Interfaces:
PControllerBean
,PLoginBean
,Serializable
,Remote
,Unreferenced
Controller object for user logins.
Implements the following functionality:
- Calls the
PortalOp.ACT_FIND_VERIFY
opcode to verify the user's login and pasword. - On successful login, saves the account model handle and service model handle in the session, preserving access for other functions that require the information.
- Version:
- %version: 15 % %date_modified: Fri May 31 10:24:49 2002 %
- Author:
- sujata
- See Also:
-
Field Summary
Fields inherited from class com.portal.bas.PControllerImpl
mFList, mRemoteListeners, UPDATE_CLIENT, UPDATE_MODEL_CHANGE, UPDATE_NEW_MODEL, UPDATE_PROPERTY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSelectionDataFor
(String dataItem, int index) Used only for BASSwing
clients.void
login_verify
(javax.servlet.http.HttpSession session, String Identifier, ResourceBundle bundle) Creates the login flist, based on input data, and verifies the user.void
login_verify
(javax.servlet.http.HttpSession session, ResourceBundle bundle) Creates the flist based on input data and calls the opcode to log in.void
Sets the input data for the login.void
setPassword
(String sPassword) Sets the input data for the password.void
setService
(String sService) Sets the input the data for the service.void
Used only for BASSwing
clients.Methods inherited from class com.portal.bas.PControllerImpl
addRemoteListener, closeSecContext, createClientException, distributeEventToListeners, fireModelChangeEvent, getAppController, getArrayRange, getContext, getField, getField, getField, getFieldWithRestriction, getFieldWithRestriction, getFieldWithRestriction, getModel, getRemoteListenerHandle, getSecContext, handleDistributeToListener, isLight, register, releaseContext, releaseRemoteListener, removeRemoteListener, setField, setField, setModel, unreferenced
-
Constructor Details
-
PLoginBeanImpl
Creates a controller for logging in the user.- Throws:
RemoteException
-
-
Method Details
-
setLogin
Sets the input data for the login.- Specified by:
setLogin
in interfacePLoginBean
- Parameters:
sLogin
- aString
with the userid to use for logging in- Throws:
RemoteException
-
setPassword
Sets the input data for the password.- Specified by:
setPassword
in interfacePLoginBean
- Parameters:
sPassword
- aString
with the password to use for logging in- Throws:
RemoteException
-
setService
Sets the input the data for the service.- Specified by:
setService
in interfacePLoginBean
- Parameters:
sService
- aString
with the service to use- Throws:
RemoteException
-
update
Used only for BASSwing
clients. Default behavior in this case is to do nothing.- Specified by:
update
in classPControllerImpl
- Parameters:
reason
- an integer constant that indicates the reason for the update (UPDATE_NEW_MODEL
,UPDATE_PROPERTY
,UPDATE_MODEL_CHANGE
, orUPDATE_CLIENT
)data
- the data associated withupdate
-
getSelectionDataFor
Used only for BASSwing
clients. Default behavior in this case is to do nothing and return null.- Specified by:
getSelectionDataFor
in interfacePControllerBean
- Parameters:
dataItem
- the name of a data item. Must match the name of an item changed by sending aPViewDataChangeEvent
.index
- an optional index into an array data item- Returns:
- Usually, a model handle or array of model handles.
-
login_verify
public void login_verify(javax.servlet.http.HttpSession session, ResourceBundle bundle) throws RemoteException Creates the flist based on input data and calls the opcode to log in.- Specified by:
login_verify
in interfacePLoginBean
- Parameters:
session
- the HTTP sessionbundle
- the resource bundle to use- Throws:
RemoteException
- thrown for errors
-
login_verify
public void login_verify(javax.servlet.http.HttpSession session, String Identifier, ResourceBundle bundle) throws RemoteException Creates the login flist, based on input data, and verifies the user.- Specified by:
login_verify
in interfacePLoginBean
- Parameters:
session
- the HTTP sessionIdentifier
- the model handle's identifier saved in the sessionbundle
- the resource bundle- Throws:
RemoteException
- thrown for a missing context
-