Package com.microstrategy.web.app.beans
Class SimplePageComponentImpl
- java.lang.Object
 - 
- com.microstrategy.utils.serialization.AbstractPersistable
 - 
- com.microstrategy.web.beans.AbstractTransformable
 - 
- com.microstrategy.web.beans.AbstractWebComponent
 - 
- com.microstrategy.web.app.beans.AbstractAppComponent
 - 
- com.microstrategy.web.app.beans.AbstractPersistableAppComponent
 - 
- com.microstrategy.web.app.beans.NewWindowPageComponentImpl
 - 
- com.microstrategy.web.app.beans.SimplePageComponentImpl
 
 
 
 
 
 
 
 
- 
- All Implemented Interfaces:
 EnumWebPersistableState,Persistable,AppComponent,PageComponent,RequestPersistable,Transformable,WebComponent
public class SimplePageComponentImpl extends NewWindowPageComponentImpl
This class inherits all the functionality from thePageComponentImplimplementation, but updates the way the page title is calculated. The title to generate will come directly from the description of the page as specified on the page configuration file, regardless of the bean details included on it.- Since:
 - MicroStrategy Web 8.0.2
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected PageInfo_pageprotected java.lang.String_titleprotected java.lang.String_titleId- 
Fields inherited from class com.microstrategy.web.app.beans.AbstractPersistableAppComponent
STATE_DELIMITOR, STATE_ITEM_SEPARATOR 
- 
Fields inherited from class com.microstrategy.web.beans.AbstractWebComponent
_features, _hasJustOpened 
- 
Fields inherited from class com.microstrategy.web.beans.AbstractTransformable
_beanContext 
- 
Fields inherited from class com.microstrategy.utils.serialization.AbstractPersistable
scriptEndTagEncoder 
- 
Fields inherited from interface com.microstrategy.web.app.beans.AppComponent
COMPONENT_POSITION_NOT_INITIALIZED 
- 
Fields inherited from interface com.microstrategy.utils.serialization.EnumWebPersistableState
BARE_MINIMAL_STATE_INFO, MAXIMAL_STATE_INFO, MINIMAL_STATE_INFO, TYPICAL_STATE_INFO 
- 
Fields inherited from interface com.microstrategy.web.app.beans.PageComponent
REMOVE_PAGE, STORE_PAGE 
 - 
 
