// get the com path for the current custom application appComPath = getComPathForCustomAppDir(GetCurrentTemplatePath()); appBeanName = "PTImport"; // load the Blog Base Application CFC addTransient("#appComPath#App", appBeanName); // Load Import controller addSingleton("#appComPath#ImportController", "ImportController"); addConstructorDependency(appBeanName, "ImportController"); // Load Import Service addSingleton("#appComPath#ImportService", "ImportService"); addConstructorDependency(appBeanName, "ImportService"); // Load the subsite service component addSingleton("#appComPath#SubsiteService", "SubsiteService"); addConstructorDependency("SubsiteService", "csData_1_1", "csData"); addConstructorDependency(appBeanName, "SubsiteService"); // Load the subsite DAO component addSingleton("#appComPath#SubsiteDAO", "SubsiteDAO"); addConstructorDependency("SubsiteDAO", "ceData_1_1", "ceData"); addConstructorDependency("SubsiteDAO", "csSubsite_1_0", "csSubsite"); addConstructorDependency(appBeanName, "SubsiteDAO"); // load the controller for subsites addSingleton("#appComPath#SubsiteController", "SubsiteController"); addConstructorDependency(appBeanName, "SubsiteController"); // load the Ajax Service addSingleton("#appComPath#ImportAjaxService", "ImportAjaxService"); addConstructorDependency(appBeanName, "ImportAjaxService"); // Load the subsite service component addSingleton("#appComPath#PageService", "PageService"); addConstructorDependency("PageService", "csData_1_1", "csData"); addConstructorDependency(appBeanName, "PageService"); // Load the Page DAO component addSingleton("#appComPath#PageDAO", "PageDAO"); addConstructorDependency("PageDAO", "ceData_1_1", "ceData"); addConstructorDependency("PageDAO", "csSubsite_1_0", "csSubsite"); addConstructorDependency(appBeanName, "PageDAO"); // load the controller for Pages addSingleton("#appComPath#PageController", "PageController"); addConstructorDependency(appBeanName, "PageController"); // load the Reports component addSingleton("#appComPath#Reports", "Reports"); addConstructorDependency(appBeanName, "Reports"); // Load the Element Controller addSingleton("#appComPath#ElementController", "ElementController"); addConstructorDependency(appBeanName, "ElementController"); // Load the Element DAO addSingleton("#appComPath#ElementDAO", "ElementDAO"); addConstructorDependency(appBeanName, "ElementDAO"); // Add dependency for DAO into Controller addConstructorDependency("ElementController", "ElementDAO"); // Load the Element DAO addSingleton("#appComPath#ElementService", "ElementService"); addConstructorDependency(appBeanName, "ElementService"); // Add dependency for Service into Controller addConstructorDependency("ElementController", "ElementService"); // Load the Dashboard Controller addSingleton("#appComPath#DashboardController", "DashboardController"); addConstructorDependency(appBeanName, "DashboardController"); // Load the Dashboard Service addSingleton("#appComPath#DashboardService", "DashboardService"); addConstructorDependency(appBeanName, "DashboardService"); // Add dependency for Service into Controller addConstructorDependency("DashboardController", "DashboardService"); // Load the Document Service addSingleton("#appComPath#DocumentService", "DocumentService"); addConstructorDependency(appBeanName, "DocumentService"); // Load the Document DAO addSingleton("#appComPath#DocumentDAO", "DocumentDAO"); addConstructorDependency(appBeanName, "DocumentDAO"); // Load the Document Controller addSingleton("#appComPath#DocumentController", "DocumentController"); addConstructorDependency(appBeanName, "DocumentController"); // Load the Image Service addSingleton("#appComPath#ImageService", "ImageService"); addConstructorDependency(appBeanName, "ImageService"); // Load the Image DAO addSingleton("#appComPath#ImageDAO", "ImageDAO"); addConstructorDependency(appBeanName, "ImageDAO"); // Load the Image Controller addSingleton("#appComPath#ImageController", "ImageController"); addConstructorDependency(appBeanName, "ImageController"); // Load the Job Controller addSingleton("#appComPath#JobController", "JobController"); addConstructorDependency(appBeanName, "JobController"); // Load the Job DAO addSingleton("#appComPath#JobDAO", "JobDAO"); addConstructorDependency(appBeanName, "JobDAO"); // Load the Job Service addSingleton("#appComPath#JobService", "JobService"); addConstructorDependency(appBeanName, "JobService"); // Load the Job Controller addTransient("#appComPath#DashboardForms", "DashboardForms"); addConstructorDependency(appBeanName, "DashboardForms"); // Load the POI Utility addTransient("#appComPath#thirdparty.POIUtility", "POIUtility"); addConstructorDependency(appBeanName, "POIUtility"); // Dependecies from ADF Lib addConstructorDependency(appBeanName, "ceData_1_1", "ceData"); addConstructorDependency(appBeanName, "csData_1_1", "csData"); addConstructorDependency(appBeanName, "data_1_1", "data"); addConstructorDependency(appBeanName, "date_1_1", "date"); //addConstructorDependency(appBeanName, "scripts_1_1", "scripts"); addConstructorDependency(appBeanName, "taxonomy_1_1", "taxonomy"); addConstructorDependency(appBeanName, "utils_1_1", "utils"); addConstructorDependency(appBeanName, "forms_1_1", "forms"); addConstructorDependency(appBeanname, "csPage_1_0", "csPage"); addConstructorDependency(appBeanname, "csContent_1_0", "csContent"); addConstructorDependency(appBeanname, "csSubsite_1_0", "csSubsite"); addConstructorDependency(appBeanname, "ui_1_0", "ui"); // Load a customized csContent into the app // Build all the dependencies for CSContent and CCAPI addTransient("ADF.apps.pt_import_content.lib.csContent_1_0", "ptImport_csContent"); addConstructorDependency(appBeanName, "ptImport_csContent"); addConstructorDependency("ptImport_csContent", "utils_1_1", "utils"); addTransient("ADF.lib.ccapi.ccapi_1_0", "ptImport_ccapi"); addConstructorDependency("ptImport_csContent", "ptImport_ccapi", "ccapi"); addConstructorDependency("ptImport_ccapi", "utils_1_1", "utils"); addSingleton("ADF.core.Config", "ptImport_coreConfig"); addConstructorDependency("ptImport_ccapi", "ptImport_coreConfig", "coreConfig"); // Load the customized SCRIPTS for the application addSingleton("ADF.apps.pt_import_content.lib.scripts_1_1", "ptImport_scripts"); addConstructorDependency(appBeanName, "ptImport_scripts", "scripts"); addConstructorDependency("ptImport_scripts", "scriptsService_1_1", "scriptsService");