Пример #1
0
 // todo needed in the model document
 public void offlinePeer(Peer peer) {
   Assert.notNull(peer);
   peer.setOnline(false);
   save(peer);
 }
Пример #2
0
 // todo needed in the model document
 public void onlinePeer(Peer peer) {
   Assert.notNull(peer);
   peer.setOnline(true);
   save(peer);
 }