psdi.app.inbxconfig

Class InbxConfigSet

    • Constructor Detail

      • InbxConfigSet

        public InbxConfigSet(MboServerInterface ms)
                      throws MXException,
                             java.rmi.RemoteException
        Constructs the set of InbxConfig.
        Parameters:
        ms - the MboServerInterface
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • getMboInstance

        protected Mbo getMboInstance(MboSet ms)
                              throws MXException,
                                     java.rmi.RemoteException
        Generates a new InbxConfig object.
        Specified by:
        getMboInstance in class MboSet
        Parameters:
        ms - MboSet.
        Returns:
        Mbo - the new InbxConfig.
        Throws:
        MXException
        java.rmi.RemoteException
      • setInboxColumns

        public void setInboxColumns()
                             throws java.rmi.RemoteException,
                                    MXException
        Gets attributes related to WFASSIGNMENT from MAXIMODD and uses them as the list of attributes to be given to user to select from to display portlet.
        The list is then added to this set. This method is called only the first time when use configures / edits the portlet. The list of attributes is kept filled up for the user until the portlet is disposed off.
        Specified by:
        setInboxColumns in interface InbxConfigSetRemote
        Throws:
        java.rmi.RemoteException
        MXException
      • getColumns

        public java.util.Vector getColumns()
                                    throws java.rmi.RemoteException,
                                           MXException
        Returns a collection of attributes and their desciptions for the currently configured portlet. This method returns all fields irrespective of "DISPLAY" flag
        Specified by:
        getColumns in interface InbxConfigSetRemote
        Returns:
        Vector collection of array of names and description for selected inbox attributes
        Throws:
        java.rmi.RemoteException
        MXException
      • getAssignments

        public MboValueData[][] getAssignments(int start,
                                               int rowcount,
                                               java.lang.String sortBy)
                                        throws java.rmi.RemoteException,
                                               MXException
        Returns the data to be displayed to user in the Inbox Portlet. Based on how many records the user wants to see and what the sort by is, MboValueData of all the attributes with DISPLAY flag as true, is formed. Along side, data of the key attributes is passed on which is necessary for linking to WORKFLOW and ROUTING functions
        Specified by:
        getAssignments in interface InbxConfigSetRemote
        Parameters:
        start -
        rowcount -
        sortBy -
        Returns:
        MboValueData[][] of "description", "app","assignid","ownerid" plus selected attributes
        Throws:
        java.rmi.RemoteException
        MXException
      • getInboxColumns

        public java.util.Vector getInboxColumns()
                                         throws java.rmi.RemoteException,
                                                MXException
        Returns the list of only those attributes that have been selected for DISPLAY in the current Inbox Portlet. These will be returned with ORDER BY ordernum asc,description asc
        Specified by:
        getInboxColumns in interface InbxConfigSetRemote
        Returns:
        Vector collection of array of names and description for selected-to-display inbox attributes
        Throws:
        java.rmi.RemoteException
        MXException
      • getKeyAttributeData

        public MboValueData[][] getKeyAttributeData()
                                             throws java.rmi.RemoteException,
                                                    MXException
        Returns key data of the key attributes needed for linking to WORKFLOW and ROUTING functions
        Specified by:
        getKeyAttributeData in interface InbxConfigSetRemote
        Returns:
        mvd MboValueData[][] of key attributes from WFASSIGNMENT "description", "app","assignid","ownerid"
        Throws:
        java.rmi.RemoteException
        MXException
      • getNoOfAssignments

        public int getNoOfAssignments()
                               throws java.rmi.RemoteException,
                                      MXException
        Returns number of assignments if already set, otherwise makes a quick call to WFASSIGNMENT table and calls method getInboxAssignments(), to get the count of the assignments user has
        Specified by:
        getNoOfAssignments in interface InbxConfigSetRemote
        Returns:
        number of assignments as integer
        Throws:
        java.rmi.RemoteException
        MXException
      • latestDate

        public java.lang.String latestDate()
                                    throws java.rmi.RemoteException,
                                           MXException
        Returns the String of the latest date among assignments. This is the date of the assignment which is due the next.
        Specified by:
        latestDate in interface InbxConfigSetRemote
        Returns:
        latestdate as string
        Throws:
        java.rmi.RemoteException
        MXException
      • getInboxDescTitle

        public java.lang.String getInboxDescTitle()
                                           throws java.rmi.RemoteException,
                                                  MXException
        Returns title of the "DESCRIPTION" attribute from WFAASSIGNMENT table.
        Specified by:
        getInboxDescTitle in interface InbxConfigSetRemote
        Returns:
        title as String
        Throws:
        java.rmi.RemoteException
        MXException
      • getNonPersistentAttributes

        public java.util.ArrayList getNonPersistentAttributes()
                                                       throws java.rmi.RemoteException,
                                                              MXException
        Returns a collection of all non-persistent fields of WFASSIGNMENT table.
        This is needed in the portlet to restrict user from scrolling.
        Specified by:
        getNonPersistentAttributes in interface InbxConfigSetRemote
        Returns:
        ArrayList of attribute names
        Throws:
        java.rmi.RemoteException
        MXException