psdi.app.bulletinboard

Class BBSet

    • Constructor Detail

      • BBSet

        public BBSet(MboServerInterface ms)
              throws java.rmi.RemoteException
        Construct the Set
        Parameters:
        MboServerInterface - - Instance of MboServerInterface
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • getMboInstance

        protected Mbo getMboInstance(MboSet ms)
                              throws MXException,
                                     java.rmi.RemoteException
        Instantiate and return a new BB object
        Specified by:
        getMboInstance in class MboSet
        Parameters:
        MboSet - - Instance of MboSet
        Returns:
        Mbo - a new BB object
        Throws:
        MXException
        java.rmi.RemoteException
      • save

        public void save()
                  throws MXException,
                         java.rmi.RemoteException
        Description copied from class: MboSet
        Sends changes to the database for all objects in the collection. In addition to saving the members in this set, all Mbos owned by members of this set are also saved. If all goes well, commit is called, otherwise rollback is called. Once successfully saved, this MboSet is reset, ready for a requery.
        Specified by:
        save in interface MboSetRemote
        Overrides:
        save in class MboSet
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        MboSet.reset()
      • setValidMessages

        public void setValidMessages()
                              throws MXException,
                                     java.rmi.RemoteException
        Sets this set to include messages that are not expired and ready to be posted
        Specified by:
        setValidMessages in interface BBSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • getValidMessagesList

        public java.util.List getValidMessagesList()
                                            throws java.rmi.RemoteException,
                                                   MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • setUserValidMessages

        public void setUserValidMessages()
                                  throws MXException,
                                         java.rmi.RemoteException
        Deprecated. Use one of the getValidMessagesMboSet() instead
        Sets this set to include messages that are not expired and ready to be posted
        Specified by:
        setUserValidMessages in interface BBSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • setVisibleMessages

        public void setVisibleMessages()
                                throws MXException,
                                       java.rmi.RemoteException
        Sets this set to include messages that are not expired and ready to be posted
        Specified by:
        setVisibleMessages in interface BBSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • getValidMessages

        public java.util.ArrayList getValidMessages()
                                             throws java.rmi.RemoteException,
                                                    MXException
        Returns an ArrayList of valid messages for this user
        Specified by:
        getValidMessages in interface BBSetRemote
        Returns:
        ArrayList
        Throws:
        MXException
        java.rmi.RemoteException
      • getColumns

        public java.util.Vector getColumns()
                                    throws java.rmi.RemoteException,
                                           MXException
        Returns a collection of attributes currently selected for display in the portlet
        Specified by:
        getColumns in interface BBSetRemote
        Returns:
        collection of array of names and description for selected attributes
        Throws:
        java.rmi.RemoteException
        MXException
      • getResultSetData

        public MboSetData getResultSetData(int start,
                                           int rowcount,
                                           java.lang.String sortBy,
                                           java.util.Hashtable qbes)
                                    throws java.rmi.RemoteException,
                                           MXException
        This method is used for BB Message filtering in start center 1. When user first time logs on Maximo, show only Un Viewed messages --> set BB View Status text field in start center as Unviewed 2. When user searches BB message, search only Un Viewed messages --> Means by default, View Status text field is set as Unviewed 3. Search depends on View Status text field setting (Viewed or Unviewed)
        Specified by:
        getResultSetData in interface BBSetRemote
        Parameters:
        -
        Throws:
        MXException
        java.rmi.RemoteException
      • getNoOfRecords

        public int getNoOfRecords()
                           throws java.rmi.RemoteException,
                                  MXException
        Returns no of records in this query
        Returns:
        number of records as integer
        Throws:
        java.rmi.RemoteException
        MXException
      • addBBMsgStatus

        public void addBBMsgStatus(long bulletinboarduid)
                            throws MXException,
                                   java.rmi.RemoteException
        This method checks BBOARDMSGSTATUS Mbo, if the BB message is inserted or not. It not, inserts one meaning the inserted message is viewed
        Specified by:
        addBBMsgStatus in interface BBSetRemote
        Parameters:
        bulletinboarduid - -- Unique BULLETINBOARD Id
        Throws:
        MXException
        java.rmi.RemoteException
      • msgCountForIcon

        public int msgCountForIcon()
                            throws MXException,
                                   java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • getBBIds

        public java.lang.String getBBIds()
                                  throws MXException,
                                         java.rmi.RemoteException
        Get the bulletin board ids of the messages in the set in comma delimited string.
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException