com.componio.jlicensure.server
Interface LicenseStorage


public interface LicenseStorage

The license storage interface.


Method Summary
 void addLicenseeData(LicenseeData licensee)
          Add the given licensee information to the storage.
 License readLicense(LicenseRequest request)
          Retrieve the license for the given license request data from the storage.
 void removeLicenseeData(LicenseeData licensee)
          Remove the given licensee information from the storage.
 void setLicensureServer(JLicensureServer server)
          Set the licensure server instance.
 void setProperties(java.util.Properties properties)
          Set additional properties that may be used by an implementation.
 void writeLicense(License license)
          Store the given license
 

Method Detail

readLicense

License readLicense(LicenseRequest request)
                    throws java.io.IOException
Retrieve the license for the given license request data from the storage.

Parameters:
request - the license request data
Returns:
the stored license or null if no license exists in the storage for the given request data
Throws:
java.io.IOException

writeLicense

void writeLicense(License license)
                  throws java.io.IOException
Store the given license

Parameters:
license - the license to store
Throws:
java.io.IOException

addLicenseeData

void addLicenseeData(LicenseeData licensee)
                     throws java.io.IOException
Add the given licensee information to the storage.

Parameters:
licensee - licensee data
Throws:
java.io.IOException

removeLicenseeData

void removeLicenseeData(LicenseeData licensee)
                        throws java.io.IOException
Remove the given licensee information from the storage.

Parameters:
licensee - licensee data
Throws:
java.io.IOException

setProperties

void setProperties(java.util.Properties properties)
Set additional properties that may be used by an implementation.

Parameters:
properties - New value of property properties.

setLicensureServer

void setLicensureServer(JLicensureServer server)
Set the licensure server instance. This method is called prior to any other method of this interface.