Class PipelineData
- java.lang.Object
-
- com.evolveum.midpoint.model.impl.scripting.PipelineData
-
- All Implemented Interfaces:
DebugDumpable
public class PipelineData extends Object implements 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, seePipelineItem
.
-
-
Field Summary
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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
createEmpty()
String
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
newOperationResult()
static PipelineDataType
prepareXmlData(List<PipelineItem> output, ScriptingExpressionEvaluationOptionsType options)
String
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 Detail
-
getData
@NotNull public @NotNull List<PipelineItem> getData()
-
create
@NotNull public static @NotNull PipelineData create(@NotNull @NotNull PrismValue value, @NotNull @NotNull VariablesMap variables)
-
createEmpty
@NotNull public static @NotNull PipelineData createEmpty()
-
newOperationResult
@NotNull public static @NotNull OperationResult newOperationResult()
-
add
public void add(@NotNull @NotNull PipelineItem pipelineItem)
-
addAllFrom
public void addAllFrom(PipelineData otherData)
-
addValue
public void addValue(PrismValue value, VariablesMap variables)
-
addValue
public void addValue(PrismValue value, OperationResult result, VariablesMap variables)
-
getSingleValue
public <T> T getSingleValue(Class<T> clazz) throws SchemaException
- Throws:
SchemaException
-
getDataAsReferences
@NotNull public @NotNull List<ObjectReferenceType> getDataAsReferences(QName defaultTargetType, Class<? extends ObjectType> typeForQuery, ExecutionContext context, OperationResult result) throws ScriptExecutionException, 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
public String debugDump(int indent)
- Specified by:
debugDump
in interfaceDebugDumpable
-
prepareXmlData
public static PipelineDataType prepareXmlData(List<PipelineItem> output, ScriptingExpressionEvaluationOptionsType options)
-
-