Class TableRequest


  • public class TableRequest
    extends java.lang.Object
    Handles the conversion of the HttpRequestBody into an object. This specifically has information need to handle the paging for the Projects listing table in the UI - filter, search, sort.
    • Constructor Summary

      Constructors 
      Constructor Description
      TableRequest()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getCurrent()  
      int getPageSize()  
      java.lang.String getSearch()  
      org.springframework.data.domain.Sort getSort()
      Since we he need an actual Sort object and cannot pass this from the client, we create one from the information fathered from the client Direction of sort Column (attribute) of sort
      org.springframework.data.domain.Sort.Direction getSortDirection()  
      java.lang.String getSortField()  
      void setCurrent​(int current)  
      void setPageSize​(int pageSize)  
      void setSearch​(java.lang.String search)  
      void setSortDirection​(java.lang.String sortDirection)  
      void setSortField​(java.lang.String sortField)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TableRequest

        public TableRequest()
    • Method Detail

      • getSearch

        public java.lang.String getSearch()
      • setSearch

        public void setSearch​(java.lang.String search)
      • getCurrent

        public int getCurrent()
      • setCurrent

        public void setCurrent​(int current)
      • getPageSize

        public int getPageSize()
      • setPageSize

        public void setPageSize​(int pageSize)
      • setSortField

        public void setSortField​(java.lang.String sortField)
      • getSortField

        public java.lang.String getSortField()
      • setSortDirection

        public void setSortDirection​(java.lang.String sortDirection)
      • getSortDirection

        public org.springframework.data.domain.Sort.Direction getSortDirection()
      • getSort

        public org.springframework.data.domain.Sort getSort()
        Since we he need an actual Sort object and cannot pass this from the client, we create one from the information fathered from the client Direction of sort Column (attribute) of sort
        Returns:
        Sort