59606162636465666768
} }; private ViewEngine() { // initialize orientDb and initialize org.pentaho.cdf.views.View PersistenceEngine pe = PersistenceEngine.getInstance(); if ( !pe.classExists( View.class.getName() ) ) { pe.initializeClass( View.class.getName() ); } }
126127128129130131132133134135136137
try { JSONObject json = new JSONObject( view ); viewObj.fromJSON( json ); viewObj.setUser( user ); PersistenceEngine pe = PersistenceEngine.getInstance(); pe.store( viewObj ); } catch ( JSONException e ) { logger.error( e ); return RESULT_ERROR; } return RESULT_OK;