Class PaginableAdapter<T>

    • Field Detail

      • currentPageIndex

        protected Long currentPageIndex
      • pageSize

        protected Long pageSize
      • maxResults

        protected String maxResults
      • sortBy

        protected String sortBy
        Sort by parameters (can be a list of sorts, separated by commas).

        Exp: dc:title,dc:modified.

        Since:
        5.9.4
      • sortOrder

        protected String sortOrder
        Sort order parameters (can be a list of sorts orders, separated by commas, matched by index to corresponding sort by parameters).

        Exp: asc,desc, or ASC,DESC. When empty, defaults to 'desc'.

        Since:
        5.9.4
    • Constructor Detail

      • PaginableAdapter

        public PaginableAdapter()
    • Method Detail

      • getAdapter

        public <A> A getAdapter​(Class<A> adapter)
        Description copied from interface: Adaptable
        Returns an object which is an instance of the given class associated with this object. Returns null if no such object can be found.
        Specified by:
        getAdapter in interface Adaptable
        Overrides:
        getAdapter in class AbstractResource<ResourceTypeImpl>
        Parameters:
        adapter - the adapter class to look up
        Returns:
        a object castable to the given class, or null if this object does not have an adapter for the given class
      • getParams

        protected Object[] getParams()
      • getSearchDocument

        protected DocumentModel getSearchDocument()
      • getPaginableEntries

        public Paginable<T> getPaginableEntries()
      • extractLongParam

        protected Long extractLongParam​(javax.servlet.http.HttpServletRequest request,
                                        String paramName,
                                        Long defaultValue)