java.lang.Object | |
↳ | com.microstrategy.web.app.transforms.VisualizationsHelper |
This is a helper class with methods to validate WebVisualizationSettings from different type of beans.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
class | VisualizationsHelper.PrepareStringForXMLParser | replace the xml specific charcters, including "&", "<", ">" only replace the content in "" |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | PROPERTY_COLUMN_GROUPING | ||||||||||
int | VISUALIZATIONS_REPORT_RESULT_FLAGS | These are the report result flags that are necessary to generate the XML necessary for visualizations (8790560) Note: also set on the pageConfig.xml |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static void |
addCommonFlashVars(HashList flashVars, AppContext appContext, WebBean bean)
Adds flash vars that are common
| ||||||||||
static void |
checkForGroupByAll(RWBean rwb, AppContext appContext)
Checks whether the current groupby selection is supported for visualizations.
| ||||||||||
static void |
checkVisualizationSettings(ReportBean rb, AppContext appContext)
Checks the visualization settings for the ReportBean and throws a WebAppRuntimeException
if it finds any of the settings are incorrect.
| ||||||||||
static void |
checkVisualizationSettings(RWBean rwb, AppContext appContext, int scope)
Checks the visualization settings for the RWBean and throws a WebAppRuntimeException
if it finds any of the settings are incorrect.
| ||||||||||
static void |
checkVisualizationSettings(ViewBean vb, AppContext appContext)
Checks the visualization settings for the ViewBean and throws a WebAppRuntimeException
if it finds any of the settings are incorrect.
| ||||||||||
static void |
checkVisualizationSettings(RWBean rwb, AppContext appContext)
Checks the visualization settings for the RWBean and throws a WebAppRuntimeException
if it finds any of the settings are incorrect.
| ||||||||||
static void |
checkVisualizationSettings(int visMode, WebVisualizationSettings settings, AppContext appContext, int scope)
Checks the visualization settings are correct and throws a WebAppRuntimeException
if it finds any of the settings are incorrect.
| ||||||||||
static Block | createVisPropsBlock(HashList<String, String> visProps, ViewBean viewBean) | ||||||||||
static Block | createVisPropsBlock(ViewBean vb) | ||||||||||
static RWGridGraphObject |
findGridGraphObject(RWUnit unit, String key)
Find the GridGraphObject within the tree.
| ||||||||||
static HashList<String, String> |
generateVisPropsList(String visPropsString)
Helper method that returns a list that contains the key/value pairs of visualization properties
| ||||||||||
static ParameterBuilder |
getBaseURL(boolean useAbsoluteURL, AppContext appContext, WebBean bean, boolean addSessionState)
Returns a
ParameterBuilder object that contains a base URL. | ||||||||||
static WebVisualizationSettings | getDocVisualizationSettings(RWBean rwb) | ||||||||||
static HashList<String, HashList<String, String>> | getGrids(String propVal) | ||||||||||
static Block | getMapCoordsFromFile(String relFilePath, ContainerServices containerServices) | ||||||||||
static String | getResourceBundleURL(String dashboardBundleFilePrefix, ContainerServices cs, int localeID) | ||||||||||
static ParameterBuilder |
getTaskBaseURL(boolean useAbsoluteURL, AppContext appContext, String taskProcessorName, String contentType)
Returns a
ParameterBuilder object that contains a base URL which can be used to invoke a Task on the Tasks infrastructure. | ||||||||||
static ParameterBuilder |
getTaskBaseURL(boolean useAbsoluteURL, AppContext appContext, String taskProcessorName)
Returns a
ParameterBuilder object that contains a base URL which can be used to invoke a Task on the Tasks infrastructure. | ||||||||||
static WebVisualizationSettings |
getVisualizationSettings(RWBean rwb)
Returns the WebVisualizationSettings for the given RWBean.
| ||||||||||
static WebVisualizationSettings |
getVisualizationSettings(ReportBean rb)
Returns the WebVisualizationSettings for the given ReportBean.
| ||||||||||
static WebVisualizationSettings |
getVisualizationSettings(ViewBean vb)
Returns the WebVisualizationSettings for the given ViewBean.
| ||||||||||
static boolean | isDocInVisualizationMode(RWBean rwb) | ||||||||||
static boolean |
isGroupBySupported(RWBean rwb)
Whether the current groupby selection is supported for visualizations.
| ||||||||||
static boolean |
isValidVisualization(int visMode, String visName, AppContext appContext, int scope)
Returns whether the visualization is defined for the current visualization mode, scope and project.
| ||||||||||
static boolean |
isValidVisualizationMode(int visMode, AppContext appContext)
Returns whether the view mode is valid.
| ||||||||||
static void | setAndroidMojoVisProps(Block gridBlock, ViewBean vb) | ||||||||||
static void |
setBoneRWVisualizationProperties(JsonGenerator boneProps, RWBean rwb, AppContext appContext)
Adds all the visualizations related properties to the
JsonGenerator object | ||||||||||
static String | toFlashVarsStr(HashList flashVarsList) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
These are the report result flags that are necessary to generate the XML necessary for visualizations (8790560) Note: also set on the pageConfig.xml
Adds flash vars that are common
flashVars | the flashvars collection |
---|---|
appContext | the application context |
bean | The bean being transformed |
Checks whether the current groupby selection is supported for visualizations.
Throws WebAppRuntimeException
if not supported.
We do not support "All"
rwb | The RWBean |
---|---|
appContext | The application context |
WebAppRuntimeException | if the current groupby selection is not supported for visualizations |
---|
Checks the visualization settings for the ReportBean and throws a WebAppRuntimeException if it finds any of the settings are incorrect.
Checks the visualization settings for the RWBean and throws a WebAppRuntimeException if it finds any of the settings are incorrect.
Checks the visualization settings for the ViewBean and throws a WebAppRuntimeException if it finds any of the settings are incorrect.
Checks the visualization settings for the RWBean and throws a WebAppRuntimeException if it finds any of the settings are incorrect.
Checks the visualization settings are correct and throws a WebAppRuntimeException if it finds any of the settings are incorrect. This method will throw an Exception if:
Find the GridGraphObject within the tree.
unit | The unit to start with. |
---|---|
key | The node key to search. |
Helper method that returns a list that contains the key/value pairs of visualization properties
visPropsString | the VisProps String (XML format) |
---|
Returns a ParameterBuilder
object that contains a base URL.
This object is initialized with the TargetBase, TargetPrefix and contains the session manager state which is used in URLs as argument WebSessionManagerState
to restore the session.
useAbsoluteURL | whether to use an absolute URL |
---|---|
appContext | The AppContext object |
bean | The bean being transformed |
addSessionState | whether to add the session state to the URL. Only relevant if useAbsoluteURL is true as with relative paths, the session state info is not necessary |
ParameterBuilder
object that contains a base URL.Exception |
---|
Returns a ParameterBuilder
object that contains a base URL which can be used to invoke a Task on the Tasks infrastructure.
This object is initialized with the TargetBase, TargetPrefix and contains the session manager state which is used in URLs as argument WebSessionManagerState
to restore the session.
useAbsoluteURL | wether to use an absolute URL |
---|---|
appContext | The AppContext object |
taskProcessorName | The task processor name |
contentType | the type of data expected (xml, json, html) |
ParameterBuilder
object that contains a base URL which can be used to invoke a Task on the Tasks infrastructure.Returns a ParameterBuilder
object that contains a base URL which can be used to invoke a Task on the Tasks infrastructure.
This object is initialized with the TargetBase, TargetPrefix and contains the session manager state which is used in URLs as argument WebSessionManagerState
to restore the session.
useAbsoluteURL | wether to use an absolute URL |
---|---|
appContext | The AppContext object |
taskProcessorName | The task processor name |
ParameterBuilder
object that contains a base URL which can be used to invoke a Task on the Tasks infrastructure.Returns the WebVisualizationSettings for the given RWBean.
Returns the WebVisualizationSettings for the given ReportBean.
Returns the WebVisualizationSettings for the given ViewBean.
Whether the current groupby selection is supported for visualizations.
We do not support "All"
rwb | The RWBean |
---|
Returns whether the visualization is defined for the current visualization mode, scope and project. if the visualization mode is 0 it returns false as 0 refers to normal view modes; if it's not 0 it checks first if the visualization mode is defined at all, and if so, it returns true only if the visualization is defined for that view mode and scope.
Returns whether the view mode is valid. If visMode is 0, then this method returns true as all "normal" view modes are valid, if it's not 0, then it returns true only if the visualizationMode is defined in the visualizations list (that is, in the visualizations configuration file).
Exception | |
---|---|
WebBeanException | |
WebObjectsException |
Adds all the visualizations related properties to the JsonGenerator
object
boneProps | the JsonGenerator object where the properties will be added |
---|---|
rwb | The RWBean |
appContext | The AppContext object |
WebBeanException | |
WebObjectsException | |
WebBeanException |