public class UpdateUserMacroAction extends UserMacroAction
macro, macroManager, macroMetadataManager, userMacro, userMacroLibrary
accessModeService, CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, personService, pluginAccessor, PREVIEW, settingsManager, spacePermissionManager, userAccessor, webInterfaceManager
Constructor and Description |
---|
UpdateUserMacroAction() |
Modifier and Type | Method and Description |
---|---|
String |
doDefault()
Default webwork action execution method.
|
String |
doUpdate()
Remove the existing user macro and then
add the updated user macro
|
String |
getMode() |
String |
getOriginalName() |
List<HTMLPairType> |
getOutputTypes()
Populates the output type select box if the macro being edited is a legacy one with a wiki markup template.
|
String |
getSubmitKey() |
void |
setOriginalName(String originalName) |
void |
validate() |
addUpdateMacro, countUserMacrosWithoutMetadata, countUserMacrosWithWikiTemplates, getBodyTypes, getCategories, getShowInMacroBrowser, getUserMacro, getUserMacros, isMissingMetadata, isPermitted, isWikiTemplate, setMacro, setMacroManager, setMacroMetadataManager, setShowInMacroBrowser, setUserMacro, setUserMacroLibrary, validateMacroForm, validateNewMacroName
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, formatFriendlyDate, getAccessMode, getActionName, getActionName, getAuthenticatedUser, getBootstrapManager, getCancel, getCancelResult, getConfluenceAccessManager, getContext, getCurrentRequest, getCurrentSession, getDateFormatSetting, getDateFormatter, getDefaultResourceBundle, getDefaultTimeZone, getDocLink, getEventManager, getFriendlyDateFormatter, getFrontendServiceURL, getGlobalSettings, getHelper, getI18n, getInstalledLanguages, getLabelManager, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getMessageHolder, getNiceContentType, getPermissionManager, getPermissionTypes, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPersonService, getPreviousLoginDate, getRemoteUser, getSession, getSystemInformationService, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUserAccessor, getUserByName, getUserFullName, getUserHasBrowseUsersPermission, getUserHasLicensedAccess, getUserInterfaceState, getUserLocaleDefaultDatePattern, getUserProfilePicUrl, getWebInterfaceContext, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPrintableVersion, isSkipAccessCheck, isUserStatusPluginEnabled, isUsingH2, isUsingHSQL, setAccessModeService, setApiDateFormatService, setApiPersonService, setBootstrapManager, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setServletRequestSupplier, setSettingsManager, setSkipAccessCheck, setSpacePermissionManager, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManager, withServletRequestSupplier
addActionError, addActionMessage, addFieldError, execute, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors
public String getOriginalName()
public void setOriginalName(String originalName)
public void validate()
validate
in interface MessageHolderAware
validate
in interface com.opensymphony.xwork.Validateable
validate
in class com.opensymphony.xwork.ActionSupport
public String doDefault() throws Exception
ConfluenceActionSupport
doDefault
in class UserMacroAction
Exception
- if something goes wrongpublic String doUpdate()
public List<HTMLPairType> getOutputTypes()
public String getMode()
public String getSubmitKey()
Copyright © 2003–2020 Atlassian. All rights reserved.