Package com.opengamma.master.orgs

Examples of com.opengamma.master.orgs.ManageableOrganization


  }

  @Test
  public void testObligorWithMatchingRedCodeIsUsed() {

    ManageableOrganization org = new ManageableOrganization("ShortName", "39FF64", "Ticker", Region.NORTHAMERICA,
                                                            "US", Sector.FINANCIALS, CreditRating.NR, CreditRating.NR,
                                                            CreditRatingFitch.NR, CreditRatingMoodys.NR,
                                                            CreditRatingStandardAndPoors.NR, false);

    _organizationMaster.add(new OrganizationDocument(org));
View Full Code Here


   * @return the output root data, not null
   */
  protected FlexiBean createRootData() {
    FlexiBean out = super.createRootData();
    OrganizationDocument organizationDoc = data().getOrganization();
    ManageableOrganization organization = organizationDoc.getOrganization();
    out.put("organizationDoc", organizationDoc);
    out.put("organization", organization);
    out.put("deleted", !organizationDoc.isLatest());
    return out;
  }
View Full Code Here

    if (underlyingId != null) {
      OrganizationSearchRequest request = new OrganizationSearchRequest();
      if (underlyingId.getScheme().equals(ExternalSchemes.MARKIT_RED_CODE)) {
        request.setObligorREDCode(underlyingId.getValue());
        OrganizationSearchResult searchResult = _organizationMaster.search(request);
        ManageableOrganization organization = searchResult.getSingleOrganization();
        if (organization != null) {
          _out.put("underlyingOrganization", organization);
        }
      } else {
        s_logger.warn("{} does not currently support CDSOption underlying lookup based on {}", WebSecuritiesResource.class, underlyingId.getScheme().getName());
View Full Code Here

TOP

Related Classes of com.opengamma.master.orgs.ManageableOrganization

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.