Class LicenseUsage

java.lang.Object
de.elo.ix.client.system.LicenseUsage

public class LicenseUsage extends Object
Diese Klasse enthält die Lizenzzähler für die Lizenzmeldung an den Lizenzserver im Web. EIX-3641
  • Field Details

    • sordGuid

      protected String sordGuid
      Entry sordGuid from license file.
    • licenseType

      protected LicenseType licenseType
      License used for production, test, development.
    • licenseCreateDateIso

      protected String licenseCreateDateIso
      Create date from license file.
    • uploadIso

      protected String uploadIso
      Upload date in ISO format.
    • nbOfDocuments

      protected long nbOfDocuments
      Number of documents over all repositories.
    • appUsages

      protected List<AppUsage> 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

      protected List<String> 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

      public List<LimitOption> computeEffectiveOptionsUsage()
      Compute the effective license usage by minimizing the license violations. A theoretical license violation is present, if a counter in AppUsage.getCount() is greater than its related value in AppUsage.getLimitOption(). If counters of higher level applications in AppUsage.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

      public List<LimitOption> computeOptionsUsage()
      Compute usage count of the license options.
      Returns:
      LimitOption objects with computed LimitOption.getCount().
      See Also:
    • getLimitOptions

      public List<LimitOption> getLimitOptions()
      Get license limits.
      Returns:
      list of license limits.
    • getAppTypesForLimitOption

      public List<AppUsage> getAppTypesForLimitOption(LimitOption limitOption)
      Get application types associated with license limits.
      Parameters:
      limitOption - option name
      Returns:
      list of application types
    • getSordGuid

      public String getSordGuid()
    • setSordGuid

      public void setSordGuid(String sordGuid)
    • getLicenseType

      public LicenseType getLicenseType()
    • setLicenseType

      public void setLicenseType(LicenseType licenseType)
    • getNbOfDocuments

      public long getNbOfDocuments()
    • setNbOfDocuments

      public void setNbOfDocuments(long nbOfDocuments)
    • getUploadIso

      public String getUploadIso()
    • setUploadIso

      public void setUploadIso(String uploadIso)
    • getLicenseCreateDateIso

      public String getLicenseCreateDateIso()
    • setLicenseCreateDateIso

      public void setLicenseCreateDateIso(String licenseCreateDateIso)
    • getAppUsages

      public List<AppUsage> getAppUsages()
    • setAppUsages

      public void setAppUsages(List<AppUsage> v)
    • getLimitOptionsOrdered

      public List<String> getLimitOptionsOrdered()
    • setLimitOptionsOrdered

      public void setLimitOptionsOrdered(List<String> limitOptionsOrdered)