226227228229230231232233234235236
Session s = getSessionFromCookies(cook); Model m; m = (Model) map.get(args[0]+args[1]).makeEntity(s,content); return m.toJSON(); } /**update * * Updates the model with the content stored in the content argument
244245246247248249250251252253254
Session s = getSessionFromCookies(cook); Model m; m = (Model) map.get(args[0]+args[1]).update(s, content); return m.toJSON(); } /**delete * * String args[] - {module,model,identifier}