|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface LicenseStorage
The interface describes the license storage intended to hold unlimited number of different licenses
| Nested Class Summary | |
|---|---|
static interface |
LicenseStorage.LicenseEntry
Interface describes single license stored in the license storage |
| Field Summary | |
|---|---|
static int |
ANY_LICENSE_TYPE
Specifies that the license entry of any license type is acceptable |
static int |
ANY_MAJOR_VERSION
Specifies that the license entry of any major version is acceptable |
static int |
ANY_MINOR_VERSION
Specifies that the license entry of any minor version is acceptable |
static java.lang.String |
ANY_PRODUCT
Specifies that the license entry of any product identifier is acceptable |
static java.lang.String |
ANY_PRODUCT_EDITION
Specifies that the license entry of any product edition identifier is acceptable |
static int |
ANY_USER_LICENSING_MODEL
Specifies that the license entry of any user licensing model is acceptable |
| Method Summary | |
|---|---|
void |
addLicenseEntry(LicenseStorage.LicenseEntry anEntry,
java.lang.String aName)
Adds a license entry into the license storage |
void |
addLicenseStorageListener(LicenseStorageListener l)
Adds a listener to the listeners list |
void |
assignNewID(LicenseStorage.LicenseEntry aLicenseEntry)
Assigns new unique identifier for the license entry |
LicenseStorage.LicenseEntry |
createLicenseEntry()
Creates a new instance of LicenseEntry |
LicenseReader |
createLicenseReader(java.lang.String aLicenseEntryName)
Creates and returns LicenseReader instance capable of reading license from the license storage |
java.util.Collection |
getLicenseEntries(java.lang.String aPath,
boolean isIncludeSubPaths)
Returns collection of the license entries for the given path |
java.util.Collection |
getLicenseEntries(java.lang.String aProduct,
java.lang.String aProductEdition,
int aMajorVersion,
int aMinorVersion,
int aLicenseType)
Returns collection of the mathced license entries for the given parameters |
LicenseStorage.LicenseEntry |
getLicenseEntry(int anID)
Returns the license entry for the given unique identifier |
LicenseStorage.LicenseEntry |
getLicenseEntry(java.lang.String aName)
Returns license entry for the given name |
java.lang.String |
getName(LicenseStorage.LicenseEntry anEntry)
Returns the name for the given license entry |
boolean |
isModified()
Returns whether this license storage has been modified |
void |
load(java.io.InputStream anInputStream)
Loads license storage from the given stream |
void |
removeLicenseEntry(LicenseStorage.LicenseEntry anEntry)
Removes a license entry from the license storage |
void |
removeLicenseStorageListener(LicenseStorageListener l)
Removes a listener from the listeners list |
void |
setModified(boolean aModified)
Specifies that this license storage is modified |
void |
store(java.io.OutputStream anOutputStream)
Stores license storage to the given stream |
| Field Detail |
|---|
static final java.lang.String ANY_PRODUCT
static final java.lang.String ANY_PRODUCT_EDITION
static final int ANY_MAJOR_VERSION
static final int ANY_MINOR_VERSION
static final int ANY_LICENSE_TYPE
static final int ANY_USER_LICENSING_MODEL
| Method Detail |
|---|
LicenseStorage.LicenseEntry createLicenseEntry()
LicenseEntry
LicenseEntryvoid assignNewID(LicenseStorage.LicenseEntry aLicenseEntry)
aLicenseEntry - license entry to assign unique identifier toLicenseStorage.LicenseEntry getLicenseEntry(int anID)
anID - unique identifier
null of no license entry foundLicenseStorage.LicenseEntry getLicenseEntry(java.lang.String aName)
aName - license entry name
null of no license entry found
java.util.Collection getLicenseEntries(java.lang.String aPath,
boolean isIncludeSubPaths)
aPath - path value. Only absolute paths are supported so each path should start with \ so "\" path
denotes root.isIncludeSubPaths - defines that sub paths should be searched too
java.util.Collection getLicenseEntries(java.lang.String aProduct,
java.lang.String aProductEdition,
int aMajorVersion,
int aMinorVersion,
int aLicenseType)
aProduct - product identifier or the ANY_PRODUCT constant if any product is acceptableaProductEdition - product edition identifier or ANY_PRODUCT_EDITION constant if any product edition
is acceptableaMajorVersion - major version or the ANY_MAJOR_VERSION constant if any major version is acceptableaMinorVersion - minor version or the ANY_MINOR_VERSION constant if any minor version is acceptableaLicenseType - license type as one of the License.TYPE_ constants
or the ANY_LICENSE_TYPE constant if any license type is acceptable
java.lang.String getName(LicenseStorage.LicenseEntry anEntry)
anEntry - license entry to get name for
void addLicenseEntry(LicenseStorage.LicenseEntry anEntry,
java.lang.String aName)
anEntry - license entry to addaName - license entry name. The name may contain slashes to denote path componentsvoid removeLicenseEntry(LicenseStorage.LicenseEntry anEntry)
anEntry - license entry to removevoid addLicenseStorageListener(LicenseStorageListener l)
l - listener to addvoid removeLicenseStorageListener(LicenseStorageListener l)
l - listener to removeboolean isModified()
true if this license storage is modified; false otherwisevoid setModified(boolean aModified)
aModified - true if this license storage should be modified; false otherwise
void load(java.io.InputStream anInputStream)
throws java.io.IOException,
java.lang.UnsupportedOperationException
anInputStream - stream to load license storage from
java.io.IOException - for any errors occured during loading
java.lang.UnsupportedOperationException - if loading is not supported by the license storage implementation
void store(java.io.OutputStream anOutputStream)
throws java.io.IOException,
java.lang.UnsupportedOperationException
anOutputStream - stream to store license storage to
java.io.IOException - for any errors occured during storing
java.lang.UnsupportedOperationException - if storing is not supported by the license storage implementationLicenseReader createLicenseReader(java.lang.String aLicenseEntryName)
LicenseReader instance capable of reading license from the license storage
aLicenseEntryName - name of the license entry to get License Reader for
LicenseReader instance
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||