This is a Dicoogle plugin to serve as an example. Those that are interested in developing a new plugin may use this one as a template.
- Go to http://www.dicoogle.com/?page_id=67
- Download version 2 (or later) of Dicoogle
- Extract your contents to its own directory (e.g. "~/dicoogle" or "C:\dicoogle", depending on the platform).
- Run Dicoogle with: sh Dicoogle.sh (OSX / Linux) or Dicoogle.bat (Windows).
- You should see your web browser opening the Dicoogle user interface. Is it running? You're ok!
Maven is required in order to build the project. An IDE with Maven support such as Netbeans may also help.
-
Clone the git repository at https://github.com/bioinformatics-ua/dicooglePluginSample.git
-
Go to the project's base directory in a command line and run
mvn install
. Alternatively, open the Maven project of the plugin with your IDE, then force it to build your project. -
If the building task is successful, you will have a new jar with dependencies in the target folder (target/dicoogle-plugin-sample-2.0-jar-with-dependencies.jar).
The first class to look into is RSIPluginSet. It is the main entry point for everything else. Once modified to suit your needs, build the plugin again and re-deploy it to Dicoogle (see below).
-
Copy your plugin's package with dependencies (target/dicoogle-plugin-sample-2.0-jar-with-dependencies.jar) to the "Plugins" folder inside the root folder of Dicoogle.
-
Run Dicoogle. The plugin will be automatically included.
- RSIIndexer : a sample indexer, only logs the DIM contents of files
- RSIStorage : a sample storage service, keeps files in memory buffers
- RSIQuery : a sample query provider, returns random data on request
- RSIJettyPlugin : a sample plugin for providing web services, holds
RSIWebService
- RSIWebService : a sample web service in the form of a servlet, serves a web page and a few other services
- RSIRestPlugin : a sample Restlet server resource, provides dummy data
- Sample HTML5 content and consuming web service: helps you to build a web app
To test the webservice plugin, you may open your browser and navigate to these URLs:
http://localhost:8080/sample/hello?uid=1111
http://localhost:8080/dashboardSample
http://localhost:8080/ext/rsi-test
(restlet)
You may also use the built-in Dicoogle services for testing other plugins:
- GET
http://localhost:8080/search?query=test&provider=RSI
to test the query provider - POST
http://localhost:8080/management/tasks/index?plugin=RSI&uri=<file:/path/to/DICOM/dir>
to test the indexer
Dicoogle has been tested in:
- Windows
- Linux
- Mac OS X
For more information, please visit http://www.dicoogle.com