psdi.plusc.app.plusctmplt

Class PlusCATSpec

  • java.lang.Object
    • Field Detail

      • numValueBeforeFormat

        public java.lang.String numValueBeforeFormat
        IJ28853: remember the numvalue as string before MAXTYPE porting logic from SpecificationMbo
    • Constructor Detail

      • PlusCATSpec

        public PlusCATSpec(MboSet ms)
                    throws java.rmi.RemoteException
        Instantiates a new plus cat spec.
        Parameters:
        ms - the ms
        Throws:
        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
      • getDataType

        public java.lang.String getDataType()
                                     throws MXException,
                                            java.rmi.RemoteException
        Gets the internal datatype of either "ALN" or "NUMERIC". An assetAttrId determines if this Specification is of ALN or NUMERIC datatype. One can only set the ALNVALUE if it is an ALN type, likewise, one can set only NUMVALUE if the type if NUMERIC.

        Specified by:
        getDataType in interface PlusCATSpecRemote
        Returns:
        String - the internal datatype ASSETATTRID
        Throws:
        MXException - the mX exception
        java.rmi.RemoteException - the remote exception
      • 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
      • 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
      • getDomainId

        public java.lang.String getDomainId()
                                     throws MXException,
                                            java.rmi.RemoteException
        12-14130/IV26078: porting SpecificationMbo code: in Asset Template, Select Value off ALNVALUE displays the complete ALNDOMAIN without filtering the domainid Gets the domainId for this Specification. The domainid lives in the correspondin ClassSpec record.

        Returns:
        String - the domainId
        Throws:
        MXException
        java.rmi.RemoteException
      • getClassSpecRecord

        public MboRemote getClassSpecRecord()
                                     throws MXException,
                                            java.rmi.RemoteException
        12-14130/IV26078: porting SpecificationMbo code: in Asset Template, Select Value off an attribute displays all ALNDOMAIN get ClassSpec Record for this SpecificationMbo
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • getAssetAttributeMbo

        public MboRemote getAssetAttributeMbo()
                                       throws MXException,
                                              java.rmi.RemoteException
        12-14130/IV26078: porting SpecificationMbo code: in Asset Template, Select Value off an attribute displays all ALNDOMAIN 09-22396:
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • generateDesc

        public java.lang.String generateDesc()
                                      throws MXException,
                                             java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • setValue

        public void setValue(java.lang.String attributeName,
                             java.lang.String val,
                             long accessModifier)
                      throws MXException,
                             java.rmi.RemoteException
        IJ29322 /TS004500475: when an alnvalue,numvalue, or tablevalue is modified, trigger description for the updateDesc logic
        Specified by:
        setValue in interface MboRemote
        Overrides:
        setValue in class Mbo
        Parameters:
        attributeName - The attribute name within the current object.
        val - The string value to set to the attribute.
        accessModifier - The bitwise flags such as NOACCESSCHECK, NOVALIDATION_AND_NOACTION, and DELAYVALIDATION.
        Throws:
        MXException - "Attribute {0} does not exist" exception will be thrown if the attribute does not exist in the object. "Field is read only" exception will be thrown if the attribute is READONLY and the accessModifier does not specify NOACCESSCHECK. "Invalid Data Type" exception will be thrown for datatype mismatch. For example, setting a string value of characters to an attribute which has datatype of YORN.
        java.rmi.RemoteException
        See Also:
        Mbo.setValue(String,String,long)
      • getClassSpecUseWith

        public MboRemote getClassSpecUseWith(MboRemote classSpec,
                                             java.lang.String objectName)
                                      throws MXException,
                                             java.rmi.RemoteException
        IJ29322/TS004500475:getClassSpecUseWith to determine if the attribute defined as use in description
        Parameters:
        classSpec -
        objectName -
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • canGenerateDesc

        public MboRemote canGenerateDesc()
                                  throws MXException,
                                         java.rmi.RemoteException
        IJ29322/ TS004500475: return useindesc for the ASSET object for assettemplate.
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • getNumValueBeforeFormat

        public java.lang.String getNumValueBeforeFormat()
                                                 throws MXException,
                                                        java.rmi.RemoteException
        IJ28853
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException