Class AbstractListServlet

All Implemented Interfaces:
Serializable, Servlet, ServletConfig
Direct Known Subclasses:
AbstractReplicableListServlet

@Deprecated public class AbstractListServlet extends AbstractPredicateServlet
Deprecated.
The AbstractListServlet provides base functionality such as sorting and paging for servlets that feed Ext grids (like in the SiteAdmin) with JSON. Normally, the list of children of the addressed resource are returned. Alternatively, the paging index of an item can be requested.
See Also:
  • Field Details

    • TIDY

      public static final String TIDY
      Deprecated.
      Parameter to use for tidy JSON. If present, indentation and line breaks are added for better legibility.
      See Also:
    • PAGE_START

      public static final String PAGE_START
      Deprecated.
      Parameter to specify the start index with when using paging. Typically used in conjunction with PAGE_LIMIT. For the items of the page n, use a start index of limit + (n - 1).
      See Also:
    • PAGE_LIMIT

      public static final String PAGE_LIMIT
      Deprecated.
      Parameter to specify the limit of items per page when using paging. Typically used in conjunction with PAGE_START.
      See Also:
    • SORT_KEY

      public static final String SORT_KEY
      Deprecated.
      Parameter to specify which property use for sorting. Defaults to "index".
      See Also:
    • SORT_DIR

      public static final String SORT_DIR
      Deprecated.
      Parameter to specify the direction to use for sorting. Defaults to SORT_ASCENDING.
      See Also:
    • SORT_ASCENDING

      public static final String SORT_ASCENDING
      Deprecated.
      Value to use for SORT_DIR to use ascending order (default).
      See Also:
    • SORT_DESCENDING

      public static final String SORT_DESCENDING
      Deprecated.
      Value to use for SORT_DIR to use descending order.
      See Also:
    • PATH

      public static final String PATH
      Deprecated.
      Parameter to use in conjunction with PAGE_INDEX to determine the paging index of an item. If both parameters are present, the paging index of the item with the specified path will be returned instead of the list of children.
      See Also:
    • PAGE_INDEX

      public static final String PAGE_INDEX
      Deprecated.
      Parameter to use in conjunction with PATH to determine the paging index of an item. If this parameter is present, the paging index of the item with the path specified in PATH will be returned instead of the list of children.
      See Also:
    • PROP

      public static final String PROP
      Deprecated.
      Parameter to use to specify the name(s) of custom properties that should be returned for each item in the list. If the properties exist on the item's resource, their values will be returned as additional JSON properties.
      See Also:
  • Constructor Details

    • AbstractListServlet

      public AbstractListServlet()
      Deprecated.