Package com.opengamma.livedata.entitlement

Examples of com.opengamma.livedata.entitlement.AbstractEntitlementChecker


  private void setEntitlementChecker(MockLiveDataServer server) {
    server.setEntitlementChecker(getEntitlementChecker(server.getUniqueIdDomain()));
  }

  private LiveDataEntitlementChecker getEntitlementChecker(ExternalScheme domain) {
    return new AbstractEntitlementChecker() {
      @Override
      public boolean isEntitled(UserPrincipal user, LiveDataSpecification requestedSpecification) {
        if (user == unauthorizedUser) {
          return false;
        } else if (user == authorizedUser) {
View Full Code Here

TOP

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

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.