com.atlassian.confluence.fixonly.actions
Class AuthenticateAndUpdateLicenseAction
java.lang.Object
com.opensymphony.xwork.ActionSupport
com.atlassian.confluence.core.ConfluenceActionSupport
com.atlassian.confluence.admin.actions.AbstractUpdateLicenseAction
com.atlassian.confluence.fixonly.actions.AuthenticateAndUpdateLicenseAction
- All Implemented Interfaces:
- WebInterface, Action, LocaleProvider, TextProvider, Validateable, ValidationAware, Serializable
public class AuthenticateAndUpdateLicenseAction
- extends AbstractUpdateLicenseAction
An action providing functionality to authenticate and update a license in the same step. See CONF-9959.
- See Also:
- Serialized Form
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, webInterfaceManager |
Methods inherited from class com.atlassian.confluence.admin.actions.AbstractUpdateLicenseAction |
getClusterManager, getLicense, getLicenseString, getSid, getSupportPeriodEnd, getUserChecker, isHasSupportPeriodExpired, isLicenseSubmitted, setApplicationConfig, setClusterManager, setLicenseString, setLicenseSubmitted, setSidManager, setUserChecker |
Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport |
addActionError, addFieldError, addPermissionTypeTo, addToHistory, doDefault, formatFriendlyDate, getActionName, getActionName, getBootstrapManager, getCancelResult, getDateFormatter, getDefaultResourceBundle, getEventManager, getFriendlyDateFormatter, getGlobalSettings, getHelper, getI18n, getInstalledLanguages, getLabelManager, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getNiceContentType, getPermissionTypes, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPreviousLoginDate, getRandom, getRemoteUser, getSession, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUser, getUserFullName, getUserInterfaceState, getWebInterfaceContext, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPermissionCheck, isPermittedAsString, isPrintableVersion, isSharedMode, isUserStatusPluginEnabled, isUsingHSQL, setBootstrapManager, setCancel, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setPermissionCheck, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setSettingsManager, setSpacePermissionManager, 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 |
AuthenticateAndUpdateLicenseAction
public AuthenticateAndUpdateLicenseAction()
validate
public void validate()
- Ensure that non blank username and password have been supplied.
- Specified by:
validate
in interface Validateable
- Overrides:
validate
in class AbstractUpdateLicenseAction
doUpdate
public String doUpdate()
throws Exception
- Extend the license update operation to authenticate first.
- Overrides:
doUpdate
in class AbstractUpdateLicenseAction
- Returns:
- the result of the update
- Throws:
Exception
isPermitted
public boolean isPermitted()
- Overrides:
isPermitted
in class ConfluenceActionSupport
- Returns:
- always true; you don't need to be authenticated to view his action. To perform the actual update you
will need to be.
getUsername
public String getUsername()
setUsername
public void setUsername(String username)
getPassword
public String getPassword()
setPassword
public void setPassword(String password)
getUserAccessor
public UserAccessor getUserAccessor()
- Overrides:
getUserAccessor
in class ConfluenceActionSupport
setUserAccessor
public void setUserAccessor(UserAccessor userAccessor)
- Overrides:
setUserAccessor
in class ConfluenceActionSupport