var resetADFFlag = false;
var siteAppData = "";
var appADFData = "";
var sortedKeyList = "";
switch(arguments.action) {
case "resetADF": {
return variables.service.doADFReset();
break;
}
case "listSiteApps": {
siteAppData = variables.service.doListSiteApps();
return variables.render.getADFAppsListingHTML(siteAppData,"site");
break;
}
case "listADFApps": {
appADFData = variables.service.doListADFApps();
return variables.render.getADFAppsListingHTML(appADFData,"server");
break;
}
case "libDocs": {
appADFData = doLibDocs();
//return variables.dbRender.getADFAppsHTML(appADFData);
return appADFData;
break;
}
case "debugADF": {
sortedKeyList = ListSort(StructKeyList(variables.dbService.doListSiteApps()), "textnocase");
return variables.dbRender.getADFDebug(appList=sortedKeyList);
break;
}
case "exportImport": {
//siteAppData = variables.service.doListSiteApps();
return variables.render.getExportImportHTML();
break;
}
}
variables.dbPage = "";
var retVal = "";
var libFormHTML = "";
var ADFBeanArray = variables.dbDAO.getBeanDataArray();
//application.ADF.utils.dodump(ADFBeanArray, "ADFBeanArray", false);
// Build the selection form
libFormHTML = variables.dbRender.getLibFormHTML(ADFBeanArray);
//variables.dbMediaWiki.buildWikiPage(ADFBeanArray);
//var pageData = variables.dbMediaWiki.buildWikiPages(ADFBeanArray);
#libFormHTML#
var k = 1;
var currBeanData = "";
var appBeanData = variables.dbDAO.getBeanDataArray();
var incrementCount = Round( ( 90 / ListLen(arguments.beanList) ) / 2 );
// Loop over the app bean data
for (k=1; k LTE ArrayLen(appBeanData); k++){
// Check if the bean is in the list
if ( ListFindNocase(arguments.beanList, appBeanData[k].beanname) ){
variables.dbService.setBuildStatus(message="Starting bean #appBeanData[k].beanname# pages...", increment=incrementCount);
currBeanData = appBeanData[k];
// Build the Component Page
variables.dbMediaWiki.buildComPage(appBeanData[k]);
variables.dbService.setBuildStatus(message="Bean #appBeanData[k].beanname# pages complete.", increment=incrementCount);
}
}
variables.dbService.setBuildStatus(message="Process complete.", percent=100);