07-31-2007 03:54 AM
08-06-2007 05:47 AM
Example using the AVM API to process a webproject store - the store name is passed as store on the url arguments:
if (args["store"] == null)
{
logger.log("ERROR: 'store' argument not specified.");
}
else
{
main();
}
function main()
{
var storeRootNode = avm.lookupStoreRoot(args["store"]);
if (storeRootNode != null)
{
var path = storeRootNode.path + "/ROOT/admin/index.html";
var node = avm.lookupNode(path);
if (node == null)
{
return "ERROR: unable to find path: " + path;
}
var store = avm.lookupStore(args["store"]);
if (store == null)
{
return "ERROR: unable to lookup store: " + args["store"];
}
var rootNode = store.lookupRoot();
if (rootNode == null)
{
return "ERROR: unable to find root node for store: " + store.name;
}
var out = "";
var results = store.luceneSearch("TEXT:tomcat");
for (var i=0; i<results.length; i++)
{
out += results[i].path + "<br>";
}
return out;
}
}
08-06-2007 05:54 AM
08-06-2007 04:15 PM
08-07-2007 06:36 PM
08-09-2007 11:14 AM
08-09-2007 02:33 PM
08-10-2007 03:49 AM
08-13-2007 11:21 AM
08-13-2007 02:14 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.