Package com.atlassian.confluence.license
Class LicenseWebFacadeTemplate
- java.lang.Object
-
- com.atlassian.confluence.license.LicenseWebFacadeTemplate
-
- All Implemented Interfaces:
LicenseWebFacade
public abstract class LicenseWebFacadeTemplate extends Object implements LicenseWebFacade
-
-
Constructor Summary
Constructors Constructor Description LicenseWebFacadeTemplate(LicenseService delegate)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract LicenseExceptionHandler<Exception>
createExceptionHandler()
io.atlassian.fugue.Either<String,com.atlassian.extras.api.confluence.ConfluenceLicense>
installLicense(String licenseString)
io.atlassian.fugue.Either<String,Boolean>
licensedForDataCenter()
io.atlassian.fugue.Either<String,Optional<com.atlassian.extras.api.ProductLicense>>
retrieveForProduct(com.atlassian.extras.api.Product product)
io.atlassian.fugue.Either<String,com.atlassian.extras.api.confluence.ConfluenceLicense>
retrieveLicense()
io.atlassian.fugue.Either<String,com.atlassian.extras.api.confluence.ConfluenceLicense>
validateLicense(String licenseString)
io.atlassian.fugue.Either<String,com.atlassian.extras.api.ProductLicense>
validateLicenseForPlugin(String licenseString, com.atlassian.extras.api.Product product)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.confluence.license.LicenseWebFacade
install, isLicensedForDataCenter, retrieve, retrieve, validate, validatePlugin
-
-
-
-
Constructor Detail
-
LicenseWebFacadeTemplate
public LicenseWebFacadeTemplate(LicenseService delegate)
-
-
Method Detail
-
retrieveLicense
public io.atlassian.fugue.Either<String,com.atlassian.extras.api.confluence.ConfluenceLicense> retrieveLicense()
- Specified by:
retrieveLicense
in interfaceLicenseWebFacade
- See Also:
LicenseService.retrieve()
-
retrieveForProduct
public io.atlassian.fugue.Either<String,Optional<com.atlassian.extras.api.ProductLicense>> retrieveForProduct(com.atlassian.extras.api.Product product)
- Specified by:
retrieveForProduct
in interfaceLicenseWebFacade
- See Also:
LicenseService.retrieveForProduct(Product)
-
validateLicense
public io.atlassian.fugue.Either<String,com.atlassian.extras.api.confluence.ConfluenceLicense> validateLicense(String licenseString) throws LicenseException, KnownConfluenceLicenseValidationException
- Specified by:
validateLicense
in interfaceLicenseWebFacade
- Throws:
LicenseException
KnownConfluenceLicenseValidationException
- See Also:
LicenseService.validate(String)
-
validateLicenseForPlugin
public io.atlassian.fugue.Either<String,com.atlassian.extras.api.ProductLicense> validateLicenseForPlugin(String licenseString, com.atlassian.extras.api.Product product) throws LicenseException, KnownConfluenceLicenseValidationException
- Specified by:
validateLicenseForPlugin
in interfaceLicenseWebFacade
- Throws:
LicenseException
KnownConfluenceLicenseValidationException
- See Also:
LicenseService.validate(String, com.atlassian.extras.api.Product)
-
installLicense
public io.atlassian.fugue.Either<String,com.atlassian.extras.api.confluence.ConfluenceLicense> installLicense(String licenseString) throws LicenseException, KnownConfluenceLicenseValidationException
- Specified by:
installLicense
in interfaceLicenseWebFacade
- Throws:
LicenseException
KnownConfluenceLicenseValidationException
- See Also:
LicenseService.install(String)
-
licensedForDataCenter
public io.atlassian.fugue.Either<String,Boolean> licensedForDataCenter()
- Specified by:
licensedForDataCenter
in interfaceLicenseWebFacade
- See Also:
LicenseService.isLicensedForDataCenter()
-
createExceptionHandler
protected abstract LicenseExceptionHandler<Exception> createExceptionHandler()
-
-