psdi.app.dpldasset.virtual

Class PromoteValues

  • All Implemented Interfaces:
    java.rmi.Remote, PromoteSetAttributeFlags, PromoteValuesRemote, MboConstants, MboRemote, NonPersistentMboRemote, MaxRemoteProxy


    public class PromoteValues
    extends NonPersistentMbo
    implements PromoteValuesRemote, PromoteSetAttributeFlags
    PromoteValues (TLOAMPRMVALUE object) is a non-persistent Mbo that gets its initial values from TLOAMPromoteDefault. The values are used as-is for the PROMOTE escalation action. In the UI, this Mbo is the basis for the defaults in the Promote to Asset dialog. The values are passed into PromoteNode to form the defaults for created assets.
    Attribute NameDescription
    CLASSSTRUCTUREIDClassification for created assets
    ITEMNUMItem number for created rotating assets.
    LOCATIONLocation to which created assets will be assigned. If location given is an inventory location, any item given cannot have inactive status in inventory for that location.
    ORGIDSite for created assets
    PROMOTECHILDRENIf checked, promote all child partitions along with these nodes, regardless of whether they were selected in the Computers list.
    SITEIDSite for created assets. If site is entered in the Promote to Assets dialog for an individual record, that will be used if possible. Next the site on the Computer record will be used if it has been set. Finally, the default site will be tried.
    STATUSInitial status for created assets
    Since:
    7.2
    • Constructor Detail

      • PromoteValues

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

      • setDefaultValues

        public void setDefaultValues(java.lang.String defaultName,
                                     long validation)
                              throws MXException,
                                     java.rmi.RemoteException
        Looks up saved default values entry and sets each field value from it. This method overwrites all attributes with those of the default value record.
        Specified by:
        setDefaultValues in interface PromoteValuesRemote
        Parameters:
        defaultName - for PromoteDefault
        Throws:
        MXException - if record cannot be found from defaultName
        java.rmi.RemoteException
      • setCustomFields

        protected void setCustomFields(MboSetRemote defaultSet,
                                       long validation)
                                throws MXException,
                                       java.rmi.RemoteException
        Place holder set customized fields.
        Throws:
        MXException
        java.rmi.RemoteException
      • applyDefaults

        public int applyDefaults(long accessModifier)
                          throws MXException,
                                 java.rmi.RemoteException
        Applies the defaults to the rows in the table, to be used from beans and business objects
        Specified by:
        applyDefaults in interface PromoteValuesRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • applyDefaults

        public void applyDefaults()
                           throws MXException,
                                  java.rmi.RemoteException
        For the promotion values section of the promotion dialog, set the defaults on the individual node records.
        Specified by:
        applyDefaults in interface PromoteValuesRemote
        Parameters:
        siteid - Name of site from Promotion Values
        Throws:
        MXException
        java.rmi.RemoteException
      • applyDefaultsInternal

        protected int applyDefaultsInternal(boolean fromApplyDefaultsButton)
                                     throws MXException,
                                            java.rmi.RemoteException
        For the promotion values section of the promotion dialog, set the defaults on the individual node records.
        Parameters:
        fromApplyDefaultsButton - When true, clear the customer before setting the defaults. This will ensure that the default is applied no matter what the customer value of the deployed asset record is. The value is passed further to promoteNode.setDefaults
        Throws:
        MXException
        java.rmi.RemoteException
      • setAdditionFields

        protected void setAdditionFields(PromoteNodeRemote promoteNode,
                                         boolean fromApplyDefaultsButton)
                                  throws MXException,
                                         java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • clearDefaults

        public void clearDefaults()
                           throws MXException,
                                  java.rmi.RemoteException
        Clears all values on the object - called from Clear Defaults button in dialog.
        Specified by:
        clearDefaults in interface PromoteValuesRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • clearClassification

        public void clearClassification()
                                 throws MXException
        Set classstructureid to null from Clear Classification in Classification menu.
        Throws:
        MXException