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;