use of org.knime.core.node.workflow.CredentialsStore.CredentialsNode in project knime-core by knime.
the class NativeNodeContainer method performLoadContent.
/* ------------------- Load & Save ---------------- */
/**
* {@inheritDoc}
*/
@Override
WorkflowCopyContent performLoadContent(final SingleNodeContainerPersistor nodePersistor, final Map<Integer, BufferedDataTable> tblRep, final FlowObjectStack inStack, final ExecutionMonitor exec, final LoadResult loadResult, final boolean preserveNodeMessage) throws CanceledExecutionException {
boolean isExecuted = nodePersistor.getMetaPersistor().getState().equals(InternalNodeContainerState.EXECUTED);
if (isExecuted) {
m_node.putOutputTablesIntoGlobalRepository(getParent().getGlobalTableRepository());
}
if (m_node.isModelCompatibleTo(CredentialsNode.class) && nodePersistor instanceof FileSingleNodeContainerPersistor) {
CredentialsNode credNode = (CredentialsNode) m_node.getNodeModel();
credNode.doAfterLoadFromDisc(((FileSingleNodeContainerPersistor) nodePersistor).getLoadHelper(), getCredentialsProvider(), isExecuted, isInactive());
saveNodeSettingsToDefault();
}
return null;
}
Aggregations