Package org.silverpeas.web.pdc.servlets
Class PdcSearchRequestRouterHelper
- java.lang.Object
-
- org.silverpeas.web.pdc.servlets.PdcSearchRequestRouterHelper
-
public class PdcSearchRequestRouterHelper extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
markResultAsRead(PdcSearchSessionController pdcSC, javax.servlet.http.HttpServletRequest request)
Checks the list of result and marks a result as readstatic void
processItemsPagination(PdcSearchSessionController pdcSC, javax.servlet.http.HttpServletRequest request)
static QueryParameters
saveFavoriteRequest(PdcSearchSessionController pdcSC, Interests 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 contextstatic void
setPertinentAxis(PdcSearchSessionController pdcSC, javax.servlet.http.HttpServletRequest request)
put in the request the primary axis and eventually the secondary axis accroding to search contextstatic void
setUserChoices(javax.servlet.http.HttpServletRequest request, PdcSearchSessionController pdcSC)
Get user choices from the PdcSearchSessionController and put it in the HTTP request.
-
-
-
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
-
saveFavoriteRequestAndSetPdcInfo
public static QueryParameters saveFavoriteRequestAndSetPdcInfo(PdcSearchSessionController pdcSC, javax.servlet.http.HttpServletRequest request)
-
saveFavoriteRequestAndSetPdcInfo
public static QueryParameters saveFavoriteRequestAndSetPdcInfo(PdcSearchSessionController pdcSC, javax.servlet.http.HttpServletRequest request, String favoriteRequestId)
-
saveFavoriteRequest
public static QueryParameters saveFavoriteRequest(PdcSearchSessionController pdcSC, Interests favoriteRequest)
-
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 pdcSessionControllerrequest
- : 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 pdcSessionControllerrequest
- HTTP servlet requestsetSpacesAndComponents
- 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 objectrequest
- HttpRequest object
-
-