Package org.yaac.shared.property

Examples of org.yaac.shared.property.UserPropertyInfo


      } else {
        result = new DoublePropertyInfo(bd.doubleValue())
      }
    } else if (obj instanceof User) {
      User user = (User)obj;
      result = new UserPropertyInfo(user.getAuthDomain(), user.getEmail(),
          user.getFederatedIdentity(), user.getUserId(), user.getNickname());
    } else if (obj instanceof GeoPt) {
      float latitude = ((GeoPt) obj).getLatitude();
      float longitude = ((GeoPt) obj).getLongitude();
      result = new GeoPtPropertyInfo(latitude, longitude);
View Full Code Here


        return new Text(textInfo.getRawText());
      }
    case TIMESTAMP:
      return ((DatePropertyInfo) info).getPayload();
    case USER:
      UserPropertyInfo upi = (UserPropertyInfo) info;
      // nickname is a derived field, no need to set here
      return new User(upi.getEmail(), upi.getAuthDomain(), upi.getUserId(), upi.getFederatedIdentity());
    default:
      throw new IllegalArgumentException("Invalid type " + info.getClass());
    }
  }
View Full Code Here

TOP

Related Classes of org.yaac.shared.property.UserPropertyInfo

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.