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
ConstructorsConstructorDescriptionMatrixExportConfiguration(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, ornullif 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.booleanReturnstrueif columns of the matrix represent Revisions.booleanReturnstrueif rows of the matrix represent Revisions, i.e.voidsetColumns(String query, IPObjectList<IPObject> objects, boolean revisions) voidsetLinkRole(ILinkRoleOpt linkRole) voidsetRows(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, setTemplateMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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.IExportFieldtemplate-params-
-
-
Method Details
-
setRows
public void setRows(@Nullable String query, @NotNull IPObjectList<IPObject> objects, boolean revisions) -
getRowQuery
Description copied from interface:IMatrixExportConfigurationQuery used to obtain the row objects, ornull.- Specified by:
getRowQueryin interfaceIMatrixExportConfiguration
-
getRowObjects
Description copied from interface:IMatrixExportConfigurationList 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:
getRowObjectsin interfaceIMatrixExportConfiguration
-
hasRevisionRows
public boolean hasRevisionRows()Description copied from interface:IMatrixExportConfigurationReturnstrueif 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:
hasRevisionRowsin interfaceIMatrixExportConfiguration
-
setColumns
public void setColumns(@Nullable String query, @NotNull IPObjectList<IPObject> objects, boolean revisions) -
getColumnQuery
Description copied from interface:IMatrixExportConfigurationQuery used to obtain the column objects, ornull.- Specified by:
getColumnQueryin interfaceIMatrixExportConfiguration
-
getColumnObjects
Description copied from interface:IMatrixExportConfigurationList 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:
getColumnObjectsin interfaceIMatrixExportConfiguration
-
hasRevisionColumns
public boolean hasRevisionColumns()Description copied from interface:IMatrixExportConfigurationReturnstrueif 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:
hasRevisionColumnsin interfaceIMatrixExportConfiguration
-
setLinkRole
-
getLinkRole
Description copied from interface:IMatrixExportConfigurationRole of links that should be exported, ornullif all links should be exported.- Specified by:
getLinkRolein interfaceIMatrixExportConfiguration- Returns:
- link role
-
getQuery
Deprecated.- Specified by:
getQueryin interfaceIExportConfiguration- Overrides:
getQueryin classExportConfiguration- Returns:
- The query used.
-
getWorkItems
Deprecated.Description copied from interface:IExportConfigurationReturns 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:
getWorkItemsin interfaceIExportConfiguration- Overrides:
getWorkItemsin classExportConfiguration- Returns:
- The list of
IWorkItems, nevernull. - See Also:
-
getWorkItemTree
Deprecated.- Specified by:
getWorkItemTreein interfaceIExportConfiguration- Overrides:
getWorkItemTreein classExportConfiguration- Returns:
- A tree of Work Items to export.
- See Also:
-