Class AbstractLabelDisplayingAction

All Implemented Interfaces:
WebInterface, SpaceAware, Spaced, MessageHolderAware, Serializable, org.apache.struts2.action.Action, org.apache.struts2.interceptor.ValidationAware, org.apache.struts2.locale.LocaleProvider, org.apache.struts2.text.TextProvider, 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()