- 
Constructor Summary
Constructors Constructor Description SimplePageComponentImpl() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidcleanUp()Performs any necessary clean up tasks before leaving the page.voidcollectData()Triggers execution to the back end no matter whether it is synchronous or asynchronous.voidcollectMinimalData()Triggers execution to the back end no matter whether it is synchronous or asynchronous.protected voiddoFlatState(FlatStateSerializer serializer, int howMuchState, FlatStateTokenizer tokenizer)Proceses the save/restore state opperation of the AppComponentprotected voiddoSaveToPageHistory()Saves the page of to the page history regardless of the status or isTrack()booleanexecuteCollectDataRequiredAddons(WebComponent wc)Checks if the different addons associated with theWebComponentrequire a collect data to be performed.voidexecutePostCollectDataAddons()Executes the post collect data addons on the page in the order in which they appear in the pageconfig file.voidexecutePreCollectDataAddons()Executes the addons on the page in the order in which they appear in the pageconfig file.MarkupOutputgenerateOutput()Generates the output of a bean.ContextMenuManagergetContextMenuManager()Deprecated.This method is not used by the application and will be removed in future versions.intgetDebugFlags()Get the decimal-format debug flags from the pageMarkupOutputgetDebugOut(int debugFlags)Get the Debug Information into the outputAppBeanErrorgetErrorInfo()Returns the lastAppBeanErrorset to this page.intgetExplicitScreenMode()WebFeaturesgetFeaturesManager()Return the WebFeatures implementation associated with this WebComponentjava.lang.StringgetFontName()Returns a string with the name of the fonts, or the list of fonts that a browser should use when rendering the page.java.lang.StringgetFontSize()A string with the base font size to use, the string might contain the type of size (i.e, pt, px, etc.)intgetLastMessageKey()Read message key for active session.java.lang.StringgetLastMsgID()protected java.lang.StringgetPageHistoryKey()protected PageHistoryListgetPageHistoryList()PageInfogetPageInfo()java.lang.StringgetRedirectURL()Returns the URL to be send down to the browser that corresponds to the page.PageResourceManagergetResourceManager()Returns the instance of thePageResourceManagerassociated with the page.intgetResourceManagerMode()Returns the mode of the page manager set up on the page component.intgetScreenMode()Return the current page screen mode.java.lang.StringgetTemplateFileName()Returns the name of a template file to redirectTemplateInfogetTemplateInfo()Convenience method.java.lang.StringgetTitle()Returns the pages's title.java.lang.StringgetTitleDescriptorId()WebIServerSessiongetWebIServerSession()java.lang.StringgetXMLStatusPageName()Returns the name of the page in the Page Framework that will be displayed for the current page and xml status combination.booleanhasBinaryContent()booleanhasXMLStatusPage()Returns true if a page in the Page Framework will be displayed for the current page and xml status combination.booleanisOpen()Returns a boolean value indicating if the instance is marked as opened or closed.booleanisRedirect()Indicates if the page will be sent down as a redirect response (HTTP 302) instead of an ok response (HTTP 200)booleanisRestoredFromPageHistory()booleanisStagePage()Returns true if this page is just a stage page which acts as a bridge between two pages.protected WebEventHandlernewDefaultEventHandler()voidpersistBeans()For each one of the beans defined, saves their State through the StateManager for future use in this page.voidprocessApplyChanges(java.lang.String pageName)The method will be responsible for executing the apply events to those beans that require to so, when the page is about to changevoidsaveLastPage()Saves the information of the last succesful page so it can be restored by the cancel event.voidsaveReturnToPage(int mode)Saves the information of the last visited page so it can be restored by the returnTo event.voidsetChanged(boolean value)Sets the changed state of the componentvoidsetErrorInfo(AppBeanError error)Associates anAppBeanErrorwith the page.voidsetExplicitScreenMode(int screenMode)Use to set the explicit screen mode.voidsetIsRedirect(boolean redirect)Sets the page as a redirect response (HTTP 302) instead of an ok response (HTTP 200)protected voidsetObjectBeanPageTitle(ObjectBean bean)voidsetPageInfo(PageInfo page)This method sets the current Page (the object with the current Page structure)voidsetRestoredFromPageHistory(boolean value)voidsetScreenMode(int screenMode)Set the screenMode of the page.voidsetStagePage(boolean isStagePage)Sets the page as a stage page which acts as a bridge between two pages.voidsetTemplateFileName(java.lang.String value)Sets the name of a template file to redirectvoidsetTitle(java.lang.String title)Define the alias that the page will display when called.voidsetWebIServerSession(WebIServerSession session)Deprecated.The method does not have any effect in the objectvoidswitchPage(java.lang.String pageName, ServletWebComponent servletWebComponent)Replaces the current page in the Servlet with the indicated page- 
Methods inherited from class com.microstrategy.web.app.beans.NewWindowPageComponentImpl
saveToPageHistory 
- 
Methods inherited from class com.microstrategy.web.app.beans.AbstractPersistableAppComponent
addChildStateInfo, isCookieOpen, isSaveStateEnabled, saveState, saveState, saveState, saveState 
- 
Methods inherited from class com.microstrategy.web.app.beans.AbstractAppComponent
addChildStateInfo, compareChildsTargetWithCurrent, createTransformInstance, doCollectData, doCollectMinimalData, getAppContext, getContactInfo, getContainerServices, getDescriptor, getDescriptor, getEventManager, getExtraInput, getExtraUrl, getLeft, getObjectSource, getResultFilterMode, getSession, getTargetBean, getTop, getType, getWebObjectsFactory, getWebObjectsFactory, getXMLStatus, hasChanged, hasTargetBeanChanged, haveChildrenChanged, initComponent, internalCollectData, isDialog, isForcedChildrenStateSaving, isIFrameRequest, isModal, isModalOpen, newDefaultBeanContext, newHiddenInputBuilder, newNamespaceEncoder, newStyleRequestContext, newURIBuilder, setExtraInput, setExtraUrl, setForcedChildrenStateSaving, setHasJustOpened, setIsDialog, setIsModal, setIsOpen, setLeft, setOutputFormat, setTop 
- 
Methods inherited from class com.microstrategy.web.beans.AbstractWebComponent
addChild, addChildStateInfo, addChildStateInfo, addChildStateInfo, addStateInfo, childValues, clearChildren, clearStateCache, getCachedState, getChild, getChild, getChildByClass, getChildByType, getChildCount, getChildrenByClass, getDefaultStateLevel, getMaximumStateLevel, getName, getOutputFormat, getParent, getPath, getPersistMode, getRenderingFilter, getRoot, getTargetBeanPath, getWebEvent, getWebEvent, getWebEventHandler, handleRequest, hasJustOpened, initBean, invalidateChildrenState, isBeanContextEmpty, isChangeComparisonFlagSet, isFeatureAvailable, prepareForReuse, removeChild, removeChild, restoreState, restoreStateFromRequest, restoreStateFromRequest, saveXMLState, saveXMLState, saveXMLState, searchChild, setBeanContext, setBeanContext, setChanged, setDefaultStateLevel, setFeaturesManager, setName, setParent, setPersistMode, setRenderingFilter, setStateCache, setTargetBean, setTargetBeanPath, setWebEventHandler 
- 
Methods inherited from class com.microstrategy.web.beans.AbstractTransformable
addTransform, addTransform, addTransformByClass, addTransformByStyle, addTransformByStyle, clearTransforms, createTransformInstance, getBeanContext, getDefaultTransform, getMessageString, getMyTransformInstances, getTransformInstance, getTransformInstance, getTransformInstances, hasTransform, hasTransform, internalCollectData, internalCollectData, invalidateTransformCache, isTransformSuitable, transform, transform, transform, transform 
- 
Methods inherited from class com.microstrategy.utils.serialization.AbstractPersistable
doFlatState, getStateHandler, isXMLStateZipped, restoreState, restoreXMLState, saveXMLState 
- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface com.microstrategy.web.app.beans.AppComponent
getAppContext, getDescriptor, getDescriptor, getEventManager, getExtraInput, getExtraUrl, getLeft, getResultFilterMode, getTop, isDialog, isForcedChildrenStateSaving, isModal, isModalOpen, setExtraInput, setExtraUrl, setForcedChildrenStateSaving, setHasJustOpened, setIsDialog, setIsModal, setIsOpen, setLeft, setTop 
- 
Methods inherited from interface com.microstrategy.web.app.beans.PageComponent
getContactInfo 
- 
Methods inherited from interface com.microstrategy.utils.serialization.Persistable
restoreState, restoreState 
- 
Methods inherited from interface com.microstrategy.web.beans.RequestPersistable
restoreStateFromRequest, restoreStateFromRequest 
- 
Methods inherited from interface com.microstrategy.web.beans.Transformable
addTransform, addTransformByClass, addTransformByStyle, addTransformByStyle, clearTransforms, getBeanContext, getMessageString, getMyTransformInstances, getTransformInstance, getTransformInstance, getTransformInstances, getType, hasTransform, hasTransform, invalidateTransformCache, setBeanContext, transform, transform 
- 
Methods inherited from interface com.microstrategy.web.beans.WebComponent
addChild, addChildStateInfo, addChildStateInfo, getBeanContext, getChild, getChild, getChildByClass, getChildByType, getChildCount, getChildrenByClass, getDefaultStateLevel, getMaximumStateLevel, getName, getOutputFormat, getParent, getPath, getPersistMode, getRenderingFilter, getRoot, getTargetBean, getTargetBeanPath, getWebEvent, getWebEvent, getWebEventHandler, getXMLStatus, handleRequest, hasChanged, hasJustOpened, initBean, invalidateChildrenState, isBeanContextEmpty, isFeatureAvailable, prepareForReuse, removeChild, removeChild, searchChild, setBeanContext, setBeanContext, setChanged, setDefaultStateLevel, setFeaturesManager, setName, setOutputFormat, setParent, setPersistMode, setRenderingFilter, setTargetBean, setTargetBeanPath, setWebEventHandler 
 - 
 
 - 
 
