com.atlassian.confluence.fixonly.actions
Class AuthenticateAndUpdateLicenseAction

java.lang.Object
  extended by com.opensymphony.xwork.ActionSupport
      extended by com.atlassian.confluence.core.ConfluenceActionSupport
          extended by com.atlassian.confluence.admin.actions.AbstractUpdateLicenseAction
              extended by com.atlassian.confluence.fixonly.actions.AuthenticateAndUpdateLicenseAction
All Implemented Interfaces:
WebInterface, com.opensymphony.xwork.Action, com.opensymphony.xwork.LocaleProvider, com.opensymphony.xwork.TextProvider, com.opensymphony.xwork.Validateable, com.opensymphony.xwork.ValidationAware, java.io.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

Field Summary
 
Fields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, permissionManager, permitted, PREVIEW, settingsManager, spacePermissionManager, 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
AuthenticateAndUpdateLicenseAction()
           
 
Method Summary
 java.lang.String doUpdate()
          Extend the license update operation to authenticate first.
 java.lang.String getPassword()
           
 UserAccessor getUserAccessor()
           
 java.lang.String getUsername()
           
 boolean isPermitted()
           
 void setPassword(java.lang.String password)
           
 void setUserAccessor(UserAccessor userAccessor)
           
 void setUsername(java.lang.String username)
           
 void validate()
          Ensure that non blank username and password have been supplied.
 
Methods inherited from class com.atlassian.confluence.admin.actions.AbstractUpdateLicenseAction
getLicense, getLicenseString, getSupportPeriodEnd, getUserChecker, isHasSupportPeriodExpired, isLicenseSubmitted, setApplicationConfig, setLicenseString, setLicenseSubmitted, setUserChecker
 
Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addFieldError, addPermissionTypeTo, addToHistory, doDefault, formatFriendlyDate, getActionName, getBootstrapManager, getCancelResult, getDateFormatter, getDefaultResourceBundle, getEventManager, getFriendlyDateFormatter, 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, getUserFullName, getUserInterfaceState, getWebInterfaceContext, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPermissionCheck, isPermittedAsString, isPrintableVersion, isSharedMode, isUsingHSQL, setBootstrapManager, setCancel, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setPermissionCheck, setPermissionManager, 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
 

Constructor Detail

AuthenticateAndUpdateLicenseAction

public AuthenticateAndUpdateLicenseAction()
Method Detail

validate

public void validate()
Ensure that non blank username and password have been supplied.

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

doUpdate

public java.lang.String doUpdate()
                          throws java.lang.Exception
Extend the license update operation to authenticate first.

Overrides:
doUpdate in class AbstractUpdateLicenseAction
Returns:
the result of the update
Throws:
java.lang.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 java.lang.String getUsername()

setUsername

public void setUsername(java.lang.String username)

getPassword

public java.lang.String getPassword()

setPassword

public void setPassword(java.lang.String password)

getUserAccessor

public UserAccessor getUserAccessor()
Overrides:
getUserAccessor in class ConfluenceActionSupport

setUserAccessor

public void setUserAccessor(UserAccessor userAccessor)
Overrides:
setUserAccessor in class ConfluenceActionSupport


Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.