/** @param sender */ public void deleteRequest(PersonInfo sender) { if (sender == null) { throw new NullPointerException(); } mTable.deleteEntryOf(sender.getIdentifier()); }
/** * @param sender * @param circles */ public void confirmRequest(PersonInfo sender, String passphrase, List<String> circles) throws TokenCipher.WrongPassphraseException { if (sender == null || circles == null) { throw new NullPointerException(); } try { mTable.confirmRequest(sender.getIdentifier(), passphrase); } catch (GeneralSecurityException e) { Log.e(TAG, "Decypher error:", e); return; } for (String circle : circles) { addPersontoCircle(sender.getIdentifier(), circle); } }
public boolean addPersonToGroup(PersonInfo contact, String group) { return mTable.addPersonToCircle(contact.getIdentifier(), group); }
public boolean removePersonFromGroup(PersonInfo contact, String group) { return mTable.removePersonFromCircle(contact.getIdentifier(), group); }
public void deletePerson(PersonInfo person) { mTable.deleteEntryOf(person.getIdentifier()); }