Class PdcSearchRequestRouterHelper


  • public class PdcSearchRequestRouterHelper
    extends Object
    • Method Detail

      • saveUserChoicesAndSetPdcInfo

        public static void saveUserChoicesAndSetPdcInfo​(PdcSearchSessionController pdcSC,
                                                        javax.servlet.http.HttpServletRequest request,
                                                        boolean setPdcInfo)
      • saveFavoriteRequestAndSetPdcInfo

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

        public static void saveFavoriteRequestAndSetPdcInfo​(PdcSearchSessionController pdcSC,
                                                            javax.servlet.http.HttpServletRequest request,
                                                            String favoriteRequestId)
      • saveUserChoices

        public static void 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
      • setUserChoices

        public static void setUserChoices​(javax.servlet.http.HttpServletRequest request,
                                          PdcSearchSessionController pdcSC)
      • 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
      • setPertinentAxis

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

        public static void setContext​(PdcSearchSessionController pdcSC,
                                      javax.servlet.http.HttpServletRequest 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