psdi.plusc.app.pluscds

Class PlusCWODS

  • java.lang.Object
    • Constructor Detail

      • PlusCWODS

        public PlusCWODS(MboSet ms)
                  throws MXException,
                         java.rmi.RemoteException
        Instantiates a new plus cwods.
        Parameters:
        ms - the ms
        Throws:
        MXException - the mX exception
        java.rmi.RemoteException - the remote exception
    • Method Detail

      • init

        public void init()
                  throws MXException
        Description copied from class: Mbo
        Called by the framework when the Mbo has been constructed and the MboValues have been initialized. This can be overridden by the programmer to provide any custom initialization they would like to do.
        Overrides:
        init in class Mbo
        Throws:
        MXException
      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Description copied from class: Mbo
        This is called when a new Mbo is added to the Mboset collection. It is called AFTER user defaults have been set from the data dictionary. Programmer should usually override this to set some defaults. Default behavior is to do nothing.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • setFailSynonymDSStatusSet

        public void setFailSynonymDSStatusSet()
                                       throws java.rmi.RemoteException,
                                              MXException
        Issue 08-16263.
        Throws:
        java.rmi.RemoteException - the remote exception
        MXException - the mX exception
      • checkForBrokenSynonymDefaultAsFound

        public boolean checkForBrokenSynonymDefaultAsFound()
                                                    throws java.rmi.RemoteException,
                                                           MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • checkForBrokenSynonymDefaultAsLeft

        public boolean checkForBrokenSynonymDefaultAsLeft()
                                                   throws java.rmi.RemoteException,
                                                          MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • setFailDSStatusSet

        public void setFailDSStatusSet()
        Set the set with right values. Issue 08-16263
      • setPassDSStatusSet

        public void setPassDSStatusSet()
        Set the set with right values. Issue 08-16263
      • setDSRowStatus

        public void setDSRowStatus(java.util.Set afMap,
                                   java.util.Set alMap)
                            throws java.rmi.RemoteException,
                                   MXException
        Issue 08-16263. Sets the DS ASF/ASL Statuses
        Parameters:
        afMap - the af map
        alMap - the al map
        Throws:
        java.rmi.RemoteException - the remote exception
        MXException - the mX exception
      • save

        public void save()
                  throws MXException,
                         java.rmi.RemoteException
        Issue 08-16263 Staus setting was rewrite.
        Overrides:
        save in class Mbo
        Throws:
        MXException - the mX exception
        java.rmi.RemoteException - the remote exception
      • buildStatusMaps

        public java.util.Set buildStatusMaps(java.util.Set currentStatusSet,
                                             int iStatusSet,
                                             boolean bTolStatusDefined,
                                             boolean bSkipAsFound,
                                             boolean bSkipAsLeft,
                                             java.lang.String status1,
                                             java.lang.String status2,
                                             java.lang.String status3,
                                             java.lang.String status4)
                                      throws java.rmi.RemoteException,
                                             MXException
        Issue 08-16263.
        Parameters:
        currentStatusSet - the current status set
        iStatusSet - the i status set
        bTolStatusDefined - the b tol status defined
        bSkipAsFound - the b skip as found
        bSkipAsLeft - the b skip as left
        status1 - the status1
        status2 - the status2
        status3 - the status3
        status4 - the status4
        Returns:
        the set
        Throws:
        java.rmi.RemoteException - the remote exception
        MXException - the mX exception
      • setValueInOptionalLoopPartDSs

        protected void setValueInOptionalLoopPartDSs(java.lang.String attributeName,
                                                     java.lang.String value,
                                                     long accessModifier)
                                              throws java.rmi.RemoteException,
                                                     MXException
        If this is a loop DS, this method sets the given attribute to the given value in all optional DSs that are part of the loop. If it isn't a loop DS or there are no optional loop part DSs, nothing is done.
        Parameters:
        attributeName - the attribute name
        value - the value
        accessModifier - the access modifier
        Throws:
        java.rmi.RemoteException - the remote exception
        MXException - the mX exception
      • isLoop

        public boolean isLoop()
                       throws java.rmi.RemoteException,
                              MXException
        Is this a loop Datasheet?.
        Specified by:
        isLoop in interface PlusCWODSRemote
        Returns:
        if this is a loop datasheet
        Throws:
        java.rmi.RemoteException - the remote exception
        MXException - the mX exception
      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        Description copied from class: Mbo
        Can the object be deleted ? This is object specific and should be overridden.
        Overrides:
        canDelete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • delete

        public void delete(long accessModifier)
                    throws MXException,
                           java.rmi.RemoteException
        Description copied from class: Mbo
        Mark the object to be deleted depending on the access modifier. This will usually be overridden in the subclass of Mbo as there may be application specific rules as to if and when an object can be deleted. Object is not actually deleted in the database until save() is called. This method will also mark all associated Long Description and Translation Mbos for deletion.
        Specified by:
        delete in interface MboRemote
        Overrides:
        delete in class Mbo
        Parameters:
        accessModifier - The bitwise flag specified to determine if certain normal security checks are to be bypassed for this delete request. For example: if the accessModifer is NOACCESSCHECK, then the check for the object's NODELETE flag and the call to the object's canDelete() method will not be performed. If the accessModifer is NONE, then all the access checks are performed before this object is marked delete.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        Mbo.delete(long)
      • undelete

        public void undelete()
                      throws MXException,
                             java.rmi.RemoteException
        Description copied from class: Mbo
        Unmark the Mbo for deletion. Can only be called after a delete() and before the save() has been performed. This method will also unmark associated Long Description and Translation Mbos.
        Specified by:
        undelete in interface MboRemote
        Overrides:
        undelete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • propagateKeyValue

        public void propagateKeyValue(java.lang.String keyName,
                                      java.lang.String keyValue)
                               throws MXException,
                                      java.rmi.RemoteException
        Description copied from class: Mbo
        Method for propagating key value. Provide an implementation of the method only when the parent's key values need to be propagate down to this MBO which is a child of a MBO set obtained through a relationship from the parent, and only when the key attribute of the parent are not one of the key attributes of the child MBO. When overwrite this method, please don't call super().
        Specified by:
        propagateKeyValue in interface MboRemote
        Overrides:
        propagateKeyValue in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • propagateKeyValueToRelatedMbos

        public static void propagateKeyValueToRelatedMbos(MboSetRemote msr,
                                                          java.lang.String keyName,
                                                          java.lang.String keyValue)
                                                   throws java.rmi.RemoteException,
                                                          MXException
        Calls the propagateKeyValue method on all MBOs of the given MBOSet.
        Parameters:
        msr - MBOSet to propagate key value to.
        keyName - name of attribute to propagate
        keyValue - value of of attribute to propagate
        Throws:
        java.rmi.RemoteException - the remote exception
        MXException - the mX exception
      • setKeyValueInRelatedMboSetQuery

        public static void setKeyValueInRelatedMboSetQuery(MboSetRemote msr)
                                                    throws java.rmi.RemoteException,
                                                           MXException
        Update the relationship's where clause to reflect a change in the owner MBO's attributes.
        Parameters:
        msr - MBO Set whose where clause must be updated
        Throws:
        java.rmi.RemoteException - the remote exception
        MXException - the mX exception
      • clearUncertaintyFields

        public void clearUncertaintyFields()
                                    throws java.rmi.RemoteException,
                                           MXException
        Clear uncertainty fields.
        Throws:
        java.rmi.RemoteException - the remote exception
        MXException - the mX exception
      • isAddingToWO

        public boolean isAddingToWO()
                             throws MXException,
                                    java.rmi.RemoteException
        Description copied from interface: PlusCWODSRemote
        Checks if is adding to wo.
        Specified by:
        isAddingToWO in interface PlusCWODSRemote
        Returns:
        true, if is adding to wo
        Throws:
        MXException - the mX exception
        java.rmi.RemoteException - the remote exception
      • setIsAddingToWO

        public void setIsAddingToWO(boolean setting)
                             throws MXException,
                                    java.rmi.RemoteException
        Description copied from interface: PlusCWODSRemote
        Sets the checks if is adding to wo.
        Specified by:
        setIsAddingToWO in interface PlusCWODSRemote
        Parameters:
        setting - the new checks if is adding to wo
        Throws:
        MXException - the mX exception
        java.rmi.RemoteException - the remote exception
      • isDeletingFromWO

        public boolean isDeletingFromWO()
                                 throws MXException,
                                        java.rmi.RemoteException
        Description copied from interface: PlusCWODSRemote
        Checks if is deleting from wo.
        Specified by:
        isDeletingFromWO in interface PlusCWODSRemote
        Returns:
        true, if is deleting from wo
        Throws:
        MXException - the mX exception
        java.rmi.RemoteException - the remote exception
      • setIsDeleteingFromWO

        public void setIsDeleteingFromWO(boolean setting)
                                  throws MXException,
                                         java.rmi.RemoteException
        Description copied from interface: PlusCWODSRemote
        Sets the checks if is deleteing from wo.
        Specified by:
        setIsDeleteingFromWO in interface PlusCWODSRemote
        Parameters:
        setting - the new checks if is deleteing from wo
        Throws:
        MXException - the mX exception
        java.rmi.RemoteException - the remote exception
      • getMyWOOwner

        protected MboRemote getMyWOOwner()
                                  throws MXException,
                                         java.rmi.RemoteException
        Gets the my wo owner.
        Returns:
        the my wo owner
        Throws:
        MXException - the mX exception
        java.rmi.RemoteException - the remote exception
      • getMyDSOwner

        protected MboRemote getMyDSOwner()
                                  throws MXException,
                                         java.rmi.RemoteException
        Gets the my ds owner.
        Returns:
        the my ds owner
        Throws:
        MXException - the mX exception
        java.rmi.RemoteException - the remote exception
      • getMyInstrOwner

        public MboRemote getMyInstrOwner()
                                  throws MXException,
                                         java.rmi.RemoteException
        Gets the my instr owner.
        Returns:
        the my instr owner
        Throws:
        MXException - the mX exception
        java.rmi.RemoteException - the remote exception
      • copyDStoWODS

        public void copyDStoWODS()
                          throws MXException,
                                 java.rmi.RemoteException
        Change the WO DS - Code got from Action method of PlusCFldWODSPlanNum class.
        Specified by:
        copyDStoWODS in interface PlusCWODSRemote
        Throws:
        MXException - the mX exception
        java.rmi.RemoteException - the remote exception
      • validateDS

        public void validateDS(java.lang.String dsNum,
                               java.lang.String revNum)
                        throws MXException,
                               java.rmi.RemoteException
        Description copied from interface: PlusCWODSRemote
        Validate ds.
        Specified by:
        validateDS in interface PlusCWODSRemote
        Parameters:
        dsNum - the ds num
        revNum - the rev num
        Throws:
        MXException - the mX exception
        java.rmi.RemoteException - the remote exception
      • removeDSDocLinksFromWO

        protected void removeDSDocLinksFromWO(java.lang.String dsPlanNum,
                                              boolean delete)
                                       throws MXException,
                                              java.rmi.RemoteException
        ISSUE: 89825 Delete/undelete the attachments brought from Original Data Sheet.
        Parameters:
        dsPlanNum - the ds plan num
        delete - the delete
        Throws:
        MXException - the mX exception
        java.rmi.RemoteException - the remote exception
      • getBooleanWithDefault

        public boolean getBooleanWithDefault(java.lang.String attribute,
                                             boolean valueIfNull)
                                      throws MXException,
                                             java.rmi.RemoteException,
                                             MXApplicationException
        Returns the given attributes boolean value, or valueIfNull if the attribute is null.
        Specified by:
        getBooleanWithDefault in interface PlusCWODSRemote
        Parameters:
        attribute - name of attribute to get
        valueIfNull - value if attribute is null
        Returns:
        attribute's boolean value or
        Throws:
        MXException - the mX exception
        java.rmi.RemoteException - the remote exception
        MXApplicationException - the mX application exception
      • setDSRequiredStatus

        public void setDSRequiredStatus(boolean cleared)
                                 throws java.rmi.RemoteException,
                                        MXException
        Sets the read-only status of the datasheets's REQUIRED field according to whether its points' as found/left data are filled. This is meant to be called when an as found/left value is changed. The cleared argument indicates whether the field's content has been set to empty (true) or not empty (false).
        Specified by:
        setDSRequiredStatus in interface PlusCWODSRemote
        Parameters:
        cleared - whether the field's content has been set to empty (true) or not empty (false).
        Throws:
        java.rmi.RemoteException - the remote exception
        MXException - the mX exception
      • getRecordType

        protected java.lang.String getRecordType()
        Overrides:
        getRecordType in class Mbo
      • appValidate

        public void appValidate()
                         throws MXException,
                                java.rmi.RemoteException
        Description copied from class: Mbo
        Pre-save validation method. Programmer can override with specific rules.
        Overrides:
        appValidate in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException