Class DefaultUnitSearchFields

    • Constructor Detail

      • DefaultUnitSearchFields

        public DefaultUnitSearchFields()
    • Method Detail

      • getCurrentPageIndex

        public java.lang.String getCurrentPageIndex()
        Current page index
        Specified by:
        getCurrentPageIndex in interface IUnitSearchFields
        Returns:
        current page index
      • setCurrentPageIndex

        public void setCurrentPageIndex​(java.lang.String strCurrentPageIndex)
        Current page index
        Specified by:
        setCurrentPageIndex in interface IUnitSearchFields
        Parameters:
        strCurrentPageIndex - current page index
      • setDefaultItemsPerPage

        public void setDefaultItemsPerPage​(int nDefaultItemsPerPage)
        Default items per page
        Specified by:
        setDefaultItemsPerPage in interface IUnitSearchFields
        Parameters:
        nDefaultItemsPerPage - default items per page
      • getItemsPerPage

        public int getItemsPerPage()
        Get the items per page
        Specified by:
        getItemsPerPage in interface IUnitSearchFields
        Returns:
        the items per page
      • setItemsPerPage

        public void setItemsPerPage​(int nItemsPerPage)
        Set the items per page
        Specified by:
        setItemsPerPage in interface IUnitSearchFields
        Parameters:
        nItemsPerPage - the items per page
      • setInDepthSearch

        public void setInDepthSearch​(javax.servlet.http.HttpServletRequest request)
        Check if if it an in depth search.
        It will check if the request possesses the parameter isInDepthSearch
        Specified by:
        setInDepthSearch in interface IUnitSearchFields
        Parameters:
        request - the HTTP request
      • isInDepthSearch

        public boolean isInDepthSearch()
        Check if it is an in depth search
        Specified by:
        isInDepthSearch in interface IUnitSearchFields
        Returns:
        true if it is an in depth search, false otherwise
      • getSortedAttributeName

        public java.lang.String getSortedAttributeName()
        Get the sorted attribute name
        Specified by:
        getSortedAttributeName in interface IUnitSearchFields
        Returns:
        the sorted attibute name
      • setSortedAttributeName

        public void setSortedAttributeName​(javax.servlet.http.HttpServletRequest request)
        Set the sorted attribute name from the HTTP request
        Specified by:
        setSortedAttributeName in interface IUnitSearchFields
        Parameters:
        request - the HTTP request
      • isAscSort

        public boolean isAscSort()
        Check if it is an asc sort
        Specified by:
        isAscSort in interface IUnitSearchFields
        Returns:
        true if it is an asc sort, false otherwise
      • setAscSort

        public void setAscSort​(javax.servlet.http.HttpServletRequest request)
        Set the asc sort from the HTTP request
        Specified by:
        setAscSort in interface IUnitSearchFields
        Parameters:
        request - the HTTP request