Package org.apache.blur.thrift.generated

Examples of org.apache.blur.thrift.generated.User


  }

  @Override
  public void createTable(TableDescriptor tableDescriptor) throws BlurException, TException {
    BlurServerContext serverContext = getServerContext();
    User user = serverContext.getUser();
    if (isAllowed(user)) {
      _iface.createTable(tableDescriptor);
    } else {
      throw new BlurException("Action not allowed by this user.", null, ErrorType.UNKNOWN);
    }
View Full Code Here


  }

  @Override
  public void enableTable(String table) throws BlurException, TException {
    BlurServerContext serverContext = getServerContext();
    User user = serverContext.getUser();
    if (isAllowed(user)) {
      _iface.enableTable(table);
    } else {
      throw new BlurException("Action not allowed by this user.", null, ErrorType.UNKNOWN);
    }
View Full Code Here

  }

  @Override
  public void disableTable(String table) throws BlurException, TException {
    BlurServerContext serverContext = getServerContext();
    User user = serverContext.getUser();
    if (isAllowed(user)) {
      _iface.disableTable(table);
    } else {
      throw new BlurException("Action not allowed by this user.", null, ErrorType.UNKNOWN);
    }
View Full Code Here

  }

  @Override
  public void removeTable(String table, boolean deleteIndexFiles) throws BlurException, TException {
    BlurServerContext serverContext = getServerContext();
    User user = serverContext.getUser();
    if (isAllowed(user)) {
      _iface.removeTable(table, deleteIndexFiles);
    } else {
      throw new BlurException("Action not allowed by this user.", null, ErrorType.UNKNOWN);
    }
View Full Code Here

        } finally {
          traceConnectionSetup.done();
        }
        Tracer trace = null;
        try {
          User user = UserConverter.toThriftUser(UserContext.getUser());
          client.get().setUser(user);
          TraceId traceId = Trace.getTraceId();
          if (traceId != null) {
            client.get().startTrace(traceId.getRootId(), traceId.getRequestId());
            trace = Trace.trace("thrift client", Trace.param("connection", getConnectionStr(client.get())));
View Full Code Here

  public static User toThriftUser(org.apache.blur.user.User user) {
    if (user == null) {
      return null;
    }
    return new User(user.getUsername(), user.getAttributes());
  }
View Full Code Here

TOP

Related Classes of org.apache.blur.thrift.generated.User

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.