コード例 #1
0
 /** {@inheritDoc} */
 @Override
 public boolean removeContactById(IUser user, String contactId) {
   boolean result = false;
   if (user != null && contactId != null) {
     IContact contact = contactService.getById(contactId);
     if (contact.getId() != null) {
       user.getContacts().remove(contact);
       update(user);
       result = true;
     }
   }
   return result;
 }