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_VERIFYopcode 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 BASSwingclients.voidlogin_verify(javax.servlet.http.HttpSession session, String Identifier, ResourceBundle bundle) Creates the login flist, based on input data, and verifies the user.voidlogin_verify(javax.servlet.http.HttpSession session, ResourceBundle bundle) Creates the flist based on input data and calls the opcode to log in.voidSets the input data for the login.voidsetPassword(String sPassword) Sets the input data for the password.voidsetService(String sService) Sets the input the data for the service.voidUsed only for BASSwingclients.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:
setLoginin interfacePLoginBean- Parameters:
sLogin- aStringwith the userid to use for logging in- Throws:
RemoteException
-
setPassword
Sets the input data for the password.- Specified by:
setPasswordin interfacePLoginBean- Parameters:
sPassword- aStringwith the password to use for logging in- Throws:
RemoteException
-
setService
Sets the input the data for the service.- Specified by:
setServicein interfacePLoginBean- Parameters:
sService- aStringwith the service to use- Throws:
RemoteException
-
update
Used only for BASSwingclients. Default behavior in this case is to do nothing.- Specified by:
updatein 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 BASSwingclients. Default behavior in this case is to do nothing and return null.- Specified by:
getSelectionDataForin 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_verifyin 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_verifyin 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
-