com.stratelia.silverpeas.pdcPeas.servlets
Class PdcSearchRequestRouterHelper

java.lang.Object
  extended by com.stratelia.silverpeas.pdcPeas.servlets.PdcSearchRequestRouterHelper

public class PdcSearchRequestRouterHelper
extends Object


Method Summary
static String getLastValueOf(String path)
           
static void markResultAsRead(PdcSearchSessionController pdcSC, javax.servlet.http.HttpServletRequest request)
          Checks the list of result and marks a result as read
static void processItemsPagination(String function, PdcSearchSessionController pdcSC, javax.servlet.http.HttpServletRequest request)
           
static void processSearchDomains(PdcSearchSessionController pdcSC, javax.servlet.http.HttpServletRequest request, String currentDomain)
           
static QueryParameters saveFavoriteRequest(PdcSearchSessionController pdcSC, InterestCenter favoriteRequest)
           
static QueryParameters saveFavoriteRequestAndSetPdcInfo(PdcSearchSessionController pdcSC, javax.servlet.http.HttpServletRequest request)
           
static QueryParameters saveFavoriteRequestAndSetPdcInfo(PdcSearchSessionController pdcSC, javax.servlet.http.HttpServletRequest request, String favoriteRequestId)
           
static QueryParameters saveUserChoices(PdcSearchSessionController pdcSC, javax.servlet.http.HttpServletRequest request)
          Build information for the home jsp for the advancedsearch plain text.
static QueryParameters saveUserChoicesAndSetPdcInfo(PdcSearchSessionController pdcSC, javax.servlet.http.HttpServletRequest request, boolean setPdcInfo)
          Retrieve query data from current request and prepare result view.
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.
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
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
static void setUserChoices(javax.servlet.http.HttpServletRequest request, PdcSearchSessionController pdcSC)
          Get user choices from the PdcSearchSessionController and put it in the HTTP request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

saveUserChoicesAndSetPdcInfo

public static QueryParameters saveUserChoicesAndSetPdcInfo(PdcSearchSessionController pdcSC,
                                                           javax.servlet.http.HttpServletRequest request,
                                                           boolean setPdcInfo)
                                                    throws Exception
Retrieve query data from current request and prepare result view.

Parameters:
pdcSC -
request -
setPdcInfo -
Returns:
a QueryParameters
Throws:
Exception

saveFavoriteRequestAndSetPdcInfo

public static QueryParameters saveFavoriteRequestAndSetPdcInfo(PdcSearchSessionController pdcSC,
                                                               javax.servlet.http.HttpServletRequest request)
                                                        throws Exception
Throws:
Exception

saveFavoriteRequestAndSetPdcInfo

public static QueryParameters saveFavoriteRequestAndSetPdcInfo(PdcSearchSessionController pdcSC,
                                                               javax.servlet.http.HttpServletRequest request,
                                                               String favoriteRequestId)
                                                        throws Exception
Throws:
Exception

saveFavoriteRequest

public static QueryParameters saveFavoriteRequest(PdcSearchSessionController pdcSC,
                                                  InterestCenter favoriteRequest)
                                           throws Exception
Throws:
Exception

saveUserChoices

public static QueryParameters saveUserChoices(PdcSearchSessionController pdcSC,
                                              javax.servlet.http.HttpServletRequest request)
                                       throws Exception
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)
                           throws Exception
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)
                                        throws Exception
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)
                             throws Exception
put in the request the primary axis and eventually the secondary axis accroding to search context

Parameters:
pdcSC -
request -
Throws:
Exception

setContext

public static void setContext(PdcSearchSessionController pdcSC,
                              javax.servlet.http.HttpServletRequest request)
                       throws Exception
put in the request the primary axis and eventually the secondary axis accroding to search context

Parameters:
pdcSC -
request -
Throws:
Exception

getLastValueOf

public static String getLastValueOf(String path)

processItemsPagination

public static void processItemsPagination(String function,
                                          PdcSearchSessionController pdcSC,
                                          javax.servlet.http.HttpServletRequest request)

processSearchDomains

public static void processSearchDomains(PdcSearchSessionController pdcSC,
                                        javax.servlet.http.HttpServletRequest request,
                                        String currentDomain)

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


Copyright © 2016 Silverpeas. All Rights Reserved.