Class UpdateUserMacroAction

  • All Implemented Interfaces:
    WebInterface, MessageHolderAware, com.opensymphony.xwork2.Action, com.opensymphony.xwork2.interceptor.ValidationAware, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, Serializable

    public class UpdateUserMacroAction
    extends UserMacroAction
    Action for updating a user macro
    See Also:
    Serialized Form
    • Constructor Detail

      • UpdateUserMacroAction

        public UpdateUserMacroAction()
    • Method Detail

      • getOriginalName

        public String getOriginalName()
      • setOriginalName

        public void setOriginalName​(String originalName)
      • validate

        public void validate()
        Specified by:
        validate in interface MessageHolderAware
        Specified by:
        validate in interface com.opensymphony.xwork2.Validateable
        Overrides:
        validate in class com.opensymphony.xwork2.ActionSupport
      • doUpdate

        public String doUpdate()
        Remove the existing user macro and then add the updated user macro
        Returns:
        SUCCESS
      • getOutputTypes

        public List<HTMLPairType> getOutputTypes()
        Populates the output type select box if the macro being edited is a legacy one with a wiki markup template. Otherwise return an empty list since current Confluence has no choice of template type.
        Returns:
        list of output types
      • getMode

        public String getMode()
      • getSubmitKey

        public String getSubmitKey()