Examples of SecurityLoader


Examples of com.opengamma.master.security.SecurityLoader

  private SecurityMaster _securityMaster;

  //-------------------------------------------------------------------------
  @Override
  public void init(ComponentRepository repo, LinkedHashMap<String, String> configuration) throws Exception {
    SecurityLoader securityLoader = new DefaultSecurityLoader(getSecurityMaster(), getSecurityProvider());
   
    ComponentInfo info = new ComponentInfo(SecurityLoader.class, getClassifier());
    repo.registerComponent(info, securityLoader);
  }
View Full Code Here

Examples of com.opengamma.master.security.SecurityLoader

   * @param repo  the component repository, not null
   * @param configuration  the remaining configuration, not null
   */
  @Override
  public void init(ComponentRepository repo, LinkedHashMap<String, String> configuration) throws Exception {
    final SecurityLoader loader = createSecurityLoader(repo);
    final ComponentInfo info = new ComponentInfo(SecurityLoader.class, getClassifier());
    info.addAttribute(ComponentInfoAttributes.LEVEL, 1);
    info.addAttribute(ComponentInfoAttributes.REMOTE_CLIENT_JAVA, RemoteSecurityLoader.class);
    repo.registerComponent(info, loader);
    if (isPublishRest()) {
View Full Code Here

Examples of com.opengamma.master.security.SecurityLoader

      String html = getFreemarker().build(HTML_DIR + "securities-add.ftl", out);
      return Response.ok(html).build();
    }
    ExternalScheme scheme = ExternalScheme.of(idScheme);
    Collection<ExternalIdBundle> bundles = buildSecurityRequest(scheme, idValue);
    SecurityLoader securityLoader = data().getSecurityLoader();
    Map<ExternalIdBundle, UniqueId> loadedSecurities = securityLoader.loadSecurities(bundles);
   
    URI uri = null;
    if (bundles.size() == 1 && loadedSecurities.size() == 1) {
      ExternalIdBundle identifierBundle = bundles.iterator().next();
      uri = data().getUriInfo().getAbsolutePathBuilder().path(loadedSecurities.get(identifierBundle).toLatest().toString()).build();
View Full Code Here

Examples of com.opengamma.master.security.SecurityLoader

    if (idScheme == null || idValue == null) {
      return Response.status(Status.BAD_REQUEST).build();
    }
    ExternalScheme scheme = ExternalScheme.of(idScheme);
    Collection<ExternalIdBundle> requestBundles = buildSecurityRequest(scheme, idValue);
    SecurityLoader securityLoader = data().getSecurityLoader();
    Map<ExternalIdBundle, UniqueId> loadedSecurities = securityLoader.loadSecurities(requestBundles);
    FlexiBean out = createPostJSONOutput(loadedSecurities, requestBundles, scheme);   
    return Response.ok(getFreemarker().build(JSON_DIR + "securities-added.ftl", out)).build();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.