Class PipelineData
java.lang.Object
com.evolveum.midpoint.model.impl.scripting.PipelineData
- All Implemented Interfaces:
DebugDumpable
Data that are passed between individual scripting actions.
The content passed between actions (expressions) is a list of prism values
(object, container, reference, property) enriched with some additional information,
see
PipelineItem
.-
Field Summary
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(@NotNull PipelineItem pipelineItem) void
addAllFrom
(PipelineData otherData) void
addValue
(PrismValue value, VariablesMap variables) void
addValue
(PrismValue value, OperationResult result, VariablesMap variables) static @NotNull PipelineData
create
(@NotNull PrismValue value, @NotNull VariablesMap variables) static @NotNull PipelineData
debugDump
(int indent) @NotNull List<PipelineItem>
getData()
@NotNull List<ObjectReferenceType>
getDataAsReferences
(QName defaultTargetType, Class<? extends ObjectType> typeForQuery, ExecutionContext context, OperationResult result) Returns the pipeline content as a list of references.<T> T
getSingleValue
(Class<T> clazz) static @NotNull OperationResult
static PipelineDataType
prepareXmlData
(List<PipelineItem> output, ScriptingExpressionEvaluationOptionsType options) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
-
Method Details
-
getData
-
create
@NotNull public static @NotNull PipelineData create(@NotNull @NotNull PrismValue value, @NotNull @NotNull VariablesMap variables) -
createEmpty
-
newOperationResult
-
add
-
addAllFrom
-
addValue
-
addValue
-
getSingleValue
- Throws:
SchemaException
-
getDataAsReferences
@NotNull public @NotNull List<ObjectReferenceType> getDataAsReferences(QName defaultTargetType, Class<? extends ObjectType> typeForQuery, ExecutionContext context, OperationResult result) throws CommunicationException, ObjectNotFoundException, SchemaException, SecurityViolationException, ConfigurationException, ExpressionEvaluationException Returns the pipeline content as a list of references. Objects, PRVs, OIDs are converted directly to references. Search filters and queries are evaluated first. This is a legacy method and its use should be avoided. -
debugDump
- Specified by:
debugDump
in interfaceDebugDumpable
-
prepareXmlData
public static PipelineDataType prepareXmlData(List<PipelineItem> output, ScriptingExpressionEvaluationOptionsType options) -
toString
-