com.jp.protection.priv.pro.integration
Interface LicensingFacadeDelivery

All Known Implementing Classes:
EmailLicensingFacadeDelivery, OnlineLicensingFacadeDelivery

public interface LicensingFacadeDelivery

This interface describes methods intended to deliver licenses to the users


Method Summary
 LicensingFacadeResult deliver(LicensingFacadeSession aSession, License aLicense, dev.entities.Customer aCustomer)
          Delivers specified license to the customer.
 void init(LocalLicensingFacade aLocalLicensingFacade)
          Initializes delivery object.
 

Method Detail

deliver

LicensingFacadeResult deliver(LicensingFacadeSession aSession,
                              License aLicense,
                              dev.entities.Customer aCustomer)
Delivers specified license to the customer. Method implementation should write license to an array of bytes and assign it to the method's result for online delivery type or send it to the user by some other method e.g. as an e-mail message attachment.

Parameters:
aSession - a session object
aLicense - a license to be delivered
aCustomer - Customer customer information
Returns:
LicensingFacadeResult LicensingFacadeResult instance

init

void init(LocalLicensingFacade aLocalLicensingFacade)
Initializes delivery object. Local licensing facade calls this methods during its instantiation

Parameters:
aLocalLicensingFacade - licensing facade for which delivery object will be working for