cancel
Showing results for 
Search instead for 
Did you mean: 

Implementing a Repository Service

Former Member
0 Kudos

Hi all,

I'm looking for a good documentation on implementing a Repository Service.

I'm familiar with most of the km api,

and loooked at the skeleton generated by the Developer Studio wizard,

but I'm still having trouble finding out where to start.

The final solution I'm looking for is for a certain method to be called whenever some resource meta-data property is changed.

Any help will be appreciated,

Yoav.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

The example of Patrick O'Neill here:

helped a lot, and I think I can take it from here (I guess ResourceEvent.PROPERTY_SET is the one to register to).

Former Member
0 Kudos

Hi all (again),

I'm back at this assignment, and encountered another problem.

When registering to the PROPERTY_SET event, the event.getParameter() method returns a com.sapportals.wcm.repository.Property, while I need (also) the resource.

Any ideas on how to retrieve it?

Thanks ahead for any help,

Yoav.

Message was edited by: Yoav Gur

looking at Detlev's example here:

I got the idea of finding out the actual runtime class of the event, cast to it, and see what it has to offer.

Wish me luck...

Former Member
0 Kudos

For closure, and whoever might be interested, it is com.sapportals.wcm.repository.manager.ResourceEvent

(And yes, it has a getResource() method ).

Former Member
0 Kudos

Hey Yoav,

I have succefully created one. Contact me and I'll send it 2 u...

Roy

former_member189326
Active Participant
0 Kudos

Hi,

as a side note on developing Repository Services in particular and developing with KM in general: I encourage the use of the debugger as well as using System.out.println and/or tracing, if at all possible. It works great in a situation in which it is otherwise difficult to get output and does not require redeployment.

Boris