1 of 1 people found this helpful
This sounds as a good approach: "Ideally I would extend the TaskClient class and provide my own methods working in the same way as the existing ones. "
The query method was deprecated, because "it allows you to do any query on the database and can be harmful from the security point of view". I'm not completely agree with that Deprecation, but this is how it is right now.
Let us know how it goes with the extension.
Hi, I extended the TaskClient class. It was straight forward enough. Anyone using the class would just see a few extra task list methods, the only real different to them is the use of a QueryGenericResponseHandler instead of a BlockingTaskResponseHandler.
I am agreement with you that this method should not be deprecated if it's functionality hasn't been replaced in some way. Incidentally, when I was writing and testing the queries I did receive an exception informing me that only Select statements were supported so perhaps this protection is now built in. It was actually caused by some line breaks in the query string as apposed to me trying to do any writing to the task tables!