Class ProcessReport
java.lang.Object
com.appiancorp.suiteapi.process.analytics2.ProcessReport
- All Implemented Interfaces:
Serializable,Cloneable
Bean detailing an analytics report specification.
ProcessReports are serialized and saved to the file system as .arf files.
Look in the Reports section of the documentation to see a template of an .arf file.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intUsed to specify a default view type.static final intUsed to specify a group view type.static final intUsed to specify a print view type.static final intUsed to specify a process view type.static final intUsed to specify a running process view In Process Modeler.static final intUsed to specify a task view type.static final intUsed to specify a user view type. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Cloneable implementation - creates a deep copy theProcessReport.copy()Deprecated.getCache()Get the type cache used for rendering this report.Get the height of the chart associated with this report.Get the width of the chart associated with this report.getData()Get the data for this report.Get the display format of this report.getId()Get the id of this report.booleanDetermine if this report has been modified.Get the Id of the portlet that contains the report.booleanDetermine whether to show the show/hide columns link on the report.booleanDetermine whether a name of the report should be displayed at the top.booleanDetermine whether a toolbar should be displayed for this report.intgetView()Get the view type for this report.booleanGet whether this report can be edited and saved by the current user.voidPopulate the Appian type cache on this report.voidsetChartHeight(Integer chartHeight_) Set the height of the chart associated with this report.voidsetChartWidth(Integer chartWidth_) Set the width of the chart associated with this report.voidsetData(ReportData data_) Set the data for this report.voidsetDisplay(ReportDisplay display_) Set the display format of this report.voidsetGraphSize(Integer graphSize_) voidSet the id of this report.voidsetModified(boolean modified_) Set whether this report has been modified.voidsetPortletId(Long portletId_) Sets the Id of the portlet that will contain the report.voidsetShowDisplayOptions(boolean showDisplayOptions_) Set whether the show/hide columns link will be shown on the report.voidsetShowEditControls(Boolean showEditControls) voidsetShowFilters(Boolean showFilters) voidsetShowTitle(boolean showTitle_) Set whether the name of the report should be displayed at the top.voidsetShowToolbar(boolean showToolbar_) Set whether a toolbar will be shown for this report.voidsetShowUserControls(Boolean showUserControls) voidsetView(int view_) Set the view type for this report.voidsetWriteAccess(boolean writeAccess_) Set whether this report can be edited and saved by the current user.toString()
-
Field Details
-
VIEW_DEFAULT
public static final int VIEW_DEFAULTUsed to specify a default view type. The default view is the normal view in reporting. It is the view that isn't one of the other specific views.- See Also:
-
VIEW_PROCESS
public static final int VIEW_PROCESSUsed to specify a process view type. The process view is when a report is being seen in the process area of the user interface.- See Also:
-
VIEW_TASK
public static final int VIEW_TASKUsed to specify a task view type. The task view is when a report is being seen in the task area of the user interface.- See Also:
-
VIEW_PRINT
public static final int VIEW_PRINTUsed to specify a print view type. The print view is when a report is being printed.- See Also:
-
VIEW_USER
public static final int VIEW_USERUsed to specify a user view type. The user view is when a report is being seen in the user's section of the people area of the user interface.- See Also:
-
VIEW_GROUP
public static final int VIEW_GROUPUsed to specify a group view type. The user view is when a report is being seen in the group's section of the people area of the user interface.- See Also:
-
VIEW_PROCESS_INSTANCES
public static final int VIEW_PROCESS_INSTANCESUsed to specify a running process view In Process Modeler. The running process view is when a report is being seen in the process modeler design area of the user interface.- See Also:
-
-
Constructor Details
-
ProcessReport
public ProcessReport()
-
-
Method Details
-
clone
Cloneable implementation - creates a deep copy theProcessReport. It does not make a deep or shallow copy of the type cache, rather it creates a new empty cache which could be re-populated usingpopulateAppianTypeCache(ServiceContext). -
copy
Deprecated.useclone()instead -
getData
Get the data for this report.- Returns:
- the data.
- See Also:
-
getCache
Get the type cache used for rendering this report. The cache stores Appian objects (e.g. report context, users used in filters, etc.) so that they do not need to be reloaded each time Report Options is opened.- Returns:
- the type cache.
-
setData
Set the data for this report.- Parameters:
data_- the data.- See Also:
-
getDisplay
Get the display format of this report.- Returns:
- the display format.
- See Also:
-
setDisplay
Set the display format of this report.- Parameters:
display_- the display format.- See Also:
-
getId
Get the id of this report.- Returns:
- the id.
- See Also:
-
setId
Set the id of this report.- Parameters:
id_- the id.- See Also:
-
populateAppianTypeCache
Populate the Appian type cache on this report.- Parameters:
sc_- the service context used to query for type information.
-
getView
public int getView()Get the view type for this report. This information is used by the middle tier to determine how to display the report. It is not persisted in the engine. See the VIEW_XXX constants on this class. For example, for VIEW_DEFAULT, the report options dialogue is titled "Report Options", but for VIEW_TASK the dialogue is titled "Task View Options"- Returns:
- the view type.
- See Also:
-
setView
public void setView(int view_) Set the view type for this report.- Parameters:
view_- the view type.- See Also:
-
getWriteAccess
public boolean getWriteAccess()Get whether this report can be edited and saved by the current user. This is set in AnalyticsServiceJavaImpl whenever the report is loaded and is based on the folder permissions.- Returns:
trueif the current user can save the report;falseotherwise.- See Also:
-
setWriteAccess
public void setWriteAccess(boolean writeAccess_) Set whether this report can be edited and saved by the current user.- Parameters:
writeAccess_-trueif the current user can save the report;falseotherwise.- See Also:
-
getShowToolbar
public boolean getShowToolbar()Determine whether a toolbar should be displayed for this report. This is specified as a boolean attribute in the <apr:report> tag.- Returns:
trueif a toolbar should be visible;falseif not.- See Also:
-
setShowToolbar(boolean)ProcessReportTag
-
setShowToolbar
public void setShowToolbar(boolean showToolbar_) Set whether a toolbar will be shown for this report.- Parameters:
showToolbar_-trueif a toolbar should be visible;falseif not.- See Also:
-
getShowDisplayOptions
public boolean getShowDisplayOptions()Determine whether to show the show/hide columns link on the report. This is specified as a boolean attribute in the <apr:report> tag.- Returns:
trueif the link should be shown;falseotherwise.- See Also:
-
setShowDisplayOptions(boolean)ProcessReportTag
-
setShowDisplayOptions
public void setShowDisplayOptions(boolean showDisplayOptions_) Set whether the show/hide columns link will be shown on the report.- Parameters:
showDisplayOptions_-trueif the link should be shown;falseotherwise.- See Also:
-
getModified
public boolean getModified()Determine if this report has been modified. This gets set to true every time you update and close the report options. It is reset to false when the report is saved.- Returns:
trueif the report has been modified;falseotherwise.- See Also:
-
setModified
public void setModified(boolean modified_) Set whether this report has been modified.- Parameters:
modified_-trueif the report has been modified;falseotherwise.- See Also:
-
getChartHeight
Get the height of the chart associated with this report. When this is null, a default height is loaded by ChartDataUtil- Returns:
- the height in pixels.
- See Also:
-
setChartHeight
Set the height of the chart associated with this report.- Parameters:
chartHeight_- the height in pixels.- See Also:
-
getChartWidth
Get the width of the chart associated with this report. When this is null, a default width is loaded by ChartDataUtil- Returns:
- the width in pixels.
- See Also:
-
setChartWidth
Set the width of the chart associated with this report.- Parameters:
chartWidth_- the width in pixels.- See Also:
-
getGraphSize
-
setGraphSize
-
getPortletId
Get the Id of the portlet that contains the report.- Returns:
- Id of the portlet
- See Also:
-
setPortletId
Sets the Id of the portlet that will contain the report.- Parameters:
portletId_- Id of the portlet- See Also:
-
getShowTitle
public boolean getShowTitle()Determine whether a name of the report should be displayed at the top. This is specified as a boolean attribute in the <apr:report> tag.- Returns:
trueif the name of the report should be visible;falseif not.- See Also:
-
setShowTitle(boolean)ProcessReportTag
-
setShowTitle
public void setShowTitle(boolean showTitle_) Set whether the name of the report should be displayed at the top.- Parameters:
showTitle_-trueif the name of the report should be visible;falseif not.- See Also:
-
getShowFilters
-
setShowFilters
-
getShowUserControls
-
setShowUserControls
-
getShowEditControls
-
setShowEditControls
-
toString
-
clone()instead