Package com.opengamma.livedata.entitlement

Examples of com.opengamma.livedata.entitlement.LiveDataEntitlementChecker


      public void tickReceived(BloombergTick msg) {
        RecordedBloombergLiveDataServer.this.tickReceived(msg.getBuid(), msg.getFields());
      }
    };
   
    setEntitlementChecker(new LiveDataEntitlementChecker() {
      @Override
      public Map<LiveDataSpecification, Boolean> isEntitled(UserPrincipal user, Collection<LiveDataSpecification> requestedSpecifications) {
        Map<LiveDataSpecification, Boolean> results = new HashMap<LiveDataSpecification, Boolean>();
        for (LiveDataSpecification requestedSpec : requestedSpecifications) {
          results.put(requestedSpec, true);
View Full Code Here


      realServer.setSubscriptionLimit(getSubscriptionTickerLimit());
    }

    // plugins
    DistributionSpecificationResolver distSpecResolver = realServer.getDefaultDistributionSpecificationResolver();
    LiveDataEntitlementChecker entitlementChecker = initEntitlementChecker(distSpecResolver);
    JmsSenderFactory senderFactory = new JmsSenderFactory(getJmsConnector());

    realServer.setDistributionSpecificationResolver(distSpecResolver);
    realServer.setEntitlementChecker(entitlementChecker);
    realServer.setMarketDataSenderFactory(senderFactory);
View Full Code Here

   */
  protected void configureServerPlugins(ComponentRepository repo, PriorityResolvingCombiningLiveDataServer server) {
    DistributionSpecificationResolver resolver = server.getDefaultDistributionSpecificationResolver();
   
    UserManager userManager = new HibernateUserManager(getDbConnector());
    LiveDataEntitlementChecker entitlementChecker = new UserEntitlementChecker(userManager, resolver);
   
    JmsSenderFactory senderFactory = new JmsSenderFactory(getJmsConnector());
   
    server.setDistributionSpecificationResolver(resolver);
    server.setEntitlementChecker(entitlementChecker);
View Full Code Here

TOP

Related Classes of com.opengamma.livedata.entitlement.LiveDataEntitlementChecker

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.