default String getFlowRegistryId(String registryUrl) { if (registryUrl.endsWith("/")) { registryUrl = registryUrl.substring(0, registryUrl.length() - 1); } for (final String registryClientId : getRegistryIdentifiers()) { final FlowRegistry registry = getFlowRegistry(registryClientId); String registryClientUrl = registry.getURL(); if (registryClientUrl.endsWith("/")) { registryClientUrl = registryClientUrl.substring(0, registryClientUrl.length() - 1); } if (registryClientUrl.equals(registryUrl)) { return registryClientId; } } return null; }
private void addFlowRegistries(final Element parentElement, final FlowRegistryClient registryClient) { for (final String registryId : registryClient.getRegistryIdentifiers()) { final FlowRegistry flowRegistry = registryClient.getFlowRegistry(registryId); final Element registryElement = parentElement.getOwnerDocument().createElement("flowRegistry"); parentElement.appendChild(registryElement); addStringElement(registryElement, "id", flowRegistry.getIdentifier()); addStringElement(registryElement, "name", flowRegistry.getName()); addStringElement(registryElement, "url", flowRegistry.getURL()); addStringElement(registryElement, "description", flowRegistry.getDescription()); } }
coordinates.setRegistryUrl(registry.getURL()); coordinates.setBucketId(versionControlInfo.getBucketIdentifier()); coordinates.setFlowId(versionControlInfo.getFlowIdentifier());
public RegistryDTO createRegistryDto(FlowRegistry registry) { final RegistryDTO dto = new RegistryDTO(); dto.setDescription(registry.getDescription()); dto.setId(registry.getIdentifier()); dto.setName(registry.getName()); dto.setUri(registry.getURL()); return dto; }
default String getFlowRegistryId(String registryUrl) { if (registryUrl.endsWith("/")) { registryUrl = registryUrl.substring(0, registryUrl.length() - 1); } for (final String registryClientId : getRegistryIdentifiers()) { final FlowRegistry registry = getFlowRegistry(registryClientId); String registryClientUrl = registry.getURL(); if (registryClientUrl.endsWith("/")) { registryClientUrl = registryClientUrl.substring(0, registryClientUrl.length() - 1); } if (registryClientUrl.equals(registryUrl)) { return registryClientId; } } return null; }