public void loadXML(Node repnode, List<DatabaseMeta> databases) throws KettleException { super.loadXML(repnode, databases); try { url = XMLHandler.getTagValue(repnode, "repository_location_url"); } catch (Exception e) { throw new KettleException("Unable to load Kettle database repository meta object", e); } }
@Override public void populate(Map<String, Object> properties, RepositoriesMeta repositoriesMeta) { super.populate(properties, repositoriesMeta); Boolean showHiddenFolders = (Boolean) properties.get(SHOW_HIDDEN_FOLDERS); String location = (String) properties.get(LOCATION); Boolean doNotModify = (Boolean) properties.get(DO_NOT_MODIFY); setHidingHiddenFiles(showHiddenFolders); setBaseDirectory(location); setReadOnly(doNotModify); }
public void loadXML(Node repnode, List<DatabaseMeta> databases) throws KettleException { super.loadXML(repnode, databases); try { baseDirectory = XMLHandler.getTagValue(repnode, "base_directory"); readOnly = "Y".equalsIgnoreCase(XMLHandler.getTagValue(repnode, "read_only")); hidingHiddenFiles = "Y".equalsIgnoreCase(XMLHandler.getTagValue(repnode, "hides_hidden_files")); } catch (Exception e) { throw new KettleException("Unable to load Kettle file repository meta object", e); } }
public void loadXML(Node repnode, List<DatabaseMeta> databases) throws KettleException { super.loadXML(repnode, databases); try { String url = XMLHandler.getTagValue(repnode, "repository_location_url"); // remove trailing slash String urlTrim = url.endsWith("/") ? url.substring(0, url.length() - 1) : url; this.repositoryLocation = new PurRepositoryLocation(urlTrim); this.versionCommentMandatory = "Y".equalsIgnoreCase(XMLHandler.getTagValue(repnode, "version_comment_mandatory")); } catch (Exception e) { throw new KettleException("Unable to load Kettle database repository meta object", e); } }