Package com.microstrategy.web.objects
Class WebResultSettingsImpl
- java.lang.Object
 - 
- com.microstrategy.web.objects.WebResultSettingsImpl
 
 
- 
- All Implemented Interfaces:
 WebJsonContextResultSettings,WebResultSettings
public class WebResultSettingsImpl extends java.lang.Object implements WebResultSettings, WebJsonContextResultSettings
- Since:
 - MicroStrategy Web 7.3.1 or earlier
 
 
- 
- 
Field Summary
- 
Fields inherited from interface com.microstrategy.web.objects.WebResultSettings
EXPORT_MODE_DISABLED, EXPORT_MODE_HTML, EXPORT_MODE_PDF 
 - 
 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetColumnWidthEnabled()Returns the flag to indicate whether the result will include column width information.WebDetailsFormattergetDetailsFormatter()Returns aWebDetailsFormatterobject using which we can set the format for the template details, prompt details, filter details etc that are generated on the IServer.booleangetEnhancedGraphXMLEnabled()Retrieves a boolean indicating whether the extended graph properties are to be returned in the reportXMLintgetExportMode()booleangetImageMapsEnabled()Returns a boolean indicating whether image maps are to be included in the XML.booleangetIncludeHeaderFooter()Returns whether header and footer information will be brought back with report XMLbooleangetIncludeMetricUnitLimits()Returns whether to bring back the metric unit limits XMLbooleangetIncludeObjectComments()Returns whether internal object comments (long descriptions) will be retrieved.booleangetIncludeOnlyCurrentElementsInPageBy()Returns whether only the current element will be brought back in pageBy XMLbooleangetIncludeThresholdDetails()Reutnrs whether threshold details should be included in report XMLbooleangetIncludeViewFilterInTemplateNode()Returns whether to include the view filter of a template in RW template nodeintgetJsonContextDetailFlags()Get json context detail flagsjava.util.List<java.lang.String>getMainAttributeFormIds()booleangetNoFormatInXMLEnabled()Returns a boolean specifying whether formatting values should be omitted for grids.WebOptimizedDrillPathSettingsgetOptimizedDrillPathSettings()Returns the settings interface to control the optimized drill paths in XML.booleangetRawDataEnabled()Returns the flag about whether raw data retrieval is enabled.booleangetXDAHierarchies()booleanisPropertyOptimizationSet()Indicates whether property optimization will be turned onvoidsetColumnWidthEnabled(boolean enable)Changes the current setting of whether to include the column width information in result.voidsetEnhancedGraphXMLEnabled(boolean enabled)Enables retrieval of extended graph properties in the report xml.voidsetExportMode(int mode)Sets the export mode to be one of the following constantsWebResultSettings.EXPORT_MODE_DISABLEDWebResultSettings.EXPORT_MODE_PDFWebResultSettings.EXPORT_MODE_HTMLvoidsetFirstOrderPageTree(boolean firstOrderOnly)voidsetImageMapsEnabled(boolean useImageMaps)Sets whether to include the image maps for graphs in the data that is returned.voidsetIncludeHeaderFooter(boolean includeHeaderFooter)Configures whether the report XML should bring back header and footer informationvoidsetIncludeMetricUnitLimits(boolean includeMetricUnitLimits)Configures whether the metric unit limits XML should be brought backvoidsetIncludeObjectComments(boolean includeObjectComments)Configures whether to retrieve internal object comments (long descriptions).voidsetIncludeOnlyCurrentElementsInPageBy(boolean includeOnlyCurrent)Configures whether the report XML should bring back only current elements in the pageBy XMLvoidsetIncludeThresholdDetails(boolean includeThresholdDetails)Configures whether the report XML should bring back threshold detail informationvoidsetIncludeViewFilterInTemplateNode(boolean includeViewFilterInTemplateNode)Configures whether to include the view filter of a template in RW template nodevoidsetJsonContextDetailFlags(int jsonContextDetailFlags)Set json context detail flags, enum see it in EnumJSONContextDetailFlagsEnumJSONContextDetailFlagsvoidsetMainAttributeFormIds(java.util.List<java.lang.String> mainAttributeFormIds)voidsetNewCssAndColumnHeader(boolean useNewCssAndColumnHeader)Sets whether to omit formatting properties whose values are default in the CSS for grids.voidsetNoFormatInXMLEnabled(boolean value)Sets a boolean specifying whether formatting information should be omitted for the grids.voidsetOptimizePropertiesInXML(boolean optimize)This method is used to turn on optimizations in the properties returned as a part of the report xml.voidsetRawDataEnabled(boolean enable)Sets the flag about whether raw data retrieval should be enabled.voidsetShowExpandedRowPage(boolean value)Sets a flag indicating that backend needs to return a page containing the last expanded/collapsed row.voidsetTerseElementIDs(boolean useTerse)Configures whether to use terse element IDs.voidsetXDAHierarchies(boolean value)booleanshowExpandedRowPage()Returns a flag indicating that backend needs to return a page containing the last expanded/collapsed row.booleanuseFirstOrderPageTree()booleanuseNewCssAndColumnHeader()Returns whether default formatting properties are omitted in the CSS for grids and also whether column titles are omitted as part of the column headers.booleanuseTerseElementIDs()Returns whether to use terse element IDs. 
 - 
 
