com.atlassian.confluence.admin.actions
Class AbstractUpdateLicenseAction

java.lang.Object
  extended by com.opensymphony.xwork.ActionSupport
      extended by com.atlassian.confluence.core.ConfluenceActionSupport
          extended by com.atlassian.confluence.admin.actions.AbstractUpdateLicenseAction
All Implemented Interfaces:
WebInterface, com.opensymphony.xwork.Action, com.opensymphony.xwork.LocaleProvider, com.opensymphony.xwork.TextProvider, com.opensymphony.xwork.Validateable, com.opensymphony.xwork.ValidationAware, Serializable
Direct Known Subclasses:
FixLicenseAction, ViewOrUpdateLicenseAction

public abstract class AbstractUpdateLicenseAction
extends ConfluenceActionSupport

Perform the update of a Confluence license.

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, permissionManager, permitted, pluginAccessor, 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
AbstractUpdateLicenseAction()
           
 
Method Summary
 String doUpdate()
          Update the license Confluence is using.
protected  ClusterManager getClusterManager()
           
 com.atlassian.license.License getLicense()
           
 String getLicenseString()
           
 String getSid()
          Returns the SID.
 Date getSupportPeriodEnd()
           
 UserChecker getUserChecker()
           
 boolean isHasSupportPeriodExpired()
           
 boolean isLicenseSubmitted()
           
 void setApplicationConfig(com.atlassian.config.ApplicationConfiguration applicationConfig)
           
 void setClusterManager(ClusterManager clusterManager)
           
 void setLicenseString(String licenseString)
           
 void setLicenseSubmitted(boolean licenseSubmitted)
           
 void setSidManager(ConfluenceSidManager sidManager)
           
 void setUserChecker(UserChecker userChecker)
           
 void validate()
          Validate that a non-empty license has been supplied.
 
Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addFieldError, addPermissionTypeTo, addToHistory, doDefault, formatFriendlyDate, getActionName, getActionName, getBootstrapManager, getCancelResult, getContext, getDateFormatSetting, getDateFormatter, getDefaultResourceBundle, getDocLink, getEventManager, getFriendlyDateFormatter, getGlobalSettings, getHelper, getI18n, getInstalledLanguages, getLabelManager, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getNiceContentType, getPermissionTypes, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPreviousLoginDate, getRandom, getRemoteUser, getSession, getSystemInformationService, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUser, getUserAccessor, getUserFullName, getUserInterfaceState, getWebInterfaceContext, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPermissionCheck, isPermitted, isPermittedAsString, isPrintableVersion, isSharedMode, isUserStatusPluginEnabled, isUsingHSQL, setBootstrapManager, setCancel, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setPermissionCheck, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setSettingsManager, setSpacePermissionManager, setSystemInformationService, setUserAccessor, setWebInterfaceManager
 
Methods inherited from class com.opensymphony.xwork.ActionSupport
addActionError, addActionMessage, addFieldError, execute, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractUpdateLicenseAction

public AbstractUpdateLicenseAction()
Method Detail

getLicense

public com.atlassian.license.License getLicense()

setApplicationConfig

public void setApplicationConfig(com.atlassian.config.ApplicationConfiguration applicationConfig)

getLicenseString

public String getLicenseString()

setLicenseString

public void setLicenseString(String licenseString)

getUserChecker

public UserChecker getUserChecker()

setUserChecker

public void setUserChecker(UserChecker userChecker)

getSupportPeriodEnd

public Date getSupportPeriodEnd()

isHasSupportPeriodExpired

public boolean isHasSupportPeriodExpired()

validate

public void validate()
Validate that a non-empty license has been supplied.

Specified by:
validate in interface com.opensymphony.xwork.Validateable
Overrides:
validate in class com.opensymphony.xwork.ActionSupport

doUpdate

public String doUpdate()
                throws Exception
Update the license Confluence is using.

Returns:
the result of the update
Throws:
Exception

getSid

public String getSid()
Returns the SID. Made public so it is available to templates.

Returns:
the SID

isLicenseSubmitted

public boolean isLicenseSubmitted()

setLicenseSubmitted

public void setLicenseSubmitted(boolean licenseSubmitted)

setClusterManager

public void setClusterManager(ClusterManager clusterManager)

getClusterManager

protected ClusterManager getClusterManager()

setSidManager

public void setSidManager(ConfluenceSidManager sidManager)


Copyright © 2003-2012 Atlassian. All Rights Reserved.