Example #1
0
 /**
  * Check if the node is viewable for the current user or not viewable. <br>
  * return True if the node is viewable, otherwise will return False
  *
  * @param node: The node to check
  */
 public static boolean isViewable(Node node) {
   try {
     node.refresh(true);
     ((ExtendedNode) node).checkPermission(PermissionType.READ);
   } catch (Exception e) {
     return false;
   }
   return true;
 }