Extension Manual
Writing extensions for proteios enables you to expand the application with your own actions and plugins. I'll start of by explaining the terms action, plugin and extension. At the end of each term there is a list of examples for you to use and learn from.
Action
Actions are executed each time you click on something in the gui. It may be a link, column or button. Every link in proteios links to an action. Read more about how to ImplementAction.
Examples
This action displays a form where the user can enter a string value.
This action creates a job using the ImportXFile plugin.
Plugin
A plugin is often a block of code that you want to execute at a later time using the job queue within proteios. Use plugins when your code takes long time to execute and you want traceability. Read more about how to ImplementPlugin.
Examples
Extension
An extension is basically a jarfile named ANAME.ext.jar which is put in servlet directory /path/to/webapps/proteios/WEB-INF/lib. This jar should contain action and/or plugin classes. The plugins available in extensions are available for installation from the gui(if you have administrator privileges). Read more about how to ImplementExtension?.
Examples
This example shows how to write an import plugin with actions that create a job for each file to import.
Attachments
- HelloWorld.ext.jar (2.6 kB) -
Uploaded HelloWorld?.ext.jar
, added by gregory on 07/06/07 16:54:09. - CreateXFileImportJob.java (2.1 kB) -
Action that creates a job
, added by gregory on 08/27/07 11:21:07. - ImportXFile.java (3.8 kB) -
Plugin that renames a file
, added by gregory on 08/27/07 11:21:40. - ImportXFileForm.java (4.0 kB) -
Displays a form with a string field
, added by gregory on 08/27/07 11:22:01. - ImportXFile.ext.jar (10.1 kB) - added by gregory on 09/05/07 08:49:47.
