public interface LicenseService
| Modifier and Type | Method and Description |
|---|---|
AppLicense |
addLicense(String licKey,
String user)
Validates and adds a product license issued by the authorized SDN
licensing portal.
|
Collection<AppLicense> |
checkExpiredLicenses()
Checks if any licenses are expired and mark them as expired in database
|
AppLicense |
deactivateLicense(short sno,
String user)
Deactivates an active license of a serial number for a license transfer
from one install id to another reasons.
|
AppLicense |
deactivateLicense(String licKey,
String user)
Deactivates an active license for a license transfer from one install
id to another reasons.
|
AppLicense |
getLicense(short sno)
Get a license details for a given serial number
|
AppLicense |
getLicense(String key)
Get a license details for a given license key
|
Collection<AppLicense> |
getLicenses()
Get all licenses stored in database
|
String |
installId()
Get the install id assigned for this install base.
|
String installId()
AppLicense addLicense(String licKey, String user)
licKey - encrypted license key that needs to be addeduser - name of the user who is adding a licenseAppLicense objectAppLicense deactivateLicense(String licKey, String user)
licKey - encrypted license key that needs to be deactivateduser - name of the user who is deactivating a licenseAppLicense object if the license
deactivated successfully, otherwise return null.AppLicense deactivateLicense(short sno, String user)
sno - license with serial number that needs to be deactivateduser - name of the user who is adding a licenseAppLicense object if the license
deactivated successfully, otherwise return null.AppLicense getLicense(short sno)
sno - license serial numberAppLicense objectAppLicense getLicense(String key)
key - license keyAppLicense objectCollection<AppLicense> getLicenses()
AppLicense objectsCollection<AppLicense> checkExpiredLicenses()
AppLicense objectsCopyright © 2014. All Rights Reserved.