private View getContentView ( BellaDatiServiceImpl service , JsonNode node ) throws UnsupportedDashletContentException { if ( ! node . hasNonNull ( "canAccessViewReport" ) || ! node . get ( "canAccessViewReport" ) . asBoolean ( ) ) { throw new UnsupportedDashletContentException ( "View not accessible" ) ; } if ( ! node . hasNonNull ( "viewReport" ) ) { throw new UnsupportedDashletContentException ( "Missing view element" ) ; } try { return ViewImpl . buildView ( service , node . get ( "viewReport" ) ) ; } catch ( UnknownViewTypeException e ) { throw new UnsupportedDashletContentException ( e ) ; } }
Reads view content from a dashlet node .