Project

General

Profile

Statistics
| Revision:
Name Size Revision Age Author Comment
  ucsb 6251 almost 13 years Chris Jones throw NotAllowed in MNodeService.delete() when ...

Latest revisions

# Date Author Comment
6251 06/29/2011 05:07 PM Chris Jones

throw NotAllowed in MNodeService.delete() when isAuthorized() returns false.

6250 06/29/2011 04:59 PM Chris Jones

Implement the MNStorage.delete() MNodeService. There is debate about what permissions are needed to 'delete' an object (archive it in metacat terms): D1 'WRITE' (metacat 'write') or D1 CHANGE_PERMISSION (metacat 'all'). For now we are using CHANGE_PERMISSION until it is ironed out.

6249 06/29/2011 04:13 PM ben leinfelder

add shared operations for authorization

6248 06/29/2011 03:08 PM ben leinfelder

share tempDir method with subclasses

6247 06/29/2011 02:55 PM ben leinfelder

make RestServlet and ResourceHandler extendible for D1 CN and MN handlers

6246 06/29/2011 02:19 PM ben leinfelder

use session member variable now that we actually have it

6245 06/29/2011 12:35 PM ben leinfelder

isAuthorized: check for nulls in Session subjects, catch any unexpected errors and deny access when in doubt

6244 06/29/2011 12:20 PM ben leinfelder

remove CrudService calls in favor of MNodeService

6242 06/29/2011 12:09 PM Chris Jones

Remove setParamsFromRequest() from D1NodeService. This was called (previously as CrudService) from ResourceHandler, but will be deprecated in favor of manually creating a param map for each method that needs to pass params on to MetacatHandler.

6241 06/29/2011 08:44 AM Chris Jones

Implement [MN|CN]Storage.create() in D1NodeService. Since MetacatHandler requires an IP for event logging, we pass in the metacat URL (hold over from CrudService). To do this in the abstract D1NodeService, change the constructors to take metacatUrl as a parameter and get the URL from the metacat properties file in getInstance() of the subclasses. Needs testing.

View revisions

Also available in: Atom