cancel
Showing results for 
Search instead for 
Did you mean: 

get_children event

Former Member
0 Kudos

Hi,

I created a repository service to catch the event get_children and get.

i registered like that:

mgr.getEventBroker().register(

this,

new ResourceEvent(ResourceEvent.GET, null),

IEventBroker.PRIO_MIN,

false);

mgr.getEventBroker().register(

this,

new ResourceEvent(ResourceEvent.GET_CHILDREN, null),

IEventBroker.PRIO_MIN,

false);

The problem is that on i access a folder i receive 2 events get_children for the same folder.

Do you have any ideas?

Florin

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Are you using a standard KM browser to start the getChildren action. In that case it might be possible, that this is called twice.

Regards,

Achim

Former Member
0 Kudos

Thank you for your response but why??

Florin

Former Member
0 Kudos

Hi,

I'm not shure but I think there is a hasChildren-Call which checks if there are children before and for some repositories the getChildren call is executed therefore.

Regards,

Achim