Ticket #511 (closed task: duplicate)

Opened 13 years ago

Last modified 13 years ago

[M] Discovery Backend Refactoring as new Java package

Reported by: mpritcha Owned by: mpritcha
Priority: required Milestone: ReFactored_Discovery_WebServices
Component: discovery Version:
Keywords: Cc:


Re-write discovery backend as simplified web service acting as client to exist's XML:DB interface, and to Postgres via JDBC.

Change History

comment:1 Changed 13 years ago by mpritcha

  • Status changed from new to assigned

comment:2 Changed 13 years ago by domlowe

Will we be able to call this service to get an entire XML record from exist? In the  python coding meeting we decided we 'Need a light interface to exist that respects ndg security ... returns a specific document ...'

This hasn't been made into a ticket yet, and I am wondering if they are part of the same thing?

comment:3 Changed 13 years ago by mpritcha

See  XMLDBMessageService.java which implements 2 methods (so far), fullText() and present().
fullText() executes an XQuery against eXist using XMLDB, and returns the XML result.
present() fetches a document from a URL
...in this case the eXist REST interface, e.g.  http://glue.badc.rl.ac.uk:8080/exist/rest/db/dif/nocs/NOCSDAT114.xml but you could point that at some other thing that exposed docs from the DB if preferred. As the eXist DB is currently password protected, present() uses an Authenticator object to load the username and password from a properties file so that the service can always reach the document. Perhaps this is the bit we could integrate with NDG security to ensure that it is respected. This would probably need to be a new ticket, then.

comment:4 Changed 13 years ago by lawrence

  • Status changed from assigned to closed
  • Resolution set to duplicate

Now superceded by a number of detailed tickets.

Note: See TracTickets for help on using tickets.