- 
- 
Method Detail
- 
getEnhancedGraphXMLEnabled
public boolean getEnhancedGraphXMLEnabled()
Description copied from interface:WebResultSettingsRetrieves a boolean indicating whether the extended graph properties are to be returned in the reportXML- Specified by:
 getEnhancedGraphXMLEnabledin interfaceWebResultSettings- Since:
 - MicroStrategy Web 8.0.2
 
 
- 
setEnhancedGraphXMLEnabled
public void setEnhancedGraphXMLEnabled(boolean enabled)
Description copied from interface:WebResultSettingsEnables retrieval of extended graph properties in the report xml. This is turned off by default- Specified by:
 setEnhancedGraphXMLEnabledin interfaceWebResultSettings- Since:
 - MicroStrategy Web 8.0.2
 
 
- 
getColumnWidthEnabled
public boolean getColumnWidthEnabled()
Description copied from interface:WebResultSettingsReturns the flag to indicate whether the result will include column width information.- Specified by:
 getColumnWidthEnabledin interfaceWebResultSettings- Returns:
 - Return current setting of this flag. 
truefor including the column width information in result; otherwise,false. 
 
- 
setColumnWidthEnabled
public void setColumnWidthEnabled(boolean enable)
Description copied from interface:WebResultSettingsChanges the current setting of whether to include the column width information in result.- Specified by:
 setColumnWidthEnabledin interfaceWebResultSettings- Parameters:
 enable-trueto include the column width information.falseto not include it.
 
- 
setExportMode
public void setExportMode(int mode)
Description copied from interface:WebResultSettingsSets the export mode to be one of the following constants- Specified by:
 setExportModein interfaceWebResultSettings- Parameters:
 mode- indicates the mode- See Also:
 WebReportInstance.setExecutionMode(int)
 
- 
getExportMode
public int getExportMode()
- Specified by:
 getExportModein interfaceWebResultSettings- Returns:
 - The current mode for export
 - See Also:
 WebReportInstance.setExecutionMode(int)
 
- 
getRawDataEnabled
public boolean getRawDataEnabled()
Description copied from interface:WebResultSettingsReturns the flag about whether raw data retrieval is enabled. When raw data retrieval is enabled, the unformatted data and raw dates (a double number) will be returned from backend. Those raw data can be accessed fromWebRowValue.getRawValue()andWebHeader.getRawValue().- Specified by:
 getRawDataEnabledin interfaceWebResultSettings- Returns:
 - boolean True if raw data retrieval is enabled, otherwise false.
 - Since:
 - MicroStrategy Web 7.5.4
 
 
