public class ReportData extends java.lang.Object implements JSONCacheable, java.io.Serializable
Constants.SORT_ORDER_ASCENDING
, batchSize is set to DEFAULT_BATCH_SIZE,
sortColumnLocalId and startIndex are set to 0, and the report is not recursive.Modifier and Type | Field and Description |
---|---|
static int |
CONTEXT_TYPE_ASSIGNED_GROUP
Report only contains data for tasks assigned to
the groups specified in the context.
|
static int |
CONTEXT_TYPE_ATTRIBUTED_TO_USER
Report only contains data for tasks attributed to
the users specified in the context.
|
static int |
CONTEXT_TYPE_CREATED_BY
Report only contains data for process models created by
the users specified in the context.
|
static int |
CONTEXT_TYPE_GROUP_MEMBERS
Report only contains data for tasks attributed to
the groups specified in the context.
|
static int |
CONTEXT_TYPE_INITIATED_BY
Report only contains data for processes initiated by
the users specified in the context.
|
static int |
CONTEXT_TYPE_LAST_MOD_BY
Report only contains data for process models last modified by
the users specified in the context.
|
static int |
CONTEXT_TYPE_NODE
Report only contains data for nodes specified in the context.
|
static int |
CONTEXT_TYPE_PROCESS
Report only contains data for processes specified in the context.
|
static int |
CONTEXT_TYPE_PROCESS_MODEL
Report only contains data for process models specified in the context.
|
static int |
CONTEXT_TYPE_PROCESS_MODEL_VERSION
Report only contains data for process model versions specified in the context.
|
static int |
CONTEXT_TYPE_SYSTEM
Report has no context.
|
static int |
CONTEXT_TYPE_TASK_OWNER
Report only contains data for tasks owned by
the users specified in the context.
|
static int |
DEFAULT_BATCH_SIZE
Default number of results to return per page in the report.
|
static int |
REPORT_TYPE_ARCHIVED_PROCESS
Deprecated.
this has not been considered a valid report type and will be removed
|
static int |
REPORT_TYPE_EVENTS
Deprecated.
this has not been considered a valid report type and will be removed
|
static int |
REPORT_TYPE_PM
Report on Process Models.
|
static int |
REPORT_TYPE_PMVERSION
Report on Process Model Versions.
|
static int |
REPORT_TYPE_PROCESS
Report on Processes.
|
static int |
REPORT_TYPE_TASK
Report on Tasks.
|
hiddenAttributes$TRANSIENT
Constructor and Description |
---|
ReportData() |
Modifier and Type | Method and Description |
---|---|
int |
filter(Filter filter)
Add a filter to the list of base filters for this report.
|
int |
filter(QuickFilter filter)
Add a filter to the list of quick filters for this report.
|
java.lang.Long |
getArfDocumentId() |
Filter[] |
getBaseFilters()
Get the list of base filters for this report.
|
int |
getBatchSize()
Get the batch size.
|
Column |
getColumnByLocalId(java.lang.Integer id)
Get a column in this report by id.
|
Column |
getColumnByStringId(java.lang.String id)
Get a column in this report by stringId.
|
Column[] |
getColumns()
Get the columns for this report.
|
LocalObject[] |
getContext()
Get the context for this report.
|
int |
getContextType()
Get the context type, defined by CONTEXT_TYPE_XXX.
|
Column[] |
getDateTimeColumns(java.util.Map columnTypes_) |
java.util.HashSet |
getHiddenAttributes()
Unused but reserved.
|
Column[] |
getMetricColumns(java.util.Map columnTypes_)
Gets the columns which can be used as metrics.
|
java.lang.Integer |
getNextAvailableColumnLocalId()
Returns the next available column id.
|
QuickFilter[] |
getQuickFilters()
Get the list of quick filters for this report.
|
boolean |
getRecursive()
Get whether or not to return data from recursive processes.
|
java.lang.String |
getReportName() |
Column[] |
getShownColumns()
Gets the columns that would be shown in a report (ie. those for which getShow()
returns true).
|
java.lang.Integer |
getSortColumnLocalId()
Get the localId of the column to sort by for this report.
|
java.lang.Integer |
getSortOrder()
Get whether to sort in ascending or descending order, defined by
com.appiancorp.suiteapi.common.Constants.SORT_ORDER_XXX.
|
int |
getStartIndex()
Get the start index.
|
int |
getType()
Get the report type, defined by REPORT_TYPE_XXX.
|
boolean |
hasGrouping()
Indicates whether or not this ReportData contains any column
marked as group by
|
static boolean |
isValidContext(int reportType_,
int contextType_)
Verifies whether a context type is valid for the report type.
|
void |
setArfDocumentId(java.lang.Long arfDocumentId_) |
void |
setBaseFilters(Filter[] baseFilters_)
Set the list of base filters for this report.
|
void |
setBatchSize(int batchSize_)
Set the batch size.
|
void |
setColumns(Column[] columns_)
Set the columns for this report.
|
void |
setContext(LocalObject[] context_)
Set the context for this report.
|
void |
setContextType(int contextType_)
Set the context type, defined by CONTEXT_TYPE_XXX.
|
void |
setQuickFilters(QuickFilter[] quickFilters_)
Set the list of quick filters for this report.
|
void |
setRecursive(boolean recursive_)
Set whether or not to return data from recursive processes.
|
void |
setReportName(java.lang.String reportName_) |
void |
setSortColumnLocalId(java.lang.Integer sortColumnLocalId_)
Set the localId of the column to sort by for this report.
|
void |
setSortOrder(java.lang.Integer sortOrder_)
Set whether to sort in ascending or descending order, defined by
com.appiancorp.suiteapi.common.Constants.SORT_ORDER_XXX.
|
void |
setStartIndex(int startIndex_)
Set the start index.
|
void |
setType(int type_)
Set the report type, defined by REPORT_TYPE_XXX.
|
java.lang.String |
toString() |
public static final int REPORT_TYPE_PM
public static final int REPORT_TYPE_PROCESS
public static final int REPORT_TYPE_TASK
public static final int REPORT_TYPE_PMVERSION
@Deprecated public static final int REPORT_TYPE_EVENTS
@Deprecated public static final int REPORT_TYPE_ARCHIVED_PROCESS
public static final int CONTEXT_TYPE_SYSTEM
public static final int CONTEXT_TYPE_PROCESS_MODEL
public static final int CONTEXT_TYPE_PROCESS_MODEL_VERSION
public static final int CONTEXT_TYPE_NODE
public static final int CONTEXT_TYPE_PROCESS
public static final int CONTEXT_TYPE_CREATED_BY
public static final int CONTEXT_TYPE_LAST_MOD_BY
public static final int CONTEXT_TYPE_INITIATED_BY
public static final int CONTEXT_TYPE_ATTRIBUTED_TO_USER
public static final int CONTEXT_TYPE_ASSIGNED_GROUP
public static final int CONTEXT_TYPE_TASK_OWNER
public static final int CONTEXT_TYPE_GROUP_MEMBERS
public static final int DEFAULT_BATCH_SIZE
public java.lang.Long getArfDocumentId()
public void setArfDocumentId(java.lang.Long arfDocumentId_)
public java.lang.String getReportName()
public void setReportName(java.lang.String reportName_)
public static boolean isValidContext(int reportType_, int contextType_)
reportType_
- one of the constants REPORT_TYPE_XXXcontextType_
- one of the constants CONTEXT_TYPE_XXXtrue
if the context type is valid for the report type;public Filter[] getBaseFilters()
setBaseFilters(com.appiancorp.suiteapi.process.analytics2.Filter[])
public void setBaseFilters(Filter[] baseFilters_)
baseFilters_
- an array of base filtersgetBaseFilters()
public int filter(Filter filter)
filter
- public int filter(QuickFilter filter)
filter
- public Column[] getColumns()
setColumns(com.appiancorp.suiteapi.process.analytics2.Column[])
public void setColumns(Column[] columns_)
columns_
- the columnsgetColumns()
public LocalObject[] getContext()
setContext(com.appiancorp.suiteapi.common.LocalObject[])
public void setContext(LocalObject[] context_)
context_
- the contextgetContext()
public QuickFilter[] getQuickFilters()
setQuickFilters(com.appiancorp.suiteapi.process.analytics2.QuickFilter[])
public void setQuickFilters(QuickFilter[] quickFilters_)
quickFilters_
- the array of quick filtersgetQuickFilters()
public java.lang.Integer getSortColumnLocalId()
setSortColumnLocalId(java.lang.Integer)
public void setSortColumnLocalId(java.lang.Integer sortColumnLocalId_)
sortColumnLocalId_
- the localId of the column to sort bygetSortColumnLocalId()
public java.lang.Integer getSortOrder()
setSortOrder(java.lang.Integer)
public void setSortOrder(java.lang.Integer sortOrder_)
sortOrder_
- the sort ordergetSortOrder()
public int getType()
setType(int)
public void setType(int type_)
type_
- the report typegetType()
public int getContextType()
setContextType(int)
public void setContextType(int contextType_)
contextType_
- the context typegetContextType()
public Column getColumnByLocalId(java.lang.Integer id)
id
- the localId of the columnpublic Column getColumnByStringId(java.lang.String id)
id
- the localId of the columnpublic int getBatchSize()
setBatchSize(int)
public void setBatchSize(int batchSize_)
batchSize_
- the batch sizegetBatchSize()
public int getStartIndex()
setStartIndex(int)
public void setStartIndex(int startIndex_)
startIndex_
- the start indexgetStartIndex()
public Column[] getMetricColumns(java.util.Map columnTypes_)
columnTypes_
- a map of column ids to column typespublic Column[] getDateTimeColumns(java.util.Map columnTypes_)
public Column[] getShownColumns()
public java.util.HashSet getHiddenAttributes()
getHiddenAttributes
in interface JSONable
public boolean getRecursive()
true
if recursive data is returnedsetRecursive(boolean)
public void setRecursive(boolean recursive_)
recursive_
- set to true
to return recursive datagetRecursive()
public java.lang.Integer getNextAvailableColumnLocalId()
public boolean hasGrouping()
true
if any column is marked as group by.public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2003-2024 Appian Corporation. All Rights Reserved.