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

java.lang.Object
  extended by com.jp.protection.pub.pro.lserver.LicensingServiceProviderListenerSupport

public class LicensingServiceProviderListenerSupport
extends java.lang.Object

Helper class for simplifying the process of LicensingServiceProvider events support

Since:
3.0

Field Summary
(package private)  java.util.Vector fLicensingServiceProviderListeners
           
 
Constructor Summary
LicensingServiceProviderListenerSupport()
           
 
Method Summary
 void addLicensingServiceProviderListener(LicensingServiceProviderListener l)
          Adds a listener to the listeners list
 void fireLicenseCanLocked(LicensingServiceProvider aSource, LicensingService aService, LicenseData.Request aRequest, LicensingServiceResult aResult)
          Fires event to notify the listeners that the Licensing Server was queried about ability to lock specific license
 void fireLicenseCheckedOut(LicensingServiceProvider aSource, LicensingService aService, java.lang.String aTicket, LicensingServiceResult.CheckoutResult aResult)
          Fires event to notify the listeners that the license was checked out from the Licensing Server
 void fireLicenseGot(LicensingServiceProvider aSource, LicensingService aService, LicenseData.Request aRequest, LicensingServiceResult.LicenseResult aResult)
          Fires event to notify the listeners that a license was obtained from the Licensing Server
 void fireLicenseLockConfirmed(LicensingServiceProvider aSource, LicensingService aService, java.lang.String aTicket, LicensingServiceResult aResult)
          Fires event to notify the listeners that the license lock was confirmed using the Licensing Server
 void fireLicenseLocked(LicensingServiceProvider aSource, LicensingService aService, LicenseData.Request aRequest, LicensingServiceResult aResult)
          Fires event to notify the listeners that a license was locked using the Licensing Server
 void fireLicenseUnlocked(LicensingServiceProvider aSource, LicensingService aService, java.lang.String aTicket, LicensingServiceResult aResult)
          Fires event to notify the listeners that the license lock was released using the Licensing Server
 void fireLicensingServiceObtained(LicensingServiceProvider aSource, LicensingService aService)
          Fires event to notify the listeners that a new instance of the Licensing Service is obtained
 void fireLicensingServiceReleased(LicensingServiceProvider aSource, LicensingService aService)
          Fires event to notify to notify the listeners that an instance of the Licensing Service was released
 void removeLicensingServiceProviderListener(LicensingServiceProviderListener l)
          Removes the listener from the listeners list
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fLicensingServiceProviderListeners

transient java.util.Vector fLicensingServiceProviderListeners
Constructor Detail

LicensingServiceProviderListenerSupport

public LicensingServiceProviderListenerSupport()
Method Detail

addLicensingServiceProviderListener

public void addLicensingServiceProviderListener(LicensingServiceProviderListener l)
Adds a listener to the listeners list

Parameters:
l - listener to add

removeLicensingServiceProviderListener

public void removeLicensingServiceProviderListener(LicensingServiceProviderListener l)
Removes the listener from the listeners list

Parameters:
l - listener to remove

fireLicensingServiceObtained

public void fireLicensingServiceObtained(LicensingServiceProvider aSource,
                                         LicensingService aService)
Fires event to notify the listeners that a new instance of the Licensing Service is obtained

Parameters:
aSource - the Licensing Service provider
aService - a newly created Licensing Service

fireLicensingServiceReleased

public void fireLicensingServiceReleased(LicensingServiceProvider aSource,
                                         LicensingService aService)
Fires event to notify to notify the listeners that an instance of the Licensing Service was released

Parameters:
aSource - the Licensing Service provider
aService - a Licensing Service was released

fireLicenseGot

public void fireLicenseGot(LicensingServiceProvider aSource,
                           LicensingService aService,
                           LicenseData.Request aRequest,
                           LicensingServiceResult.LicenseResult aResult)
Fires event to notify the listeners that a license was obtained from the Licensing Server

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

fireLicenseLocked

public void fireLicenseLocked(LicensingServiceProvider aSource,
                              LicensingService aService,
                              LicenseData.Request aRequest,
                              LicensingServiceResult aResult)
Fires event to notify the listeners that a license was locked using the Licensing Server

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

fireLicenseCanLocked

public void fireLicenseCanLocked(LicensingServiceProvider aSource,
                                 LicensingService aService,
                                 LicenseData.Request aRequest,
                                 LicensingServiceResult aResult)
Fires event to notify the listeners that the Licensing Server was queried about ability to lock specific license

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

fireLicenseLockConfirmed

public void fireLicenseLockConfirmed(LicensingServiceProvider aSource,
                                     LicensingService aService,
                                     java.lang.String aTicket,
                                     LicensingServiceResult aResult)
Fires event to notify the listeners that the license lock was confirmed using the Licensing Server

Parameters:
aSource - the Licensing Service provider
aService - the Licensing Service used to lock license
aTicket - identifies license session
aResult - result of the operation

fireLicenseUnlocked

public void fireLicenseUnlocked(LicensingServiceProvider aSource,
                                LicensingService aService,
                                java.lang.String aTicket,
                                LicensingServiceResult aResult)
Fires event to notify the listeners that the license lock was released using the Licensing Server

Parameters:
aSource - the Licensing Service provider
aService - the Licensing Service used to release license lock
aTicket - identifies license session
aResult - result of the operation

fireLicenseCheckedOut

public void fireLicenseCheckedOut(LicensingServiceProvider aSource,
                                  LicensingService aService,
                                  java.lang.String aTicket,
                                  LicensingServiceResult.CheckoutResult aResult)
Fires event to notify the listeners that the license was checked out from the Licensing Server

Parameters:
aSource - the Licensing Service provider
aService - the Licensing Service used to checkout
aTicket - identifies license session
aResult - result of the operation
Since:
v5.0