- 
setRawDataEnabled
public void setRawDataEnabled(boolean enable)
Description copied from interface:WebResultSettingsSets the flag about whether raw data retrieval should be enabled. When raw data retrieval is enabled, the unformatted data and raw dates (a double number) will be returned from backend. Those raw data can be accessed fromWebRowValue.getRawValue()andWebHeader.getRawValue().- Specified by:
 setRawDataEnabledin interfaceWebResultSettings- Parameters:
 enable- boolean- Since:
 - MicroStrategy Web 7.5.4
 
 
- 
isPropertyOptimizationSet
public boolean isPropertyOptimizationSet()
Description copied from interface:WebResultSettingsIndicates whether property optimization will be turned on- Specified by:
 isPropertyOptimizationSetin interfaceWebResultSettings- Returns:
 - boolean
 - Since:
 - MicroStrategy Web 8.0.0
 
 
- 
setOptimizePropertiesInXML
public void setOptimizePropertiesInXML(boolean optimize)
Description copied from interface:WebResultSettingsThis method is used to turn on optimizations in the properties returned as a part of the report xml. This is turned off by default in order to maintain backward compatibility. It is recommended that this property be set before using any report functionality because it reduces the size of the xml that is transferred from the intelligence server.- Specified by:
 setOptimizePropertiesInXMLin interfaceWebResultSettings- Since:
 - MicroStrategy Web 8.0.0
 
 
- 
getOptimizedDrillPathSettings
public WebOptimizedDrillPathSettings getOptimizedDrillPathSettings()
Description copied from interface:WebResultSettingsReturns the settings interface to control the optimized drill paths in XML.- Specified by:
 getOptimizedDrillPathSettingsin interfaceWebResultSettings- Since:
 - MicroStrategy Web 8.0.0
 
 
- 
setXDAHierarchies
public void setXDAHierarchies(boolean value)
- Specified by:
 setXDAHierarchiesin interfaceWebResultSettings- Since:
 - MicroStrategy Web 8.0.2
 
 
- 
getXDAHierarchies
public boolean getXDAHierarchies()
- Specified by:
 getXDAHierarchiesin interfaceWebResultSettings- Since:
 - MicroStrategy Web 8.0.2
 
 
- 
useFirstOrderPageTree
public boolean useFirstOrderPageTree()
- Specified by:
 useFirstOrderPageTreein interfaceWebResultSettings- Returns:
 - whether to return data that has only the first order page-by options.
 - Since:
 - MicroStrategy Web 8.0.2
 - See Also:
 EnumDSSXMLResult2Flags.DssXmlResult2PageTreeStyle2
 
- 
setFirstOrderPageTree
public void setFirstOrderPageTree(boolean firstOrderOnly)
- Specified by:
 setFirstOrderPageTreein interfaceWebResultSettings- Parameters:
 firstOrderOnly- whether to return data that has only the first order page-by options.- Since:
 - MicroStrategy Web 8.0.2
 - See Also:
 EnumDSSXMLResult2Flags.DssXmlResult2PageTreeStyle2
 
- 
setImageMapsEnabled
public void setImageMapsEnabled(boolean useImageMaps)
Description copied from interface:WebResultSettingsSets whether to include the image maps for graphs in the data that is returned.- Specified by:
 setImageMapsEnabledin interfaceWebResultSettings- Since:
 - MicroStrategy Web 8.1.0
 - See Also:
 EnumDSSXMLResult2Flags.DssXmlResult2ImageMap
 
- 
getImageMapsEnabled
public boolean getImageMapsEnabled()
Description copied from interface:WebResultSettingsReturns a boolean indicating whether image maps are to be included in the XML.- Specified by:
 getImageMapsEnabledin interfaceWebResultSettings- Since:
 - MicroStrategy Web 8.1.0
 
 
- 
getDetailsFormatter
public WebDetailsFormatter getDetailsFormatter()
Description copied from interface:WebResultSettingsReturns aWebDetailsFormatterobject using which we can set the format for the template details, prompt details, filter details etc that are generated on the IServer. These details can then be read fromWebReportData- Specified by:
 getDetailsFormatterin interfaceWebResultSettings- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
