Package step.core.artefacts.reports
Class ReportNodeAccessorImpl
java.lang.Object
step.core.accessors.AbstractAccessor<ReportNode>
step.core.artefacts.reports.ReportNodeAccessorImpl
- All Implemented Interfaces:
step.core.accessors.Accessor<ReportNode>
,ReportNodeAccessor
,ReportTreeAccessor
- Direct Known Subclasses:
InMemoryReportNodeAccessor
public class ReportNodeAccessorImpl
extends step.core.accessors.AbstractAccessor<ReportNode>
implements ReportTreeAccessor, ReportNodeAccessor
-
Field Summary
Fields inherited from class step.core.accessors.AbstractAccessor
collectionDriver, newVersionThresholdMs, versionedCollectionDriver
-
Constructor Summary
ConstructorDescriptionReportNodeAccessorImpl
(step.core.collections.Collection<ReportNode> collectionDriver) -
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.getReportNodesWithContributingErrors
(String executionID) getRootReportNode
(String executionID) void
removeNodesByExecutionID
(String executionID) Methods inherited from class step.core.accessors.AbstractAccessor
createOrUpdateCompoundIndex, createOrUpdateIndex, enableVersioning, findByAttributes, findByAttributes, findByCriteria, findManyByAttributes, findManyByAttributes, findManyByCriteria, get, get, getAll, getCollectionDriver, getHistory, getRange, isVersioningEnabled, remove, restoreVersion, save, save, stream, streamLazy
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
-
Constructor Details
-
ReportNodeAccessorImpl
-
-
Method Details
-
createIndexesIfNeeded
- Specified by:
createIndexesIfNeeded
in interfaceReportNodeAccessor
-
getReportNodePath
- Specified by:
getReportNodePath
in interfaceReportNodeAccessor
-
getChildren
- Specified by:
getChildren
in interfaceReportNodeAccessor
-
getChildren
- Specified by:
getChildren
in interfaceReportNodeAccessor
-
getReportNodesByExecutionID
Description copied from interface:ReportNodeAccessor
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.- Specified by:
getReportNodesByExecutionID
in interfaceReportNodeAccessor
- Parameters:
executionID
- the id of the execution- Returns:
- a
Stream
with all report nodes of this execution
-
getReportNodesByExecutionIDAndClass
Description copied from interface:ReportNodeAccessor
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.- Specified by:
getReportNodesByExecutionIDAndClass
in interfaceReportNodeAccessor
- 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
public Stream<ReportNode> getReportNodesByExecutionIDAndCustomAttribute(String executionID, Map<String, String> customAttributes) Description copied from interface:ReportNodeAccessor
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.- Specified by:
getReportNodesByExecutionIDAndCustomAttribute
in interfaceReportNodeAccessor
- 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
public ReportNode getReportNodeByParentIDAndArtefactID(org.bson.types.ObjectId parentID, org.bson.types.ObjectId artefactID) - Specified by:
getReportNodeByParentIDAndArtefactID
in interfaceReportNodeAccessor
-
getRootReportNode
- Specified by:
getRootReportNode
in interfaceReportNodeAccessor
-
getChildren
Description copied from interface:ReportTreeAccessor
Returns the list of children of the ReportNode- Specified by:
getChildren
in interfaceReportNodeAccessor
- Specified by:
getChildren
in interfaceReportTreeAccessor
- Parameters:
parentID
- the ID of the parent ReportNode- Returns:
- an Iterator of the list of children
-
getReportNodesWithContributingErrors
- Specified by:
getReportNodesWithContributingErrors
in interfaceReportTreeAccessor
-
removeNodesByExecutionID
- Specified by:
removeNodesByExecutionID
in interfaceReportNodeAccessor
-