Class InvocationDescriptorView
- java.lang.Object
-
- com.xebialabs.deployit.engine.api.dto.AbstractDto
-
- com.xebialabs.deployit.core.rest.view.InvocationDescriptorView
-
- All Implemented Interfaces:
BasePreview
public class InvocationDescriptorView extends com.xebialabs.deployit.engine.api.dto.AbstractDto implements BasePreview
The invocation description object containing document input/output and diff for given invocation with list of called processors and possible errors.
-
-
Constructor Summary
Constructors Constructor Description InvocationDescriptorView()
InvocationDescriptorView(java.lang.String name, java.lang.String input, java.lang.String output, java.lang.String diff, java.util.List<InvocationProcessorView> processors, java.util.Map<java.lang.String,java.lang.String> errors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDiff()
Returns diff object as string.java.util.Map<java.lang.String,java.lang.String>
getErrors()
Returns map of errors per processor.java.lang.String
getInput()
Returns input object as string.java.lang.String
getName()
Returns invocation name.java.lang.String
getOutput()
Returns output object as string.java.util.List<InvocationProcessorView>
getProcessors()
Returns list of processor details that were used in invocation transformations in order of execution.void
setDiff(java.lang.String diff)
Sets diff object as string.void
setErrors(java.util.Map<java.lang.String,java.lang.String> errors)
Sets map of errors per processor.void
setInput(java.lang.String input)
Sets input object as string.void
setName(java.lang.String name)
Sets invocation name as string.void
setOutput(java.lang.String output)
Sets output object as string.void
setProcessors(java.util.List<InvocationProcessorView> processors)
Sets list of processor details that were used in invocation transformations in order of execution.
-
-
-
Constructor Detail
-
InvocationDescriptorView
public InvocationDescriptorView()
-
InvocationDescriptorView
public InvocationDescriptorView(java.lang.String name, java.lang.String input, java.lang.String output, java.lang.String diff, java.util.List<InvocationProcessorView> processors, java.util.Map<java.lang.String,java.lang.String> errors)
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns invocation name.- Returns:
- The invocation name set by the plugin. Defaults to "Untitled transformation" constant.
-
setName
public void setName(java.lang.String name)
Sets invocation name as string.- Parameters:
name
- The invocation name for transformation.
-
getInput
public java.lang.String getInput()
Returns input object as string.- Returns:
- The input document for transformation.
-
setInput
public void setInput(java.lang.String input)
Sets input object as string.- Parameters:
input
- The input document for transformation.
-
getOutput
public java.lang.String getOutput()
Returns output object as string.- Returns:
- The output document from transformation.
-
setOutput
public void setOutput(java.lang.String output)
Sets output object as string.- Parameters:
output
- The output document from transformation.
-
getDiff
public java.lang.String getDiff()
Returns diff object as string.- Returns:
- The diff for input and output adopted for text preview.
-
setDiff
public void setDiff(java.lang.String diff)
Sets diff object as string.- Parameters:
diff
- The diff for input and output adopted for text preview.
-
getProcessors
public java.util.List<InvocationProcessorView> getProcessors()
Returns list of processor details that were used in invocation transformations in order of execution.- Returns:
- List of processors.
-
setProcessors
public void setProcessors(java.util.List<InvocationProcessorView> processors)
Sets list of processor details that were used in invocation transformations in order of execution.- Parameters:
processors
- List of processors.
-
getErrors
public java.util.Map<java.lang.String,java.lang.String> getErrors()
Returns map of errors per processor.- Returns:
- Map of errors with processor ID as key to indicate errors that happened during invocation. This list is empty if no errors occurred.
-
setErrors
public void setErrors(java.util.Map<java.lang.String,java.lang.String> errors)
Sets map of errors per processor.- Parameters:
errors
- Map of errors with processor ID as key to indicate errors that happened during invocation. This list is empty if no errors occurred.
-
-