com.jp.protection.pub.pro.integration
Class LicensingFacadeUtils
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LicensingFacadeUtils
public LicensingFacadeUtils()
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 licenseaLicense
- describes license to getaCustomer
- specifies customer information, which requests a licenseaLogin
- login nameaPassword
- passwordanArguments
- additional arguments can be needed for proper license getting
- Returns:
- a
LicensingFacadeResult
instance.