/** * Get a list of all available tests * * @return * @throws BioclipseException */ public List<String> getEndpoints() throws BioclipseException { initialize(); List<String> epIDs = new ArrayList<String>(); for (Endpoint ep : dsBusinessModel.getEndpoints()) { epIDs.add(ep.getId()); } return epIDs; }
public Endpoint getEndpoint(String endpointID) throws BioclipseException { if (endpointID == null) throw new BioclipseException("Endpoint: " + endpointID + " must not be null."); initialize(); for (Endpoint ep : dsBusinessModel.getEndpoints()) { if (endpointID.equals(ep.getId())) return ep; } logger.warn("Endpoint: " + endpointID + " could not be found."); throw new BioclipseException("Endpoint: " + endpointID + " could not be found."); }