Package step.core.artefacts.reports
Interface ReportNodeAccessor
- All Superinterfaces:
step.core.accessors.Accessor<ReportNode>
,ReportTreeAccessor
- All Known Implementing Classes:
InMemoryReportNodeAccessor
,ReportNodeAccessorImpl
public interface ReportNodeAccessor
extends step.core.accessors.Accessor<ReportNode>, ReportTreeAccessor
-
Method Summary
Modifier and TypeMethodDescriptionvoid
getChildren
(String parentID) Returns the list of children of the ReportNodegetChildren
(org.bson.types.ObjectId parentID) getChildren
(org.bson.types.ObjectId parentID, int skip, int limit) getReportNodeByParentIDAndArtefactID
(org.bson.types.ObjectId parentID, org.bson.types.ObjectId artefactID) getReportNodePath
(org.bson.types.ObjectId id) getReportNodesByExecutionID
(String executionID) Warning: this method must be used within a try-with-resources statement or similar control structure to ensure that the stream's I/O resources are closed promptly after the stream's operations have completed.getReportNodesByExecutionIDAndClass
(String executionID, String class_) Warning: this method must be used within a try-with-resources statement or similar control structure to ensure that the stream's I/O resources are closed promptly after the stream's operations have completed.getReportNodesByExecutionIDAndCustomAttribute
(String executionID, Map<String, String> customAttributes) Warning: this method must be used within a try-with-resources statement or similar control structure to ensure that the stream's I/O resources are closed promptly after the stream's operations have completed.getRootReportNode
(String executionID) void
removeNodesByExecutionID
(String executionID) Methods inherited from interface step.core.accessors.Accessor
enableVersioning, findByAttributes, findByAttributes, findByCriteria, findManyByAttributes, findManyByAttributes, findManyByCriteria, get, get, getAll, getCollectionDriver, getHistory, getRange, isVersioningEnabled, remove, restoreVersion, save, save, stream, streamLazy
Methods inherited from interface step.core.artefacts.reports.ReportTreeAccessor
get, getReportNodesWithContributingErrors
-
Method Details
-
createIndexesIfNeeded
-
getReportNodePath
-
getChildren
-
getChildren
-
getReportNodesByExecutionID
Warning: this method must be used within a try-with-resources statement or similar control structure to ensure that the stream's I/O resources are closed promptly after the stream's operations have completed.- Parameters:
executionID
- the id of the execution- Returns:
- a
Stream
with all report nodes of this execution
-
getReportNodesByExecutionIDAndClass
Warning: this method must be used within a try-with-resources statement or similar control structure to ensure that the stream's I/O resources are closed promptly after the stream's operations have completed.- Parameters:
executionID
- the id of the executionclass_
- the _class of the report node- Returns:
- a
Stream
with all report nodes of this execution with type class_
-
getReportNodesByExecutionIDAndCustomAttribute
Stream<ReportNode> getReportNodesByExecutionIDAndCustomAttribute(String executionID, Map<String, String> customAttributes) Warning: this method must be used within a try-with-resources statement or similar control structure to ensure that the stream's I/O resources are closed promptly after the stream's operations have completed.- Parameters:
executionID
- the id of the executioncustomAttributes
- filter on customer attributes- Returns:
- a
Stream
with all report nodes of this execution matching provided custom attributes
-
getReportNodeByParentIDAndArtefactID
ReportNode getReportNodeByParentIDAndArtefactID(org.bson.types.ObjectId parentID, org.bson.types.ObjectId artefactID) -
getRootReportNode
-
getChildren
Description copied from interface:ReportTreeAccessor
Returns the list of children of the ReportNode- Specified by:
getChildren
in interfaceReportTreeAccessor
- Parameters:
parentID
- the ID of the parent ReportNode- Returns:
- an Iterator of the list of children
-
removeNodesByExecutionID
-