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 boolean
getColumnWidthEnabled()
Returns the flag to indicate whether the result will include column width information.WebDetailsFormatter
getDetailsFormatter()
Returns aWebDetailsFormatter
object using which we can set the format for the template details, prompt details, filter details etc that are generated on the IServer.boolean
getEnhancedGraphXMLEnabled()
Retrieves a boolean indicating whether the extended graph properties are to be returned in the reportXMLint
getExportMode()
boolean
getImageMapsEnabled()
Returns a boolean indicating whether image maps are to be included in the XML.boolean
getIncludeHeaderFooter()
Returns whether header and footer information will be brought back with report XMLboolean
getIncludeMetricUnitLimits()
Returns whether to bring back the metric unit limits XMLboolean
getIncludeObjectComments()
Returns whether internal object comments (long descriptions) will be retrieved.boolean
getIncludeOnlyCurrentElementsInPageBy()
Returns whether only the current element will be brought back in pageBy XMLboolean
getIncludeThresholdDetails()
Reutnrs whether threshold details should be included in report XMLboolean
getIncludeViewFilterInTemplateNode()
Returns whether to include the view filter of a template in RW template nodeint
getJsonContextDetailFlags()
Get json context detail flagsjava.util.List<java.lang.String>
getMainAttributeFormIds()
boolean
getNoFormatInXMLEnabled()
Returns a boolean specifying whether formatting values should be omitted for grids.WebOptimizedDrillPathSettings
getOptimizedDrillPathSettings()
Returns the settings interface to control the optimized drill paths in XML.boolean
getRawDataEnabled()
Returns the flag about whether raw data retrieval is enabled.boolean
getXDAHierarchies()
boolean
isPropertyOptimizationSet()
Indicates whether property optimization will be turned onvoid
setColumnWidthEnabled(boolean enable)
Changes the current setting of whether to include the column width information in result.void
setEnhancedGraphXMLEnabled(boolean enabled)
Enables retrieval of extended graph properties in the report xml.void
setExportMode(int mode)
Sets the export mode to be one of the following constantsWebResultSettings.EXPORT_MODE_DISABLED
WebResultSettings.EXPORT_MODE_PDF
WebResultSettings.EXPORT_MODE_HTML
void
setFirstOrderPageTree(boolean firstOrderOnly)
void
setImageMapsEnabled(boolean useImageMaps)
Sets whether to include the image maps for graphs in the data that is returned.void
setIncludeHeaderFooter(boolean includeHeaderFooter)
Configures whether the report XML should bring back header and footer informationvoid
setIncludeMetricUnitLimits(boolean includeMetricUnitLimits)
Configures whether the metric unit limits XML should be brought backvoid
setIncludeObjectComments(boolean includeObjectComments)
Configures whether to retrieve internal object comments (long descriptions).void
setIncludeOnlyCurrentElementsInPageBy(boolean includeOnlyCurrent)
Configures whether the report XML should bring back only current elements in the pageBy XMLvoid
setIncludeThresholdDetails(boolean includeThresholdDetails)
Configures whether the report XML should bring back threshold detail informationvoid
setIncludeViewFilterInTemplateNode(boolean includeViewFilterInTemplateNode)
Configures whether to include the view filter of a template in RW template nodevoid
setJsonContextDetailFlags(int jsonContextDetailFlags)
Set json context detail flags, enum see it in EnumJSONContextDetailFlagsEnumJSONContextDetailFlags
void
setMainAttributeFormIds(java.util.List<java.lang.String> mainAttributeFormIds)
void
setNewCssAndColumnHeader(boolean useNewCssAndColumnHeader)
Sets whether to omit formatting properties whose values are default in the CSS for grids.void
setNoFormatInXMLEnabled(boolean value)
Sets a boolean specifying whether formatting information should be omitted for the grids.void
setOptimizePropertiesInXML(boolean optimize)
This method is used to turn on optimizations in the properties returned as a part of the report xml.void
setRawDataEnabled(boolean enable)
Sets the flag about whether raw data retrieval should be enabled.void
setShowExpandedRowPage(boolean value)
Sets a flag indicating that backend needs to return a page containing the last expanded/collapsed row.void
setTerseElementIDs(boolean useTerse)
Configures whether to use terse element IDs.void
setXDAHierarchies(boolean value)
boolean
showExpandedRowPage()
Returns a flag indicating that backend needs to return a page containing the last expanded/collapsed row.boolean
useFirstOrderPageTree()
boolean
useNewCssAndColumnHeader()
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.boolean
useTerseElementIDs()
Returns whether to use terse element IDs.
-
-
-
Method Detail
-
getEnhancedGraphXMLEnabled
public boolean getEnhancedGraphXMLEnabled()
Description copied from interface:WebResultSettings
Retrieves a boolean indicating whether the extended graph properties are to be returned in the reportXML- Specified by:
getEnhancedGraphXMLEnabled
in interfaceWebResultSettings
- Since:
- MicroStrategy Web 8.0.2
-
setEnhancedGraphXMLEnabled
public void setEnhancedGraphXMLEnabled(boolean enabled)
Description copied from interface:WebResultSettings
Enables retrieval of extended graph properties in the report xml. This is turned off by default- Specified by:
setEnhancedGraphXMLEnabled
in interfaceWebResultSettings
- Since:
- MicroStrategy Web 8.0.2
-
getColumnWidthEnabled
public boolean getColumnWidthEnabled()
Description copied from interface:WebResultSettings
Returns the flag to indicate whether the result will include column width information.- Specified by:
getColumnWidthEnabled
in interfaceWebResultSettings
- Returns:
- Return current setting of this flag.
true
for including the column width information in result; otherwise,false
.
-
setColumnWidthEnabled
public void setColumnWidthEnabled(boolean enable)
Description copied from interface:WebResultSettings
Changes the current setting of whether to include the column width information in result.- Specified by:
setColumnWidthEnabled
in interfaceWebResultSettings
- Parameters:
enable
-true
to include the column width information.false
to not include it.
-
setExportMode
public void setExportMode(int mode)
Description copied from interface:WebResultSettings
Sets the export mode to be one of the following constants- Specified by:
setExportMode
in interfaceWebResultSettings
- Parameters:
mode
- indicates the mode- See Also:
WebReportInstance.setExecutionMode(int)
-
getExportMode
public int getExportMode()
- Specified by:
getExportMode
in interfaceWebResultSettings
- Returns:
- The current mode for export
- See Also:
WebReportInstance.setExecutionMode(int)
-
getRawDataEnabled
public boolean getRawDataEnabled()
Description copied from interface:WebResultSettings
Returns 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:
getRawDataEnabled
in 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:WebResultSettings
Sets 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:
setRawDataEnabled
in interfaceWebResultSettings
- Parameters:
enable
- boolean- Since:
- MicroStrategy Web 7.5.4
-
isPropertyOptimizationSet
public boolean isPropertyOptimizationSet()
Description copied from interface:WebResultSettings
Indicates whether property optimization will be turned on- Specified by:
isPropertyOptimizationSet
in interfaceWebResultSettings
- Returns:
- boolean
- Since:
- MicroStrategy Web 8.0.0
-
setOptimizePropertiesInXML
public void setOptimizePropertiesInXML(boolean optimize)
Description copied from interface:WebResultSettings
This 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:
setOptimizePropertiesInXML
in interfaceWebResultSettings
- Since:
- MicroStrategy Web 8.0.0
-
getOptimizedDrillPathSettings
public WebOptimizedDrillPathSettings getOptimizedDrillPathSettings()
Description copied from interface:WebResultSettings
Returns the settings interface to control the optimized drill paths in XML.- Specified by:
getOptimizedDrillPathSettings
in interfaceWebResultSettings
- Since:
- MicroStrategy Web 8.0.0
-
setXDAHierarchies
public void setXDAHierarchies(boolean value)
- Specified by:
setXDAHierarchies
in interfaceWebResultSettings
- Since:
- MicroStrategy Web 8.0.2
-
getXDAHierarchies
public boolean getXDAHierarchies()
- Specified by:
getXDAHierarchies
in interfaceWebResultSettings
- Since:
- MicroStrategy Web 8.0.2
-
useFirstOrderPageTree
public boolean useFirstOrderPageTree()
- Specified by:
useFirstOrderPageTree
in 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:
setFirstOrderPageTree
in 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:WebResultSettings
Sets whether to include the image maps for graphs in the data that is returned.- Specified by:
setImageMapsEnabled
in interfaceWebResultSettings
- Since:
- MicroStrategy Web 8.1.0
- See Also:
EnumDSSXMLResult2Flags.DssXmlResult2ImageMap
-
getImageMapsEnabled
public boolean getImageMapsEnabled()
Description copied from interface:WebResultSettings
Returns a boolean indicating whether image maps are to be included in the XML.- Specified by:
getImageMapsEnabled
in interfaceWebResultSettings
- Since:
- MicroStrategy Web 8.1.0
-
getDetailsFormatter
public WebDetailsFormatter getDetailsFormatter()
Description copied from interface:WebResultSettings
Returns aWebDetailsFormatter
object 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:
getDetailsFormatter
in interfaceWebResultSettings
- Since:
- MicroStrategy Web 9.0.0
-
setNewCssAndColumnHeader
public void setNewCssAndColumnHeader(boolean useNewCssAndColumnHeader)
Description copied from interface:WebResultSettings
Sets 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:
setNewCssAndColumnHeader
in interfaceWebResultSettings
- Since:
- MicroStrategy Web 9.0.0
-
useNewCssAndColumnHeader
public boolean useNewCssAndColumnHeader()
Description copied from interface:WebResultSettings
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.- Specified by:
useNewCssAndColumnHeader
in interfaceWebResultSettings
- Since:
- MicroStrategy Web 9.0.0
-
getNoFormatInXMLEnabled
public boolean getNoFormatInXMLEnabled()
Description copied from interface:WebResultSettings
Returns a boolean specifying whether formatting values should be omitted for grids.- Specified by:
getNoFormatInXMLEnabled
in 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:WebResultSettings
Sets a boolean specifying whether formatting information should be omitted for the grids.- Specified by:
setNoFormatInXMLEnabled
in 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:WebResultSettings
Returns whether to use terse element IDs. This is intended to reduce the amount of data transmission.- Specified by:
useTerseElementIDs
in interfaceWebResultSettings
-
setTerseElementIDs
public void setTerseElementIDs(boolean useTerse)
Description copied from interface:WebResultSettings
Configures whether to use terse element IDs. This is intended to reduce the amount of data transmission.- Specified by:
setTerseElementIDs
in interfaceWebResultSettings
-
getIncludeObjectComments
public boolean getIncludeObjectComments()
Description copied from interface:WebResultSettings
Returns whether internal object comments (long descriptions) will be retrieved.- Specified by:
getIncludeObjectComments
in interfaceWebResultSettings
-
setIncludeObjectComments
public void setIncludeObjectComments(boolean includeObjectComments)
Description copied from interface:WebResultSettings
Configures whether to retrieve internal object comments (long descriptions).- Specified by:
setIncludeObjectComments
in interfaceWebResultSettings
-
getIncludeHeaderFooter
public boolean getIncludeHeaderFooter()
Description copied from interface:WebResultSettings
Returns whether header and footer information will be brought back with report XML- Specified by:
getIncludeHeaderFooter
in interfaceWebResultSettings
- Returns:
- true if report XML will include header/footer information
-
setIncludeHeaderFooter
public void setIncludeHeaderFooter(boolean includeHeaderFooter)
Description copied from interface:WebResultSettings
Configures whether the report XML should bring back header and footer information- Specified by:
setIncludeHeaderFooter
in interfaceWebResultSettings
- Parameters:
includeHeaderFooter
- boolean specifying true if report XML should contain header/footer info
-
getIncludeThresholdDetails
public boolean getIncludeThresholdDetails()
Description copied from interface:WebResultSettings
Reutnrs whether threshold details should be included in report XML- Specified by:
getIncludeThresholdDetails
in interfaceWebResultSettings
- Returns:
- true if report XML will include threahold information
-
setIncludeThresholdDetails
public void setIncludeThresholdDetails(boolean includeThresholdDetails)
Description copied from interface:WebResultSettings
Configures whether the report XML should bring back threshold detail information- Specified by:
setIncludeThresholdDetails
in interfaceWebResultSettings
- Parameters:
includeThresholdDetails
- boolean specifying true if report XML should contain threshold details
-
getIncludeOnlyCurrentElementsInPageBy
public boolean getIncludeOnlyCurrentElementsInPageBy()
Description copied from interface:WebResultSettings
Returns whether only the current element will be brought back in pageBy XML- Specified by:
getIncludeOnlyCurrentElementsInPageBy
in interfaceWebResultSettings
- Returns:
- boolean specifying whether only current elements will be included
-
setIncludeOnlyCurrentElementsInPageBy
public void setIncludeOnlyCurrentElementsInPageBy(boolean includeOnlyCurrent)
Description copied from interface:WebResultSettings
Configures whether the report XML should bring back only current elements in the pageBy XML- Specified by:
setIncludeOnlyCurrentElementsInPageBy
in interfaceWebResultSettings
- Parameters:
includeOnlyCurrent
- boolean specifying whether to only include current elements
-
showExpandedRowPage
public boolean showExpandedRowPage()
Description copied from interface:WebResultSettings
Returns a flag indicating that backend needs to return a page containing the last expanded/collapsed row.- Specified by:
showExpandedRowPage
in interfaceWebResultSettings
-
setShowExpandedRowPage
public void setShowExpandedRowPage(boolean value)
Description copied from interface:WebResultSettings
Sets a flag indicating that backend needs to return a page containing the last expanded/collapsed row.- Specified by:
setShowExpandedRowPage
in interfaceWebResultSettings
-
getIncludeMetricUnitLimits
public boolean getIncludeMetricUnitLimits()
Description copied from interface:WebResultSettings
Returns whether to bring back the metric unit limits XML- Specified by:
getIncludeMetricUnitLimits
in interfaceWebResultSettings
- Returns:
- boolean specifying whether to include metric unit limits XML
-
setIncludeMetricUnitLimits
public void setIncludeMetricUnitLimits(boolean includeMetricUnitLimits)
Description copied from interface:WebResultSettings
Configures whether the metric unit limits XML should be brought back- Specified by:
setIncludeMetricUnitLimits
in interfaceWebResultSettings
- Parameters:
includeMetricUnitLimits
- boolean specifying whether to include metric unit limits XML
-
getIncludeViewFilterInTemplateNode
public boolean getIncludeViewFilterInTemplateNode()
Description copied from interface:WebResultSettings
Returns whether to include the view filter of a template in RW template node- Specified by:
getIncludeViewFilterInTemplateNode
in interfaceWebResultSettings
- Returns:
- boolean specifying whether to include view filter on template node
-
setIncludeViewFilterInTemplateNode
public void setIncludeViewFilterInTemplateNode(boolean includeViewFilterInTemplateNode)
Description copied from interface:WebResultSettings
Configures whether to include the view filter of a template in RW template node- Specified by:
setIncludeViewFilterInTemplateNode
in interfaceWebResultSettings
- Parameters:
includeViewFilterInTemplateNode
- boolean specifying whether to include view filter on template node
-
getJsonContextDetailFlags
public int getJsonContextDetailFlags()
Description copied from interface:WebJsonContextResultSettings
Get json context detail flags- Specified by:
getJsonContextDetailFlags
in interfaceWebJsonContextResultSettings
-
setJsonContextDetailFlags
public void setJsonContextDetailFlags(int jsonContextDetailFlags)
Description copied from interface:WebJsonContextResultSettings
Set json context detail flags, enum see it in EnumJSONContextDetailFlagsEnumJSONContextDetailFlags
- Specified by:
setJsonContextDetailFlags
in interfaceWebJsonContextResultSettings
-
getMainAttributeFormIds
public java.util.List<java.lang.String> getMainAttributeFormIds()
- Specified by:
getMainAttributeFormIds
in interfaceWebJsonContextResultSettings
-
setMainAttributeFormIds
public void setMainAttributeFormIds(java.util.List<java.lang.String> mainAttributeFormIds)
- Specified by:
setMainAttributeFormIds
in interfaceWebJsonContextResultSettings
-
-