// todo needed in the model document public void offlinePeer(Peer peer) { Assert.notNull(peer); peer.setOnline(false); save(peer); }
// todo needed in the model document public void onlinePeer(Peer peer) { Assert.notNull(peer); peer.setOnline(true); save(peer); }