net.customware.license.confluence
Class AbstractLicenseAction

java.lang.Object
  extended by com.opensymphony.xwork.ActionSupport
      extended by com.atlassian.confluence.core.ConfluenceActionSupport
          extended by net.customware.license.confluence.AbstractLicenseAction
All Implemented Interfaces:
com.opensymphony.xwork.Action, com.opensymphony.xwork.LocaleProvider, com.opensymphony.xwork.TextProvider, com.opensymphony.xwork.Validateable, com.opensymphony.xwork.ValidationAware, java.io.Serializable

public abstract class AbstractLicenseAction
extends com.atlassian.confluence.core.ConfluenceActionSupport

This class provides the basline for allowing plugins to install their own license key.

Author:
David Peterson
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, log, permissionManager, permitted, PREVIEW, settingsManager, spacePermissionManager, userAccessor, webInterfaceManager
 
Fields inherited from class com.opensymphony.xwork.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
AbstractLicenseAction()
           
 
Method Summary
protected abstract  de.schlichtherle.license.LicenseManager createLicenseManager()
          Called to create the license manager for this plugin.
 java.lang.String execute()
           
 java.lang.String getAbsoluteEulaPath()
           
abstract  java.lang.String getEulaPath()
          Returns the Confluence-relative path to the EULA text.
 java.lang.String getInstall()
           
 de.schlichtherle.license.LicenseContent getLicenseContent()
           
 int getLicenseExpiring()
           
 java.lang.String getLicenseHolder()
           
 java.lang.String getLicenseIssuer()
           
protected  de.schlichtherle.license.LicenseManager getLicenseManager()
           
 java.lang.String getLicenseText()
           
protected  com.opensymphony.webwork.dispatcher.multipart.MultiPartRequestWrapper getMultiPartRequest()
           
abstract  java.lang.String getPluginName()
          Returns the name of the plugin, for use in the user interface.
 java.lang.String getUninstall()
           
 void setInstall(java.lang.String upload)
           
 void setLicenseText(java.lang.String licenseText)
           
 void setUninstall(java.lang.String uninstall)
           
 
Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addPermissionTypeTo, addToHistory, doDefault, getActionName, getBootstrapManager, getCancelResult, getDateFormatter, getDefaultResourceBundle, getEventManager, getGlobalHelper, getGlobalSettings, getHelper, getI18n, getInstalledLanguages, getLabelManager, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getNiceContentType, getPermissionTypes, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPreviousLoginDate, getRandom, getRemoteUser, getSession, getSpaceHelper, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUser, getUserAccessor, getUserFullName, getUserInterfaceState, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPermissionCheck, isPermitted, isPermittedAsString, isPrintableVersion, isShowSillyMenus, isUsingHSQL, setBootstrapManager, setCancel, setEventManager, setFormatSettingsManager, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setPermissionCheck, setPermissionManager, setPreviousLoginDate, setSettingsManager, setSpacePermissionManager, setUserAccessor, setWebInterfaceManager
 
Methods inherited from class com.opensymphony.xwork.ActionSupport
addActionError, addActionMessage, addFieldError, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractLicenseAction

public AbstractLicenseAction()
Method Detail

getMultiPartRequest

protected com.opensymphony.webwork.dispatcher.multipart.MultiPartRequestWrapper getMultiPartRequest()

execute

public java.lang.String execute()
Specified by:
execute in interface com.opensymphony.xwork.Action
Overrides:
execute in class com.opensymphony.xwork.ActionSupport

getLicenseContent

public de.schlichtherle.license.LicenseContent getLicenseContent()

getLicenseHolder

public java.lang.String getLicenseHolder()

getLicenseIssuer

public java.lang.String getLicenseIssuer()

getLicenseExpiring

public int getLicenseExpiring()

getInstall

public java.lang.String getInstall()

setInstall

public void setInstall(java.lang.String upload)

getLicenseManager

protected de.schlichtherle.license.LicenseManager getLicenseManager()

getUninstall

public java.lang.String getUninstall()

setUninstall

public void setUninstall(java.lang.String uninstall)

getAbsoluteEulaPath

public java.lang.String getAbsoluteEulaPath()

createLicenseManager

protected abstract de.schlichtherle.license.LicenseManager createLicenseManager()
Called to create the license manager for this plugin.

Returns:
The license manager implementation.

getPluginName

public abstract java.lang.String getPluginName()
Returns the name of the plugin, for use in the user interface. Implementors may wish to use the ConfluenceActionSupport.getText(String) method(s) to internationalise the title.

Returns:
The plugin name.

getEulaPath

public abstract java.lang.String getEulaPath()
Returns the Confluence-relative path to the EULA text.

Returns:
The EULA path.

getLicenseText

public java.lang.String getLicenseText()

setLicenseText

public void setLicenseText(java.lang.String licenseText)


Copyright © 2011 CustomWare Asia Pacific. All Rights Reserved.