com.jp.protection.pub.pro.lserver
Class LicensingServiceProviderAdapter

java.lang.Object
  extended by com.jp.protection.pub.pro.lserver.LicensingServiceProviderAdapter
All Implemented Interfaces:
LicensingServiceProviderListener, java.util.EventListener

public class LicensingServiceProviderAdapter
extends java.lang.Object
implements LicensingServiceProviderListener

Default implementation of the LicensingServiceProviderListener interface. Implementations of all methods are empty.

Since:
3.0

Constructor Summary
LicensingServiceProviderAdapter()
           
 
Method Summary
 void licenseCanLocked(LicensingServiceProvider aSource, LicensingService aService, LicenseData.Request aRequest, LicensingServiceResult aResult)
          Provider call this method to notify listener that the Licensing Server was queried about ability to lock specific license
 void licenseCheckedOut(LicensingServiceProvider aSource, LicensingService aService, java.lang.String aTicket, LicensingServiceResult.CheckoutResult aResult)
          Provider call this method to notify listener that the license checked out from the Licensing Server
 void licenseGot(LicensingServiceProvider aSource, LicensingService aService, LicenseData.Request aRequest, LicensingServiceResult.LicenseResult aResult)
          Provider call this method to notify listener that a license was obtained from the Licensing Server
 void licenseLockConfirmed(LicensingServiceProvider aSource, LicensingService aService, java.lang.String aTicket, LicensingServiceResult aResult)
          Provider call this method to notify listener that the license lock was confirmed using the Licensing Server
 void licenseLocked(LicensingServiceProvider aSource, LicensingService aService, LicenseData.Request aRequest, LicensingServiceResult aResult)
          Provider call this method to notify listener that a license was locked using the Licensing Server
 void licenseUnlocked(LicensingServiceProvider aSource, LicensingService aService, java.lang.String aTicket, LicensingServiceResult aResult)
          Provider call this method to notify listener that the license lock was released using the Licensing Server
 void licensingServiceObtained(LicensingServiceProvider aSource, LicensingService aService)
          Provider call this method to notify listener that a new instance of the Licensing Service is obtained
 void licensingServiceReleased(LicensingServiceProvider aSource, LicensingService aService)
          Provider call this method to notify listener that an instance of the Licensing Service was released
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LicensingServiceProviderAdapter

public LicensingServiceProviderAdapter()
Method Detail

licensingServiceObtained

public void licensingServiceObtained(LicensingServiceProvider aSource,
                                     LicensingService aService)
Description copied from interface: LicensingServiceProviderListener
Provider call this method to notify listener that a new instance of the Licensing Service is obtained

Specified by:
licensingServiceObtained in interface LicensingServiceProviderListener
Parameters:
aSource - the Licensing Service provider
aService - a newly created Licensing Service

licensingServiceReleased

public void licensingServiceReleased(LicensingServiceProvider aSource,
                                     LicensingService aService)
Description copied from interface: LicensingServiceProviderListener
Provider call this method to notify listener that an instance of the Licensing Service was released

Specified by:
licensingServiceReleased in interface LicensingServiceProviderListener
Parameters:
aSource - the Licensing Service provider
aService - a Licensing Service was released

licenseGot

public void licenseGot(LicensingServiceProvider aSource,
                       LicensingService aService,
                       LicenseData.Request aRequest,
                       LicensingServiceResult.LicenseResult aResult)
Description copied from interface: LicensingServiceProviderListener
Provider call this method to notify listener that a license was obtained from the Licensing Server

Specified by:
licenseGot in interface LicensingServiceProviderListener
Parameters:
aSource - the Licensing Service provider
aService - the Licensing Service used to obtain license
aRequest - request which identifies license to get
aResult - result of the operation

licenseLocked

public void licenseLocked(LicensingServiceProvider aSource,
                          LicensingService aService,
                          LicenseData.Request aRequest,
                          LicensingServiceResult aResult)
Description copied from interface: LicensingServiceProviderListener
Provider call this method to notify listener that a license was locked using the Licensing Server

Specified by:
licenseLocked in interface LicensingServiceProviderListener
Parameters:
aSource - the Licensing Service provider
aService - the Licensing Service used to lock license
aRequest - request which identifies license to lock
aResult - result of the operation

licenseCanLocked

public void licenseCanLocked(LicensingServiceProvider aSource,
                             LicensingService aService,
                             LicenseData.Request aRequest,
                             LicensingServiceResult aResult)
Description copied from interface: LicensingServiceProviderListener
Provider call this method to notify listener that the Licensing Server was queried about ability to lock specific license

Specified by:
licenseCanLocked in interface LicensingServiceProviderListener
Parameters:
aSource - the Licensing Service provider
aService - the Licensing Service used to lock license
aRequest - request which identifies license to lock
aResult - result of the operation

licenseLockConfirmed

public void licenseLockConfirmed(LicensingServiceProvider aSource,
                                 LicensingService aService,
                                 java.lang.String aTicket,
                                 LicensingServiceResult aResult)
Description copied from interface: LicensingServiceProviderListener
Provider call this method to notify listener that the license lock was confirmed using the Licensing Server

Specified by:
licenseLockConfirmed in interface LicensingServiceProviderListener
Parameters:
aSource - the Licensing Service provider
aService - the Licensing Service used to lock license
aTicket - identifies license session
aResult - result of the operation

licenseUnlocked

public void licenseUnlocked(LicensingServiceProvider aSource,
                            LicensingService aService,
                            java.lang.String aTicket,
                            LicensingServiceResult aResult)
Description copied from interface: LicensingServiceProviderListener
Provider call this method to notify listener that the license lock was released using the Licensing Server

Specified by:
licenseUnlocked in interface LicensingServiceProviderListener
Parameters:
aSource - the Licensing Service provider
aService - the Licensing Service used to release license lock
aTicket - identifies license session
aResult - result of the operation

licenseCheckedOut

public void licenseCheckedOut(LicensingServiceProvider aSource,
                              LicensingService aService,
                              java.lang.String aTicket,
                              LicensingServiceResult.CheckoutResult aResult)
Description copied from interface: LicensingServiceProviderListener
Provider call this method to notify listener that the license checked out from the Licensing Server

Specified by:
licenseCheckedOut in interface LicensingServiceProviderListener
Parameters:
aSource - the Licensing Service provider
aService - the Licensing Service used to checkout
aTicket - identifies license session
aResult - result of the operation