public ConnectorFile(File connectorFile) { connectorId = ConnectorId.fromFullId(FilenameUtils.removeExtension(connectorFile.getName())); update(connectorFile); }
@Override public void uninstall(File artifact) throws PersistenceException { LOGGER.debug("ConnectorDeployer.uninstall(\"{}\")", artifact.getAbsolutePath()); login(); try { String name = FilenameUtils.removeExtension(artifact.getName()); ConnectorId fullId = ConnectorId.fromFullId(name); serviceManager.delete(fullId); } finally { logout(); } }
/** * parses a full connector id (format <domainType>+<connectorType>+<instanceId>) and sets the corresponding values * in the event. Example: "scm+git+projectx-main-repo" */ public void parseConnectorId(String connectorId) { ConnectorId id = ConnectorId.fromFullId(connectorId); domainId = id.getDomainType(); connectorId = id.getConnectorType(); instanceId = id.getInstanceId(); }