Package com.opengamma.id

Examples of com.opengamma.id.ExternalIdSearch


  }

  @Test
  public void test_search_noKeys_None_allMatch() {
    ExchangeSearchRequest request = new ExchangeSearchRequest();
    request.setExternalIdSearch(new ExternalIdSearch());
    request.getExternalIdSearch().setSearchType(ExternalIdSearchType.NONE);
    ExchangeSearchResult test = _exgMaster.search(request);
   
    assertEquals(_totalExchanges, test.getDocuments().size());
  }
View Full Code Here


   * @param externalIds  the historical time-series key identifiers to add, not null
   */
  public void addExternalIds(ExternalId... externalIds) {
    ArgumentChecker.notNull(externalIds, "externalIds");
    if (getExternalIdSearch() == null) {
      setExternalIdSearch(new ExternalIdSearch(externalIds));
    } else {
      getExternalIdSearch().addExternalIds(externalIds);
    }
  }
View Full Code Here

   * @param externalIds  the historical time-series key identifiers to add, not null
   */
  public void addExternalIds(Iterable<ExternalId> externalIds) {
    ArgumentChecker.notNull(externalIds, "externalIds");
    if (getExternalIdSearch() == null) {
      setExternalIdSearch(new ExternalIdSearch(externalIds));
    } else {
      getExternalIdSearch().addExternalIds(externalIds);
    }
  }
View Full Code Here

   * @param securityIds  the security key identifiers to add, not null
   */
  public void addSecurityExternalIds(ExternalId... securityIds) {
    ArgumentChecker.notNull(securityIds, "securityIds");
    if (getSecurityIdSearch() == null) {
      setSecurityIdSearch(new ExternalIdSearch(securityIds));
    } else {
      getSecurityIdSearch().addExternalIds(securityIds);
    }
  }
View Full Code Here

   * @param securityIds  the security key identifiers to add, not null
   */
  public void addSecurityExternalIds(Iterable<ExternalId> securityIds) {
    ArgumentChecker.notNull(securityIds, "securityIds");
    if (getSecurityIdSearch() == null) {
      setSecurityIdSearch(new ExternalIdSearch(securityIds));
    } else {
      getSecurityIdSearch().addExternalIds(securityIds);
    }
  }
View Full Code Here

   * @param securityIds  the security key identifiers to add, not null
   */
  public void addExternalIds(ExternalId... securityIds) {
    ArgumentChecker.notNull(securityIds, "securityIds");
    if (getExternalIdSearch() == null) {
      setExternalIdSearch(new ExternalIdSearch(securityIds));
    } else {
      getExternalIdSearch().addExternalIds(securityIds);
    }
  }
View Full Code Here

   * @param securityIds  the security key identifiers to add, not null
   */
  public void addExternalIds(Iterable<ExternalId> securityIds) {
    ArgumentChecker.notNull(securityIds, "securityIds");
    if (getExternalIdSearch() == null) {
      setExternalIdSearch(new ExternalIdSearch(securityIds));
    } else {
      getExternalIdSearch().addExternalIds(securityIds);
    }
  }
View Full Code Here

    ArgumentChecker.notNull(type, "type");
    ArgumentChecker.notNull(exchangeOrRegionKeys, "exchangeOrRegionIds");
    setType(type);
    switch (type) {
      case BANK:
        setRegionExternalIdSearch(new ExternalIdSearch(exchangeOrRegionKeys));
        break;
      case SETTLEMENT:
      case TRADING:
        setExchangeExternalIdSearch(new ExternalIdSearch(exchangeOrRegionKeys));
        break;
      case CURRENCY:
      default:
        throw new IllegalArgumentException("Use currency constructor to request a currency holiday");
    }
View Full Code Here

   * @param regionIds  the region key identifiers to add, not null
   */
  public void addRegionExternalIds(ExternalId... regionIds) {
    ArgumentChecker.notNull(regionIds, "regionIds");
    if (getRegionExternalIdSearch() == null) {
      setRegionExternalIdSearch(new ExternalIdSearch(regionIds));
    } else {
      getRegionExternalIdSearch().addExternalIds(regionIds);
    }
  }
View Full Code Here

   * @param regionIds  the region key identifiers to add, not null
   */
  public void addRegionExternalIds(Iterable<ExternalId> regionIds) {
    ArgumentChecker.notNull(regionIds, "regionIds");
    if (getExchangeExternalIdSearch() == null) {
      setRegionExternalIdSearch(new ExternalIdSearch(regionIds));
    } else {
      getRegionExternalIdSearch().addExternalIds(regionIds);
    }
  }
View Full Code Here

TOP

Related Classes of com.opengamma.id.ExternalIdSearch

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.