|
||||||||||
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.
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 |
checkForFileUpload(ITransaction transaction)
|
protected boolean |
checkForProtocolRedirect(ITransaction portalTransaction)
|
protected String |
generateAdminClientLocalizer()
|
protected String |
generateSpan(ServiceInterfaceInstanceConfig serviceInterfaceInstConfig)
|
protected String |
generateStyles(ServiceInterfaceInstanceConfig serviceInterfaceInstConfig)
|
protected Document |
getPageLayout(ITransaction portalTransaction)
Returns the current page layout. |
protected boolean |
hasProcessAction()
|
protected boolean |
isChannelInPath(String channelId)
|
protected void |
processActionIfRequired(ITransaction portalTransaction)
Checks to see if an action is to be processed. |
protected void |
renderAdminHeader()
Renders the Header information when the user is in Administration mode. |
protected String |
renderAdministrationMenu(String curChannelId,
int iLevel,
ITransaction transaction)
|
protected void |
renderAdminModePageHeaderScripts()
|
protected void |
renderNavigationPane(ITransaction transaction)
Renders the administration navigation pane |
void |
renderPage()
Renders a portal page. |
protected void |
renderPageAdminMode(ITransaction portalTransaction)
Renders the page in administration mode (F12). |
protected void |
renderPageDocType()
Renders the page DOCTYPE. |
protected void |
renderPageForm()
Every page has a form named LumisPortalForm that stores
global information like the previous parameters, the new parameters. |
protected void |
renderPageHeaderScripts()
Renders the portal client side global variables including g_LumisDisplayMode ,g_LumisChannelId ,
g_LumisPageId ,g_LumisPageConfig . |
protected void |
renderPageLayout(ITransaction portalTransaction)
Reads the layout XML for the page and actually renders the layout and Service Interfaces. |
protected void |
renderPageLinks(ITransaction portalTransaction)
Renders any .css stylesheets specified for the page |
protected void |
renderPageMetaTags(ITransaction portalTransaction)
Render the page meta tags. |
protected void |
renderPageTitle(ITransaction portalTransaction)
Based on the pageConfig definition, the page title is specified. |
protected void |
renderPageUserMode(ITransaction portalTransaction)
Render the page in UserMode. |
protected void |
renderSplitter()
Renders the splitter bar between the work and navigation panes |
protected void |
renderWorkPane(ITransaction portalTransaction)
Renders the right page in administration (F12) mode with the administration menus and the actual page layout |
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 |
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 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 ChannelConfig channelConfig
protected IResource resource
protected ServiceContainer serviceContainer
protected int mode
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[]> responseActionRenderParameters
protected String responseActionServiceInterfaceInstance
protected Map<String,String[]> multiPartFormParameters
protected Map<String,FileParameter> multiPartFormFileParameters
protected String multiPartFormServiceInterfaceInstance
protected String uploadDir
protected List<String> parentChannelIds
protected String rootChannelId
protected boolean pageCacheGeneratorRequest
protected PageCacheConfig pageCacheSearchConfig
protected lumis.portal.presentation.PresentationControllerHtml.DataPreviewMode dataPreviewMode
protected String highlightInterfaceInst
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 setPageMode(ITransaction portalTransaction) throws ControllerException, PortalException
PortalContext.MODE_ADMIN
, or
PortalContext.MODE_USER
. If in PortalContext.MODE_ADMIN,
the mode is stored in a cookie named lumMode
. If not the
cookie is deleted.
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
protected void renderPageDocType() throws IOException
IOException
protected void setBrowserInfo()
portalTransaction
- 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 void renderPageTitle(ITransaction portalTransaction) throws ControllerException, PortalException
portalTransaction
-
ControllerException
PortalException
protected void renderPageMetaTags(ITransaction portalTransaction) throws ControllerException, PortalException
portalTransaction
-
ControllerException
PortalException
protected void renderPageHeaderScripts() throws ControllerException, PortalException
g_LumisDisplayMode
,g_LumisChannelId
,
g_LumisPageId
,g_LumisPageConfig
. The
LumisPortal.js script is included in the page and if specified a client
message is shown to the user after the page is loaded.
ControllerException
PortalException
protected boolean checkForProtocolRedirect(ITransaction portalTransaction) throws ControllerException, PortalException
ControllerException
PortalException
protected void renderAdminModePageHeaderScripts() throws ControllerException, PortalException
ControllerException
PortalException
protected void renderPageLinks(ITransaction portalTransaction) throws ControllerException, PortalException
ControllerException
PortalException
protected void renderPageForm() throws ControllerException, PortalException
LumisPortalForm
that stores
global information like the previous parameters, the new parameters.
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 renderPageLayout(ITransaction portalTransaction) throws ControllerException, PortalException
portalTransaction
-
ControllerException
PortalException
protected Document getPageLayout(ITransaction portalTransaction) throws ControllerException, PortalException
portalTransaction
-
ControllerException
PortalException
protected void renderPageAdminMode(ITransaction portalTransaction) throws ControllerException, PortalException
portalTransaction
-
ControllerException
PortalException
protected void renderAdminHeader() throws ControllerException, PortalException
ControllerException
PortalException
protected void renderSplitter() throws ControllerException, PortalException
ControllerException
PortalException
protected void renderWorkPane(ITransaction portalTransaction) throws ControllerException, PortalException
portalTransaction
-
ControllerException
PortalException
protected void renderNavigationPane(ITransaction transaction) throws ControllerException, PortalException
ControllerException
PortalException
protected String renderAdministrationMenu(String curChannelId, int iLevel, ITransaction transaction) throws PortalException
PortalException
protected String generateStyles(ServiceInterfaceInstanceConfig serviceInterfaceInstConfig) throws ControllerException, PortalException
ControllerException
PortalException
protected String generateSpan(ServiceInterfaceInstanceConfig serviceInterfaceInstConfig) throws ControllerException, PortalException
ControllerException
PortalException
protected String generateAdminClientLocalizer() throws ControllerException, PortalException
ControllerException
PortalException
protected boolean isChannelInPath(String channelId)
protected void checkForFileUpload(ITransaction transaction) throws PortalException
PortalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |