Hi community, I recently came across the ListsProcessor as part of the 1.1 
release and found it great in that it provides all the boiler plate code 
necessary to fulfill all of the necessary requirements of the processor.    I 
have several questions:
- Is this class meant to be used as a base class that one can extend but 
override as needed?
- in the readEntitySet() method, it firsts retrieves all of the data and then 
applies system query options.   In my case, I have a service which takes in a 
wild card expression.   My filter query looks like this; $filter=MyField eq 
'1'.    My service will treat that '1' as a wild card and only return results 
that begin with '1'.    So in this case, I want to retrieve that subset of data 
first (through an implementation of the ExpressionVisitor) and then apply the 
other system options to it like $top, $skip etc....  So I can override the 
readEntitySet() method but I'd like to reuse convenience methods like 
getStructuralTypeValueMap() or getCallbacks() which are all private instead of 
protected in the ListsProcessor instead of having to copy them into my child 
class.     Am I extending the right class?     Also, what if my backend was a 
database and I wanted to use the system query options to directly translate 
into a db query that takes into account things like $top?  It wouldn't make 
sense to retrieve the entire set first and then apply post filtering no?
- I really like the DataSource abstraction interface but noticed there is no 
overloaded method for readData() that takes in say a Filter expression so that 
I could apply the filter in conjunction with retrieving the data using some 
data service.   I guess this goes back to the above point about retrieving the 
data in its entirety and then post filtering.
- Also, I'm a big fan of Spring and try and use it for DI and bean management 
(also for unit testing purposes) but its hard to do given the way the things 
are initialized..... any thoughts on the best way to leverage Spring with the 
Olingo library?

I'm sure there is good reason for what is there now and I've probably missed 
something or am taking the wrong approach... I beseech this great community for 
help and bow in utter humility.

Thank you!
Hanif

Reply via email to