java.lang.Object | ||
↳ | com.microstrategy.utils.config.AbstractConfigurationElement | |
↳ | com.microstrategy.web.config.Visualization |
This class represents a visualization node of the visualizations.xml
A Visualization is a way to display the report/document data. Its name must match a style name from the style catalog.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | ATT_ATTRIBUTE_MINIMUM | The minimum number of attributes required by the visualization | |||||||||
String | ATT_DESC | xml attribute name for the description of the visualization | |||||||||
String | ATT_DESC_ID | xml attribute name for the descriptor ID of the visualization | |||||||||
String | ATT_DROP_ZONES | The class name of the drop zones to a certain customized visualization | |||||||||
String | ATT_EDITOR_MODEL | The class name of the editor model to a certain customized visualization | |||||||||
String | ATT_FEATURE_ID | Feature ID that indicates whether this visualization is enabled | |||||||||
String | ATT_ID | xml attribute name for the id of the visualization | |||||||||
String | ATT_IMAGE | xml attribute name for visualization's image | |||||||||
String | ATT_INCLUDE_MD_PROPERTIES | xml attribute name for including the metadata properties on the visualization's XML | |||||||||
String | ATT_IS_MOJO | Whether the visualization is rendered using a mojo class. | |||||||||
String | ATT_MAX_SECONDARY_PROVIDERS | xml attribute name for the maximum number of secondary data providers | |||||||||
String | ATT_METRIC_MINIMUM | The minimum number of metrics required by the visualization | |||||||||
String | ATT_MIN_SECONDARY_PROVIDERS | xml attribute name for the minimum number of secondary data providers | |||||||||
String | ATT_PROJECTS | xml attribute name for the list of projects that the visualization applies to. | |||||||||
String | ATT_PROPS_EDITOR | xml attribute name for the block that defines the layout of the visualization properties editor | |||||||||
String | ATT_SCOPE | xml attribute name for the scope of the visualization | |||||||||
String | ATT_STYLE_NAME | xml attribute name for the style-name of the visualization | |||||||||
String | ATT_SUBTYPES | The visualizations subtypes. | |||||||||
String | ATT_WIDGET_TYPE | The widget type of this visualization (used on dashboards) | |||||||||
String | NODE_VISUALIZATION | constant for the shortcut list node name | |||||||||
int | SCOPE_ALL | ||||||||||
int | SCOPE_DASHBOARD | ||||||||||
int | SCOPE_REPORT | ||||||||||
int | SCOPE_RW | ||||||||||
int | SCOPE_RW_GRID | ||||||||||
int | SCOPE_RW_LAYOUT |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Visualization(Node root)
Creates a Visualization with the information in the Xml Node.
| |||||||||||
Visualization(Node root, VisualizationList parentNode)
This constructor is deprecated.
use
Visualization(Node) instead
| |||||||||||
Visualization() | |||||||||||
Visualization(String styleName, String description, VisualizationList parentNode)
This constructor is deprecated.
use
Visualization(String, String) instead.
| |||||||||||
Visualization(String styleName, String description) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String |
getAttributeMinimum()
The minimum number of attributes required by the visualization
| ||||||||||
String |
getDescriptor()
Get the identifier of the descriptor to be used for the visualization
| ||||||||||
String |
getDescriptorId()
Get the identifier of the descriptor to be used for the visualization
| ||||||||||
String |
getDropZones()
The class name of the drop zones to a certain customized visualization
| ||||||||||
String |
getEditorModel()
The class name of the editor model to a certain customized visualization
| ||||||||||
String | getFeatureID() | ||||||||||
String |
getId()
An ID attribute used to link a visualization with a widget if the IDs are the same.
| ||||||||||
String | getImage() | ||||||||||
String |
getIncludeMDProperties()
Whether to include the metadata properties on the visualization's XML
| ||||||||||
Object |
getKey()
Default implementation for
getKey() . | ||||||||||
int | getMaxSecondaryProviders() | ||||||||||
String |
getMetricMinimum()
The minimum number of metrics required by the visualization
| ||||||||||
int | getMinSecondaryProviders() | ||||||||||
String[] | getProjectList() | ||||||||||
String |
getProjects()
Get the list of projects that the visualization applies to.
| ||||||||||
String | getPropsEditor() | ||||||||||
int |
getScope()
A bitwise flag that the termines what type of object does this visualization applies to:
SCOPE_REPORT
SCOPE_RW_GRID
SCOPE_RW | ||||||||||
boolean |
getShowInWeb()
Whether the object is supposed to be displayed in Web.
| ||||||||||
String |
getStyleName()
Get the style-name for this visualization.
| ||||||||||
String |
getSubtypes()
The visualizations subtypes.
| ||||||||||
int |
getViewMode()
Returns the view mode from the parent
VisualizationList . | ||||||||||
String |
getWidgetType()
The widget type of this visualization
| ||||||||||
static boolean | isESRIMapVisualization(String styleName) | ||||||||||
boolean | isMojo() | ||||||||||
static boolean | isObjectInVisualizationMode(int visMode) | ||||||||||
boolean |
isValid(int viewMode, int scope, WebIServerSession session, WebComponent bean)
Validates a visualization based on the viewMode, scope and session provided.
| ||||||||||
boolean |
isValid(int viewMode, int scope, WebIServerSession session)
Validates a visualization based on the viewMode, scope and session provided.
| ||||||||||
static int | resolveVisualizationViewModeFromAbbreviation(String abbreviation) | ||||||||||
void |
setAttributeMinimum(String value)
Sets the minimum number of attributes required by the visualization
| ||||||||||
void |
setDescriptor(String descriptor)
Set the descriptor property value of the visualization instance
| ||||||||||
void |
setDescriptorID(String descriptorID)
Set the identifier of the descriptor to be used for the visualization
| ||||||||||
void |
setDropZones(String value)
The class name of the drop zones to a certain customized visualization
| ||||||||||
void |
setEditorModel(String value)
The class name of the editor model to a certain customized visualization
| ||||||||||
void |
setFeatureID(String value)
Sets the visualization's feature id that indicates whether this visualization is enabled
| ||||||||||
void |
setId(String value)
Sets the visualization's id.
| ||||||||||
void |
setImage(String value)
Sets the visualization's image
| ||||||||||
void |
setIncludeMDProperties(String includeMDProperties)
Whether to include the metadata properties on the visualization's XML
| ||||||||||
void |
setIsMojo(boolean value)
Sets the is-mojo flag for the visualization
| ||||||||||
void |
setMaxSecondaryProviders(int value)
Sets the maximum number of secondary data providers
| ||||||||||
void |
setMetricMinimum(String value)
Set the minimum number of metrics required by the visualization
| ||||||||||
void |
setMinSecondaryProviders(int value)
Sets the minimum number of secondary data providers
| ||||||||||
void |
setProjects(String projects)
Sets the list of projects that the visualization applies to.
| ||||||||||
void |
setPropsEditor(String value)
Sets the name of the style that renders the visualization's properties editor
properties editor
| ||||||||||
void |
setScope(int scope)
Sets a bitwise flag that the termines what type of object does this visualization applies to:
SCOPE_REPORT
SCOPE_RW_GRID
SCOPE_RW | ||||||||||
void |
setShowInWeb(boolean showInWeb)
Whether the object is supposed to be displayed in Web.
| ||||||||||
void |
setStyleName(String name)
Sets the name for this visualization.
| ||||||||||
void |
setViewMode(int viewMode)
Returns the view mode from the parent
VisualizationList . | ||||||||||
void |
setWidgetType(String value)
The widget type of this visualization
|
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. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
The minimum number of attributes required by the visualization
xml attribute name for the description of the visualization
xml attribute name for the descriptor ID of the visualization
The class name of the drop zones to a certain customized visualization
The class name of the editor model to a certain customized visualization
Feature ID that indicates whether this visualization is enabled
xml attribute name for the id of the visualization
xml attribute name for visualization's image
xml attribute name for including the metadata properties on the visualization's XML
Whether the visualization is rendered using a mojo class.
xml attribute name for the maximum number of secondary data providers
The minimum number of metrics required by the visualization
xml attribute name for the minimum number of secondary data providers
xml attribute name for the list of projects that the visualization applies to.
The list should be separated by pipe "|"
xml attribute name for the block that defines the layout of the visualization properties editor
xml attribute name for the scope of the visualization
xml attribute name for the style-name of the visualization
The visualizations subtypes. Used for the graph matrix in dashboards
The widget type of this visualization (used on dashboards)
constant for the shortcut list node name
Creates a Visualization with the information in the Xml Node. Internally
it calls initFromXML(Node)
.
root | the xml node. |
---|
This constructor is deprecated.
use Visualization(Node)
instead
Creates a Visualization with the information in the Xml Node. Internally
it calls initFromXML(Node)
.
root | the xml node. |
---|
The minimum number of attributes required by the visualization
Get the identifier of the descriptor to be used for the visualization
String
value of the descriptor identifier property.
Get the identifier of the descriptor to be used for the visualization
String
value of the descriptor identifier property.
The class name of the drop zones to a certain customized visualization
The class name of the editor model to a certain customized visualization
An ID attribute used to link a visualization with a widget if the IDs are the same. This is not the ID of the item on the Visualization list.
Whether to include the metadata properties on the visualization's XML
Default implementation for getKey()
. It assumes a single attribute
can be used to uniquely identify this element among its siblings; the attribute to use
is specified by the getKeyAttribute()
method.
getKeyAttribute()
is empty returns null
, otherwise it returns the value of the given attribute.
The minimum number of metrics required by the visualization
Get the list of projects that the visualization applies to.
The list should be separated by pipe "|"
String
value of the projects property.
A bitwise flag that the termines what type of object does this visualization applies to:
SCOPE_REPORT
SCOPE_RW_GRID
SCOPE_RW
Whether the object is supposed to be displayed in Web.
This property is read from the VisualizationList
False for mobile.
Get the style-name for this visualization.
This name must be unique on the visualization list and must match to the name of a style in the style catalog.
String
value of the name property.
The visualizations subtypes. Used for the graph matrix in dashboards
Returns the view mode from the parent VisualizationList
.
This value will be used to display a specific icon while folder browsing.
The values should not overlap with the values from EnumWebReportViewMode
The widget type of this visualization
Validates a visualization based on the viewMode, scope and session provided.
viewMode | the view mode to validate (-1 means all view modes) |
---|---|
scope | the scope to validate (-1 means all scopes) |
session | the session used to validate the project (null means ignore) |
bean | used to evaluate a feature |
Validates a visualization based on the viewMode, scope and session provided.
viewMode | the view mode to validate (-1 means all view modes) |
---|---|
scope | the scope to validate (-1 means all scopes) |
session | the session used to validate the project (null means ignore) |
Sets the minimum number of attributes required by the visualization
Set the descriptor property value of the visualization instance
descriptor | the String value of the descriptor property.
|
---|
Set the identifier of the descriptor to be used for the visualization
descriptorID | the String value of the descriptor identifier property.
|
---|
The class name of the drop zones to a certain customized visualization
The class name of the editor model to a certain customized visualization
Sets the visualization's feature id that indicates whether this visualization is enabled
value | the visualization's feature |
---|
Sets the visualization's id. An ID attribute used to link a visualization with a widget if the IDs are the same. This is not the ID of the item on the Visualization list.
value | the visualization's ID |
---|
Sets the visualization's image
value | the visualization's image |
---|
Whether to include the metadata properties on the visualization's XML
Sets the is-mojo flag for the visualization
value | boolean value if the style supports mojo |
---|
Sets the maximum number of secondary data providers
value | the maximum number of secondary data providers |
---|
Set the minimum number of metrics required by the visualization
Sets the minimum number of secondary data providers
value | the minimum number of secondary data providers |
---|
Sets the list of projects that the visualization applies to.
The list should be separated by pipe "|"
projects | the list or projects |
---|
Sets the name of the style that renders the visualization's properties editor properties editor
value | the name of style |
---|
Sets a bitwise flag that the termines what type of object does this visualization applies to:
SCOPE_REPORT
SCOPE_RW_GRID
SCOPE_RW
scope | the flag |
---|
Whether the object is supposed to be displayed in Web.
This property is read from the VisualizationList
False for mobile.
Sets the name for this visualization.
This name must be unique on the visualization list and must match to the name of a style in the style catalog.
Returns the view mode from the parent VisualizationList
.
This value will be used to display a specific icon while folder browsing.
The values should not overlap with the values from EnumWebReportViewMode
The widget type of this visualization
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.