Can service call to getMashlets be filtered?
MashletHub Service has an operation named "getListOfMashletsAddedSinceDate" which should work for you. The operation takes 2 parameters, first is a date string and second is the maximum number of ietms to return. Here is example you can try from the presto/dev api page:
{
"version": "1.1",
"sid": "MashletHub",
"oid": "getListOfMashletsAddedSinceDate",
"svcVersion": "0.1",
"params": [
"28/02/10 00:00 AM", "10"
]
}
If you go to http://<your presto>/presto/dev/?view=api you'll see the MashletHub API listed as "Mashlet Service", more or less all the operations exposed by the MashletHub are listed here. Strictly speaking this is an internal API, but it should be ok to use it passively to retrieve info on mashlets.
Thanks again, I didn't realize that page existed, that makes things easier. However, I did notice that the getListOfMashletsAddedSinceDate operation was not listed under MashletService. How did you know that operation was there? Do you know of any others that may exist but not be listed? Could it be missing b/c of a difference in versions? The odd thing is that the operation worked, so does that mean that it is a "private" operation? Sorry for the barage of questions, just trying to understand things better so I don't have to ask as many questions in the future.
Looks like there is a slight mismatch between the /presto/dev page and the actual service api, those pages will be auto generated in future releases.
The are a few ways you can check what operations are exposed by a service. The Repository Service (sid "RDSService") exposes a couple of useful operations to retrieve service metadata, getServiceDescription and getServiceNSD. You can invoke these operations from the /presto/dev page, using the following JUMP
requests:
{ "sid": "RDSService", "oid": "getServiceDescription", "params": [ "MashletHub" ] }
{ "sid": "RDSService", "oid": "getServiceNSD", "params": [ "MashletHub" ] }
A summary of operation names is returned by getServiceDescription, whereas getServiceNSD returns a "normalized service definition", a proprietry wsdl-like service schema, which details operation input and output parameter data.
Both these operations are used internally by various Presto web apps, so you won't find them documented and I'm not sure I should be encouraging you to use them, but they are listed there on the /presto/dev page.







We have some java code that queries the Presto server for all of the mashlets that have been created, and were wondering if there was some way to get a list of mashlets that had been created and/or updated after a certain date?
We create a minimal JUMPRequest object with the following values:
Any help is greatly appreciated!