com.atlassian.confluence.license
Class LicenseWebFacadeTemplate

java.lang.Object
  extended by com.atlassian.confluence.license.LicenseWebFacadeTemplate
All Implemented Interfaces:
LicenseWebFacade

public abstract class LicenseWebFacadeTemplate
extends Object
implements LicenseWebFacade


Constructor Summary
LicenseWebFacadeTemplate(LicenseService delegate)
           
 
Method Summary
protected abstract  LicenseExceptionHandler<Exception> createExceptionHandler()
           
 com.atlassian.fugue.Either<String,com.atlassian.extras.api.confluence.ConfluenceLicense> install(String licenseString)
           
 com.atlassian.fugue.Either<String,com.atlassian.extras.api.confluence.ConfluenceLicense> retrieve()
           
 com.atlassian.fugue.Either<String,com.atlassian.fugue.Maybe<com.atlassian.extras.api.ProductLicense>> retrieve(com.atlassian.extras.api.Product product)
           
 com.atlassian.fugue.Either<String,com.atlassian.extras.api.confluence.ConfluenceLicense> validate(String licenseString)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LicenseWebFacadeTemplate

public LicenseWebFacadeTemplate(LicenseService delegate)
Method Detail

retrieve

public com.atlassian.fugue.Either<String,com.atlassian.extras.api.confluence.ConfluenceLicense> retrieve()
Specified by:
retrieve in interface LicenseWebFacade
See Also:
LicenseService.retrieve()

retrieve

public com.atlassian.fugue.Either<String,com.atlassian.fugue.Maybe<com.atlassian.extras.api.ProductLicense>> retrieve(com.atlassian.extras.api.Product product)
Specified by:
retrieve in interface LicenseWebFacade
See Also:
LicenseService.retrieve(Product)

validate

public com.atlassian.fugue.Either<String,com.atlassian.extras.api.confluence.ConfluenceLicense> validate(String licenseString)
                                                                                                  throws LicenseException,
                                                                                                         KnownConfluenceLicenseValidationException
Specified by:
validate in interface LicenseWebFacade
Throws:
LicenseException
KnownConfluenceLicenseValidationException
See Also:
LicenseService.validate(String)

install

public com.atlassian.fugue.Either<String,com.atlassian.extras.api.confluence.ConfluenceLicense> install(String licenseString)
                                                                                                 throws LicenseException,
                                                                                                        KnownConfluenceLicenseValidationException
Specified by:
install in interface LicenseWebFacade
Throws:
LicenseException
KnownConfluenceLicenseValidationException
See Also:
LicenseService.install(String)

createExceptionHandler

protected abstract LicenseExceptionHandler<Exception> createExceptionHandler()


Copyright © 2003-2013 Atlassian. All Rights Reserved.