Interface LicenseService


public interface LicenseService
  • Method Summary

    Modifier and Type
    Method
    Description
    com.xebialabs.license.LicenseCiCounter
    Provides an access to the counter
     
    Provide the product name.
    org.joda.time.Period
    Returns the amount of time this license is still valid
    void
    Initialization that requires the repository
    boolean
    Checks whether the license is expired
    void
    Reload the license file from the file system and validate() it.
    void
    Rolls back any CI changes (deletions, creations, copies) that were performed as part of the given license transaction
    Gives you a new LicenseTransaction object so you can keep track of what CIs were created during this JcrTransaction per thread.
    void
    Validates whether XL Deploy server meets all the license requirements for the license on disk
    void
    validate(License license)
    Validates whether XL Deploy server meets all the license requirements for a license instance
  • Method Details

    • getLicense

      License getLicense()
    • isLicenseExpired

      boolean isLicenseExpired()
      Checks whether the license is expired
    • getValidPeriod

      org.joda.time.Period getValidPeriod()
      Returns the amount of time this license is still valid
      Returns:
      a period. Returns period.ZERO if the license is expired
    • getProduct

      String getProduct()
      Provide the product name.
    • validate

      void validate() throws LicenseViolationException
      Validates whether XL Deploy server meets all the license requirements for the license on disk
      Throws:
      LicenseViolationException
    • validate

      void validate(License license) throws LicenseViolationException
      Validates whether XL Deploy server meets all the license requirements for a license instance
      Throws:
      LicenseViolationException
    • reload

      Reload the license file from the file system and validate() it.
      Throws:
      LicenseViolationException
      LicenseParseException
    • getCounter

      com.xebialabs.license.LicenseCiCounter getCounter()
      Provides an access to the counter
    • initialize

      void initialize(LicenseCiCounterFactory ciCounterFactory)
      Initialization that requires the repository
    • startTransaction

      LicenseTransaction startTransaction()
      Gives you a new LicenseTransaction object so you can keep track of what CIs were created during this JcrTransaction per thread.
      Returns:
      a LicenseTransaction
    • rollbackTransaction

      void rollbackTransaction(LicenseTransaction transaction)
      Rolls back any CI changes (deletions, creations, copies) that were performed as part of the given license transaction
      Parameters:
      transaction - a LicenseTransaction to rollback changes from