Examples of Person


Examples of com.google.api.services.plus.model.Person

            // Google Plus APIを使ってユーザー情報を取得する
            Plus plus = new Plus.Builder(TRANSPORT, JSON_FACTORY, credential)
            .setApplicationName(Constants.GOOGLE_APPLICATION_NAME)
            .build();
            Person person = plus.people().get("me").execute();

            userModel = UserService.put(
                tokenInfo.getUserId(),
                tokenInfo.getEmail(),
                person.getUrl(),
                person.getDisplayName(),
                person.getImage(),
                person.getTagline(),
                person.getBraggingRights(),
                person.getAboutMe(),
                person.getCover(),
                credential.getAccessToken(),
                credential.getRefreshToken()
                );

            // URLS登録
            if(person.getUrls() != null && person.getUrls().size() > 0) {
                List<Urls> urlsList = person.getUrls();

                for(Urls urls: urlsList) {
                    UserUrlsService.put(userModel, urls.getValue(), urls.getType(), urls.getLabel());
                }
            }
View Full Code Here

Examples of com.google.appengine.datanucleus.test.jdo.Person

    Entity e = ds.get(TestUtils.createKey(pojo, pojo.getId()));
    assertEquals("c", ((List<?>)e.getProperty("array")).get(0));
  }

  public void testEmbeddable() throws EntityNotFoundException {
    Person p = new Person();
    p.setName(new Name());
    p.getName().setFirst("jimmy");
    p.getName().setLast("jam");
    p.setAnotherName(new Name());
    p.getAnotherName().setFirst("anotherjimmy");
    p.getAnotherName().setLast("anotherjam");
    makePersistentInTxn(p, TXN_START_END);

    assertNotNull(p.getId());

    beginTxn();
    p = pm.getObjectById(Person.class, p.getId());
    p.getName().setLast("not jam");
    p.getName().setFirst("not jimmy");
    commitTxn();

    Entity entity = ds.get(TestUtils.createKey(p, p.getId()));
    assertNotNull(entity);
    assertEquals("not jimmy", entity.getProperty("first"));
    assertEquals("not jam", entity.getProperty("last"));
    assertEquals("anotherjimmy", entity.getProperty("anotherFirst"));
    assertEquals("anotherjam", entity.getProperty("anotherLast"));
View Full Code Here

Examples of com.google.appengine.tools.mapreduce.testModels.Person

  public void testGeneratedJsonForNestedFields() {
    BigQueryDataMarshallerTester<Person> tester = new BigQueryDataMarshallerTester<Person>(
        new BigQueryMarshallerByType<Person>(Person.class));

    tester.testGeneratedJson(
        "{\"fullName\":\"Joe\",\"age\":45,\"height\":5.8,\"weight\":100.0,\"gender\":\"male\",\"phoneNumber\":{\"areaCode\":404,\"number\":5686}}", new Person("Joe",
            45,
            5.8,
            100,
            "male",
            new PhoneNumber(404, 5686)));
View Full Code Here

Examples of com.google.code.lightssh.project.party.entity.Person

 
  /**
   * 根据人员ID查询人事信息
   */
  public Employee getByPerson(String personId){
    Person p = new Person();
    p.setId( personId);
   
    return getDao().get(p);
  }
View Full Code Here

Examples of com.google.code.linkedinapi.schema.Person

      final LinkedInApiClient client = factory.createLinkedInApiClient(accessToken)// usuari que ha donat permis a l'aplicació degloba (ex: joan robledo)
     
      //OPERACIONS API
      System.out.println("Fetching profile for current user.");
     
      Person profile = client.getProfileForCurrentUser(EnumSet.of(ProfileField.ID));
      Person profile2 = client.getProfileById(profile.getId());
     
     
     
     
      // en aquest punt caldria afegir la relació de l'usuari que ha donat permís (ex: joan robledo)
View Full Code Here

Examples of com.google.code.timetrail.backend.Person

            player.intializeSkills();
            gameControl.setInv(playerInv);
            gameControl.setPlayer(player);
            members.add(player);
            for(int i = 0; i < additionalPlayers.size(); i++){
                members.add(new Person(additionalPlayers.get(i)));
            }

            gameControl.setMembers(members);
            return true;
        }
View Full Code Here

Examples of com.google.gdata.data.Person

    }
   
    if (entry.getAuthors() != null) {
      List authorList = new LinkedList();
      for (Iterator ai = entry.getAuthors().iterator(); ai.hasNext(); ) {
        Person person = (Person) ai.next();
        authorList.add(Value.getStringValue(person.getName()) );
        if (person.getEmail() != null) {
          authorList.add(Value.getStringValue( person.getEmail()) );
        }
      }
      map.put(PROPNAME_AUTHOR, new SimpleProperty(authorList));
    }
View Full Code Here

Examples of com.google.gdata.model.atom.Person

          ElementMetadata<?, ?> metadata) throws IOException {
        if (!(e instanceof Person)) {
          return super.startElement(xw, parent, e, metadata);
        }

        Person person = (Person) e;
        String email = person.getEmail();
        String name = person.getName();

        StringBuilder text = new StringBuilder();
        boolean hasEmail = email != null;

        if (hasEmail) {
View Full Code Here

Examples of com.google.gsoc.entity.Person

    return value.getId().toString();
  }

  public Person toValue(String keyAsString) {
    Integer key = new Integer(keyAsString);
    Person person = Person.loadPerson(key);
    return person;
  }
View Full Code Here

Examples of com.google.gwt.editor.client.Person

  protected void gwtSetUp() throws Exception {
    Address a = new Address();
    a.setCity("city");
    a.setStreet("street");

    Person m = new Person();
    m.setName("manager");

    person = new Person();
    person.setName("name");
    person.setAddress(a);
    person.setManager(m);

    editor = new PersonEditorWithCoAddressEditorView();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.