Class JobStartPagePeasRequestRouter
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.silverpeas.core.web.mvc.webcomponent.SilverpeasHttpServlet
-
- org.silverpeas.core.web.mvc.webcomponent.SilverpeasAuthenticatedHttpServlet
-
- org.silverpeas.core.web.mvc.route.ComponentRequestRouter<T>
-
- org.silverpeas.core.web.mvc.route.AdminComponentRequestRouter<JobStartPagePeasSessionController>
-
- org.silverpeas.web.jobstartpage.servlets.JobStartPagePeasRequestRouter
-
- All Implemented Interfaces:
Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
public class JobStartPagePeasRequestRouter extends AdminComponentRequestRouter<JobStartPagePeasSessionController>
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.silverpeas.core.web.mvc.webcomponent.SilverpeasHttpServlet
SilverpeasHttpServlet.HttpError, SilverpeasHttpServlet.UserSessionStatus
-
-
Constructor Summary
Constructors Constructor Description JobStartPagePeasRequestRouter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JobStartPagePeasSessionController
createComponentSessionController(MainSessionController mainSessionCtrl, ComponentContext componentContext)
String
getAdminDestination(String function, JobStartPagePeasSessionController jobStartPageSC, HttpRequest request)
This method has to be implemented by the component request rooter it has to compute a destination pageString
getDestinationComponent(String function, JobStartPagePeasSessionController jobStartPageSC, HttpRequest request)
String
getDestinationNavBar(String function, JobStartPagePeasSessionController jobStartPageSC, HttpRequest request)
String
getDestinationSpace(String function, JobStartPagePeasSessionController jobStartPageSC, HttpRequest request)
String
getDestinationStartPage(String function, JobStartPagePeasSessionController jobStartPageSC, HttpRequest request)
Handle the homepage of current space.String
getSessionControlBeanName()
This method has to be implemented in the component request rooter class. returns the session control bean name to be put in the request object ex : for almanach, returns "almanach"protected void
refreshNavBar(JobStartPagePeasSessionController jobStartPageSC, javax.servlet.http.HttpServletRequest request)
-
Methods inherited from class org.silverpeas.core.web.mvc.route.AdminComponentRequestRouter
getDestination
-
Methods inherited from class org.silverpeas.core.web.mvc.route.ComponentRequestRouter
checkUserAuthorization, doGet, doPost, emptyJsonResponse, getComponentId, getOrganizationController, hasTheSessionSecurityTokenToBeRenewed, sendJson, updateSessionManagement
-
Methods inherited from class org.silverpeas.core.web.mvc.webcomponent.SilverpeasAuthenticatedHttpServlet
getMainSessionController, getSessionInfo, getSynchronizerTokenService, renewSessionSecurityToken, service, throwUserSessionExpiration
-
Methods inherited from class org.silverpeas.core.web.mvc.webcomponent.SilverpeasHttpServlet
existOpenedUserSession, forbidden, notFound, preconditionFailed, redirectOrForwardService, sendError, sendError, throwHttpForbiddenError, throwHttpForbiddenError, throwHttpNotFoundError, throwHttpNotFoundError, throwHttpPreconditionFailedError, throwHttpPreconditionFailedError
-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service
-
-
-
-
Method Detail
-
createComponentSessionController
public JobStartPagePeasSessionController createComponentSessionController(MainSessionController mainSessionCtrl, ComponentContext componentContext)
- Specified by:
createComponentSessionController
in classComponentRequestRouter<JobStartPagePeasSessionController>
-
getSessionControlBeanName
public String getSessionControlBeanName()
This method has to be implemented in the component request rooter class. returns the session control bean name to be put in the request object ex : for almanach, returns "almanach"- Specified by:
getSessionControlBeanName
in classComponentRequestRouter<JobStartPagePeasSessionController>
- Returns:
-
getDestinationStartPage
public String getDestinationStartPage(String function, JobStartPagePeasSessionController jobStartPageSC, HttpRequest request) throws ClipboardException
Handle the homepage of current space.- Parameters:
function
- The entering request function (ex : "Main.jsp")jobStartPageSC
- the controllerrequest
- the incoming request- Returns:
- the destination if any, null otherwise.
- Throws:
ClipboardException
- on clipboard technical error.
-
getDestinationNavBar
public String getDestinationNavBar(String function, JobStartPagePeasSessionController jobStartPageSC, HttpRequest request)
- Parameters:
function
-jobStartPageSC
-request
-- Returns:
-
getDestinationComponent
public String getDestinationComponent(String function, JobStartPagePeasSessionController jobStartPageSC, HttpRequest request) throws AdminException
- Parameters:
function
-jobStartPageSC
-request
-- Returns:
- Throws:
AdminException
-
getDestinationSpace
public String getDestinationSpace(String function, JobStartPagePeasSessionController jobStartPageSC, HttpRequest request) throws Exception
- Throws:
Exception
-
getAdminDestination
public String getAdminDestination(String function, JobStartPagePeasSessionController jobStartPageSC, HttpRequest request)
This method has to be implemented by the component request rooter it has to compute a destination page- Specified by:
getAdminDestination
in classAdminComponentRequestRouter<JobStartPagePeasSessionController>
- Parameters:
function
- The entering request function (ex : "Main.jsp")jobStartPageSC
- the controllerrequest
- the incoming request- Returns:
- The complete destination URL for a forward (ex : "/almanach/jsp/almanach.jsp?flag=user")
-
refreshNavBar
protected void refreshNavBar(JobStartPagePeasSessionController jobStartPageSC, javax.servlet.http.HttpServletRequest request)
-
-