on 07-09-2007 5:00 AM
Any material on the KM events handling. I had link to sample code, but unable to find.
Want to write some code where event is fired & need to update the property of the resource.
Thanks
Hi Anand,
Refer to following links:
1. https://www.sdn.sap.com/irj/sdn/thread?messageID=3463688#3463688
2. https://www.sdn.sap.com/irj/sdn/thread?threadID=3256
3. Section 2.2.6 and 5.2.6 of the "Repository Framework Concepts" given in following link:
"https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/library/kmc/Repository Framework Concepts"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the reply. Had another question after going through these links again.
I just have the idea of creating the listener & handling the events occuring on the resource. What I am not able to understand is how the listener is associated to the resource / repository.
1) we register the listener through code. Is this the way it is done? or
2) do we need to create another portal service & assign to the repository? just like we create scheduler tasks.
Hope my Q is clear?
Hi Anand
There are two ways to register the events.
As you mentioned we can register through code as shown below:
public void register(IResource resource)throws WcmException {
IResourceEventBroker broker = resource.getRepositoryManager().getEventBroker();
if( broker == null ) return;
<b> broker.register(this, DELETE_EVENT, IEventBroker.PRIO_MAX, false);</b>}
We pass resource as parameter to this method which gives address of /documents or any other subfolders under it.
The second way is to register in portal. It is especially for Repository Services.
Goto <b>System Admin -> System Config- >KM Content Mgt -> Repository managers ->CM repository -></b>
Select documents and Edit it and add new developed service in Repository Services column.
Hope it helps !!
Sorry I didnt notice Deepti's reply properly.
The solution is already there..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anand
Refer section 5.2.6 (Page No 64/121) of following material.
RF Concepts:
It will definitely help you.
( Points are always Welcome )
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
61 | |
9 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.