cancel
Showing results for 
Search instead for 
Did you mean: 

KM Event Handling

Former Member
0 Kudos
56

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

Accepted Solutions (1)

Accepted Solutions (1)

DeeptiChavare
Active Participant
0 Kudos

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"

Former Member
0 Kudos

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?

Former Member
0 Kudos

Hi Anand,

Refer this <a href="https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2654">Link</a> which is one good example for KM Event Handling.

Regards,

Venkatesh. K

/* Points are Welcome */

S0019300750
Contributor
0 Kudos

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 !!

Former Member
0 Kudos

thanks guys for helping me out....but still no luck.

did the following:

- created the par & uploaded.

- i could see it in the "Repository Services".

- But when i went to the cm to assign the repository services, i didn't see it.

don't know where to start for debug?

appreciate any help..

Answers (2)

Answers (2)

S0019300750
Contributor
0 Kudos

Sorry I didnt notice Deepti's reply properly.

The solution is already there..

S0019300750
Contributor
0 Kudos

Hi Anand

Refer section 5.2.6 (Page No 64/121) of following material.

RF Concepts:

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5d0ab890-0201-0010-849d-98d70bd1...

It will definitely help you.

( Points are always Welcome )