Class PdcSearchRequestRouterHelper


  • public class PdcSearchRequestRouterHelper
    extends Object
    • Method Detail

      • saveUserChoicesAndSetPdcInfo

        public static QueryParameters saveUserChoicesAndSetPdcInfo​(PdcSearchSessionController pdcSC,
                                                                   javax.servlet.http.HttpServletRequest request,
                                                                   boolean setPdcInfo)
        Retrieve query data from current request and prepare result view.
        Parameters:
        pdcSC -
        request -
        setPdcInfo -
        Returns:
        a QueryParameters
        Throws:
        Exception
      • saveUserChoices

        public static QueryParameters saveUserChoices​(PdcSearchSessionController pdcSC,
                                                      javax.servlet.http.HttpServletRequest request)
        Build information for the home jsp for the advancedsearch plain text. We get user choices about advanced search and store it in the PdcSearchSessionController
        Parameters:
        pdcSC - : the pdcSessionController
        request - : the HttpServletRequest
        Returns:
        a QueryParameters from session updated with data from request
        Throws:
        Exception
      • setUserChoices

        public static void setUserChoices​(javax.servlet.http.HttpServletRequest request,
                                          PdcSearchSessionController pdcSC)
        Get user choices from the PdcSearchSessionController and put it in the HTTP request. Prepare data that will be used in the result view.
        Parameters:
        request -
        pdcSC -
        Throws:
        Exception
      • setAttributesAdvancedSearch

        public static void setAttributesAdvancedSearch​(PdcSearchSessionController pdcSC,
                                                       javax.servlet.http.HttpServletRequest request,
                                                       boolean setSpacesAndComponents)
        Set attributes into the request in order to prepare data to be displayed.
        Attributes are build by information which are inside the sessionController
        Parameters:
        pdcSC - the pdcSessionController
        request - HTTP servlet request
        setSpacesAndComponents - if false do nothing, else if add SpaceList and ComponentList attributes into the request
        Throws:
        Exception
      • setPertinentAxis

        public static void setPertinentAxis​(PdcSearchSessionController pdcSC,
                                            javax.servlet.http.HttpServletRequest request)
        put in the request the primary axis and eventually the secondary axis accroding to search context
        Parameters:
        pdcSC -
        request -
      • setContext

        public static void setContext​(PdcSearchSessionController pdcSC,
                                      javax.servlet.http.HttpServletRequest request)
        put in the request the primary axis and eventually the secondary axis accroding to search context
        Parameters:
        pdcSC -
        request -
      • processItemsPagination

        public static void processItemsPagination​(PdcSearchSessionController pdcSC,
                                                  javax.servlet.http.HttpServletRequest request)
      • markResultAsRead

        public static void markResultAsRead​(PdcSearchSessionController pdcSC,
                                            javax.servlet.http.HttpServletRequest request)
        Checks the list of result and marks a result as read
        Parameters:
        pdcSC - PdcSearchSessionController object
        request - HttpRequest object