Package org.apache.shindig.social.opensocial.jpa

Examples of org.apache.shindig.social.opensocial.jpa.PersonAddressDb


  private Person buildCanonicalPerson() throws ParseException {
    Person person = buildPersonTemplate("canonical");
    person.setAboutMe("I have an example of every piece of data");
    person.setActivities(asList("Coding Shindig"));
    List<Address> addresses = new ArrayList<Address>();
    PersonAddressDb address = new PersonAddressDb();
    address.setCountry("US");
    address.setLatitude(28.3043F);
    address.setLongitude(143.0859F);
    address.setLocality("who knows");
    address.setPostalCode("12345");
    address.setRegion("Apache, CA");
    address.setStreetAddress("1 OpenStandards Way");
    address.setType("home");
    address.setFormatted("PoBox 3565, 1 OpenStandards Way, Apache, CA");
    // address.setPerson(person);
    addresses.add(address);
    person.setAddresses(addresses);
    person.setAge(33);
View Full Code Here


    person.setAboutMe("");

    person.setActivities(asList(""));

    List<Address> addresses = new ArrayList<Address>();
    PersonAddressDb address = new PersonAddressDb();
    address.setCountry("");
    address.setLatitude(0F);
    address.setLongitude(0F);
    address.setLocality("");
    address.setPostalCode("");
    address.setRegion("");
    address.setStreetAddress("");
    address.setType("");
    address.setFormatted("");
    // TODO This causes problems when converting back to json.
    // address.setPerson(person);
    addresses.add(address);
    person.setAddresses(addresses);
View Full Code Here

  private Address getNewPersonAddress(int i) {
    Address address = findOne(AddressDb.FINDBY_POSTCODE, new String[] { AddressDb.PARAM_POSTCODE },
        new Object[] { String.valueOf(i % 10) });
    if (address == null) {
      address = new PersonAddressDb();
      address.setCountry("UK");
      address.setLatitude(new Float(0.5));
      address.setLongitude(new Float(0.0));
      address.setPostalCode(String.valueOf(i % 10));
      address.setRegion("CAMBS");
View Full Code Here

  private Person buildCanonicalPerson() throws Exception {
    Person person = buildPersonTemplate("canonical");
    person.setAboutMe("I have an example of every piece of data");   
    person.setActivities(asList("Coding Shindig"));   
    List<Address> addresses = new ArrayList<Address>();
    PersonAddressDb address = new PersonAddressDb();
    address.setCountry("US");
    address.setLatitude(28.3043F);
    address.setLongitude(143.0859F);
    address.setLocality("who knows");
    address.setPostalCode("12345");
    address.setRegion("Apache, CA");
    address.setStreetAddress("1 OpenStandards Way");
    address.setType("home");
    address.setFormatted("PoBox 3565, 1 OpenStandards Way, Apache, CA");
    // address.setPerson(person);
    addresses.add(address);
    person.setAddresses(addresses);   
    person.setAge(33);
   
View Full Code Here

    person.setAboutMe("");
   
    person.setActivities(asList(""));
   
    List<Address> addresses = new ArrayList<Address>();
    PersonAddressDb address = new PersonAddressDb();
    address.setCountry("");
    address.setLatitude(0F);
    address.setLongitude(0F);
    address.setLocality("");
    address.setPostalCode("");
    address.setRegion("");
    address.setStreetAddress("");
    address.setType("");
    address.setFormatted("");
    // TODO This causes problems when converting back to json.
    // address.setPerson(person);
    addresses.add(address);
    person.setAddresses(addresses);
   
View Full Code Here

  private Address getNewPersonAddress(int i) {
    Address address = findOne(AddressDb.FINDBY_POSTCODE, new String[] { AddressDb.PARAM_POSTCODE },
        new Object[] { String.valueOf(i % 10) });
    if (address == null) {
      address = new PersonAddressDb();
      address.setCountry("UK");
      address.setLatitude(new Float(0.5));
      address.setLongitude(new Float(0.0));
      address.setPostalCode(String.valueOf(i % 10));
      address.setRegion("CAMBS");
View Full Code Here

  private Person buildCanonicalPerson() throws ParseException {
    Person person = buildPersonTemplate("canonical");
    person.setAboutMe("I have an example of every piece of data");
    person.setActivities(asList("Coding Shindig"));
    List<Address> addresses = new ArrayList<Address>();
    PersonAddressDb address = new PersonAddressDb();
    address.setCountry("US");
    address.setLatitude(28.3043F);
    address.setLongitude(143.0859F);
    address.setLocality("who knows");
    address.setPostalCode("12345");
    address.setRegion("Apache, CA");
    address.setStreetAddress("1 OpenStandards Way");
    address.setType("home");
    address.setFormatted("PoBox 3565, 1 OpenStandards Way, Apache, CA");
    // address.setPerson(person);
    addresses.add(address);
    person.setAddresses(addresses);
    person.setAge(33);
View Full Code Here

    person.setAboutMe("");

    person.setActivities(asList(""));

    List<Address> addresses = new ArrayList<Address>();
    PersonAddressDb address = new PersonAddressDb();
    address.setCountry("");
    address.setLatitude(0F);
    address.setLongitude(0F);
    address.setLocality("");
    address.setPostalCode("");
    address.setRegion("");
    address.setStreetAddress("");
    address.setType("");
    address.setFormatted("");
    // TODO This causes problems when converting back to json.
    // address.setPerson(person);
    addresses.add(address);
    person.setAddresses(addresses);
View Full Code Here

  private Address getNewPersonAddress(int i) {
    Address address = findOne(AddressDb.FINDBY_POSTCODE, new String[] { AddressDb.PARAM_POSTCODE },
        new Object[] { String.valueOf(i % 10) });
    if (address == null) {
      address = new PersonAddressDb();
      address.setCountry("UK");
      address.setLatitude(new Float(0.5));
      address.setLongitude(new Float(0.0));
      address.setPostalCode(String.valueOf(i % 10));
      address.setRegion("CAMBS");
View Full Code Here

  private Person buildCanonicalPerson() throws ParseException {
    Person person = buildPersonTemplate("canonical");
    person.setAboutMe("I have an example of every piece of data");
    person.setActivities(asList("Coding Shindig"));
    List<Address> addresses = new ArrayList<Address>();
    PersonAddressDb address = new PersonAddressDb();
    address.setCountry("US");
    address.setLatitude(28.3043F);
    address.setLongitude(143.0859F);
    address.setLocality("who knows");
    address.setPostalCode("12345");
    address.setRegion("Apache, CA");
    address.setStreetAddress("1 OpenStandards Way");
    address.setType("home");
    address.setFormatted("PoBox 3565, 1 OpenStandards Way, Apache, CA");
    // address.setPerson(person);
    addresses.add(address);
    person.setAddresses(addresses);
    person.setAge(33);
View Full Code Here

TOP

Related Classes of org.apache.shindig.social.opensocial.jpa.PersonAddressDb

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.