|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.core.node.workflow.WorkflowPersistorVersion1xx
public class WorkflowPersistorVersion1xx
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.knime.core.node.workflow.WorkflowPersistor |
|---|
WorkflowPersistor.ConnectionContainerTemplate, WorkflowPersistor.LoadResult, WorkflowPersistor.LoadResultEntry, WorkflowPersistor.MetaNodeLinkUpdateResult, WorkflowPersistor.WorkflowLoadResult, WorkflowPersistor.WorkflowPortTemplate |
| Field Summary |
|---|
| Fields inherited from interface org.knime.core.node.workflow.WorkflowPersistor |
|---|
KEY_CONNECTIONS, KEY_ID, KEY_NODES, KEY_UI_INFORMATION, METAINFO_FILE, SAVED_WITH_DATA_FILE, TEMPLATE_FILE, WORKFLOW_FILE |
| Constructor Summary | |
|---|---|
WorkflowPersistorVersion1xx(HashMap<Integer,ContainerTable> tableRep,
NodeContainerMetaPersistorVersion1xx metaPersistor,
WorkflowPersistorVersion200.LoadVersion version)
Internal constructor, not to be called outside this class or its derivates. |
|
WorkflowPersistorVersion1xx(HashMap<Integer,ContainerTable> tableRep,
ReferencedFile workflowKNIMEFile,
WorkflowLoadHelper loadHelper,
WorkflowPersistorVersion200.LoadVersion version)
Create persistor for load. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
WorkflowPersistorVersion1xx(HashMap<Integer,ContainerTable> tableRep,
ReferencedFile workflowKNIMEFile,
WorkflowLoadHelper loadHelper,
WorkflowPersistorVersion200.LoadVersion version)
tableRep - Table mapworkflowKNIMEFile - Associated workflow.knime fileloadHelper - The load helper as required by meta persistor.versionString - Version string of loading workflow.
WorkflowPersistorVersion1xx(HashMap<Integer,ContainerTable> tableRep,
NodeContainerMetaPersistorVersion1xx metaPersistor,
WorkflowPersistorVersion200.LoadVersion version)
| Method Detail |
|---|
static WorkflowPersistorVersion200.LoadVersion canReadVersionV1X0(String versionString)
public final WorkflowPersistorVersion200.LoadVersion getLoadVersion()
getLoadVersion in interface WorkflowPersistorprotected NodeLogger getLogger()
WorkflowLoadHelper getLoadHelper()
protected ReferencedFile getWorkflowKNIMEFile()
public Set<WorkflowPersistor.ConnectionContainerTemplate> getConnectionSet()
WorkflowPersistor.getAdditionalConnectionSet()).
getConnectionSet in interface WorkflowPersistorpublic Set<WorkflowPersistor.ConnectionContainerTemplate> getAdditionalConnectionSet()
getAdditionalConnectionSet in interface WorkflowPersistorpublic Map<Integer,NodeContainerPersistor> getNodeLoaderMap()
getNodeLoaderMap in interface WorkflowPersistorpublic boolean mustWarnOnDataLoadError()
mustWarnOnDataLoadError in interface WorkflowPersistorpublic NodeContainerMetaPersistorVersion1xx getMetaPersistor()
getMetaPersistor in interface NodeContainerPersistorpublic HashMap<Integer,ContainerTable> getGlobalTableRepository()
getGlobalTableRepository in interface WorkflowPersistor
public NodeContainer getNodeContainer(WorkflowManager parent,
NodeID id)
getNodeContainer in interface NodeContainerPersistorpublic String getName()
getName in interface WorkflowPersistorpublic WorkflowCipher getWorkflowCipher()
getWorkflowCipher in interface WorkflowPersistorWorkflowCipher.NULL_CIPHER, never null.public void setTemplateInformationLinkURI(URI templateInformationURI)
templateInformationURI - the uri to setpublic void setNameOverwrite(String nameOverwrite)
nameOverwrite - the nameOverwrite to setpublic MetaNodeTemplateInformation getTemplateInformation()
getTemplateInformation in interface WorkflowPersistor
public InputStream decipherInput(InputStream input)
throws IOException
decipherInput in interface WorkflowPersistorinput - The input to decipher.
IOExceptionpublic List<FlowVariable> getWorkflowVariables()
getWorkflowVariables in interface WorkflowPersistorpublic List<Credentials> getCredentials()
getCredentials in interface WorkflowPersistorpublic List<WorkflowAnnotation> getWorkflowAnnotations()
getWorkflowAnnotations in interface WorkflowPersistorpublic List<ReferencedFile> getObsoleteNodeDirectories()
getObsoleteNodeDirectories in interface WorkflowPersistorpublic WorkflowPersistor.WorkflowPortTemplate[] getInPortTemplates()
getInPortTemplates in interface WorkflowPersistorpublic WorkflowPersistor.WorkflowPortTemplate[] getOutPortTemplates()
getOutPortTemplates in interface WorkflowPersistorpublic UIInformation getInPortsBarUIInfo()
getInPortsBarUIInfo in interface WorkflowPersistorpublic UIInformation getOutPortsBarUIInfo()
getOutPortsBarUIInfo in interface WorkflowPersistorpublic boolean needsResetAfterLoad()
needsResetAfterLoad in interface NodeContainerPersistorpublic void setNeedsResetAfterLoad()
public boolean isDirtyAfterLoad()
isDirtyAfterLoad in interface NodeContainerPersistorpublic boolean mustComplainIfStateDoesNotMatch()
state does not match the state after
loading (typically all non-executed nodes are configured after load).
This is true for all SingleNodeContainer and newer meta nodes,
but it will be false for meta nodes, which are loaded from 1.x workflow.
mustComplainIfStateDoesNotMatch in interface NodeContainerPersistorprotected void setDirtyAfterLoad()
public void preLoadNodeContainer(WorkflowPersistor parentPersistor,
NodeSettingsRO parentSettings,
WorkflowPersistor.LoadResult loadResult)
throws InvalidSettingsException,
IOException
preLoadNodeContainer in interface NodeContainerPersistorInvalidSettingsException
IOException
public void loadNodeContainer(Map<Integer,BufferedDataTable> tblRep,
ExecutionMonitor exec,
WorkflowPersistor.LoadResult loadResult)
throws CanceledExecutionException,
IOException
loadNodeContainer in interface NodeContainerPersistorCanceledExecutionException
IOException
protected void fixSourcePortIfNecessary(NodeContainerPersistor sourcePersistor,
WorkflowPersistor.ConnectionContainerTemplate c)
sourcePersistor - The persistor of the source node.c - The connection template to be fixed.
protected void fixDestPortIfNecessary(NodeContainerPersistor destPersistor,
WorkflowPersistor.ConnectionContainerTemplate c)
destPersistor - The persistor of the destination node.c - The connection template to be fixed.
protected NodeSettingsRO readParentSettings()
throws IOException
IOExceptionprotected boolean shouldSkipThisNode(NodeSettingsRO settings)
settings - node sub-element
protected int loadNodeIDSuffix(NodeSettingsRO settings)
throws InvalidSettingsException
InvalidSettingsException
protected String loadUIInfoClassName(NodeSettingsRO settings)
throws InvalidSettingsException
InvalidSettingsExceptionprotected String fixUIInfoClassName(String name)
protected UIInformation loadUIInfoInstance(String className)
UIInformaion from given settings, describing
whatever additional information was stored (graphical layout?).
className - The name of the class to be loaded.
UIInformation object or null
protected void loadUIInfoSettings(UIInformation uiInfo,
NodeSettingsRO settings)
throws InvalidSettingsException
InvalidSettingsException
protected String loadInPortsBarUIInfoClassName(NodeSettingsRO settings)
throws InvalidSettingsException
settings - Ignored.
InvalidSettingsException - Not actually thrown here.
protected void loadInPortsBarUIInfo(UIInformation uiInfo,
NodeSettingsRO settings)
throws InvalidSettingsException
uiInfo - Ignored.settings - Ignored.
InvalidSettingsException - Not actually thrown
protected String loadOutPortsBarUIInfoClassName(NodeSettingsRO settings)
throws InvalidSettingsException
settings - Ignored.
InvalidSettingsException - Not actually thrown
protected void loadOutPortsBarUIInfo(UIInformation uiInfo,
NodeSettingsRO settings)
throws InvalidSettingsException
uiInfo - Ignored here.settings - Ignored here.
InvalidSettingsException - Not actually thrown here.
protected ReferencedFile loadNodeFile(NodeSettingsRO settings,
ReferencedFile workflowDirRef)
throws InvalidSettingsException
InvalidSettingsException
protected boolean loadIsMetaNode(NodeSettingsRO settings)
throws InvalidSettingsException
InvalidSettingsException
protected NodeSettingsRO loadSettingsForConnections(NodeSettingsRO set)
throws InvalidSettingsException
InvalidSettingsException
protected WorkflowPersistor.ConnectionContainerTemplate loadConnection(NodeSettingsRO settings)
throws InvalidSettingsException
InvalidSettingsException
protected int loadConnectionDestID(NodeSettingsRO settings)
throws InvalidSettingsException
InvalidSettingsException
protected int loadConnectionDestPort(NodeSettingsRO settings)
throws InvalidSettingsException
InvalidSettingsException
protected int loadConnectionSourcePort(NodeSettingsRO settings)
throws InvalidSettingsException
InvalidSettingsException
protected NodeSettingsRO loadSettingsForNodes(NodeSettingsRO set)
throws InvalidSettingsException
InvalidSettingsException
protected String loadWorkflowName(NodeSettingsRO set)
throws InvalidSettingsException
set - Ignored.
InvalidSettingsException - Not actually thrown here.
protected WorkflowCipher loadWorkflowCipher(WorkflowPersistorVersion200.LoadVersion loadVersion,
NodeSettingsRO settings)
throws InvalidSettingsException
InvalidSettingsException
protected MetaNodeTemplateInformation loadTemplateInformation(NodeSettingsRO settings)
throws InvalidSettingsException
MetaNodeTemplateInformation.NONE).
settings - To load from
InvalidSettingsException - If fails
protected MetaNodeTemplateInformation fixTemplateInformation(MetaNodeTemplateInformation original)
throws InvalidSettingsException
InvalidSettingsException
protected List<FlowVariable> loadWorkflowVariables(NodeSettingsRO settings)
throws InvalidSettingsException
settings - To load from.
InvalidSettingsException - If any settings-related error occurs.
protected List<Credentials> loadCredentials(NodeSettingsRO settings)
throws InvalidSettingsException
settings - to load from.
InvalidSettingsException - If this fails for any reason.
protected List<WorkflowAnnotation> loadWorkflowAnnotations(NodeSettingsRO workflowSett)
throws InvalidSettingsException
workflowSett - to load from
InvalidSettingsException - If this fails for any reason.
protected NodeSettingsRO loadInPortsSetting(NodeSettingsRO settings)
throws InvalidSettingsException
settings - Ignored.
InvalidSettingsException - Not actually thrown here.
protected NodeSettingsRO loadInPortsSettingsEnum(NodeSettingsRO settings)
throws InvalidSettingsException
settings - Ignored.
InvalidSettingsException - Not actually thrown here.
protected WorkflowPersistor.WorkflowPortTemplate loadInPortTemplate(NodeSettingsRO settings)
throws InvalidSettingsException
settings - Ignored.
InvalidSettingsException - Not actually thrown here.
protected NodeSettingsRO loadOutPortsSetting(NodeSettingsRO settings)
throws InvalidSettingsException
settings - Ignored.
InvalidSettingsException - Not actually thrown here.
protected NodeSettingsRO loadOutPortsSettingsEnum(NodeSettingsRO settings)
throws InvalidSettingsException
settings - Ignored.
InvalidSettingsException - Not actually thrown here.
protected WorkflowPersistor.WorkflowPortTemplate loadOutPortTemplate(NodeSettingsRO settings)
throws InvalidSettingsException
settings - Ignored.
InvalidSettingsException - Not actually thrown here.protected boolean loadIfMustWarnOnDataLoadError(File workflowFile)
workflowFile - Ignored here
protected SingleNodeContainerPersistorVersion1xx createSingleNodeContainerPersistorLoad(ReferencedFile nodeFile)
protected WorkflowPersistorVersion1xx createWorkflowPersistorLoad(ReferencedFile wfmFile)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||