Package org.apache.shindig.social.opensocial.model

Examples of org.apache.shindig.social.opensocial.model.Name


    }

    @Override
    public Name getName() {
        if (displayField(Field.NAME)) {
            Name name = new NameImpl();
            name.setGivenName(internal.getGivenName());
            name.setFamilyName(internal.getFamilyName());
            name.setAdditionalName(internal.getAdditionalName());
            name.setFormatted(internal.getDisplayName());
            name.setHonorificPrefix(internal.getHonorificPrefix());
            return name;
        }
        return null;
    }
View Full Code Here


    return photo;
  }

  private Name getNewName(int i) {
    String targetName = String.valueOf("FamilyName" + (i % 25));
    Name name = findOne(NameDb.FINDBY_FAMILY_NAME, new String[] { NameDb.PARAM_FAMILY_NAME },
        new Object[] { targetName });
    if (name == null) {
      name = new NameDb();
      name.setFamilyName(targetName);
      name.setGivenName("GivenName");
      name.setHonorificPrefix("Hprefix");
      name.setHonorificSuffix("HSufix");
      name.setFormatted("formatted");
      name.setAdditionalName("Additional Names");
    }
    return name;
  }
View Full Code Here

    return photo;
  }

  private Name getNewName(int i) {
    String targetName = String.valueOf("FamilyName" + (i % 25));
    Name name = findOne(NameDb.FINDBY_FAMILY_NAME, new String[] { NameDb.PARAM_FAMILY_NAME },
        new Object[] { targetName });
    if (name == null) {
      name = new NameDb();
      name.setFamilyName(targetName);
      name.setGivenName("GivenName");
      name.setHonorificPrefix("Hprefix");
      name.setHonorificSuffix("HSufix");
      name.setFormatted("formatted");
      name.setAdditionalName("Additional Names");
    }
    return name;
  }
View Full Code Here

    }

    @Override
    public Name getName() {
        if (displayField(Field.NAME)) {
            Name name = new NameImpl();
            name.setGivenName(internal.getGivenName());
            name.setFamilyName(internal.getFamilyName());
            name.setAdditionalName(internal.getAdditionalName());
            name.setFormatted(internal.getDisplayName());
            name.setHonorificPrefix(internal.getHonorificPrefix());
            return name;
        }
        return null;
    }
View Full Code Here

    return photo;
  }

  private Name getNewName(int i) {
    String targetName = String.valueOf("FamilyName" + (i % 25));
    Name name = findOne(NameDb.FINDBY_FAMILY_NAME, new String[] { NameDb.PARAM_FAMILY_NAME },
        new Object[] { targetName });
    if (name == null) {
      name = new NameDb();
      name.setFamilyName(targetName);
      name.setGivenName("GivenName");
      name.setHonorificPrefix("Hprefix");
      name.setHonorificSuffix("HSufix");
      name.setFormatted("formatted");
      name.setAdditionalName("Additional Names");
    }
    return name;
  }
View Full Code Here

    assertNotNull(parseCassie);
    assertEquals(cassie.getId(), parseCassie.getId());
    assertEquals(cassie.getNewfield(), parseCassie.getNewfield());

    Name name = parseCassie.getName();
    Name cassieName = cassie.getName();
    assertNotNull(name);
    assertEquals(cassieName.getFormatted(), name.getFormatted());
    assertEquals(cassieName.getAdditionalName(), name.getAdditionalName());
    assertEquals(cassieName.getFamilyName(), name.getFamilyName());
    assertEquals(cassieName.getGivenName(), name.getGivenName());
    assertEquals(cassieName.getHonorificPrefix(), name.getHonorificPrefix());
    assertEquals(cassieName.getHonorificSuffix(), name.getHonorificSuffix());

  }
View Full Code Here

    return photo;
  }

  private Name getNewName(int i) {
    String targetName = String.valueOf("FamilyName" + (i % 25));
    Name name = findOne(NameDb.FINDBY_FAMILY_NAME, new String[] { NameDb.PARAM_FAMILY_NAME },
        new Object[] { targetName });
    if (name == null) {
      name = new NameDb();
      name.setFamilyName(targetName);
      name.setGivenName("GivenName");
      name.setHonorificPrefix("Hprefix");
      name.setHonorificSuffix("HSufix");
      name.setFormatted("formatted");
      name.setAdditionalName("Additional Names");
    }
    return name;
  }
View Full Code Here

    }

    private void populateDatabase() {
        PersonDb person = new PersonDb();
        person.setId("canonical");
        Name name = new RaveNameImpl();
        name.setFamilyName("canonical");
        name.setGivenName("canonical");
        person.setName(name);
        person.setDrinker(new EnumDb<Drinker>(Drinker.NO));
        person.setGender(Gender.male);
        person.setNetworkPresence(new EnumDb<NetworkPresence>(NetworkPresence.ONLINE));
        person.setAboutMe("About me");
View Full Code Here

TOP

Related Classes of org.apache.shindig.social.opensocial.model.Name

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.