Examples of PersonPojoApiMap


Examples of com.ikanow.infinit.e.data_model.api.social.person.PersonPojoApiMap

      if (personId != null)
        getPersonAddress +=  "/" + URLEncoder.encode(personId,"UTF-8");

      String getResult = sendRequest(getPersonAddress, null);
      ResponsePojo internal_responsePojo = ResponsePojo.fromApi(getResult, ResponsePojo.class, PersonPojo.class, new PersonPojoApiMap())
      ResponseObject internal_ro = internal_responsePojo.getResponse();
      responseObject = shallowCopy(responseObject, internal_ro);
      return (PersonPojo)internal_responsePojo.getData();

    }
View Full Code Here

Examples of com.ikanow.infinit.e.data_model.api.social.person.PersonPojoApiMap

      String getResult = sendRequest(listPersonAddress, null);
      ResponsePojo internal_responsePojo = ResponsePojo.fromApi(getResult, ResponsePojo.class);
      ResponseObject internal_ro = internal_responsePojo.getResponse();     
      responseObject = shallowCopy(responseObject, internal_ro);
      List<PersonPojo> people = null;
      people = ApiManager.mapListFromApi((JsonElement)internal_responsePojo.getData(), PersonPojo.listType(), new PersonPojoApiMap());
     
      return people;                 
    }
    catch (Exception e)
    {
View Full Code Here

Examples of com.ikanow.infinit.e.data_model.api.social.person.PersonPojoApiMap

      }
     
      BasicDBObject dbo = (BasicDBObject) DbManager.getSocial().getPerson().findOne(personQuery.toDb());
      PersonPojo person = PersonPojo.fromDb(dbo, PersonPojo.class);
     
      rp.setData(person, new PersonPojoApiMap());
      rp.setResponse(new ResponseObject("Person Info", true, "Person info returned successfully"))
    }
    catch (Exception e)
    {
      logger.error("Exception Message: " + e.getMessage(), e);
View Full Code Here

Examples of com.ikanow.infinit.e.data_model.api.social.person.PersonPojoApiMap

      DBCursor dbc = DbManager.getSocial().getPerson().find(query);
     
     
      if (dbc.count() > 0)
      {
        rp.setData(PersonPojo.listFromDb(dbc, PersonPojo.listType()), new PersonPojoApiMap());
        rp.setResponse(new ResponseObject("People List", true, "List returned successfully"));       
      }
      else
      {
        rp.setResponse(new ResponseObject("People List", true, "No list to return returned"))
View Full Code Here

Examples of com.ikanow.infinit.e.data_model.api.social.person.PersonPojoApiMap

    {
      DBCursor dbc = DbManager.getSocial().getPerson().find();
     
      if (dbc.count() > 0)
      {
        rp.setData(PersonPojo.listFromDb(dbc, PersonPojo.listType()), new PersonPojoApiMap());
        rp.setResponse(new ResponseObject("People Info", true, "Info returned successfully"));       
      }
      else
      {
        rp.setResponse(new ResponseObject("People Info", true, "No info returned"))
View Full Code Here

Examples of com.ikanow.infinit.e.data_model.api.social.person.PersonPojoApiMap

        {
          //TODO (INF-1214): (not thread safe)         
          communities.add(community)
          person.setModified(new Date());         
          DbManager.getSocial().getPerson().update(personQuery.toDb(), person.toDb());
          rp.setData(person, new PersonPojoApiMap());
          rp.setResponse(new ResponseObject("Add community status",true,"Community added successfully."))
        }         
        else
        {
          rp.setResponse(new ResponseObject("Add community status",true,"Community already exists."))
View Full Code Here

Examples of com.ikanow.infinit.e.data_model.api.social.person.PersonPojoApiMap

        {
          //TODO (INF-1214): (not thread safe)         
          communities.remove(communityIndex)
          person.setModified(new Date());         
          DbManager.getSocial().getPerson().update(personQuery.toDb(), person.toDb());
          rp.setData(person, new PersonPojoApiMap());
          rp.setResponse(new ResponseObject("Remove community status",true,"Community removed successfully."))
        }         
        else
        {
          rp.setResponse(new ResponseObject("Remove community status",true,"Person is not a member of the specified community."))
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.