Esempio n. 1
0
 public Long getCurrentReferenceNodeId() {
   try {
     return nodeManager.getReferenceNode().getId();
   } catch (NotFoundException e) {
     return -1L;
   }
 }
Esempio n. 2
0
 public void setReferenceNodeId(Long nodeId) {
   nodeManager.setReferenceNodeId(nodeId.longValue());
   try {
     nodeManager.getReferenceNode();
   } catch (NotFoundException e) {
     log.warning("Reference node[" + nodeId + "] not valid.");
   }
 }