setNewCssAndColumnHeader
public void setNewCssAndColumnHeader(boolean useNewCssAndColumnHeader)
Description copied from interface:WebResultSettingsSets whether to omit formatting properties whose values are default in the CSS for grids. Also sets whether to omit the column titles as part of the column headers node.- Specified by:
 setNewCssAndColumnHeaderin interfaceWebResultSettings- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
useNewCssAndColumnHeader
public boolean useNewCssAndColumnHeader()
Description copied from interface:WebResultSettingsReturns whether default formatting properties are omitted in the CSS for grids and also whether column titles are omitted as part of the column headers.- Specified by:
 useNewCssAndColumnHeaderin interfaceWebResultSettings- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
getNoFormatInXMLEnabled
public boolean getNoFormatInXMLEnabled()
Description copied from interface:WebResultSettingsReturns a boolean specifying whether formatting values should be omitted for grids.- Specified by:
 getNoFormatInXMLEnabledin interfaceWebResultSettings- Returns:
 - a boolean true if formatting information is skipped for grids otherwise returns false.
 - Since:
 - MicroStrategy Web 9.0.0
 
 
- 
setNoFormatInXMLEnabled
public void setNoFormatInXMLEnabled(boolean value)
Description copied from interface:WebResultSettingsSets a boolean specifying whether formatting information should be omitted for the grids.- Specified by:
 setNoFormatInXMLEnabledin interfaceWebResultSettings- Parameters:
 value- boolean true if formatting information is skipped for grids otherwise set it to false.- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
useTerseElementIDs
public boolean useTerseElementIDs()
Description copied from interface:WebResultSettingsReturns whether to use terse element IDs. This is intended to reduce the amount of data transmission.- Specified by:
 useTerseElementIDsin interfaceWebResultSettings
 
- 
setTerseElementIDs
public void setTerseElementIDs(boolean useTerse)
Description copied from interface:WebResultSettingsConfigures whether to use terse element IDs. This is intended to reduce the amount of data transmission.- Specified by:
 setTerseElementIDsin interfaceWebResultSettings
 
- 
getIncludeObjectComments
public boolean getIncludeObjectComments()
Description copied from interface:WebResultSettingsReturns whether internal object comments (long descriptions) will be retrieved.- Specified by:
 getIncludeObjectCommentsin interfaceWebResultSettings
 
- 
setIncludeObjectComments
public void setIncludeObjectComments(boolean includeObjectComments)
Description copied from interface:WebResultSettingsConfigures whether to retrieve internal object comments (long descriptions).- Specified by:
 setIncludeObjectCommentsin interfaceWebResultSettings
 
- 
getIncludeHeaderFooter
public boolean getIncludeHeaderFooter()
Description copied from interface:WebResultSettingsReturns whether header and footer information will be brought back with report XML- Specified by:
 getIncludeHeaderFooterin interfaceWebResultSettings- Returns:
 - true if report XML will include header/footer information
 
 
- 
setIncludeHeaderFooter
public void setIncludeHeaderFooter(boolean includeHeaderFooter)
Description copied from interface:WebResultSettingsConfigures whether the report XML should bring back header and footer information- Specified by:
 setIncludeHeaderFooterin interfaceWebResultSettings- Parameters:
 includeHeaderFooter- boolean specifying true if report XML should contain header/footer info
 
- 
getIncludeThresholdDetails
public boolean getIncludeThresholdDetails()
Description copied from interface:WebResultSettingsReutnrs whether threshold details should be included in report XML- Specified by:
 getIncludeThresholdDetailsin interfaceWebResultSettings- Returns:
 - true if report XML will include threahold information
 
 
- 
setIncludeThresholdDetails
public void setIncludeThresholdDetails(boolean includeThresholdDetails)
Description copied from interface:WebResultSettingsConfigures whether the report XML should bring back threshold detail information- Specified by:
 setIncludeThresholdDetailsin interfaceWebResultSettings- Parameters:
 includeThresholdDetails- boolean specifying true if report XML should contain threshold details
 
