Class PLoginBeanImpl

java.lang.Object
com.portal.bas.PControllerImpl
com.portal.web.comp.PLoginBeanImpl
All Implemented Interfaces:
PControllerBean, PLoginBean, Serializable, Remote, Unreferenced

public class PLoginBeanImpl extends PControllerImpl implements PLoginBean, Serializable
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:
  • Constructor Details

  • Method Details

    • setLogin

      public void setLogin(String sLogin) throws RemoteException
      Sets the input data for the login.
      Specified by:
      setLogin in interface PLoginBean
      Parameters:
      sLogin - a String with the userid to use for logging in
      Throws:
      RemoteException
    • setPassword

      public void setPassword(String sPassword) throws RemoteException
      Sets the input data for the password.
      Specified by:
      setPassword in interface PLoginBean
      Parameters:
      sPassword - a String with the password to use for logging in
      Throws:
      RemoteException
    • setService

      public void setService(String sService) throws RemoteException
      Sets the input the data for the service.
      Specified by:
      setService in interface PLoginBean
      Parameters:
      sService - a String with the service to use
      Throws:
      RemoteException
    • update

      public void update(int reason, Object data)
      Used only for BAS Swing clients. Default behavior in this case is to do nothing.
      Specified by:
      update in class PControllerImpl
      Parameters:
      reason - an integer constant that indicates the reason for the update (UPDATE_NEW_MODEL, UPDATE_PROPERTY, UPDATE_MODEL_CHANGE, or UPDATE_CLIENT)
      data - the data associated with update
    • getSelectionDataFor

      public Object getSelectionDataFor(String dataItem, int index)
      Used only for BAS Swing clients. Default behavior in this case is to do nothing and return null.
      Specified by:
      getSelectionDataFor in interface PControllerBean
      Parameters:
      dataItem - the name of a data item. Must match the name of an item changed by sending a PViewDataChangeEvent.
      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 interface PLoginBean
      Parameters:
      session - the HTTP session
      bundle - 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 interface PLoginBean
      Parameters:
      session - the HTTP session
      Identifier - the model handle's identifier saved in the session
      bundle - the resource bundle
      Throws:
      RemoteException - thrown for a missing context