|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface LicensingFacadeExtension
This interface provides methods required to extend the LocalLicensingFacade functionality.
Local licensing facade calls extension's method in the following sequence during the license acquisition:
| Method Summary | |
|---|---|
boolean |
checkActivateLicenseEnabled(LicensingFacadeSession aSession,
LicenseBase aLicenseInfo)
Checks whether it is possible to activate license. |
boolean |
checkDeactivateLicenseEnabled(LicensingFacadeSession aSession,
LicenseBase aLicenseInfo)
Checks whether it is possible to deactivate license. |
boolean |
checkGetLicenseEnabled(LicensingFacadeSession aSession,
LicenseBase aLicenseInfo)
Checks whether it is possible to get licenses according to the specified license information |
LicensingFacadeResult |
deliver(LicensingFacadeSession aSession,
int aDeliveryType,
License aLicense,
dev.entities.Customer aCustomer)
Delivers license to the customer. |
LicensingFacadeSession |
login(LicenseBase aLicenseInfo,
java.lang.String aLogin,
java.lang.String aPassword,
java.util.Map anArguments,
int anOperation)
Authenticates and authorizes attempt to get or activate license. |
LicensingFacadeResultBase |
onActivateLicense(LicensingFacadeSession aSession,
LicenseImpl aLicense,
dev.entities.Customer aCustomer,
java.lang.String anActivationKey)
This method allows inclusion into the process of license activation. |
LicensingFacadeResultBase |
onDeactivateLicense(LicensingFacadeSession aSession,
LicenseImpl aLicense,
java.lang.String aDeactivationKey,
boolean isSuccess)
This method allows inclusion into the process of license deactivation. |
LicensingFacadeResultBase |
onGetLicense(LicensingFacadeSession aSession,
LicenseImpl aLicense,
dev.entities.Customer aCustomer)
This method allows inclusion into the process of the license generation. |
| Methods inherited from interface com.jp.protection.priv.pro.integration.LicensingFacadePlugin |
|---|
init |
| Method Detail |
|---|
LicensingFacadeSession login(LicenseBase aLicenseInfo,
java.lang.String aLogin,
java.lang.String aPassword,
java.util.Map anArguments,
int anOperation)
aLicenseInfo - license informationaLogin - login nameaPassword - passwordanArguments - additional arguments can be needed for proper license
getting or activationanOperation - operation as one of
LicensingFacadeSession.OPERATION_ constants
null if caller has no rights to get or activate certain type
of license.
boolean checkGetLicenseEnabled(LicensingFacadeSession aSession,
LicenseBase aLicenseInfo)
aSession - a session object obtained as result of login() method call.aLicenseInfo - license information
true if it is possible to get license according to specified license information.
false otherwise.
boolean checkActivateLicenseEnabled(LicensingFacadeSession aSession,
LicenseBase aLicenseInfo)
aLicenseInfo - license informationaSession - a session object obtained as result of login() method call.
true if it is possible to activate license
false otherwise.
boolean checkDeactivateLicenseEnabled(LicensingFacadeSession aSession,
LicenseBase aLicenseInfo)
aSession - a session object obtained as the result of the login() method call.aLicenseInfo - license information
true if it is possible to deactivate license
false otherwise.
LicensingFacadeResultBase onGetLicense(LicensingFacadeSession aSession,
LicenseImpl aLicense,
dev.entities.Customer aCustomer)
LicensingFacadeResultBase.RESULT_ERROR for the method result
aSession - a session object obtained as result of login() method call.aLicense - a license to be generatedaCustomer - customer information
LicensingFacadeResultBase instance
LicensingFacadeResultBase onActivateLicense(LicensingFacadeSession aSession,
LicenseImpl aLicense,
dev.entities.Customer aCustomer,
java.lang.String anActivationKey)
LicensingFacadeResultBase.RESULT_ERROR for the method result
aSession - a session object obtained as result of login() method call.aLicense - a license to be activatedaCustomer - customer informationanActivationKey - activation key
LicensingFacadeResultBase instance
LicensingFacadeResultBase onDeactivateLicense(LicensingFacadeSession aSession,
LicenseImpl aLicense,
java.lang.String aDeactivationKey,
boolean isSuccess)
aSession - a session object obtained as result of login() method call.aLicense - a license to be deactivatedaDeactivationKey - deactivation keyisSuccess - specifies whether license has been actually deactivated on the client side
LicensingFacadeResultBase instance
LicensingFacadeResult deliver(LicensingFacadeSession aSession,
int aDeliveryType,
License aLicense,
dev.entities.Customer aCustomer)
aSession - a session object obtained as result of login() method call.aDeliveryType - type of license delivery. Can be one of LicensingFacadeResult.DELIVERY_TYPE
constants or any custom value known for particular implementationaLicense - a license to be deliveredaCustomer - Customer customer information
LicensingFacadeResult instance
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||