@Override public void cascadeDelete(Person p) throws MapperException { List<Person> people = PersonInputMapper.findAll(); for (Person person : people) { IPerson buddy = person.getBuddy(); if (buddy == null || buddy.getId() != p.getId()) continue; delete(person); } }
public RuntimeAuthorizationException(IPerson person, String activity, String target) { super( "Person [" + person.getUserName() + "] does not have permission " + activity + " on " + target); }