psdi.app.system.virtual

Class MaxVarInput

  • All Implemented Interfaces:
    java.rmi.Remote, MaxVarInputRemote, MboConstants, MboRemote, NonPersistentMboRemote, MaxRemoteProxy
    Direct Known Subclasses:
    MaxVarInputForInvDefs


    public class MaxVarInput
    extends NonPersistentMbo
    implements MaxVarInputRemote
    This non-persistent Mbo is used to validate and set maxvar values.

    This is a system level object.

    The attributes in this object are as follows.

    Attribute NameDescription
    OrgIDOrganization identifier. Foreign key to {psdi.app.site.Organization Organization}. This will be non-null only if this is an organizaiton-level or site-level maxvar.
    SiteIDSite identifier. Foreign key to {psdi.app.site.Site Site}. This will be non-null only if this is a site-level maxvar.
    VarNameThis virtual table contains numerous attributes having an attribute name equal to the maxvar name from the MaxVars table. A separate attribute is used for maintaining a specific maxvar. Each maxvar that requires field validation will have its own field validation class.
    • Constructor Detail

      • MaxVarInput

        public MaxVarInput(MboSet ms)
                    throws MXException,
                           java.rmi.RemoteException
        Constructor
        Parameters:
        ms - The MaxVarInput MboSet.
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Sets up a new MaxVarInput object.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • getMboValueData

        public MboValueData[] getMboValueData(java.lang.String[] attributes)
                                       throws MXException,
                                              java.rmi.RemoteException
        Description copied from class: Mbo
        Returns an array of MboValue objects for the specified attributes. If an attribute does not exist, or there is no current relationship to another mbo reference (e.g. asset.description), the entry in the array will be null for the position in the array for that particular attribute. That is, "Attribute {0} does not exist" exception will NOT be thrown if the attribute does not exist in the object.
        Specified by:
        getMboValueData in interface MboRemote
        Overrides:
        getMboValueData in class Mbo
        Returns:
        An array of MboValueData objects where each MboValueData corresponds to the each attribute in the passed array of attributes.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        Mbo.getMboValueData(String[])
      • getMboData

        public MboData getMboData(java.lang.String[] attributes)
        Description copied from class: Mbo
        Return a MboData object for the specified list of attributes.
        Specified by:
        getMboData in interface MboRemote
        Overrides:
        getMboData in class Mbo
      • refetchVarValues

        public void refetchVarValues()
                              throws MXException,
                                     java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • 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
      • callInit

        public void callInit()
                      throws MXException,
                             java.rmi.RemoteException
        The method to default the required field. This has to be taken out from the init of MaxVarInput because we don't want a mbo value to be instantiated before siteid and org id is being able to set.
        Specified by:
        callInit in interface MaxVarInputRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • clearClassificationITAsset

        public void clearClassificationITAsset()
                                        throws java.rmi.RemoteException,
                                               MXException
        This method is only called by UI, (CLASSIFICATIONITASSET menu)
        Throws:
        java.rmi.RemoteException
        MXException
      • clearClassificationITSFW

        public void clearClassificationITSFW()
                                      throws java.rmi.RemoteException,
                                             MXException
        This method is only called by UI, (CLASSIFICATIONITSFW menu)
        Throws:
        java.rmi.RemoteException
        MXException
      • clearClassificationActCIClass

        public void clearClassificationActCIClass()
                                           throws java.rmi.RemoteException,
                                                  MXException
        This method is only called by UI, (CLASSIFICATIONCICLASS menu)
        Throws:
        java.rmi.RemoteException
        MXException
      • clearClassificationAuthCIClass

        public void clearClassificationAuthCIClass()
                                            throws java.rmi.RemoteException,
                                                   MXException
        This method is only called by UI, (CLASSIFICATIONAUTHCICLASS menu)
        Throws:
        java.rmi.RemoteException
        MXException
      • initFieldFlagsOnMbo

        public void initFieldFlagsOnMbo(java.lang.String attrName)
                                 throws MXException
        IV94283 - only set field flag value if field exists in window
        Overrides:
        initFieldFlagsOnMbo in class Mbo
        Throws:
        MXException