public class PresentationControllerHtml extends ControllerHtml
Modifier and Type | Class and Description |
---|---|
static class |
PresentationControllerHtml.DataPreviewMode |
protected class |
PresentationControllerHtml.PresentationPageRenderer
IPageRenderer implementation used by PresentationControllerHtml . |
out, request, response, sessionConfig, userConfig
Constructor and Description |
---|
PresentationControllerHtml(HttpServletRequest request,
HttpServletResponse response,
PageContext pageContext) |
Modifier and Type | Method and Description |
---|---|
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.
|
static PageWebResource |
getPageWebResourceBeingRendered(HttpServletRequest request)
Returns the page web resource being rendered in the given request (if any).
|
protected boolean |
hasProcessAction() |
protected void |
prepareForPageRendering(ITransaction portalTransaction)
Performs any initialization required before page rendering.
|
protected ITransaction |
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 |
renderPagePortalSettingsMode(ITransaction portalTransaction)
Renders the page in portal settings mode .
|
protected void |
renderPagePortalStudioMode(ITransaction portalTransaction)
Renders the page in portal studio mode .
|
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 |
setUACompatibleHeader()
Sets a new HTTP Header with the value stored in the property lumis.portal.presentation.X-UA-Compatible.
|
protected void |
setWebResource(ITransaction transaction)
Sets
webResource with the web resource instance for the
current request. |
protected AccessError |
validatePageAccess(ITransaction transaction) |
deleteCookie, getCookie, getRequestMode, getSessionConfig, loadUserInfo, setCookie
public static final String CONTENT_IS_NOT_PUBLISHED_ERROR_REASON
public static final String ERROR_REASON_HEADER_NAME
public static final String ATTRIBUTE_ORIGINAL_URI
protected String browserInfo
protected PageConfig pageConfig
protected PageWebResource webResource
protected ChannelConfig channelConfig
protected String channelPath
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,FileParameter> multiPartFormFileParameters
protected String multiPartFormServiceInterfaceInstance
protected String uploadDir
protected ChannelConfig rootChannel
protected PresentationControllerHtml.DataPreviewMode dataPreviewMode
protected String highlightInterfaceInst
protected PageWebResourceData pageWebResourceData
protected IPageRenderer pageRenderer
protected ReplaceInterfacesStorage replaceInterfacesStorage
protected String executedProcessActionServiceInterfaceInstanceId
protected File rawRequestInputFile
public PresentationControllerHtml(HttpServletRequest request, HttpServletResponse response, PageContext pageContext) throws ControllerException, PortalException
ControllerException
PortalException
public void renderPage() throws ControllerException, PortalException
#renderPageAdminMode
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 ITransaction 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 renderPagePortalStudioMode(ITransaction portalTransaction) throws ControllerException, PortalException
portalTransaction
- ControllerException
PortalException
protected void renderPagePortalSettingsMode(ITransaction portalTransaction) throws ControllerException, PortalException
portalTransaction
- ControllerException
PortalException
protected void renderPagePublisherMode(ITransaction portalTransaction) throws ControllerException, PortalException
portalTransaction
- the current transactionControllerException
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.protected void setUACompatibleHeader() throws PortalException
PortalException
public static PageWebResource getPageWebResourceBeingRendered(HttpServletRequest request)
request
- the request.LumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.