Esempio n. 1
0
  /**
   * 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;
  }
Esempio n. 2
0
  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.");
  }