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 void
saveFavoriteRequest(PdcSearchSessionController pdcSC, Interests favoriteRequest)
static void
saveFavoriteRequestAndSetPdcInfo(PdcSearchSessionController pdcSC, javax.servlet.http.HttpServletRequest request)
static void
saveFavoriteRequestAndSetPdcInfo(PdcSearchSessionController pdcSC, javax.servlet.http.HttpServletRequest request, String favoriteRequestId)
static void
saveUserChoices(PdcSearchSessionController pdcSC, javax.servlet.http.HttpServletRequest request)
Build information for the home jsp for the advancedsearch plain text.static void
saveUserChoicesAndSetPdcInfo(PdcSearchSessionController pdcSC, javax.servlet.http.HttpServletRequest request, boolean setPdcInfo)
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)
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 contextstatic void
setUserChoices(javax.servlet.http.HttpServletRequest request, PdcSearchSessionController pdcSC)
-
-
-
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)
-
saveFavoriteRequest
public static void saveFavoriteRequest(PdcSearchSessionController pdcSC, Interests favoriteRequest)
-
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 pdcSessionControllerrequest
- : 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 pdcSessionControllerrequest
- HTTP servlet requestsetSpacesAndComponents
- 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 controllerrequest
- 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 objectrequest
- HttpRequest object
-
-