com.atlassian.confluence.admin.actions.macros
Class UpdateUserMacroAction

java.lang.Object
  extended by com.opensymphony.xwork.ActionSupport
      extended by com.atlassian.confluence.core.ConfluenceActionSupport
          extended by com.atlassian.confluence.admin.actions.macros.UserMacroAction
              extended by com.atlassian.confluence.admin.actions.macros.UpdateUserMacroAction
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 UpdateUserMacroAction
extends UserMacroAction

Action for updating a user macro

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.atlassian.confluence.admin.actions.macros.UserMacroAction
macro, macroManager, userMacro, userMacroLibrary
 
Fields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, log, 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
UpdateUserMacroAction()
           
 
Method Summary
 java.lang.String doDefault()
          Default webwork action execution method.
 java.lang.String doUpdate()
          Remove the existing user macro and then add the updated user macro
 java.lang.String getMode()
           
 java.lang.String getOriginalName()
           
 void setOriginalName(java.lang.String originalName)
           
 void validate()
           
 
Methods inherited from class com.atlassian.confluence.admin.actions.macros.UserMacroAction
addUpdateMacro, getBodyTypes, getCategories, getOutputTypes, getShowInMacroBrowser, getUserMacro, getUserMacros, isPermitted, setMacro, setMacroManager, setShowInMacroBrowser, setUserMacro, setUserMacroLibrary, validateMacroForm, validateNewMacroName
 
Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addFieldError, addPermissionTypeTo, addToHistory, formatFriendlyDate, getActionName, getActionName, getBootstrapManager, getCancelResult, getContext, 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, isPermittedAsString, isPrintableVersion, isSharedMode, isUserStatusPluginEnabled, isUsingHSQL, setBootstrapManager, setCancel, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, 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

UpdateUserMacroAction

public UpdateUserMacroAction()
Method Detail

getOriginalName

public java.lang.String getOriginalName()

setOriginalName

public void setOriginalName(java.lang.String originalName)

validate

public void validate()
Specified by:
validate in interface com.opensymphony.xwork.Validateable
Overrides:
validate in class com.opensymphony.xwork.ActionSupport

doDefault

public java.lang.String doDefault()
                           throws java.lang.Exception
Description copied from class: ConfluenceActionSupport
Default webwork action execution method.

Overrides:
doDefault in class UserMacroAction
Returns:
the action result
Throws:
java.lang.Exception - if something goes wrong

doUpdate

public java.lang.String doUpdate()
Remove the existing user macro and then add the updated user macro

Returns:
SUCCESS

getMode

public java.lang.String getMode()


Copyright © 2003-2011 Atlassian. All Rights Reserved.