Class AbstractCommandAction

java.lang.Object
com.opensymphony.xwork2.ActionSupport
All Implemented Interfaces:
Beanable, WebInterface, MessageHolderAware, com.opensymphony.xwork2.Action, com.opensymphony.xwork2.interceptor.ValidationAware, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, Serializable
Direct Known Subclasses:
MoveBlogPostAction, MovePageAction, RemoveHistoricalVersionAction, RenderContentAction, RevertPageOrderAction, SetPageOrderAction

public abstract class AbstractCommandAction extends ConfluenceActionSupport implements Beanable
CommandAction-implementing class that delegates to a CommandActionHelper.

The main function of the subclass is determined by the type of ServiceCommand it creates and adds to the helper.

See Also:
  • Constructor Details

    • AbstractCommandAction

      public AbstractCommandAction()
  • Method Details

    • isPermitted

      public boolean isPermitted()
      Description copied from class: ConfluenceActionSupport
      Overrides:
      isPermitted in class ConfluenceActionSupport
    • 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
    • execute

      public String execute()
      Specified by:
      execute in interface com.opensymphony.xwork2.Action
      Overrides:
      execute in class com.opensymphony.xwork2.ActionSupport
    • getBean

      public Object getBean()
      Specified by:
      getBean in interface Beanable
    • createCommand

      protected abstract ServiceCommand createCommand()