@Override public void internalRemoveComponent(Component component) throws RegistryException { throw new RegistryException("Not yet implemented"); }
MyExperimentConnector(boolean doLogin) throws RegistryException { if (doLogin) // check if the stored credentials are valid try { processLogin(); logger.debug("logged in to repository successfully"); } catch (RegistryException e) { logger.warn("login failed: " + e.getMessage()); throw e; } catch (RuntimeException e) { logger.warn("login failed: " + e); throw new RegistryException("unexpected runtime exception", e); } }
@Override protected void populateComponentVersionMap() { try { for (Description d : getCurrent("versions").getVersions() .getWorkflow()) versionMap.put(d.getVersion(), new Version(d.getVersion(), getValue(d))); } catch (RegistryException e) { logger.warn("failed to retrieve version list: " + e.getMessage()); } }
@Override protected void populateComponentVersionMap() { try { for (Description d : getCurrent("versions").getVersions() .getWorkflow()) versionMap.put(d.getVersion(), new Version(d.getVersion(), getValue(d))); } catch (RegistryException e) { logger.warn("failed to retrieve version list: " + e.getMessage()); } }
@Override public void delete() throws RegistryException { throw new RegistryException("deletion forbidden"); } }
@Override public void internalRemoveComponent(Component component) throws RegistryException { throw new RegistryException("Not yet implemented"); }
@Override public Set<Version.ID> searchForComponents(String prefixString, String text) throws RegistryException { throw new RegistryException("Local registries cannot be searched yet"); }
@Override public Set<Version.ID> searchForComponents(String prefixString, String text) throws RegistryException { throw new RegistryException("Local registries cannot be searched yet"); }
@Override public void delete() throws RegistryException { throw new RegistryException("Deletion not supported."); } }
@Override public void delete() throws RegistryException { throw new RegistryException("Deletion forbidden."); } }
@Override public void delete() throws RegistryException { throw new RegistryException("deletion not supported"); } }
@Override public String getXML() throws RegistryException { throw new RegistryException("no document"); }
@Override public String getXML() throws RegistryException { throw new RegistryException("No document."); }
protected ComponentRegistry(File fileDir) throws RegistryException { try { this.registryBase = fileDir.toURI().toURL(); } catch (MalformedURLException e) { throw new RegistryException(e); } }
protected ComponentRegistry(File fileDir) throws RegistryException { try { this.registryBase = fileDir.toURI().toURL(); } catch (MalformedURLException e) { throw new RegistryException(e); } }
private static URL contentUrl(ComponentProfileType cpt) throws RegistryException { try { return new URL(cpt.getContentUri()); } catch (MalformedURLException e) { throw new RegistryException("bad profile location", e); } }
private static URL getLocationURL(Description cpd) throws RegistryException { try { return new URL(getElementString(cpd, LOCATION)); } catch (MalformedURLException e) { throw new RegistryException("bad profile location", e); } }
@Override protected final void internalRemoveComponent(Component component) throws RegistryException { File componentDir = new File(componentFamilyDir, component.getName()); try { deleteDirectory(componentDir); } catch (IOException e) { throw new RegistryException("Unable to delete component", e); } } }
private static URL contentUrl(ComponentProfileType cpt) throws RegistryException { try { return new URL(cpt.getContentUri()); } catch (MalformedURLException e) { throw new RegistryException("bad profile location", e); } }
private static URL getLocationURL(Description cpd) throws RegistryException { try { return new URL(getElementString(cpd, LOCATION)); } catch (MalformedURLException e) { throw new RegistryException("bad profile location", e); } }