com.eviware.soapui.impl.protection

Class SoapuiProtectionSupport

    • Field Detail

      • fProtectionLauncher

        protected com.jp.protection.pub.launch.ProtectionLauncher fProtectionLauncher
    • Constructor Detail

      • SoapuiProtectionSupport

        public SoapuiProtectionSupport()
        Creates and initializes a new instance of SoapuiProtectionSupport and uses null as owner component
      • SoapuiProtectionSupport

        public SoapuiProtectionSupport(Component anOwner)
        Creates and initializes a new instance of SoapuiProtectionSupport
        Parameters:
        anOwner - a component should be used as an owner for various dialogs can be shown during license reading and validation
    • Method Detail

      • getProtectionLauncher

        public static com.jp.protection.pub.launch.ProtectionLauncher getProtectionLauncher(com.jp.protection.pub.launch.ProtectionLauncherConfigReader aReader,
                                                                            Class aBaseCLass,
                                                                            String aLauncherConfigResourceName,
                                                                            Component anOwner)
                                                                                     throws IOException
        this method is mailed by Gregory Ledenev as a example how to deal with case sensitive usernames
        Parameters:
        aReader -
        aBaseCLass -
        aLauncherConfigResourceName -
        anOwner -
        Returns:
        Throws:
        IOException
      • init

        public void init(Class aBaseCLass,
                String aLauncherConfigResourceName)
                  throws IOException,
                         ExpireDateNotSetException
        Initializes the instance by loading configuration from the specified resource
        Parameters:
        aBaseCLass - base class for resource loading via call of aBaseCLass.getResourceAsStream(...)
        aLauncherConfigResourceName - resource name
        Throws:
        IOException - if errors occurred during configuration reading
        ExpireDateNotSetException
      • init

        public void init()
        Initializes the instance by loading configuration from the specified resource
      • showAboutDialog

        public void showAboutDialog()
        Shows About dialog which displays product and company information, license details, company logo and copyright note
      • getProductInfo2

        public com.jp.protection.pub.ProductInfo getProductInfo2()
      • checkLicense

        public boolean checkLicense(boolean aForceLicenseRead)
        Reads the license and check it against specified configuration
        Parameters:
        aForceLicenseRead - forces LicenseReader to re-read license
        Returns:
        true if license is properly read and validated; false otherwise
      • checkLicense

        public boolean checkLicense()
        Reads the license and check it against specified configuration
        Returns:
        true if license is properly read and validated; false otherwise
      • upgradeLicense

        public boolean upgradeLicense(Component anOwner)
        Provides ability to upgrade existing license by showing Licensing Assistant to the user allowing him/her to use various ways to get upgrade.
        Parameters:
        anOwner - a component from which Licensing Assistant should be displayed
        Returns:
        true if new license is acquired, properly read and validated; false otherwise
      • deactivateLicense

        public int deactivateLicense(Component anOwner)
        Provides ability to deactivate license by use of Deactivation Assistant
        Parameters:
        anOwner - a component from which Deactivation Assistant should be displayed
        Returns:
        operation result code as one of LicenseDeactivationWizard.DEACTIVATE_ constants.
      • saveWorkspaceBeforeExit

        protected void saveWorkspaceBeforeExit(String reason)
      • revokedLicenseSaveWorkspaceBeforeExit

        protected void revokedLicenseSaveWorkspaceBeforeExit(String reason)
      • changeToCourtesyMode

        protected void changeToCourtesyMode()

Copyright © 2013. All Rights Reserved.