Difference between revisions of "Extension Guide"

From OpenKM Documentation
Jump to: navigation, search
Line 1: Line 1:
 
{{Warning|This section is still unders contruction}}
 
{{Warning|This section is still unders contruction}}
  
OpenKM allows to create your own plugin extensions. OpenKM plugin extensions makes OpenKM more easilly to extends OpenKM users interface encapsulating plugin codeand making rehusable between OpenKM versions.
+
OpenKM allows to create your own plugin extensions.  
  
 +
OpenKM plugin extensions makes OpenKM more easilly to extends OpenKM users interface encapsulating plugin code and making it rehusable between OpenKM versions.
  
The OpenKM plugin extension is based on:
+
 
 +
The OpenKM plugin extension architecture is based on:
 
* Extensions
 
* Extensions
 
* Events
 
* Events
Line 11: Line 13:
  
  
'''Extensions are available panels definitions ''' that allows to make extensible widget ( for example tab document panel in Desktop view )
+
'''Extensions are available widget definitions ''' that allows to make extensible panels and widgets ( for example adding new tab panel on tab document )
  
  
'''Events are a collection of events that OpenKM UI fires''' when some changes happens ( for example adding new keyword in tab document panels)
+
'''Events are a collection of events that OpenKM UI fires''' each time any changes happens ( for example when is added new keyword in tab document if fired event HasDocumentEvent.KEYWORD_ADDED)
  
  
'''Handlers are a collection of metods called internally by OpenKM'''. Handlers must be implemented to your extensions in order to take advantage of events. Each extension you make can have one ore several handlers that are automatically registered by OpenKM on loading process. OpenKM internally fire events to each declared handler.
+
'''Handlers are a collection of metods called internally by OpenKM'''. Handlers must be implemented into your extensions in order to take collect OpenKM fired events. Each extension you make can have one or several handlers that are automatically registered by OpenKM on loading process. OpenKM internally fire events to each declared handler.
  
  
'''Comunicators are a collection of methods avaliable as OpenKM Comunitate API''' to accessing transparently with some widget values. Comunicators encapsulation allows a transparent way to accessing internally data values. Each extensions has it own communicate methods. Major Communicate API is read only althought there're some write methods.
+
'''Comunicators are a collection of methods avaliable as OpenKM Comunitate API''' to accessing transparently with some internal UI values. There are several Comunitators, for example with GeneralComunicator can accessing to some general actions like refreshing UI as GeneralComunicator.refreshUI(). OpenKM Communicators API has read and write methods to interact with internal OpenKM UI objects.
  
  

Revision as of 09:50, 3 June 2010


Nota advertencia.png This section is still unders contruction

OpenKM allows to create your own plugin extensions.

OpenKM plugin extensions makes OpenKM more easilly to extends OpenKM users interface encapsulating plugin code and making it rehusable between OpenKM versions.


The OpenKM plugin extension architecture is based on:

  • Extensions
  • Events
  • Handlers
  • Comunicators


Extensions are available widget definitions that allows to make extensible panels and widgets ( for example adding new tab panel on tab document )


Events are a collection of events that OpenKM UI fires each time any changes happens ( for example when is added new keyword in tab document if fired event HasDocumentEvent.KEYWORD_ADDED)


Handlers are a collection of metods called internally by OpenKM. Handlers must be implemented into your extensions in order to take collect OpenKM fired events. Each extension you make can have one or several handlers that are automatically registered by OpenKM on loading process. OpenKM internally fire events to each declared handler.


Comunicators are a collection of methods avaliable as OpenKM Comunitate API to accessing transparently with some internal UI values. There are several Comunitators, for example with GeneralComunicator can accessing to some general actions like refreshing UI as GeneralComunicator.refreshUI(). OpenKM Communicators API has read and write methods to interact with internal OpenKM UI objects.