|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.portal.controller.ControllerHtml lumis.portal.presentation.PresentationControllerHtml
public class PresentationControllerHtml
Entry class for page rendering. Called by main.jsp.
Nested Class Summary | |
---|---|
static class |
PresentationControllerHtml.DataPreviewMode
|
protected class |
PresentationControllerHtml.PresentationPageRenderer
IPageRenderer implementation used by PresentationControllerHtml . |
Fields inherited from class lumis.portal.controller.ControllerHtml |
---|
out, request, response, sessionConfig, userConfig |
Constructor Summary | |
---|---|
PresentationControllerHtml(HttpServletRequest request,
HttpServletResponse response,
PageContext pageContext)
|
Method Summary | |
---|---|
protected void |
addMultiPartFormParameter(String parameterName,
String parameterValue)
Adds a multipart form parameter. |
protected void |
checkForFileUpload(ITransaction transaction)
|
protected boolean |
checkForProtocolRedirect(ITransaction portalTransaction)
|
static void |
forward(String path,
HttpServletRequest request,
HttpServletResponse response)
Forwards a request to the presentation controller. |
protected String |
getGeneratorPageCacheId()
Returns the identifier of the page cache the current request is generating. |
protected boolean |
hasProcessAction()
|
protected void |
prepareForPageRendering(ITransaction portalTransaction)
Performs any initialization required before page rendering. |
protected void |
processActionIfRequired(ITransaction portalTransaction)
Checks to see if an action is to be processed. |
protected void |
renderLayoutFile()
Renders the layout file for the current pageRenderer . |
void |
renderPage()
Renders a portal page. |
protected void |
renderPageAdminMode(ITransaction portalTransaction)
Renders the page in administration mode (F12). |
protected void |
renderPagePublisherMode(ITransaction portalTransaction)
Renders the page in publisher perspective. |
protected void |
renderPageUserMode(ITransaction portalTransaction)
Render the page in UserMode. |
protected void |
setBrowserInfo()
Stores the request header HTTP_USER_AGENT value in a member variable |
protected void |
setDataPreviewMode(ITransaction portalTransaction)
Sets the Page Preview Mode. |
protected void |
setLocale()
If necessary, updates the locale of the current session according to the web resource being accessed. |
protected void |
setPageInfo(ITransaction portalTransaction)
This method calls the presentationManager.getDefaultPage
to calculate the page that needs to be rendered. |
protected void |
setPageMode(ITransaction portalTransaction)
Sets the Page Mode. |
protected void |
setWebResource(ITransaction transaction)
Sets webResource with the web resource instance for the
current request. |
protected AccessError |
validatePageAccess(ITransaction transaction)
|
Methods inherited from class lumis.portal.controller.ControllerHtml |
---|
deleteCookie, getCookie, getRequestMode, getSessionConfig, loadUserInfo, setCookie |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static INavigationLogger navigationLogger
protected String browserInfo
protected PageConfig pageConfig
protected PageWebResource webResource
protected ChannelConfig channelConfig
protected IResource resource
protected ServiceContainer serviceContainer
protected IPortalMode portalMode
protected boolean isSafeRenderMode
protected PortalRequestParameters parameters
protected String previousParametersXmlString
protected String splitterPosition
protected String navigationPaneHidden
protected String processActionRedirectDestination
protected boolean isPrinting
protected Map<String,String[]> multiPartFormParameters
protected Map<String,FileParameter> multiPartFormFileParameters
protected String multiPartFormServiceInterfaceInstance
protected String uploadDir
protected List<String> parentChannelIds
protected String rootChannelId
protected PresentationControllerHtml.DataPreviewMode dataPreviewMode
protected String highlightInterfaceInst
protected PageWebResourceData pageWebResourceData
protected IPageRenderer pageRenderer
protected Map<String,String> replaceInterfacesMap
protected String executedProcessActionServiceInterfaceInstanceId
protected File rawRequestInputFile
Constructor Detail |
---|
public PresentationControllerHtml(HttpServletRequest request, HttpServletResponse response, PageContext pageContext) throws ControllerException, PortalException
ControllerException
PortalException
Method Detail |
---|
public void renderPage() throws ControllerException, PortalException
renderPageAdminMode(lumis.util.ITransaction)
or
renderPage()
ControllerException
PortalException
protected void prepareForPageRendering(ITransaction portalTransaction) throws PortalException
portalTransaction
-
PortalException
protected void setPageMode(ITransaction portalTransaction) throws ControllerException, PortalException
PortalContext.MODE_ADMIN
, or
PortalContext.MODE_USER
.
portalTransaction
-
ControllerException
PortalException
protected void setDataPreviewMode(ITransaction portalTransaction) throws ControllerException, PortalException
true
, or false
.
portalTransaction
-
ControllerException
PortalException
protected void renderPageUserMode(ITransaction portalTransaction) throws ControllerException, PortalException
portalTransaction
-
ControllerException
PortalException
public static void forward(String path, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
path
- the path for the forward.request
- the request.response
- the response.
ServletException
IOException
ServletRequest.getRequestDispatcher(String)
,
RequestDispatcher.forward(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
protected void setBrowserInfo()
portalTransaction
- protected void setWebResource(ITransaction transaction) throws PortalException
webResource
with the web resource instance for the
current request.
transaction
- transaction for persistence access.
PortalException
protected void setLocale()
protected void setPageInfo(ITransaction portalTransaction) throws ControllerException, PortalException
presentationManager.getDefaultPage
to calculate the page that needs to be rendered. If the presentation
manager could not calculate the page, the user is redirected to
lumisadmin.jsp page. If the destination page is the framework blank page,
the mode of the page is forced to PortalContext.MODE_USER since the blank
page should never be modified in terms of layout etc. If runtime
interface and service instance is specified, the appropriate values are
added to the page config.
portalTransaction
-
ControllerException
PortalException
protected AccessError validatePageAccess(ITransaction transaction) throws PortalException
PortalException
protected boolean checkForProtocolRedirect(ITransaction portalTransaction) throws ControllerException, PortalException
ControllerException
PortalException
protected void processActionIfRequired(ITransaction portalTransaction) throws ControllerException, PortalException
PageConfig.PAGE_PARAMETER_PROCESS_ACTION
has the value of 1. Once the ProcessAction is handled, the returned
render parameters are remembered to pass on to the interface instance
that initiated the process action. If no render parameters are returned,
the interface instance that initiated the process action will not receive
any parameters for its render method.
portalTransaction
-
ControllerException
PortalException
protected boolean hasProcessAction()
protected void renderPageAdminMode(ITransaction portalTransaction) throws ControllerException, PortalException
portalTransaction
-
ControllerException
PortalException
protected void renderPagePublisherMode(ITransaction portalTransaction) throws ControllerException, PortalException
portalTransaction
- the current transaction
ControllerException
PortalException
protected void renderLayoutFile() throws ServletException, IOException
pageRenderer
.
ServletException
- if an exception is thrown during the layout file
processing.
IOException
- if an exception is thrown during the output to the
response.protected String getGeneratorPageCacheId()
null
if the current
request is not for generating a page cache.protected void checkForFileUpload(ITransaction transaction) throws PortalException
PortalException
protected void addMultiPartFormParameter(String parameterName, String parameterValue)
parameterName
- The name of the parameter.parameterValue
- The value of the parameter.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |