Class MatrixExportConfiguration
java.lang.Object
com.polarion.alm.tracker.exporter.ExportConfiguration
com.polarion.alm.tracker.exporter.MatrixExportConfiguration
- All Implemented Interfaces:
IExportConfiguration
,IMatrixExportConfiguration
public class MatrixExportConfiguration
extends ExportConfiguration
implements IMatrixExportConfiguration
- Author:
- Jiri Banszel, POLARION SOFTWARE
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.polarion.alm.tracker.exporter.IExportConfiguration
IExportConfiguration.IExportField
-
Field Summary
Fields inherited from interface com.polarion.alm.tracker.exporter.IMatrixExportConfiguration
EXPORT_TYPE
-
Constructor Summary
ConstructorDescriptionMatrixExportConfiguration
(String charset, List<IExportConfiguration.IExportField> fields, IExportTemplate template, Map<String, Object> params) -
Method Summary
Modifier and TypeMethodDescriptionList of objects that form columns of the matrix.Query used to obtain the column objects, ornull
.Role of links that should be exported, ornull
if all links should be exported.getQuery()
Deprecated.List of objects that form rows of the matrix.Query used to obtain the row objects, ornull
.Deprecated.Deprecated.boolean
Returnstrue
if columns of the matrix represent Revisions.boolean
Returnstrue
if rows of the matrix represent Revisions, i.e.void
setColumns
(String query, IPObjectList<IPObject> objects, boolean revisions) void
setLinkRole
(ILinkRoleOpt linkRole) void
setRows
(String query, IPObjectList<IPObject> objects, boolean revisions) Methods inherited from class com.polarion.alm.tracker.exporter.ExportConfiguration
getCharset, getContextId, getExportFields, getFields, getModule, getParameter, getTemplate, setContextId, setModule, setTemplate
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.polarion.alm.tracker.exporter.IExportConfiguration
getCharset, getContextId, getExportFields, getFields, getModule, getParameter, getTemplate
-
Constructor Details
-
MatrixExportConfiguration
public MatrixExportConfiguration(@NotNull String charset, @Nullable List<IExportConfiguration.IExportField> fields, @Nullable IExportTemplate template, @Nullable Map<String, Object> params) - Parameters:
charset
-fields
- either a list of field ids, or a list ofIExportConfiguration.IExportField
template
-params
-
-
-
Method Details
-
setRows
public void setRows(@Nullable String query, @NotNull IPObjectList<IPObject> objects, boolean revisions) -
getRowQuery
Description copied from interface:IMatrixExportConfiguration
Query used to obtain the row objects, ornull
.- Specified by:
getRowQuery
in interfaceIMatrixExportConfiguration
-
getRowObjects
Description copied from interface:IMatrixExportConfiguration
List of objects that form rows of the matrix. The list has to contain either only Work Items or only Revisions. Rows and columns may not both contain Revisions.- Specified by:
getRowObjects
in interfaceIMatrixExportConfiguration
-
hasRevisionRows
public boolean hasRevisionRows()Description copied from interface:IMatrixExportConfiguration
Returnstrue
if rows of the matrix represent Revisions, i.e. ifIMatrixExportConfiguration.getRowObjects()
returns Revisions. Either rows, or columns, or both have to represent Work Items.- Specified by:
hasRevisionRows
in interfaceIMatrixExportConfiguration
-
setColumns
public void setColumns(@Nullable String query, @NotNull IPObjectList<IPObject> objects, boolean revisions) -
getColumnQuery
Description copied from interface:IMatrixExportConfiguration
Query used to obtain the column objects, ornull
.- Specified by:
getColumnQuery
in interfaceIMatrixExportConfiguration
-
getColumnObjects
Description copied from interface:IMatrixExportConfiguration
List of objects that form columns of the matrix. The list has to contain either only Work Items or only Revisions. Rows and columns may not both contain Revisions.- Specified by:
getColumnObjects
in interfaceIMatrixExportConfiguration
-
hasRevisionColumns
public boolean hasRevisionColumns()Description copied from interface:IMatrixExportConfiguration
Returnstrue
if columns of the matrix represent Revisions. i.e. ifIMatrixExportConfiguration.getColumnObjects()
returns Revisions. Either rows, or columns, or both have to represent Work Items.- Specified by:
hasRevisionColumns
in interfaceIMatrixExportConfiguration
-
setLinkRole
-
getLinkRole
Description copied from interface:IMatrixExportConfiguration
Role of links that should be exported, ornull
if all links should be exported.- Specified by:
getLinkRole
in interfaceIMatrixExportConfiguration
- Returns:
- link role
-
getQuery
Deprecated.- Specified by:
getQuery
in interfaceIExportConfiguration
- Overrides:
getQuery
in classExportConfiguration
- Returns:
- The query used.
-
getWorkItems
Deprecated.Description copied from interface:IExportConfiguration
Returns Work Items in the first level of the tree. This is a convenient method for exporters that cannot export a tree. A single level tree is always passed to them so that this method only returns the list of Work Items to export.- Specified by:
getWorkItems
in interfaceIExportConfiguration
- Overrides:
getWorkItems
in classExportConfiguration
- Returns:
- The list of
IWorkItem
s, nevernull
. - See Also:
-
getWorkItemTree
Deprecated.- Specified by:
getWorkItemTree
in interfaceIExportConfiguration
- Overrides:
getWorkItemTree
in classExportConfiguration
- Returns:
- A tree of Work Items to export.
- See Also:
-