Package com.opengamma.core.position.impl

Examples of com.opengamma.core.position.impl.SimplePortfolio


        1, ALLOW,
        2, ALLOW,
        3, DENY,
        4, ALLOW);

    PortfolioPermissionChecker checker = new PortfolioPermissionChecker(new SimplePortfolio("test", root),
                                                                        createMappedNodeChecker(permissions));

    assertThat(checker.permissionCheck(root), is(PARTIAL));

  }
View Full Code Here


        1, DENY,
        2, ALLOW,
        3, ALLOW,
        4, ALLOW);

    PortfolioPermissionChecker checker = new PortfolioPermissionChecker(new SimplePortfolio("test", root),
                                                                        createMappedNodeChecker(permissions));

    assertThat(checker.permissionCheck(root), is(DENY));
  }
View Full Code Here

            .put(7, ALLOW)
            .put(8, ALLOW)
            .put(9, ALLOW)
        .build();

    PortfolioPermissionChecker checker = new PortfolioPermissionChecker(new SimplePortfolio("test", root),
                                                                        createMappedNodeChecker(permissions));

    assertThat(checker.permissionCheck(root), is(PARTIAL));
    assertThat(checker.permissionCheck(node2), is(PARTIAL));
    assertThat(checker.permissionCheck(node3), is(DENY));
View Full Code Here

    Mockito.when(security.getExternalIdBundle()).thenReturn(eid.toBundle());
    return security;
  }

  private Portfolio createPortfolio() {
    return new SimplePortfolio(UniqueId.of("Portfolio", "0", "V"), "Portfolio");
  }
View Full Code Here

    return new TargetResolverPortfolio(resolver, this);
  }

  @Override
  protected SimplePortfolio simpleObject() {
    return new SimplePortfolio(this);
  }
View Full Code Here

TOP

Related Classes of com.opengamma.core.position.impl.SimplePortfolio

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.