Class AbstractLabelDisplayingAction

java.lang.Object
org.apache.struts2.ActionSupport
com.opensymphony.xwork2.ActionSupport
All Implemented Interfaces:
WebInterface, SpaceAware, Spaced, MessageHolderAware, com.opensymphony.xwork2.Action, com.opensymphony.xwork2.interceptor.ValidationAware, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, Serializable, org.apache.struts2.action.Action, org.apache.struts2.interceptor.ValidationAware, org.apache.struts2.Validateable
Direct Known Subclasses:
AlphabeticalListLabelsAction, RankListLabelsAction, ViewLabelAction

public abstract class AbstractLabelDisplayingAction extends AbstractSpaceAction implements SpaceAware
A nice abstract class for actions which display label/s on a global AND per space basis.
See Also:
  • Field Details

  • Constructor Details

    • AbstractLabelDisplayingAction

      public AbstractLabelDisplayingAction()
  • Method Details

    • isSpaceRequired

      public boolean isSpaceRequired()
      Description copied from interface: SpaceAware
      If the action requires that the space be set before being run, then it should return true to this method. If the action requires a space, but no space is available, then the interceptor will automatically redirect to the 'pagenotfound' result
      Specified by:
      isSpaceRequired in interface SpaceAware
      Returns:
      true if the action requires a space in order to execute
    • isViewPermissionRequired

      public boolean isViewPermissionRequired()
      Specified by:
      isViewPermissionRequired in interface SpaceAware
      Returns:
      true if the action requires view space permission
    • getRecentLabels

      public List<Label> getRecentLabels()
    • getPopularLabels

      public List<Label> getPopularLabels()