psdi.app.dpldasset.virtual

Interface PromoteNodeRemote

  • All Superinterfaces:
    MboRemote, java.rmi.Remote
    All Known Implementing Classes:
    PromoteNode


    public interface PromoteNodeRemote
    extends MboRemote
    PromoteEscDefault Remote
    See Also:
    psdi.PromoteDefault.app.dpldasset.PromoteDefault
    • Method Detail

      • promote

        int promote(PromoteValuesRemote defaults,
                    boolean topLevelSelection,
                    boolean promotedByParent)
             throws MXException,
                    java.rmi.RemoteException
        Promote this deployed asset. For childred that are promoted because of the Promote Children flag, do leave item number blank
        Parameters:
        defaults - the default values to apply
        topLevelSelection - defect 31698 - make the promoted node aware if it is promoted directly, or as a result of the Promote Children flag
        promotedByParent - - if this is a child which is promoted because the parent is promoted.
        Returns:
        int
        Throws:
        MXException
        RemoteException;
        java.rmi.RemoteException
      • getLinkedAsset

        AssetRemote getLinkedAsset()
                            throws java.rmi.RemoteException,
                                   MXException
        Return the linked authorized asset or null if there's no such authorized asset As a side effect, it will set fields from the deployed asset through setLinkedAsset()
        Throws:
        java.rmi.RemoteException
        MXException
      • getLinkedParentAsset

        AssetRemote getLinkedParentAsset(boolean promoting)
                                  throws java.rmi.RemoteException,
                                         MXException
        Return the authorized asset linked to the deployed asset parent of this deployed asset or null if there's no such authorized asset or no parent As a side effect, it will set fields from the deployed asset through setLinkedParentAsset()
        Parameters:
        promoting - true if there must be a parent of a child
        Throws:
        java.rmi.RemoteException
        MXException
      • getDeployedAsset

        DeployedAssetRemote getDeployedAsset()
                                      throws java.rmi.RemoteException,
                                             MXException
        Return the linked deployed asset. Will never return null. As a side effect, it will set fields from the deployed asset through setDeployedAsset()
        Throws:
        java.rmi.RemoteException
        MXException
      • addCreatedMemo

        void addCreatedMemo()
                     throws java.rmi.RemoteException,
                            MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • setDefaults

        int setDefaults(PromoteValuesRemote defaults,
                        boolean fromApplyDefaultsButton)
                 throws java.rmi.RemoteException,
                        MXException
        Set the defaults from the passed object. Does the following:
      • always sets Promote Children
      • anyhing else, only if there's no linked authorized asset:
      • site and location, only if the deployed asset has no parent (otherwise, they always come from parent)
      • item, if default is not empty, or
      • classification, if default item is empty
      • status Calls validate() and action() on all fields it sets
Throws:
java.rmi.RemoteException
MXException