[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.cosmos] Re: How to avoid the empty templates loading all the items?

Hi David ,

Thank you for your reply. I find the solution for this and it seems to be working. But I am not sure this is the right way of doing.

I extend the org.eclipse.cosmos.dc.provisional.cmdbf.services.query.service.impl.CMDBfQueryOperation class and overwrite the "private IQueryResult execute(Object input) throws CMDBfServiceException".

I have added one method as "processEmptyTemplates(IQueryResult result) and calling this method after the "processRelationshipTemplates(cmdbfQuery, queryResult);" method call in this method.

In the itemtemplatehandler I am adding the empty item and adding the template id into map with empty item [ Nodes ] , So that we will get the template id with the empty item and in relationship record type handler, I am getting actual item [ because I am getting the item only when I am executing the relationship ] and update this map.So this map will be filled once the method "processRelationshipTemplates(cmdbfQuery, queryResult);" is called. I am calling the method which is by me after this method and this method take care in appending the nodes [ which is filled during the relaitonship process ] to the empty template [ during the item template handler processing ].

And this is working fine for me, But I don't think this will be an temporary solution.

Regards

Arunachalam.