Class AbstractPaginatedListAction<T>

    • Field Detail

      • ITEMS_PER_PAGE

        public static final int ITEMS_PER_PAGE
    • Constructor Detail

      • AbstractPaginatedListAction

        public AbstractPaginatedListAction()
      • AbstractPaginatedListAction

        public AbstractPaginatedListAction​(int itemsPerPage)
    • Method Detail

      • execute

        public String execute()
                       throws Exception
        Specified by:
        execute in interface com.opensymphony.xwork2.Action
        Overrides:
        execute in class com.opensymphony.xwork2.ActionSupport
        Throws:
        Exception
      • getItems

        public abstract List getItems()
      • setStartIndex

        public void setStartIndex​(int startIndex)
      • 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