Interface LicenseService


  • public interface LicenseService
    • Method Detail

      • 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

        java.lang.String getProduct()
        Provide the product name.
      • 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