java.lang.Object | ||
↳ | com.microstrategy.utils.config.AbstractConfigurationElement | |
↳ | com.microstrategy.web.app.PageInfo |
A PageInfo class instance represents the information regarding a page that can be handled by the Web Application. All the details required for displaying one page on the application are available from here.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | ATT_ALLOW_CANCEL | ||||||||||
String | ATT_BINARY_DISPLAY | ||||||||||
String | ATT_BINARY_DISPLAY_BEAN | ||||||||||
String | ATT_CACHE_CONTROL | ||||||||||
String | ATT_DEFAULT | ||||||||||
String | ATT_DESCRIPTION | ||||||||||
String | ATT_DESC_ID | ||||||||||
String | ATT_EVENT_HANDLER | ||||||||||
String | ATT_FEATURE_ID | ||||||||||
String | ATT_HELP_TOPIC | ||||||||||
String | ATT_ISPROMPT | ||||||||||
String | ATT_LOGIN_REQUIRED | ||||||||||
String | ATT_NAME | ||||||||||
String | ATT_PAGE_CLASS | ||||||||||
String | ATT_PERSIST_MODE | ||||||||||
String | ATT_SHOW_RECOVER_LINK | Flag indicating whether the page support automatic session recovery feature by displaying a recovery link to last messageID. | |||||||||
String | ATT_TITLE_BEAN | ||||||||||
String | ATT_TRACK | ||||||||||
String | ATT_USE_RESOURCE_MGR | ||||||||||
String | NODE_PAGE |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
PageInfo()
Class constructor.
| |||||||||||
PageInfo(Node root)
Class constructor.
| |||||||||||
PageInfo(Node root, PageInfo defaultPage)
Class constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AddonInfoList |
getAddOns()
Get the list of add-ons related to this page
| ||||||||||
boolean |
getAllowCancel()
Returns if this object be used as destination when a cancel event occurs.
| ||||||||||
String |
getBinaryDisplay()
This method is deprecated.
Use getBinaryDisplayBean instead.
| ||||||||||
String |
getBinaryDisplayBean()
Get the binary display information related with this page
| ||||||||||
String |
getCacheControl()
return the value for the
ATT_CACHE_CONTROL attribute | ||||||||||
String |
getDescription()
Get the String description related with this page
| ||||||||||
String |
getDescriptorID()
Get the descriptor ID related with this page
| ||||||||||
String |
getEventHandlerClass()
Get the name of the class related with the event handler for this page
| ||||||||||
EventMapList |
getEventMapList()
Get the list of event mapping related to this page
| ||||||||||
String |
getFeatureId()
Get the feature Id associated with this page.
| ||||||||||
String |
getHelpTopic()
return the value for the
ATT_HELP_TOPIC attribute | ||||||||||
JavaScriptInfoList |
getJavaScripts()
Get the list of javascripts related to this page
| ||||||||||
String |
getMessage(Messages messages)
Get the page's localized description based on the descriptor information used for initializing
this instance
| ||||||||||
String |
getName()
Get the page name related with this instance
| ||||||||||
String |
getPageComponentClass()
Get the name of the class related with the event handler for this page
| ||||||||||
WebComponent |
getPageInstance(AppContext appContext)
Generate the WebComponent instance related with the page information stored
| ||||||||||
WebComponent |
getPageInstance(AppContext appContext, ComponentInitializationContext initContext)
Generate the WebComponent instance related with the page information stored
| ||||||||||
String |
getPrototypeAttribute()
return the name of the inherited page stored as prototype attribute
| ||||||||||
boolean |
getShowRecoverLink()
Get flag indicating whether this page can support show last message recovery link.
| ||||||||||
TemplateInfoList |
getTemplateInfoList()
Get the
TemplateInfo instance for this page. | ||||||||||
String | getTitleBean() | ||||||||||
String |
getUseResourceManager()
return the value for the
ATT_USE_RESOURCE_MGR attribute | ||||||||||
WebBeanInfoList |
getWebBeanInfoList()
Get the list of beans defined for this page
| ||||||||||
boolean |
isDefault()
Get the isDefault flag for this Page instance.
| ||||||||||
boolean |
isLoginRequired()
Get if login is required for accessing this page
| ||||||||||
boolean |
isPersistable()
Verifies if this page instance is persistable or not.
| ||||||||||
boolean |
isPrompt()
return the value for the
ATT_ISPROMPT attribute | ||||||||||
boolean |
isRelatedToPage(PageInfo page)
Indicated whether the page shares common executable beans with another page.
| ||||||||||
boolean |
isTrack()
Returns if this object should be traced as visited link or not.
| ||||||||||
void |
setAddOns(AddonInfoList addonInfoList)
Set the AddonInfoList on the page to the given list
| ||||||||||
void |
setAllowCancel(boolean allowCancel)
Sets if this object be used as destination when a cancel event occurs.
| ||||||||||
void |
setBinaryDisplay(String binaryDisplayBean)
This method is deprecated.
Use SetBinaryDisplayBean instead.
| ||||||||||
void |
setBinaryDisplayBean(String binaryDisplayBean)
Set the binary display information related with this page
| ||||||||||
void |
setCacheControl(String cacheControl)
set the value for the
ATT_CACHE_CONTROL attribute | ||||||||||
void |
setDescription(String description)
Set the text descriptor of this page to the given parameter
| ||||||||||
void |
setDescriptorID(String descriptorID)
Set the descriptor ID of this page to the given parameter
| ||||||||||
void |
setEventHandlerClass(String eventHandlerClass)
Set the name of the class for the event handler of this page.
| ||||||||||
void |
setEventMapList(EventMapList eventMapList)
Set the list of event mappings on the page
| ||||||||||
void |
setFeatureId(String featureId)
Sets the name of the class for the event handler of this page.
| ||||||||||
void |
setHelpTopic(String helpTopic)
set the value for the
ATT_HELP_TOPIC attribute | ||||||||||
void |
setIsDefault(boolean isDefault)
Set the isDefault flag for this Page instance
| ||||||||||
void |
setIsLoginRequired(boolean loginRequired)
Set if login is required for accessing this page
| ||||||||||
void |
setIsPrompt(Boolean isPrompt)
set the value for the
ATT_ISPROMPT attribute | ||||||||||
void |
setIsTrack(boolean isTrack)
Sets if this object should be traced as visited link or not.
| ||||||||||
void |
setJavaScripts(JavaScriptInfoList javaScriptInfoList)
Set the list of javascripts on the page
| ||||||||||
void |
setName(String pageName)
Set the page's name to the given parameter
| ||||||||||
void |
setPageComponentClass(String className)
Set the name of the class for the component instance of this page.
| ||||||||||
void |
setPersistMode(int persistMode)
Sets the persist mode property of this object.
| ||||||||||
void |
setPrototype(AbstractConfigurationElement prototype)
Sets the prototype object for this instance.
| ||||||||||
void |
setPrototypeAttribute(String prototype)
set the name of the inherited page as prototype attribute
| ||||||||||
void |
setShowRecoverLink(boolean showRecoverLink)
Set flag indicating whether this page can support show last message recovery link.
| ||||||||||
void |
setTemplateInfoList(TemplateInfoList templateInfoList)
Set the list of template infos on the page
| ||||||||||
void | setTitleBean(String value) | ||||||||||
void |
setUseResourceManager(String useResourceMgr)
set the value for the
ATT_USE_RESOURCE_MGR attribute | ||||||||||
void |
setWebBeanInfoList(WebBeanInfoList webBeanInfoList)
Set the WebBeanInfoList on the page to the given list
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String |
getKeyAttribute()
This method must return the attribute that uniquely identifies this element among its siblings;
if no single attribute can be used, return null and override the
getKey and
setKey methods. | ||||||||||
void |
initDefaultAttributes()
This method can be overridden to set default values for attributes.
| ||||||||||
void |
initPrototype(String protoName)
Inits the prototype object of this element.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Flag indicating whether the page support automatic session recovery feature by displaying a recovery link to last messageID.
Class constructor. Initializes a new -empty- instance of the Page class.
Class constructor. Initializes a Page instance based on the information included on the XML Node
root | Node instance representing the Page information. |
---|
Class constructor. Initializes a Page with the information based on the XML Node and the default page instance.
root | Node instance representing the Page information. |
---|---|
defaultPage | Template page for defining the default properties if required |
Get the list of add-ons related to this page
AddonInfoList
containing the list of add-ons defined for this page.
Returns if this object be used as destination when a cancel event occurs.
This method is deprecated.
Use getBinaryDisplayBean instead.
Get the binary display information related with this page
Get the binary display information related with this page
Get the String description related with this page
Get the descriptor ID related with this page
Get the name of the class related with the event handler for this page
Get the list of event mapping related to this page
EventMapList
containing the list of events that need to be mapped.
Get the feature Id associated with this page. The feature Id controls whether the page is visible or not depending on user privileges and application settings.
Get the list of javascripts related to this page
JavaScriptInfoList
containing the list of JavaScripts defined for this page.
Get the page's localized description based on the descriptor information used for initializing this instance
messages | the Messages localization instance. |
---|
Get the page name related with this instance
Get the name of the class related with the event handler for this page
Generate the WebComponent instance related with the page information stored
appContext | the AppContext object with information about the application. |
---|
PageComponent
initialized based on the information on this pageWebAppException | if an error occurs while initialization. |
---|
Generate the WebComponent instance related with the page information stored
appContext | the AppContext object with information about the application. |
---|---|
initContext | the ComponentInitializationContext onject with
initialization information the beans will require to initialize |
PageComponent
initialized based on the information on this pageWebComponent
instance related to the current pageWebAppException | if an error occurs while initialization. |
---|
return the name of the inherited page stored as prototype attribute
Get flag indicating whether this page can support show last message recovery link.
Get the TemplateInfo
instance for this page.
TemplateInfo
instance containing information used by the output page to render.
Usage:
getTemplateInfo() was replaced with getTemplateInfoList().getTemplateInfo(EnumRequestStatus.WebBeanRequestSuccessful)
Get the list of beans defined for this page
WebBeanInfoList
instance containing the beans defined for the page
Get the isDefault flag for this Page instance. The default page
is used by the PageManager
to serve as template when creating other pages.
Get if login is required for accessing this page
Verifies if this page instance is persistable or not.
true
if the page's persist mode property has assigned any valid value
different than EnumBeanPersistMode.BeanPersistModeDefault, otherwise, returns false
.
Indicated whether the page shares common executable beans with another page.
AN executable bean could be a Report Bean, a RW Bean or a Document Bean.
page | a PageInfo instance. |
---|
Returns if this object should be traced as visited link or not. Only tracks are maintained by the application for last visted pages.
Set the AddonInfoList on the page to the given list
addonInfoList | The new AddonInfoList to be set on the page |
---|
Sets if this object be used as destination when a cancel event occurs.
allowCancel | true if if this page can receive the cancel event. |
---|
This method is deprecated.
Use SetBinaryDisplayBean instead.
Set the binary display information related with this page
binaryDisplayBean | the bean name (or bean hierarchy) that will be displayed as binary output |
---|
Set the binary display information related with this page
binaryDisplayBean | the bean name (or bean hierarchy) that will be displayed as binary output |
---|
set the value for the ATT_CACHE_CONTROL
attribute
cacheControl | The values can be "on", "off", "auto" (read from preference) |
---|
Set the text descriptor of this page to the given parameter
description | the description of this page. |
---|
Set the descriptor ID of this page to the given parameter
descriptorID | a descriptorID from the |
---|
Set the name of the class for the event handler of this page.
eventHandlerClass | a fully qualified class name to use as EventHandler for this page. |
---|
Set the list of event mappings on the page
eventMapList | The list of event maps to be set on the page |
---|
Sets the name of the class for the event handler of this page.
featureId | the feature Id associated with this page. |
---|
Set the isDefault flag for this Page instance
isDefault | true/false value |
---|
Set if login is required for accessing this page
loginRequired | true/false value |
---|
set the value for the ATT_ISPROMPT
attribute
isPrompt | The values can be "true", "false" |
---|
Sets if this object should be traced as visited link or not. Only tracks are maintained by the application for last visted pages.
isTrack | true if this page is a track of the application. |
---|
Set the list of javascripts on the page
javaScriptInfoList | The javascripts list to be set on the page |
---|
Set the page's name to the given parameter
pageName | the new name of the page |
---|
Set the name of the class for the component instance of this page.
className | a fully qualified class name to use as component instance for this page. |
---|
Sets the persist mode property of this object. The default assigned to it is to save it.
persistMode | value of the setting to assign. |
---|
Sets the prototype object for this instance. The attributes and elements of the prototype are copied into this instance.
set the name of the inherited page as prototype attribute
prototype | name of the inherited page |
---|
Set flag indicating whether this page can support show last message recovery link.
Set the list of template infos on the page
templateInfoList | The TemplateInfoList to be set on the page |
---|
set the value for the ATT_USE_RESOURCE_MGR
attribute
useResourceMgr | The values can be "on", "off", "renderInline" |
---|
Set the WebBeanInfoList on the page to the given list
webBeanInfoList | The new WebBeanInfoList to be set on the page |
---|
This method must return the attribute that uniquely identifies this element among its siblings;
if no single attribute can be used, return null and override the getKey
and
setKey
methods.
This method can be overridden to set default values for attributes. Simply
extend this method and call setAttribute(String, Object)
Inits the prototype object of this element. This element will inherit all the attribute and child elements from the prototype, but then any values defined through the config-src file or inline take precedence over the prototype. The name attribute represents the name of the prototype as specified in the XML. Typically this is the name of a sibling node in the xml. If name is empty, a different sibling might be used as prototype (like in the case of the PageInfo, which the page marked as isDefault is used as the default prototype). If this object already has a prototype, or if the prototype is not found in the siblings collections this methods throws an Exception.
protoName | Prototype name, typically the name of a sibling node in the xml. |
---|