- 
getIncludeOnlyCurrentElementsInPageBy
public boolean getIncludeOnlyCurrentElementsInPageBy()
Description copied from interface:WebResultSettingsReturns whether only the current element will be brought back in pageBy XML- Specified by:
 getIncludeOnlyCurrentElementsInPageByin interfaceWebResultSettings- Returns:
 - boolean specifying whether only current elements will be included
 
 
- 
setIncludeOnlyCurrentElementsInPageBy
public void setIncludeOnlyCurrentElementsInPageBy(boolean includeOnlyCurrent)
Description copied from interface:WebResultSettingsConfigures whether the report XML should bring back only current elements in the pageBy XML- Specified by:
 setIncludeOnlyCurrentElementsInPageByin interfaceWebResultSettings- Parameters:
 includeOnlyCurrent- boolean specifying whether to only include current elements
 
- 
showExpandedRowPage
public boolean showExpandedRowPage()
Description copied from interface:WebResultSettingsReturns a flag indicating that backend needs to return a page containing the last expanded/collapsed row.- Specified by:
 showExpandedRowPagein interfaceWebResultSettings
 
- 
setShowExpandedRowPage
public void setShowExpandedRowPage(boolean value)
Description copied from interface:WebResultSettingsSets a flag indicating that backend needs to return a page containing the last expanded/collapsed row.- Specified by:
 setShowExpandedRowPagein interfaceWebResultSettings
 
- 
getIncludeMetricUnitLimits
public boolean getIncludeMetricUnitLimits()
Description copied from interface:WebResultSettingsReturns whether to bring back the metric unit limits XML- Specified by:
 getIncludeMetricUnitLimitsin interfaceWebResultSettings- Returns:
 - boolean specifying whether to include metric unit limits XML
 
 
- 
setIncludeMetricUnitLimits
public void setIncludeMetricUnitLimits(boolean includeMetricUnitLimits)
Description copied from interface:WebResultSettingsConfigures whether the metric unit limits XML should be brought back- Specified by:
 setIncludeMetricUnitLimitsin interfaceWebResultSettings- Parameters:
 includeMetricUnitLimits- boolean specifying whether to include metric unit limits XML
 
- 
getIncludeViewFilterInTemplateNode
public boolean getIncludeViewFilterInTemplateNode()
Description copied from interface:WebResultSettingsReturns whether to include the view filter of a template in RW template node- Specified by:
 getIncludeViewFilterInTemplateNodein interfaceWebResultSettings- Returns:
 - boolean specifying whether to include view filter on template node
 
 
- 
setIncludeViewFilterInTemplateNode
public void setIncludeViewFilterInTemplateNode(boolean includeViewFilterInTemplateNode)
Description copied from interface:WebResultSettingsConfigures whether to include the view filter of a template in RW template node- Specified by:
 setIncludeViewFilterInTemplateNodein interfaceWebResultSettings- Parameters:
 includeViewFilterInTemplateNode- boolean specifying whether to include view filter on template node
 
- 
getJsonContextDetailFlags
public int getJsonContextDetailFlags()
Description copied from interface:WebJsonContextResultSettingsGet json context detail flags- Specified by:
 getJsonContextDetailFlagsin interfaceWebJsonContextResultSettings
 
- 
setJsonContextDetailFlags
public void setJsonContextDetailFlags(int jsonContextDetailFlags)
Description copied from interface:WebJsonContextResultSettingsSet json context detail flags, enum see it in EnumJSONContextDetailFlagsEnumJSONContextDetailFlags- Specified by:
 setJsonContextDetailFlagsin interfaceWebJsonContextResultSettings
 
- 
getMainAttributeFormIds
public java.util.List<java.lang.String> getMainAttributeFormIds()
- Specified by:
 getMainAttributeFormIdsin interfaceWebJsonContextResultSettings
 
- 
setMainAttributeFormIds
public void setMainAttributeFormIds(java.util.List<java.lang.String> mainAttributeFormIds)
- Specified by:
 setMainAttributeFormIdsin interfaceWebJsonContextResultSettings
 
 - 
 
 -