com.jp.protection.pub.pro.integration
Class LicensingFacadeUtils

java.lang.Object
  extended by com.jp.protection.pub.pro.integration.LicensingFacadeUtils

public class LicensingFacadeUtils
extends java.lang.Object

This class provides utility methods to simplify dealing with the Licensing Facade

Since:
v3.5

Constructor Summary
LicensingFacadeUtils()
           
 
Method Summary
static LicenseInfo convertLicense(License aLicense)
          Converts a license to the license information
static LicensingFacadeResult getLicense(LicensingFacade aLicensingFacade, LicenseImpl aLicense, dev.entities.Customer aCustomer, java.lang.String aLogin, java.lang.String aPassword, java.util.Map anArguments)
          Helper method to query for a license according to provided license attributes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LicensingFacadeUtils

public LicensingFacadeUtils()
Method Detail

convertLicense

public static LicenseInfo convertLicense(License aLicense)
Converts a license to the license information

Parameters:
aLicense - License a license to convert
Returns:
LicenseInfo converted license information

getLicense

public static LicensingFacadeResult getLicense(LicensingFacade aLicensingFacade,
                                               LicenseImpl aLicense,
                                               dev.entities.Customer aCustomer,
                                               java.lang.String aLogin,
                                               java.lang.String aPassword,
                                               java.util.Map anArguments)
Helper method to query for a license according to provided license attributes. Valid login and password values should be specified to ensure that the user is eligible to get or activate certain type of license. This method is intended for internal vendors' use e.g. delivering licenses using Protection! Sales or allowing stores/resellers to generate licenses according to all specified attributes. In most of cases it should be never used by custom applications as it provides too much potential control over licenses generation.

Parameters:
aLicensingFacade - LicensingFacade an instance used to get a license
aLicense - describes license to get
aCustomer - specifies customer information, which requests a license
aLogin - login name
aPassword - password
anArguments - additional arguments can be needed for proper license getting
Returns:
a LicensingFacadeResult instance.