- 
- 
Field Detail
- 
_page
protected PageInfo _page
 
- 
_title
protected java.lang.String _title
 
- 
_titleId
protected java.lang.String _titleId
 
 - 
 
- 
Method Detail
- 
getTitle
public java.lang.String getTitle()
Returns the pages's title. This method dynamically sets the title of the page, depending on:- If the user has set title using the 
PageComponent.setTitle(String)method, that title is used. - If the first child of the page is of any of the expected types, the title is used based on the bean.
 - If the PageInfo contains a desc-id, the resource associated with the desc-id is used
 - If the PageInfo contains a description, the description is used
 - The name of the page.
 
- 
 The expected bean types are:
 
 - ReportFrameBean: the objectName of the associated ReportBean is used. The title will depend as well in the status of the bean (i.e., if it's processing the name is prefixed with Executing ()
 - DocumentFrameBean: the objectName of the associated DocumentBean is used. The title will depend as well in the status of the bean
 - ObjectBean: it's object name
 - PreferencesBean: the name of the current group set.
 
 
- Specified by:
 getTitlein interfacePageComponent- Returns:
 - The title of this page
 - See Also:
 PageComponent.getTitle()
 - If the user has set title using the 
 
- 
setPageInfo
public void setPageInfo(PageInfo page)
This method sets the current Page (the object with the current Page structure)- Specified by:
 setPageInfoin interfacePageComponent- Parameters:
 page- Page object
 
- 
getPageInfo
public PageInfo getPageInfo()
- Specified by:
 getPageInfoin interfacePageComponent- Returns:
 - the current Page (that holds the Page structure)
 
 
- 
getTemplateInfo
public TemplateInfo getTemplateInfo()
Convenience method. Equivalent to calling:getPageInfo.getTemplateInfoList().getTemplateInfo(getXMLStatus())- Specified by:
 getTemplateInfoin interfacePageComponent- Returns:
 - the current templateinfo to be used by this page
 
 
- 
getWebIServerSession
public WebIServerSession getWebIServerSession()
- Specified by:
 getWebIServerSessionin interfacePageComponent- Returns:
 - The WebIServerSession used by this page. If this page is not using a session, it returns null;
 
 
- 
setWebIServerSession
public void setWebIServerSession(WebIServerSession session)
Deprecated.The method does not have any effect in the object- Specified by:
 setWebIServerSessionin interfacePageComponent- Parameters:
 session- The WebIServerSession to be used by this page.
 
- 
persistBeans
public void persistBeans()
For each one of the beans defined, saves their State through the StateManager for future use in this page. 
- 
generateOutput
public MarkupOutput generateOutput()
Description copied from class:AbstractAppComponentGenerates the output of a bean. It transforms the bean- Specified by:
 generateOutputin interfaceWebComponent- Overrides:
 generateOutputin classAbstractAppComponent- Returns:
 - Null for this component.
 
 
- 
getContextMenuManager
public ContextMenuManager getContextMenuManager()
Deprecated.This method is not used by the application and will be removed in future versions.- Specified by:
 getContextMenuManagerin interfacePageComponent- Returns:
 - The Page's 
ContextMenuManager 
 
- 
setErrorInfo
public void setErrorInfo(AppBeanError error)
Associates anAppBeanErrorwith the page. If an error occurred during the page initialization/execution, this error should be set. It's responsibility of the display later (i.e., the JSP) to display this error to the end user.- Specified by:
 setErrorInfoin interfacePageComponent- Parameters:
 error- The last error on this page.nullif none happened
 
- 
setTitle
public void setTitle(java.lang.String title)
Define the alias that the page will display when called.- Specified by:
 setTitlein interfacePageComponent- Parameters:
 title- String with the title of the page. User setTitle
 
- 
getTitleDescriptorId
public java.lang.String getTitleDescriptorId()
- Since:
 - MicroStrategy Web 8.0.0
 
 
- 
setObjectBeanPageTitle
protected void setObjectBeanPageTitle(ObjectBean bean)
 
- 
executePreCollectDataAddons
public void executePreCollectDataAddons()
Executes the addons on the page in the order in which they appear in the pageconfig file.- Specified by:
 executePreCollectDataAddonsin interfacePageComponent- Since:
 - MicroStrategy Web 7.5.0
 
 
- 
getErrorInfo
public AppBeanError getErrorInfo()
Returns the lastAppBeanErrorset to this page. If no errors have been associated to this page it returns null.- Specified by:
 getErrorInfoin interfacePageComponent- Returns:
 - the 
AppBeanErrorassociated with the execution of the page. 
 
- 
hasBinaryContent
public boolean hasBinaryContent()
- Specified by:
 hasBinaryContentin interfacePageComponent- Returns:
 - true if the page would generate binary content in it's output
 
 
- 
getFontSize
public java.lang.String getFontSize()
A string with the base font size to use, the string might contain the type of size (i.e, pt, px, etc.)- Specified by:
 getFontSizein interfacePageComponent- Returns:
 - a string with size of the font to use
 
 
- 
getFontName
public java.lang.String getFontName()
Returns a string with the name of the fonts, or the list of fonts that a browser should use when rendering the page. This is usually retrieved from user Preferences- Specified by:
 getFontNamein interfacePageComponent- Returns:
 - a String with a comma separated list of the fonts to use in this page.
 
 
- 
setTemplateFileName
public void setTemplateFileName(java.lang.String value)
Sets the name of a template file to redirect- Specified by:
 setTemplateFileNamein interfacePageComponent- Parameters:
 value-Stringvalue indicating the template file name to use.
 
- 
getTemplateFileName
public java.lang.String getTemplateFileName()
Returns the name of a template file to redirect- Specified by:
 getTemplateFileNamein interfacePageComponent- Returns:
 - a file name.
 
 
- 
executeCollectDataRequiredAddons
public boolean executeCollectDataRequiredAddons(WebComponent wc)
Checks if the different addons associated with theWebComponentrequire a collect data to be performed.- Specified by:
 executeCollectDataRequiredAddonsin interfacePageComponent- Parameters:
 wc-WebComponentinstance that will have its addon methods called- Returns:
 booleanvalue indicating if the collectData is required or not- Since:
 - MicroStrategy Web 8.0.0
 
 
- 
executePostCollectDataAddons
public void executePostCollectDataAddons()
Description copied from interface:PageComponentExecutes the post collect data addons on the page in the order in which they appear in the pageconfig file.- Specified by:
 executePostCollectDataAddonsin interfacePageComponent- Since:
 - MicroStrategy Web 7.5.0
 
 
- 
collectData
public void collectData() throws WebBeanExceptionTriggers execution to the back end no matter whether it is synchronous or asynchronous. This implementation also trigger the addons execution before and after the collect data.- Specified by:
 collectDatain interfaceWebComponent- Overrides:
 collectDatain classAbstractAppComponent- Throws:
 WebBeanException- thrown if there is any exception- Since:
 - MicroStrategy Web 8.0.0
 
 
- 
collectMinimalData
public void collectMinimalData() throws WebBeanExceptionDescription copied from class:AbstractAppComponentTriggers execution to the back end no matter whether it is synchronous or asynchronous. If this method fails to collect data, an exception is raised and saved in a WebBeanError instance. IfAbstractAppComponent.isOpen(), this method will first perform aAbstractAppComponent.doCollectMinimalData(), then proceeds to callAbstractAppComponent.collectMinimalData()on all child componentsAbstractWebComponent.getChild(int).- Specified by:
 collectMinimalDatain interfaceWebComponent- Overrides:
 collectMinimalDatain classAbstractAppComponent- Throws:
 WebBeanException- thrown if an error occurs during this operation.
 
- 
saveReturnToPage
public void saveReturnToPage(int mode)
Saves the information of the last visited page so it can be restored by the returnTo event.- Specified by:
 saveReturnToPagein interfacePageComponent- Parameters:
 mode-intvalue indicating the type of action that should be performed about the return to page information. Values includePageComponent.STORE_PAGEandPageComponent.REMOVE_PAGE.- Since:
 - MicroStrategy Web 8.0.0
 
 
- 
doSaveToPageHistory
protected void doSaveToPageHistory()
Saves the page of to the page history regardless of the status or isTrack() 
- 
getPageHistoryKey
protected java.lang.String getPageHistoryKey()
- Returns:
 - a key unique to the page used for the page history.
 
 
- 
getPageHistoryList
protected PageHistoryList getPageHistoryList()
- Returns:
 - the page history list object
 
 
- 
processApplyChanges
public void processApplyChanges(java.lang.String pageName) throws WebExceptionThe method will be responsible for executing the apply events to those beans that require to so, when the page is about to change- Specified by:
 processApplyChangesin interfacePageComponent- Parameters:
 pageName- The name of the new page- Throws:
 WebException- Since:
 - MicroStrategy Web 8.0.0
 
 
- 
setChanged
public void setChanged(boolean value)
Description copied from class:AbstractWebComponentSets the changed state of the component- Specified by:
 setChangedin interfaceWebComponent- Overrides:
 setChangedin classAbstractWebComponent- Parameters:
 value- a boolean value indicating whether the component is changed.- Since:
 - MicroStrategy Web 8.0.0
 
 
- 
saveLastPage
public void saveLastPage()
Description copied from interface:PageComponentSaves the information of the last succesful page so it can be restored by the cancel event.- Specified by:
 saveLastPagein interfacePageComponent
 
- 
isOpen
public boolean isOpen()
Description copied from class:AbstractAppComponentReturns a boolean value indicating if the instance is marked as opened or closed.- Specified by:
 isOpenin interfaceAppComponent- Overrides:
 isOpenin classAbstractAppComponent- Returns:
 booleanvalue ofTrueif the instance is marked as opened, it will returnFalseotherwise. By default, instances not marked as dialogs (isDialog()property returning False) will have a browser setting associated with them that should indicate if they are opened or closed. The parent hierarchy is also tested to be in opened state as well as dependent beans not to be in error.- Since:
 - MicroStrategy Web 8.0.1
 - See Also:
 AppComponent.isOpen()
 
- 
doFlatState
protected void doFlatState(FlatStateSerializer serializer, int howMuchState, FlatStateTokenizer tokenizer)
Description copied from class:AbstractPersistableAppComponentProceses the save/restore state opperation of the AppComponent- Overrides:
 doFlatStatein classAbstractPersistableAppComponent- Parameters:
 serializer- an instance of theFlatStateSerializerobject to usehowMuchState- defines how much information needs to be savedtokenizer- an instance of theFlatStateTokenizerobject to use- Since:
 - MicroStrategy Web 8.1.0
 
 
- 
setScreenMode
public void setScreenMode(int screenMode)
Description copied from interface:PageComponentSet the screenMode of the page. Screen mode can be normal screen mode (screenMode = 1), full screen mode (screenMode = 2), or default to normal screen mode (screenMode = 0).- Specified by:
 setScreenModein interfacePageComponent- Since:
 - MicroStrategy Web 8.1.0
 
 
- 
getScreenMode
public int getScreenMode()
Description copied from interface:PageComponentReturn the current page screen mode.- Specified by:
 getScreenModein interfacePageComponent- Returns:
 - page screen mode.
 - Since:
 - MicroStrategy Web 8.1.0
 
 
- 
setExplicitScreenMode
public void setExplicitScreenMode(int screenMode)
Description copied from interface:PageComponentUse to set the explicit screen mode.- Specified by:
 setExplicitScreenModein interfacePageComponent- Since:
 - MicroStrategy Web 8.1.0
 
 
- 
getExplicitScreenMode
public int getExplicitScreenMode()
- Specified by:
 getExplicitScreenModein interfacePageComponent- Returns:
 - integer value representing the explicit screen mode selected
 - Since:
 - MicroStrategy Web 8.1.0
 
 
- 
getFeaturesManager
public WebFeatures getFeaturesManager()
Description copied from class:AbstractAppComponentReturn the WebFeatures implementation associated with this WebComponent- Specified by:
 getFeaturesManagerin interfaceWebComponent- Overrides:
 getFeaturesManagerin classAbstractAppComponent- Returns:
 - a WebFeatures instance
 - Since:
 - MicroStrategy Web 8.1.0
 
 
- 
newDefaultEventHandler
protected WebEventHandler newDefaultEventHandler()
- Overrides:
 newDefaultEventHandlerin classAbstractWebComponent
 
- 
cleanUp
public void cleanUp()
Description copied from interface:PageComponentPerforms any necessary clean up tasks before leaving the page.
Called when eventEnumServletEvents.WebEventOpenHistoryPageis submited- Specified by:
 cleanUpin interfacePageComponent
 
- 
getResourceManager
public PageResourceManager getResourceManager()
Description copied from interface:PageComponentReturns the instance of thePageResourceManagerassociated with the page. Returnsnullif the resource manager is disabled.- Specified by:
 getResourceManagerin interfacePageComponent- Returns:
 - instance of 
PageResourceManager 
 
- 
getResourceManagerMode
public int getResourceManagerMode()
Description copied from interface:PageComponentReturns the mode of the page manager set up on the page component. The values are defined in thePageResourceManagerclass- Specified by:
 getResourceManagerModein interfacePageComponent- Returns:
 - positive integer when it is enabled.
 
 
- 
isRedirect
public boolean isRedirect()
Description copied from interface:PageComponentIndicates if the page will be sent down as a redirect response (HTTP 302) instead of an ok response (HTTP 200)- Specified by:
 isRedirectin interfacePageComponent- Returns:
 booleanvalue indicating if the the page will be displayed as a redirect (HTTP 302) response
 
- 
setIsRedirect
public void setIsRedirect(boolean redirect)
Description copied from interface:PageComponentSets the page as a redirect response (HTTP 302) instead of an ok response (HTTP 200)- Specified by:
 setIsRedirectin interfacePageComponent- Parameters:
 redirect-booleanvalue indicating if the the page will be displayed as a redirect (HTTP 302) response
 
- 
getRedirectURL
public java.lang.String getRedirectURL()
Description copied from interface:PageComponentReturns the URL to be send down to the browser that corresponds to the page.- Specified by:
 getRedirectURLin interfacePageComponent- Returns:
 - a URL String
 
 
- 
getXMLStatusPageName
public java.lang.String getXMLStatusPageName()
Description copied from interface:PageComponentReturns the name of the page in the Page Framework that will be displayed for the current page and xml status combination. This is defined at the template level in the pageConfig.xml file- Specified by:
 getXMLStatusPageNamein interfacePageComponent- Returns:
 - String. Page Name from pageConfig.xml
 
 
- 
switchPage
public void switchPage(java.lang.String pageName, ServletWebComponent servletWebComponent) throws WebBeanException, WebExceptionDescription copied from interface:PageComponentReplaces the current page in the Servlet with the indicated page- Specified by:
 switchPagein interfacePageComponent- Parameters:
 pageName- . Name of the new page to instantiate- Throws:
 WebBeanExceptionWebException- When it fails to redirects to the target page.
 
- 
hasXMLStatusPage
public boolean hasXMLStatusPage()
Description copied from interface:PageComponentReturns true if a page in the Page Framework will be displayed for the current page and xml status combination. This is defined at the template level in the pageConfig.xml file- Specified by:
 hasXMLStatusPagein interfacePageComponent- Returns:
 - true is a page Name has been defined in pageConfig.xml
 
 
- 
isStagePage
public boolean isStagePage()
Description copied from interface:PageComponentReturns true if this page is just a stage page which acts as a bridge between two pages.- Specified by:
 isStagePagein interfacePageComponent- Returns:
 - true is this page is a stage page.
 
 
- 
setStagePage
public void setStagePage(boolean isStagePage)
Description copied from interface:PageComponentSets the page as a stage page which acts as a bridge between two pages.- Specified by:
 setStagePagein interfacePageComponent- Parameters:
 isStagePage-booleanvalue indicating if the the page is a stagePage.
 
- 
getDebugOut
public MarkupOutput getDebugOut(int debugFlags)
Description copied from interface:PageComponentGet the Debug Information into the output- Specified by:
 getDebugOutin interfacePageComponent- Returns:
 - an instance of 
MarkupOutput. 
 
- 
getDebugFlags
public int getDebugFlags()
Description copied from interface:PageComponentGet the decimal-format debug flags from the page- Specified by:
 getDebugFlagsin interfacePageComponent
 
- 
isRestoredFromPageHistory
public boolean isRestoredFromPageHistory()
- Specified by:
 isRestoredFromPageHistoryin interfacePageComponent
 
- 
setRestoredFromPageHistory
public void setRestoredFromPageHistory(boolean value)
- Specified by:
 setRestoredFromPageHistoryin interfacePageComponent
 
- 
getLastMessageKey
public int getLastMessageKey()
Read message key for active session.- Specified by:
 getLastMessageKeyin interfacePageComponent- Returns:
 - {int}
 
 
- 
getLastMsgID
public java.lang.String getLastMsgID()
- Specified by:
 getLastMsgIDin interfacePageComponent
 
 - 
 
 -