psdi.app.financial

Class GLComponentsSet

    • Constructor Detail

      • GLComponentsSet

        public GLComponentsSet(MboServerInterface ms)
                        throws java.rmi.RemoteException
        Construct the GLComponents set.
        Parameters:
        ms -
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • findValidComponents

        public void findValidComponents(int componentNumber,
                                        java.lang.String[] knownSegments,
                                        boolean withAccessCheck,
                                        boolean fromCOA,
                                        java.lang.String orgID)
                                 throws MXException,
                                        java.rmi.RemoteException
        Set the MboSet to return a list of components. This uses the component number and the list of known component values to narrow the list to only those components that could be used to produce a valid component combination. Note that component number is 0 based. This rountine will cause a reset of the MboSet, therefore all changes will be lost. The programmer can then access the collection to get the valid list. This is primariliy used in the GL Navigator dialog.
        Specified by:
        findValidComponents in interface GLComponentsSetRemote
        Parameters:
        componentNumber - The GL component number.
        knownSegments - Array of segment lengths.
        withAccessCheck - Check to see it the specified segment has the authority to be editted by the user.
        fromCOA - Indicates if the glnavigator being used is from Chart of Accounts app or from other apps.
        orgID - The organization identifier of the mbo from which this method is called. If the parameter is true, an exception will be thrown if the user cannot edit this segment.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        GLComponentsSet.findValidComponents(int, java.lang.String[], boolean, boolean, java.lang.String)
      • activateGLComponents

        public AccountSetRemote activateGLComponents(java.lang.String gla,
                                                     java.util.Vector compName,
                                                     java.util.Vector compDesc,
                                                     java.util.Vector compDescAsName,
                                                     java.util.Vector compOrder,
                                                     java.lang.String ownerSysID,
                                                     java.lang.String sourceSysID,
                                                     java.lang.String senderSysID)
                                              throws MXException,
                                                     java.rmi.RemoteException
        This method activates all the GL Components passed in the vector and hence all the chart of accounts which contain the segments. The where clause is constructed dynamically depending on the no of segments in the vector list. This method is to be used in scenerios where more than one segments of a chart of account are to be activated in one transaction. We have to take care that if one of the component has already activated the chart of account, we don't try activating it through another component. Also we have to make sure that if there is another component in this account which is inactive, we do not activate it. A chart of account can be active only if all its components are active. In addition we also update the component description.
        Specified by:
        activateGLComponents in interface GLComponentsSetRemote
        Parameters:
        compName - Vector of the component names
        compDesc - Vector of the component descriptions
        compOrder - Vector of the component order in the account
        ownerSysID -
        sourceSysID -
        senderSysID -
        Returns:
        AccountSetRemote containing only the passed gl if the active flag of this gl has been modified. NULL if the active flag is intact.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        GLComponentsSet.activateGLComponents(java.lang.String, java.util.Vector, java.util.Vector, java.util.Vector, java.util.Vector, java.lang.String, java.lang.String, java.lang.String)
      • inActivateGLComponents

        public AccountSetRemote inActivateGLComponents(java.lang.String gla,
                                                       java.util.Vector compName,
                                                       java.util.Vector compDesc,
                                                       java.util.Vector compDescAsName,
                                                       java.util.Vector compOrder,
                                                       java.lang.String ownerSysID,
                                                       java.lang.String sourceSysID,
                                                       java.lang.String senderSysID)
                                                throws MXException,
                                                       java.rmi.RemoteException
        This method inactivates all the GL Components passed in the vector and hence all the chart of accounts which contain the segments. The where clause is constructed dynamically depending on the no of segments in the vector. This method is to be used in scenerios where more than one segments of a chart of account are to be inactived in one transaction. We have to take care that if one of the component has already inactive the chart of account, we don't try inactivating it through another component. In addition we also update the component description.
        Specified by:
        inActivateGLComponents in interface GLComponentsSetRemote
        Parameters:
        compName - Vector of the component names
        compDesc - Vector of the component descriptions
        compOrder - Vector of the component order in the account
        ownerSysID -
        sourceSysID -
        senderSysID -
        Returns:
        AccountSetRemote containing only the passed gl if the active flag of this gl has been modified. NULL if the active flag is intact.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        GLComponentsSet.inActivateGLComponents(java.lang.String, java.util.Vector, java.util.Vector, java.util.Vector, java.util.Vector, java.lang.String, java.lang.String, java.lang.String)
      • 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()
      • getMultiSiteWhere

        public java.lang.String getMultiSiteWhere()
                                           throws MXException,
                                                  java.rmi.RemoteException
        Override the framework method to not add the multisite where clause.
        Overrides:
        getMultiSiteWhere in class MboSet
        Returns:
        The Multi-Site where clause
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        Calls this method.
      • getNextValidCompList

        public java.lang.String getNextValidCompList(java.lang.String whereClause,
                                                     java.lang.String nextCompAttr)
                                              throws MXException,
                                                     java.rmi.RemoteException
        IJ28867: pre-look at the next component and return list of valid segments
        Parameters:
        whereClause -
        nextCompAttr -
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException