psdi.dm.virtual

Class DMDeployablePkg

    • Constructor Detail

      • DMDeployablePkg

        public DMDeployablePkg(MboSet ms)
                        throws java.rmi.RemoteException
        Constructor
        Parameters:
        ms - The CommTmpltChangeStatus MboSet.
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • getManifest

        public byte[] getManifest()
                           throws MXException,
                                  java.rmi.RemoteException
        Returns the content of manifest from the package file or the staging table.
        Throws:
        MXException
        java.rmi.RemoteException
      • updateDistStatusForFile

        public void updateDistStatusForFile(java.lang.String pkgDefName,
                                            java.lang.String source,
                                            java.lang.String pkgName)
                                     throws MXException,
                                            java.rmi.RemoteException
        Update distribution status for file type
        Parameters:
        pkgDefName -
        source -
        pkgName -
        Throws:
        MXException
        java.rmi.RemoteException
      • checkCompiledSource

        public void checkCompiledSource()
                                 throws MXException,
                                        java.rmi.RemoteException
        Check whether package has compiled source files. If it does, prompt user to download, unzip, deploy, and restart server.
        Specified by:
        checkCompiledSource in interface DMDeployablePkgRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • createPkgDeployStatus

        public void createPkgDeployStatus(MboRemote stageMbo,
                                          boolean isSuccessful,
                                          java.lang.Throwable t)
                                   throws MXException,
                                          java.rmi.RemoteException
        After all pkgmetadata deployed, update the package status to deploy statuses
        Parameters:
        stageMbo -
        isSuccessful - - true if pkgmetadata deploy successful else false
        Throws:
        MXException
        java.rmi.RemoteException
      • versionCheck

        public int versionCheck(java.util.List srcNeedToBeChecked)
                         throws MXException,
                                java.rmi.RemoteException
        Check the version of source and target products and sets the mbo set to display in dialog
        Specified by:
        versionCheck in interface DMDeployablePkgRemote
        Parameters:
        List - of source products need to be checked
        Throws:
        MXException
        java.rmi.RemoteException
      • getVersionCheckResult

        public int getVersionCheckResult()
                                  throws MXException
        Get the result of version check
        Returns:
        result
        Throws:
        MXException
      • getSourceProductInfo

        public java.util.Map getSourceProductInfo()
                                           throws MXException
        Get source products information
        Returns:
        HashMap
        Throws:
        MXException
      • getTargetProductInfo

        public java.util.Map getTargetProductInfo()
                                           throws MXException
        Get target products information
        Returns:
        HashMap
        Throws:
        MXException
      • previewCheck

        public boolean previewCheck()
                             throws MXException,
                                    java.rmi.RemoteException
        For preview delete the package before preview again.
        Specified by:
        previewCheck in interface DMDeployablePkgRemote
        Returns:
        true if we can continue else false
        Throws:
        MXException
        java.rmi.RemoteException
      • getCreateDate

        public static java.util.Date getCreateDate(byte[] manifest)
                                            throws MXException,
                                                   java.rmi.RemoteException
        Returns the create date of the package given the stream of manifest.
        Parameters:
        manifest - Manifest of the package in bytes.
        Returns:
        The date of creation for the package.
        Throws:
        MXException
        java.rmi.RemoteException
      • getCreateDate

        public static java.util.Date getCreateDate(java.lang.String fileName)
                                            throws MXException,
                                                   java.rmi.RemoteException
        Returns the create date of the package. This method is for package in the form of a zip file.
        Parameters:
        fileName - The package file name.
        Returns:
        The date of creation for the package.
        Throws:
        MXException
        java.rmi.RemoteException
      • delete

        public void delete(long accessModifier)
                    throws MXException,
                           java.rmi.RemoteException
        Delete an incoming package's staging records or file.
        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)
      • isFileExist

        public boolean isFileExist(java.lang.String deployPkgName)
                            throws MXException,
                                   java.rmi.RemoteException
        Check if pkg file also exist or not. true - if exists else false
        Specified by:
        isFileExist in interface DMDeployablePkgRemote
        Throws:
        MXException
        java.rmi.RemoteException