Class MobileChunkedAppContext
- java.lang.Object
-
- com.microstrategy.web.app.transforms.MobileChunkedAppContext
-
- All Implemented Interfaces:
AppContext
,BeanContext
public class MobileChunkedAppContext extends java.lang.Object implements AppContext
- Since:
- MicroStrategy Web 8.1.2
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MobileChunkedAppContext.MobileElementIDMap
static class
MobileChunkedAppContext.MobileObjectRefIDMap
static class
MobileChunkedAppContext.MobilePageIndexMap
static class
MobileChunkedAppContext.MobileStyleManager
-
Field Summary
-
Fields inherited from interface com.microstrategy.web.app.beans.AppContext
CONFIG_ADMIN_SERVERS, CONFIG_ADMIN_SERVLET_NAME, CONFIG_APP_BEANS_EVENTS, CONFIG_BLOCK_LIBRARY, CONFIG_CACHE_SETTINGS_FILE, CONFIG_CACHE_SETTINGS_PROP, CONFIG_CONFIG_FILES_DEFAULT_LOCATION, CONFIG_CONTROLLER_CLASS, CONFIG_DEBUG_FLAGS_MASK, CONFIG_DEFAULT_BLANK_ANALYSIS_ID, CONFIG_DEFAULT_BLANK_HTML5_DASHBOARD_ID, CONFIG_DEFAULT_BLANK_REPORT_ID, CONFIG_DEFAULT_BLANK_REPORT_WRITING_ID, CONFIG_DEFAULT_BLANK_XDA_REPORT_ID, CONFIG_DEFAULT_EVENT, CONFIG_DEFAULT_PDF_IMAGES_FOLDER, CONFIG_DISABLE_MAX_STATE_COMPRESSION, CONFIG_EXCEL_DIRECT_EXPORT, CONFIG_EXTERNAL_SECURITY_CLASS, CONFIG_FORMAT_PROPERTIES_MAPPING, CONFIG_FORMATTER_FILE, CONFIG_GLOBAL_FEATURES_CLASS, CONFIG_IFRAME_JSP, CONFIG_IFRAME_RESOURCE, CONFIG_IPAADMIN_FILE, CONFIG_IPAENV_FILE, CONFIG_ISERVER_POLLING_FREQUENCY, CONFIG_LOG_FILE_MB_SIZE_LIMIT, CONFIG_LOG_FILES_DEFAULT_LOCATION, CONFIG_LOG_PROPERTIES_FILE, CONFIG_MD_BEANS_EVENTS, CONFIG_MESSAGES, CONFIG_OBJBROWSER_FOLDERLINKS_FILE, CONFIG_PAGE_MANAGER, CONFIG_PAGE_MANAGER_RESOURCE, CONFIG_PREFERENCES, CONFIG_PREFERENCES_GROUPS, CONFIG_PREFERENCES_GROUPS_RESOURCE, CONFIG_REFINE_SSL_TRUSTSTORE, CONFIG_REFINE_SSL_TRUSTSTORE_PWD, CONFIG_RELOAD_CONFIG, CONFIG_SERVER_ADMIN_SERVLET_NAME, CONFIG_SERVER_TYPE, CONFIG_SERVLET_COMPONENT_NAME, CONFIG_SERVLET_EVENT_HANDLER_NAME, CONFIG_SERVLET_NAME, CONFIG_SERVLET_PATH, CONFIG_SSL_KEYSTORE, CONFIG_SSL_KEYSTORE_PWD, CONFIG_SSL_TRUSTSTORE, CONFIG_SSL_TRUSTSTORE_PWD, CONFIG_STYLE_CATALOG, CONFIG_STYLE_CATALOG_RESOURCE, CONFIG_SUBSCRIPTION_API_RESOURCE, CONFIG_SUBSCRIPTION_API_TEMPLATE_RESOURCE, CONFIG_SUBSCRIPTION_ENGINE_RESOURCE, CONFIG_SUBSCRIPTION_FOLDER, CONFIG_SUBSCRIPTION_PORTAL_RESOURCE, CONFIG_SYS_DEFINITONS_RESOURCE, CONFIG_SYS_PREFERENCE_DEFINITION, CONFIG_SYS_SERVER_DEFAULTS, CONFIG_SYS_SERVER_DEFAULTS_RESOURCE, CONFIG_WEB_SERVLET_NAME, CONFIG_WEBAPIERRORS_CLASSPATH, CONFIG_WEBAPIERRORS_FOLDER, CONFIG_WIDGET_LIBRARY, CONFIG_XHR_JSP, CUSTOM_HELP_RESOUCRCES_FOLDER, CUSTOM_RESOURCES_FOLDER, DEFAULT_EVENT_XML, DISPLAY_MODE_HTML, DISPLAY_MODE_JSON, HELP_RESOURCES_FOLDER, IMAGE_RESOURCES_FOLDER, JAVASCRIPT_RESOURCES_FOLDER, JSP_RESOURCES_FOLDER, RESOURCE_FOLDER_PREFIX, STYLE_DB_RESOURCES_FOLDER, STYLE_FIXED_FONT_DB_RESOURCES_FOLDER, STYLE_FIXED_FONT_RESOURCES_FOLDER, STYLE_RESOURCES_FOLDER
-
-
Constructor Summary
Constructors Constructor Description MobileChunkedAppContext(BeanContext bc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispenseFile(java.lang.String realPath, java.lang.String resourcePath)
Dispenses the master copy of the a resource file located in the classpath into the file indicated in the realpathWebAppSessionManager
getAppSessionManager()
This method returns the Application Session Manager associated with this application context.java.lang.String
getBrowserHeaderLocaleId()
This method will extract from request header a value corresponding to browser's locale info.java.lang.String
getBrowserHeaderLocaleId(java.util.Locale defaultLocale)
This method will extract from request header a value corresponding to browser's locale info.java.lang.String
getBrowserLocaleId()
This method returns the Locale Id defined in web preferences as Language.java.lang.String
getBrowserServerLocaleId()
This method returns the Locale associated with Date and Number format locale web preference.If default, it'll return browser's locale Id instead.BrowserSettings
getBrowserSettings()
This method returns the BrowserSettings object associated with this application context.java.lang.String
getConfigParameter(java.lang.String param)
Returns the value of a configuration parameter.java.lang.String
getConfigServletPath()
Get the full application path to the Servlet as defined in the configuration fileContainerServices
getContainerServices()
This method gets the Container Services object associated with this application context.ContextMenuManager
getContextMenuManager(java.lang.String contextMenuName)
Returns an instance of aContextMenuManager
object.PageComponent
getCurrentPage()
Returns the name of the current page associated with the context.org.w3c.dom.Document
getDocumentFromFileResource(java.lang.String filePath)
This method returns a DOM Document from a file resource.MobileChunkedAppContext.MobileElementIDMap
getElementIDMap()
EventHandlersCatalog
getEventHandlersCatalog()
Returns the current instance ofEventHandlersCatalog
associated with the current BeanContext.ExternalSecurity
getExternalSecurity()
This method returns the External Security instance associated with this application context.WebFeatures
getFeatures()
This method gets the Features object associated with this application context.java.lang.String
getFileContentsAsString(java.lang.String filePath)
Returns the contents of the resource file as string from the file path provided.java.lang.String
getFileContentsAsString(java.lang.String filePath, java.lang.String encoding)
Returns the contents of the resource file as string from the file path provided using the named character encoding.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.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.)int
getMaxResultSize()
Messages
getMessages()
Returns theMessages
instance from this BeanContext.MessagesManager
getMessagesManager()
Returns an instance ofMessagesManager
associated with the current BeanContext.MobileChunkedAppContext.MobileStyleManager
getMobileStyleManager()
MobileChunkedAppContext.MobileObjectRefIDMap
getObjectMap()
PageManager
getPageManager()
This method gets the PageManager object associated with this application context.MobileChunkedAppContext.MobilePageIndexMap
getPageMap()
Preferences
getPreferences()
This method returns the Preferences object associated with this application context.java.lang.String
getRealPath(java.lang.String filePath)
Return the absolute path of th erelative path providedRequestKeys
getRequestKeys()
This method gets the Request Keys object associated with this application context.java.lang.String
getResourceFileAsString(java.lang.String filePath, java.lang.String resourceFileName)
Returns the contents of the resource file as string from the file path provided.java.lang.String
getResourcesFolder(java.lang.String folderType)
Return the path to the resources folder indicated on the configuration file, corresponding to the type sent as parameter.java.lang.String
getRootName()
Returns the name of the root component In the case of the jsp/servlet enviroment,it will be the name of the main servlet component This corresponds to the value of the parameterAppContext.CONFIG_SERVLET_NAME
java.lang.String
getServletPath()
Get the full application path to the Servlet.SessionManager
getSessionManager()
This method returns the Session Manager associated with this application context.StyleCatalog
getStyleCatalog()
Returns an instance ofStyleCatalog
associated with the current BeanContext.java.lang.Exception
getTransformException()
WebSessionManager
getWebSessionManager()
This method returns the Application Session Manager associated with this application context.boolean
isDoubleByte()
Returns true if the locale is a double byte language like Chinese, Korean or Japenese.boolean
maxResultSizeExceeded()
void
putConfigParameter(java.lang.String key, java.lang.String value)
Appends a Configuration Parameter to the Configuration Parameters list.void
setAppSessionManager(WebAppSessionManager sm)
This method sets the Application Session Manager associated with this application context.void
setBrowserSettings(BrowserSettings bs)
This method sets the BrowserSettings object to be associated with this application context.void
setConfigServletPath(java.lang.String configServletPath)
Define the full application path to the Servlet as defined in the configuration file.void
setContainerServices(ContainerServices cs)
This method sets the Container Services object associated with this application context.void
setCurrentPage(PageComponent page)
Set a page as the current page of this context.void
setDefaultEvent(int eventID)
Sets the eventTD provided as the default event of the applicationvoid
setEventHandlersCatalog(EventHandlersCatalog catalog)
Sets theEventHandlersCatalog
instances associated with the current BeanContext.void
setExternalSecurity(ExternalSecurity es)
This method sets the External Security associated with this application context.void
setFeatures(WebFeatures features)
This method sets the Features object associated with this application context.void
setMaxResultSize(int _maxResultSize)
void
setMaxResultSizeExceeded(boolean _maxResultSizeExceeded)
void
setMessages(Messages msgs)
Sets aMessages
instance to this BeanContext.void
setMessagesManager(MessagesManager msgsMgr)
Sets an instance ofMessagesManager
on the current BeanContext.void
setPageManager(PageManager pageManager)
This method sets the PageManager object associated with this application context.void
setPreferences(Preferences prefs)
This method sets a Preferences object for use with this application context.void
setRequestKeys(RequestKeys hrk)
This method sets the Request Keys object to be associated with this application context.void
setServletPath(java.lang.String servletPath)
Define the full application path to the Servlet.void
setSessionManager(SessionManager sm)
This method sets the Session Manager associated with this application context.void
setStyleCatalog(StyleCatalog sc)
Sets an instance ofStyleCatalog
on the current BeanContext.void
setTransformException(java.lang.Exception e)
-
-
-
Constructor Detail
-
MobileChunkedAppContext
public MobileChunkedAppContext(BeanContext bc)
-
-
Method Detail
-
dispenseFile
public void dispenseFile(java.lang.String realPath, java.lang.String resourcePath)
Description copied from interface:AppContext
Dispenses the master copy of the a resource file located in the classpath into the file indicated in the realpath- Specified by:
dispenseFile
in interfaceAppContext
- Parameters:
realPath
- the destination of the resource file to dispenseresourcePath
- the resource file to dispense.
-
getAppSessionManager
public WebAppSessionManager getAppSessionManager()
Description copied from interface:AppContext
This method returns the Application Session Manager associated with this application context. If not explicitly set through theAppContext.setAppSessionManager(com.microstrategy.web.app.WebAppSessionManager)
method, a new one is automatically created.
Note that this method fully replaces the getSessionManager method.- Specified by:
getAppSessionManager
in interfaceAppContext
- Returns:
- A
WebAppSessionManager
, representing the session manager associated with the AppContext object.
-
getBrowserHeaderLocaleId
public java.lang.String getBrowserHeaderLocaleId()
Description copied from interface:AppContext
This method will extract from request header a value corresponding to browser's locale info. This info will be resolved in order to return current browser's LCID. This is equivalent toLocaleInfo.findBestSupportedLocale(Locale, Locale[])
with available display locales fromWebLocalizationManager.getAvailableLocales(int)
forEnumLocalizationType.TYPE_WEB_SUPPORTED
. Defaults to LCID of 1033.- Specified by:
getBrowserHeaderLocaleId
in interfaceAppContext
- Returns:
- a
String
with the LCID
-
getBrowserLocaleId
public java.lang.String getBrowserLocaleId()
Description copied from interface:AppContext
This method returns the Locale Id defined in web preferences as Language. If default, it'll return browser's locale Id instead.- Specified by:
getBrowserLocaleId
in interfaceAppContext
- Returns:
- a
String
with the Locale ID.
-
getBrowserServerLocaleId
public java.lang.String getBrowserServerLocaleId()
Description copied from interface:AppContext
This method returns the Locale associated with Date and Number format locale web preference.If default, it'll return browser's locale Id instead.- Specified by:
getBrowserServerLocaleId
in interfaceAppContext
- Returns:
- a
String
with the Locale ID.
-
getBrowserSettings
public BrowserSettings getBrowserSettings()
Description copied from interface:AppContext
This method returns the BrowserSettings object associated with this application context.- Specified by:
getBrowserSettings
in interfaceAppContext
- Returns:
BrowserSettings
-
getConfigParameter
public java.lang.String getConfigParameter(java.lang.String param)
Description copied from interface:AppContext
Returns the value of a configuration parameter. Configuration parameters are defined in the web.xml file using the context-param and init-param tags.- Specified by:
getConfigParameter
in interfaceAppContext
- Parameters:
param
- name of the parameter to retrieve- Returns:
- the value of the parameter
-
getConfigServletPath
public java.lang.String getConfigServletPath()
Description copied from interface:AppContext
Get the full application path to the Servlet as defined in the configuration file- Specified by:
getConfigServletPath
in interfaceAppContext
- Returns:
- a
String
with the servlet path
-
getContainerServices
public ContainerServices getContainerServices()
Description copied from interface:BeanContext
This method gets the Container Services object associated with this application context.- Specified by:
getContainerServices
in interfaceBeanContext
- Returns:
ContainerServices
-
getContextMenuManager
public ContextMenuManager getContextMenuManager(java.lang.String contextMenuName)
Description copied from interface:AppContext
Returns an instance of aContextMenuManager
object. Referenced ny name- Specified by:
getContextMenuManager
in interfaceAppContext
- Parameters:
contextMenuName
- name of theContextMenuManager
object to retrieve- Returns:
- an instance of the
ContextMenuManager
object
-
getDocumentFromFileResource
public org.w3c.dom.Document getDocumentFromFileResource(java.lang.String filePath)
Description copied from interface:AppContext
This method returns a DOM Document from a file resource. The method works by attempting the following operations, in order:- Try to call the same method on BeanContext first. If that succeeds, return.
- Next, it tries to get the real path to this file relative to the web application. If it retrieves a valid path, it again calls the BeanContext's version of this method. If it succeeds, it returns.
- At this point, we cannot resolve the reference as a physical file. We then try to use the ServletContext's getResourceAsInput method to retrieve the contents of the file as resource that may be embedded within a WAR file. If this succeeeds, we load the contents into a DOM document and return it.THIS IS ONLY POSSIBLE WITHIN A JAVA ENVIRONMENT.
- If we get to this step, then we return an Exception.
- Specified by:
getDocumentFromFileResource
in interfaceAppContext
- Parameters:
filePath
- The absolute or relative path to the file resource.- Returns:
- the
Document
node that contains the file contents.
-
getExternalSecurity
public ExternalSecurity getExternalSecurity()
Description copied from interface:AppContext
This method returns the External Security instance associated with this application context.- Specified by:
getExternalSecurity
in interfaceAppContext
- Returns:
ExternalSecurity
-
getFileContentsAsString
public java.lang.String getFileContentsAsString(java.lang.String filePath)
Description copied from interface:AppContext
Returns the contents of the resource file as string from the file path provided. it does not dispense the file- Specified by:
getFileContentsAsString
in interfaceAppContext
- Parameters:
filePath
- location of the resource file (relative path)- Returns:
- the contents of the resource file.
-
getFileContentsAsString
public java.lang.String getFileContentsAsString(java.lang.String filePath, java.lang.String encoding)
Description copied from interface:AppContext
Returns the contents of the resource file as string from the file path provided using the named character encoding. it does not dispense the file- Specified by:
getFileContentsAsString
in interfaceAppContext
- Parameters:
filePath
- location of the resource file (relative path)encoding
- The name of a supported character encoding.- Returns:
- the contents of the resource file.
-
getFontName
public java.lang.String getFontName()
Description copied from interface:AppContext
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:
getFontName
in interfaceAppContext
- Returns:
- a String with a comma separated list of the fonts to use in this page.
-
getFontSize
public java.lang.String getFontSize()
Description copied from interface:AppContext
A string with the base font size to use, the string might contain the type of size (i.e, pt, px, etc.)- Specified by:
getFontSize
in interfaceAppContext
- Returns:
- a string with size of the font to use
-
getPageManager
public PageManager getPageManager()
Description copied from interface:AppContext
This method gets the PageManager object associated with this application context.- Specified by:
getPageManager
in interfaceAppContext
- Returns:
- the (@link PageManager) object associates with this application context.
-
getPreferences
public Preferences getPreferences()
Description copied from interface:AppContext
This method returns the Preferences object associated with this application context.- Specified by:
getPreferences
in interfaceAppContext
- Returns:
Preferences
-
getRealPath
public java.lang.String getRealPath(java.lang.String filePath)
Description copied from interface:AppContext
Return the absolute path of th erelative path provided- Specified by:
getRealPath
in interfaceAppContext
- Parameters:
filePath
- relative path to get the relative path from- Returns:
- the absolute path
-
getRequestKeys
public RequestKeys getRequestKeys()
Description copied from interface:BeanContext
This method gets the Request Keys object associated with this application context.- Specified by:
getRequestKeys
in interfaceBeanContext
- Returns:
RequestKeys
-
getResourceFileAsString
public java.lang.String getResourceFileAsString(java.lang.String filePath, java.lang.String resourceFileName)
Description copied from interface:AppContext
Returns the contents of the resource file as string from the file path provided. If the resource cannot be found in the location, it will be dispensed- Specified by:
getResourceFileAsString
in interfaceAppContext
- Parameters:
filePath
- location of the resource file (relative path)resourceFileName
- resource file- Returns:
- the contents of the resource file.
-
getResourcesFolder
public java.lang.String getResourcesFolder(java.lang.String folderType)
Description copied from interface:AppContext
Return the path to the resources folder indicated on the configuration file, corresponding to the type sent as parameter.
This is actually a convenience method for the getConfigParameter. This method returns all configuration parameters that starts withRESOURCE_FOLDER_PREFIX
and folderType is whatever goes after that. This method also makes sure that the name of the folder has always a backslash "/" at the end.- Specified by:
getResourcesFolder
in interfaceAppContext
- Parameters:
folderType
- integer constant that specifies the type of resource folder to return- Returns:
- the path of the base folder for the folder type requested
-
getServletPath
public java.lang.String getServletPath()
Description copied from interface:BeanContext
Get the full application path to the Servlet. This value is read form the configuration file and if is not set it will be automatically generated from the request.- Specified by:
getServletPath
in interfaceBeanContext
- Returns:
- a
String
with the servlet path
-
getSessionManager
public SessionManager getSessionManager()
Description copied from interface:AppContext
This method returns the Session Manager associated with this application context.- Specified by:
getSessionManager
in interfaceAppContext
- Returns:
SessionManager
-
isDoubleByte
public boolean isDoubleByte()
Description copied from interface:AppContext
Returns true if the locale is a double byte language like Chinese, Korean or Japenese.- Specified by:
isDoubleByte
in interfaceAppContext
- Returns:
- true if the locale is a double byte language like Chinese, Korean or Japenese.
-
putConfigParameter
public void putConfigParameter(java.lang.String key, java.lang.String value)
Description copied from interface:AppContext
Appends a Configuration Parameter to the Configuration Parameters list. Configuration parameters are defined in the web.xml file using the context-param and init-param tags.- Specified by:
putConfigParameter
in interfaceAppContext
- Parameters:
key
- name of the configuration parametervalue
- value of the configuration parameter
-
setBrowserSettings
public void setBrowserSettings(BrowserSettings bs)
Description copied from interface:AppContext
This method sets the BrowserSettings object to be associated with this application context.- Specified by:
setBrowserSettings
in interfaceAppContext
- Parameters:
bs
- An instance of anBrowserSettings
object.
-
setConfigServletPath
public void setConfigServletPath(java.lang.String configServletPath)
Description copied from interface:AppContext
Define the full application path to the Servlet as defined in the configuration file.- Specified by:
setConfigServletPath
in interfaceAppContext
- Parameters:
configServletPath
- aString
with the servlet path
-
setContainerServices
public void setContainerServices(ContainerServices cs)
Description copied from interface:BeanContext
This method sets the Container Services object associated with this application context.- Specified by:
setContainerServices
in interfaceBeanContext
- Parameters:
cs
- AContainerServices
object.
-
setDefaultEvent
public void setDefaultEvent(int eventID)
Description copied from interface:AppContext
Sets the eventTD provided as the default event of the application- Specified by:
setDefaultEvent
in interfaceAppContext
- Parameters:
eventID
- eventID of the application's default event
-
setExternalSecurity
public void setExternalSecurity(ExternalSecurity es)
Description copied from interface:AppContext
This method sets the External Security associated with this application context.- Specified by:
setExternalSecurity
in interfaceAppContext
- Parameters:
es
- AnExternalSecurity
instance.
-
setPageManager
public void setPageManager(PageManager pageManager)
Description copied from interface:AppContext
This method sets the PageManager object associated with this application context.- Specified by:
setPageManager
in interfaceAppContext
- Parameters:
pageManager
- APageManager
object.
-
setPreferences
public void setPreferences(Preferences prefs)
Description copied from interface:AppContext
This method sets a Preferences object for use with this application context.- Specified by:
setPreferences
in interfaceAppContext
- Parameters:
prefs
- APreferences
object.
-
setRequestKeys
public void setRequestKeys(RequestKeys hrk)
Description copied from interface:BeanContext
This method sets the Request Keys object to be associated with this application context.- Specified by:
setRequestKeys
in interfaceBeanContext
- Parameters:
hrk
- An instance of anRequestKeys
object.
-
setServletPath
public void setServletPath(java.lang.String servletPath)
Description copied from interface:AppContext
Define the full application path to the Servlet. This value is read form the configuration file and if is not set it will be automatically generated from the request.- Specified by:
setServletPath
in interfaceAppContext
- Parameters:
servletPath
- aString
with the servlet path
-
setSessionManager
public void setSessionManager(SessionManager sm)
Description copied from interface:AppContext
This method sets the Session Manager associated with this application context.- Specified by:
setSessionManager
in interfaceAppContext
- Parameters:
sm
- ASessionManager
instance.
-
getFeatures
public WebFeatures getFeatures()
Description copied from interface:BeanContext
This method gets the Features object associated with this application context.- Specified by:
getFeatures
in interfaceBeanContext
- Returns:
- a
WebFeatures
object
-
getMessages
public Messages getMessages()
Description copied from interface:BeanContext
Returns theMessages
instance from this BeanContext.- Specified by:
getMessages
in interfaceBeanContext
- Returns:
- the Messages instance.
-
getMessagesManager
public MessagesManager getMessagesManager()
Description copied from interface:BeanContext
Returns an instance ofMessagesManager
associated with the current BeanContext.- Specified by:
getMessagesManager
in interfaceBeanContext
- Returns:
- an instance of MessagesManager.
-
getStyleCatalog
public StyleCatalog getStyleCatalog()
Description copied from interface:BeanContext
Returns an instance ofStyleCatalog
associated with the current BeanContext.- Specified by:
getStyleCatalog
in interfaceBeanContext
- Returns:
- an instance of StyleCatalog.
-
setFeatures
public void setFeatures(WebFeatures features)
Description copied from interface:BeanContext
This method sets the Features object associated with this application context.- Specified by:
setFeatures
in interfaceBeanContext
- Parameters:
features
- AWebFeatures
object.
-
setMessages
public void setMessages(Messages msgs)
Description copied from interface:BeanContext
Sets aMessages
instance to this BeanContext.- Specified by:
setMessages
in interfaceBeanContext
- Parameters:
msgs
- the Messages instance to set.
-
setMessagesManager
public void setMessagesManager(MessagesManager msgsMgr)
Description copied from interface:BeanContext
Sets an instance ofMessagesManager
on the current BeanContext.- Specified by:
setMessagesManager
in interfaceBeanContext
- Parameters:
msgsMgr
- an instance of MessagesManager to set.
-
setStyleCatalog
public void setStyleCatalog(StyleCatalog sc)
Description copied from interface:BeanContext
Sets an instance ofStyleCatalog
on the current BeanContext.- Specified by:
setStyleCatalog
in interfaceBeanContext
- Parameters:
sc
- an instance of StyleCatalog to set.
-
getElementIDMap
public MobileChunkedAppContext.MobileElementIDMap getElementIDMap()
-
getPageMap
public MobileChunkedAppContext.MobilePageIndexMap getPageMap()
-
getObjectMap
public MobileChunkedAppContext.MobileObjectRefIDMap getObjectMap()
-
getMobileStyleManager
public MobileChunkedAppContext.MobileStyleManager getMobileStyleManager()
-
getMaxResultSize
public int getMaxResultSize()
-
setMaxResultSize
public void setMaxResultSize(int _maxResultSize)
-
maxResultSizeExceeded
public boolean maxResultSizeExceeded()
-
setMaxResultSizeExceeded
public void setMaxResultSizeExceeded(boolean _maxResultSizeExceeded)
-
getCurrentPage
public PageComponent getCurrentPage()
Description copied from interface:AppContext
Returns the name of the current page associated with the context. It returnsnull
if there no current page.- Specified by:
getCurrentPage
in interfaceAppContext
- Returns:
PageComponent
which is set on this object.- Since:
- MicroStrategy Web 9.0.0
- See Also:
AppContext.setCurrentPage(PageComponent)
-
getRootName
public java.lang.String getRootName()
Description copied from interface:AppContext
Returns the name of the root component In the case of the jsp/servlet enviroment,it will be the name of the main servlet component This corresponds to the value of the parameterAppContext.CONFIG_SERVLET_NAME
- Specified by:
getRootName
in interfaceAppContext
- Since:
- MicroStrategy Web 9.0.0
-
setAppSessionManager
public void setAppSessionManager(WebAppSessionManager sm)
Description copied from interface:AppContext
This method sets the Application Session Manager associated with this application context.- Specified by:
setAppSessionManager
in interfaceAppContext
- Since:
- MicroStrategy Web 9.0.0
-
setCurrentPage
public void setCurrentPage(PageComponent page)
Description copied from interface:AppContext
Set a page as the current page of this context.- Specified by:
setCurrentPage
in interfaceAppContext
- Parameters:
page
-PageComponent
instance.- Since:
- MicroStrategy Web 9.0.0
- See Also:
AppContext.getCurrentPage()
-
getEventHandlersCatalog
public EventHandlersCatalog getEventHandlersCatalog()
Description copied from interface:BeanContext
Returns the current instance ofEventHandlersCatalog
associated with the current BeanContext.- Specified by:
getEventHandlersCatalog
in interfaceBeanContext
- Returns:
- an instance of EventHandlersCatalog.
- Since:
- MicroStrategy Web 9.0.0
- See Also:
BeanContext.setEventHandlersCatalog(com.microstrategy.web.beans.EventHandlersCatalog)
-
setEventHandlersCatalog
public void setEventHandlersCatalog(EventHandlersCatalog catalog)
Description copied from interface:BeanContext
Sets theEventHandlersCatalog
instances associated with the current BeanContext. This catalog is then used by event-handlers to populate their events list and arguments. It includes for each event-handler, what are the events, and for each event, what are the argument and the name of the arguments used. ThisEventHandlersCatalog
is typically configured through the "/WEB-INF/xml/config/events.xml" file.- Specified by:
setEventHandlersCatalog
in interfaceBeanContext
- Parameters:
catalog
- an instance of EventHandlersCatalog to set.- Since:
- MicroStrategy Web 9.0.0
-
getTransformException
public java.lang.Exception getTransformException()
- Since:
- MicroStrategy Web 9.0.0
-
setTransformException
public void setTransformException(java.lang.Exception e)
- Since:
- MicroStrategy Web 9.0.0
-
getBrowserHeaderLocaleId
public java.lang.String getBrowserHeaderLocaleId(java.util.Locale defaultLocale)
Description copied from interface:AppContext
This method will extract from request header a value corresponding to browser's locale info. This info will be resolved in order to return current browser's LCID. This is equivalent toLocaleInfo.findBestSupportedLocale(Locale, Locale[])
with available display locales fromWebLocalizationManager.getAvailableLocales(int)
forEnumLocalizationType.TYPE_WEB_SUPPORTED
.- Specified by:
getBrowserHeaderLocaleId
in interfaceAppContext
- Returns:
- a
String
with the LCID
-
getWebSessionManager
public WebSessionManager getWebSessionManager()
Description copied from interface:BeanContext
This method returns the Application Session Manager associated with this application context. If not explicitly set through the#setAppSessionManager
method, a new one is automatically created.- Specified by:
getWebSessionManager
in interfaceBeanContext
- Returns:
WebSessionManager
-
-