com.atlassian.confluence.license.exception.handler
Class KnownConfluenceLicenseValidationExceptionHandler
java.lang.Object
com.atlassian.confluence.license.exception.handler.AbstractLicenseExceptionHandler<KnownConfluenceLicenseValidationException>
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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
public static final org.slf4j.Logger log
KnownConfluenceLicenseValidationExceptionHandler
public KnownConfluenceLicenseValidationExceptionHandler(I18NBean i18n,
DocumentationBean docBean,
ConfluenceSidManager sidManager)
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-2014 Atlassian. All Rights Reserved.