com.ibm.tivoli.maximo.amcrew.workman.beans

Class AMCrewTableBean

  • All Implemented Interfaces:
    java.util.EventListener, javax.servlet.http.HttpSessionBindingListener, DataBeanListener


    public class AMCrewTableBean
    extends DataBean
    • Constructor Detail

      • AMCrewTableBean

        public AMCrewTableBean()
    • Method Detail

      • initialize

        protected void initialize()
                           throws MXException,
                                  java.rmi.RemoteException
        Verifies if the user has a default query
        Overrides:
        initialize in class DataBean
        Throws:
        MXException
        java.rmi.RemoteException
      • amCrewRefresh

        public int amCrewRefresh()
                          throws MXException,
                                 java.rmi.RemoteException
        Refreshes (i.e. resets) the Crew List upon the user's request.
        Throws:
        MXException
        java.rmi.RemoteException
      • modavailcrew

        public int modavailcrew()
                         throws MXException,
                                java.rmi.RemoteException
        This method verifies that the selected labor has a calendar and a shift associated with it before it allows the modavail dialog to be called.
        Throws:
        MXException
        java.rmi.RemoteException
      • setPageStartIndex

        public boolean setPageStartIndex(int nRow)
        Allows the starting row of a table bound to the bean to be set at will.
      • assigncrewgrid

        public int assigncrewgrid(java.lang.String theDay)
                           throws MXException
        This method is called when the users assign crew by by clicking on the available hours grid. Which row and the column were clicked come from the WebClientEvent and ControlProperties objects, respectively. (The convention is that if they checked a row and then click the grid, the grid-click takes precedence.)
        Throws:
        MXException
      • AMSetCurrentRow

        public void AMSetCurrentRow(int nRow)
        Allows the protected DataBean attribute currentRow to be set This also allows currentRow to be set without any other actions being performed. The setCurrentRow method in DataBean does do other things in some cases -- not in this one, at present, but that may not always be the case.
      • AMSetTableFlag

        public void AMSetTableFlag(long flag,
                                   boolean value)
        Allows the protected DataBean attribute tableStateFlags to be set in classes that are not direct subclasses of DataBean (such as AMLaborTableBean -- for an example of its use see AMManageQueriesBean). This also allows tableStateFlags to be set without any other actions being performed. The setTableFlag method in DataBean in fact does not do anything else, but this may not always be the case.
      • AMSetCurrentQueryName

        public void AMSetCurrentQueryName(java.lang.String queryName)
        Allows the protected DataBean attribute currentQuery to be set This also allows currentQuery to be set without any other actions being performed. The setCurrentQueryName method in DataBean in fact does not do anything else, but this may not always be the case.
      • getMboSetRemote

        public MboSetRemote getMboSetRemote()
                                     throws MXException,
                                            java.rmi.RemoteException
        Description copied from class: DataBean
        Obtains and returns a MboSetRemote using the mboname of parent/relationship setup for the bean. Override this method if the DataBean needs to get a MboSetRemote in a non-standard way. (Not via a the MXSession, or a relationship from another DataBean).
        Overrides:
        getMboSetRemote in class DataBean
        Throws:
        MXException
        java.rmi.RemoteException
      • getRemoteForDownload

        public MboSetRemote getRemoteForDownload()
                                          throws java.rmi.RemoteException,
                                                 MXException
        Override Databean's getRemoteForDownload method so that the client work date can be passed to the download mboset; in this way, the downloaded set will use the same work date and therefore display the same 7-day window in the availability grid as does the Labor List on the screen.
        Overrides:
        getRemoteForDownload in class DataBean
        Throws:
        java.rmi.RemoteException
        MXException