Exemplo n.º 1
0
 public Pagination findContactVosByUserWithPage(Pagination page, String owner) throws Exception {
   if (page == null) {
     page = new Pagination();
   }
   Pagination p = contactService.findContactsByUserWithPage(page, owner);
   List rds = p.getList();
   log.info("================= contact size: " + rds.size());
   List vos = new ArrayList();
   for (int i = 0; i < rds.size(); i++) {
     Contact c = (Contact) rds.get(i);
     vos.add(ContactServiceUtils.boToVo(c));
   }
   p.setList(vos);
   return p;
 }
Exemplo n.º 2
0
 public long createContactVo(ContactVo cvo) throws Exception {
   return contactService.createContact(ContactServiceUtils.voToBo(cvo));
 }