private UserBitShared.UserCredentials getUserCredentials() { // If username is not propagated as one of the properties String userName = "anonymous"; if (props != null) { for (Property property: props.getPropertiesList()) { if (property.getKey().equalsIgnoreCase("user") && !Strings.isNullOrEmpty(property.getValue())) { userName = property.getValue(); break; } } } return UserBitShared.UserCredentials.newBuilder().setUserName(userName).build(); }
public void writeTo(io.protostuff.Output output, com.dremio.exec.proto.UserProtos.UserProperties message) throws java.io.IOException { for(com.dremio.exec.proto.UserProtos.Property properties : message.getPropertiesList()) output.writeObject(1, properties, com.dremio.exec.proto.SchemaUserProtos.Property.WRITE, true); } public boolean isInitialized(com.dremio.exec.proto.UserProtos.UserProperties message)