com.atlassian.confluence.license.exception.handler
Class KnownConfluenceLicenseValidationExceptionHandler

java.lang.Object
  extended by com.atlassian.confluence.license.exception.handler.AbstractLicenseExceptionHandler<KnownConfluenceLicenseValidationException>
      extended by com.atlassian.confluence.license.exception.handler.KnownConfluenceLicenseValidationExceptionHandler
All Implemented Interfaces:
LicenseExceptionHandler<KnownConfluenceLicenseValidationException>

public class KnownConfluenceLicenseValidationExceptionHandler
extends AbstractLicenseExceptionHandler<KnownConfluenceLicenseValidationException>

Common Confluence license validation failures.


Field Summary
static org.slf4j.Logger log
           
 
Constructor Summary
KnownConfluenceLicenseValidationExceptionHandler(I18NBean i18n, DocumentationBean docBean, ConfluenceSidManager sidManager)
           
 
Method Summary
 java.lang.String calculateDocumentationUrl(java.lang.String key)
           
 java.lang.String currentServerId()
           
 java.lang.String handle(KnownConfluenceLicenseValidationException exception)
           
 
Methods inherited from class com.atlassian.confluence.license.exception.handler.AbstractLicenseExceptionHandler
lookupMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

public static final org.slf4j.Logger log
Constructor Detail

KnownConfluenceLicenseValidationExceptionHandler

public KnownConfluenceLicenseValidationExceptionHandler(I18NBean i18n,
                                                        DocumentationBean docBean,
                                                        ConfluenceSidManager sidManager)
Method Detail

handle

public java.lang.String handle(KnownConfluenceLicenseValidationException exception)
Parameters:
exception - the exception to translate
Returns:
a default localised message if the exception could not be mapped or a specialised localised message explaining the reason for the exception, return null to indicate that the exception was not handled

calculateDocumentationUrl

public java.lang.String calculateDocumentationUrl(java.lang.String key)
Parameters:
key - the key used for the DocumentationBean.getLink(String) call
Returns:
the calculated documentation URL

currentServerId

public java.lang.String currentServerId()
Returns:
the current server identifier as returned by ConfluenceSidManager.getSid(), or an empty string if not retrievable


Copyright © 2003-2013 Atlassian. All Rights Reserved.