Package de.elo.ix.client.system
Class LicenseUsage
java.lang.Object
de.elo.ix.client.system.LicenseUsage
Diese Klasse enthält die Lizenzzähler für die Lizenzmeldung an den Lizenzserver im Web.
EIX-3641
-
Field Summary
FieldsModifier and TypeFieldDescriptionMap of application type to the name of the option in the license file that limits the access.protected String
Create date from license file.protected LicenseType
License used for production, test, development.License options for usage limits that can be transfered from a lower level application to a higher level application.protected long
Number of documents over all repositories.protected String
Entry sordGuid from license file.protected String
Upload date in ISO format. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCompute the effective license usage by minimizing the license violations.Compute usage count of the license options.getAppTypesForLimitOption
(LimitOption limitOption) Get application types associated with license limits.Get license limits.long
void
setAppUsages
(List<AppUsage> v) void
setLicenseCreateDateIso
(String licenseCreateDateIso) void
setLicenseType
(LicenseType licenseType) void
setLimitOptionsOrdered
(List<String> limitOptionsOrdered) void
setNbOfDocuments
(long nbOfDocuments) void
setSordGuid
(String sordGuid) void
setUploadIso
(String uploadIso)
-
Field Details
-
sordGuid
Entry sordGuid from license file. -
licenseType
License used for production, test, development. -
licenseCreateDateIso
Create date from license file. -
uploadIso
Upload date in ISO format. -
nbOfDocuments
protected long nbOfDocumentsNumber of documents over all repositories. -
appUsages
Map of application type to the name of the option in the license file that limits the access. Key: application type, value: option name (usercount{number}) -
limitOptionsOrdered
License options for usage limits that can be transfered from a lower level application to a higher level application.
-
-
Constructor Details
-
LicenseUsage
public LicenseUsage()
-
-
Method Details
-
computeEffectiveOptionsUsage
Compute the effective license usage by minimizing the license violations. A theoretical license violation is present, if a counter inAppUsage.getCount()
is greater than its related value inAppUsage.getLimitOption()
. If counters of higher level applications inAppUsage.getLimitOption()
have free space, the missing amount is applied to them. E.g. given Webclient max = 10, Fullclient max = 20, Webclient usage = 11, Fullclient usage = 12, then Webclient balanced = 10, Fullclient balanced = 13. Map key: license option (usercount), value: counter- Returns:
- License options with usage count. A license violation is present if
LimitOption.getLimit()
is less than the map value. - See Also:
-
computeOptionsUsage
Compute usage count of the license options.- Returns:
- LimitOption objects with computed
LimitOption.getCount()
. - See Also:
-
getLimitOptions
Get license limits.- Returns:
- list of license limits.
-
getAppTypesForLimitOption
Get application types associated with license limits.- Parameters:
limitOption
- option name- Returns:
- list of application types
-
getSordGuid
-
setSordGuid
-
getLicenseType
-
setLicenseType
-
getNbOfDocuments
public long getNbOfDocuments() -
setNbOfDocuments
public void setNbOfDocuments(long nbOfDocuments) -
getUploadIso
-
setUploadIso
-
getLicenseCreateDateIso
-
setLicenseCreateDateIso
-
getAppUsages
-
setAppUsages
-
getLimitOptionsOrdered
-
setLimitOptionsOrdered
-