Package com.opengamma.core.security

Examples of com.opengamma.core.security.SecurityLink


  }

  @Override
  public Security getSecurity() {
    final Security security = getUnderlying().getSecurity();
    final SecurityLink link = getSecurityLink();
    if ((link.getExternalId() != null) && !link.getExternalId().isEmpty()) {
      log(new ComputationTargetRequirement(ComputationTargetType.SECURITY, link.getExternalId()), security.getUniqueId());
    }
    if (link.getObjectId() != null) {
      log(ComputationTargetType.SECURITY, security);
    }
    return security;
  }
View Full Code Here


  @Override
  public Security getSecurity() {
    final Security security = getUnderlying().getSecurity();
    if (security != null) {
      final SecurityLink link = getSecurityLink();
      if ((link.getExternalId() != null) && !link.getExternalId().isEmpty()) {
        log(new ComputationTargetRequirement(ComputationTargetType.SECURITY, link.getExternalId()), security.getUniqueId());
      }
      if (link.getObjectId() != null) {
        log(ComputationTargetType.SECURITY, security);
      }
    }
    return security;
  }
View Full Code Here

TOP

Related Classes of com.opengamma.core.security.SecurityLink

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.