示例#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);
 }