Package com.opengamma.engine.view.helper

Examples of com.opengamma.engine.view.helper.AvailableOutputsProvider


   *
   * @param repo the repository to register with, not null
   * @param appContext the Spring application context, not null
   */
  protected void initAvailableOutputs(final ComponentRepository repo, final GenericApplicationContext appContext) {
    final AvailableOutputsProvider availableOutputs = appContext.getBean(AvailableOutputsProvider.class);
    final ComponentInfo info = new ComponentInfo(AvailableOutputsProvider.class, getClassifier());
    info.addAttribute(ComponentInfoAttributes.REMOTE_CLIENT_JAVA, RemoteAvailableOutputsProvider.class);
    repo.registerComponent(info, availableOutputs);

    if (isPublishRest()) {
View Full Code Here


      throw new OpenGammaRuntimeException("Missing position source in given toolcontext");
    }
  }

  private Map<String, Collection<String>> scanValueRequirementBySecType(UniqueId portfolioId, ToolContext toolContext) {
    AvailableOutputsProvider availableOutputsProvider = toolContext.getAvaliableOutputsProvider();
    if (availableOutputsProvider == null) {
      throw new OpenGammaRuntimeException("AvailableOutputsProvider missing from ToolContext");
    }
    final SetMultimap<String, String> valueNamesBySecurityType = TreeMultimap.create();
   
    AvailableOutputs portfolioOutputs = availableOutputsProvider.getPortfolioOutputs(portfolioId, null);
    Set<String> securityTypes = portfolioOutputs.getSecurityTypes();
    for (String securityType : securityTypes) {
      Set<AvailableOutput> positionOutputs = portfolioOutputs.getPositionOutputs(securityType);
      for (AvailableOutput availableOutput : positionOutputs) {
        valueNamesBySecurityType.put(securityType, availableOutput.getValueName());
View Full Code Here

TOP

Related Classes of com.opengamma.engine.view.helper.AvailableOutputsProvider

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.