Jeff Lindborg | None of the installable tools on the site run in Linux, however the CUPI .NET wrapper (the Fast Start project) does run just fine in Mono on Linux (and Android and iPhone - it's what's behind the Connection CoPiolot iPhone app in fact) - you can easily lift the enitre library which can save a bunch of time - I've done Linux CLI apps using this (the forms stuff in Mono is a little squirly) - if you're curious go look at the "GetActionDescription" method in the ConnectionServer.cs class - it has a very handy method that will let you pass in the action, conversation and target and spit back a nice human readable description of what it's doing, complete with fetching names of target objects and such - if nothing else you can steal the functionality into Java or whatever you're using if you don't care for exploring the joys of the Mono project.
You can find it's home page here: http://www.ciscounitytools.com/CodeSamples/Connection/CUPI/CUPI.html
super exciting training videos, link to the public subversion project etc... hours of fun.
As to the data path - you don't need the aliases - you just need the call handler objectIds of the users and you can construct the URIs for the menu entry keys quickly off of that - do a fetch of users and the call handler objectId is in the "short version" of users returned from a search - don't bother then doing a fetch for the handler and a fetch for the menu entries and work off that - waste of fetches and cycles - just construct the URI's on your own and it'll save you some cycles.
But in short yes - you will have to process them in a crunchy list - there's a reason most of my tools use ODBC for bulk operations - it's going to be a little chuggy doing that via REST by comparison. I don't disagree about the superiority of doing SQL type queries - those of us who are professional enough to spend the time to learn how to use SQL properly would prefer to do so but the trend of late is "stateless API" with XML and JSON and blah, blah, blah... it is what it is I'm afraid. I think I'm getting too old for this stuff.
...and no, I've never gotten remote ODBC attachment to Connection to work from Linux. But to be fair I've never really tried either... I'm sure it's possible, IBM's client SDK does include drivers for Linux. |
| Please sign in to flag this as inappropriate. |