|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.axway.grapes.server.core.LicenseHandler
public class LicenseHandler
License Handler
Handles the license resolution. It stores the licenses names and the regexp to avoid db access. It must be updated at license addition / deletion.
| Constructor Summary | |
|---|---|
LicenseHandler(RepositoryHandler repoHandler)
|
|
| Method Summary | |
|---|---|
void |
approveLicense(String name,
Boolean approved)
Approve or reject a license |
void |
deleteLicense(String name)
Delete a license from the repository |
DbLicense |
getLicense(String name)
Return a html view that contains the targeted license |
List<License> |
getLicenses()
Returns all the available license in client/server data model |
List<String> |
getLicensesNames(FiltersHolder filters)
Return a list of license names. |
DbLicense |
resolve(String licenseId)
Resolve the targeted license thanks to the license ID Return null if no license is matching the licenseId |
void |
store(DbLicense dbLicense)
Add or update a license to the database |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LicenseHandler(RepositoryHandler repoHandler)
| Method Detail |
|---|
public void store(DbLicense dbLicense)
dbLicense - DbLicensepublic List<String> getLicensesNames(FiltersHolder filters)
filters - FiltersHolder
public DbLicense getLicense(String name)
name - String
public void deleteLicense(String name)
name -
public void approveLicense(String name,
Boolean approved)
name - Stringapproved - Booleanpublic DbLicense resolve(String licenseId)
licenseId -
public List<License> getLicenses()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||