Difference between revisions of "Core extensions"
(Created page with 'This kind of extensions enable to add features at OpenKM Core level, implementing extension points. Category: Extension Guide') |
|||
Line 1: | Line 1: | ||
− | This kind of extensions enable to add features at OpenKM Core level, implementing extension points. | + | This kind of extensions enable to add features at OpenKM Core level, implementing extension points. Actually there is a couple of method which can be extended in this way but the list of the will grow as needed. |
+ | |||
+ | {{Warning|This kind of extensions are in development and only available in trunk. We expect to be included in a future OpenKM 5.2 release.}} | ||
+ | |||
+ | First of all, lets an extension sample. Suppose you want to disable the uploading of certain type of documents in a folder. You need to create a Java project with your favorite IDE (or CLI), create a class which implements an interface and create a JAR archive. This generated archive should be placed at '''$JBOSS_HOME/plugins''' directory. | ||
+ | |||
+ | Thats all! The plugin will be used next time you restart JBoss. But more interesting. You can also refresh your plugins without restarting the application server. To do so, go to Administration > Scripting and execute this command: | ||
+ | |||
+ | com.openkm.extension.core.ExtensionManager.getInstance().reset(); | ||
+ | |||
+ | Let's see how you can implement this plugin. | ||
[[Category: Extension Guide]] | [[Category: Extension Guide]] |
Revision as of 16:01, 11 May 2011
This kind of extensions enable to add features at OpenKM Core level, implementing extension points. Actually there is a couple of method which can be extended in this way but the list of the will grow as needed.
This kind of extensions are in development and only available in trunk. We expect to be included in a future OpenKM 5.2 release. |
First of all, lets an extension sample. Suppose you want to disable the uploading of certain type of documents in a folder. You need to create a Java project with your favorite IDE (or CLI), create a class which implements an interface and create a JAR archive. This generated archive should be placed at $JBOSS_HOME/plugins directory.
Thats all! The plugin will be used next time you restart JBoss. But more interesting. You can also refresh your plugins without restarting the application server. To do so, go to Administration > Scripting and execute this command:
com.openkm.extension.core.ExtensionManager.getInstance().reset();
Let's see how you can implement this plugin.