public AbstractNode getNode ( final String id ) { final SecurityContext securityContext = getWebSocket ( ) . getSecurityContext ( ) ; final App app = StructrApp . getInstance ( securityContext ) ; try ( final Tx tx = app . tx ( ) ) { final AbstractNode node = ( AbstractNode ) app . getNodeById ( id ) ; tx . success ( ) ; return node ; } catch ( FrameworkException fex ) { logger . warn ( "Unable to get node" , fex ) ; } return null ; }
Returns the node with the given id .