// Get the UI theme from the Configuration Element UItheme = Application.ptSocialMedia.getUItheme(); // load jQuery headers Application.ptSocialMedia.scripts.loadJQuery(noconflict=1); Application.ptSocialMedia.scripts.loadJQueryUI(themeName=uiTheme); Application.ptSocialMedia.scripts.loadJQueryDataTables(); // load headers for jQuery light box Application.ptSocialMedia.scripts.loadADFLightbox(); Application.ptSocialMedia.scripts.loadCFJS(); // load header for social media admin style sheet Application.ptSocialMedia.socialMediaService.loadSocialMediaAdminCSS(); // Get the Social Media Dashboard URL from the Configuration Element smDashboardURL = Application.ptSocialMedia.getDashboardURL(); // Get the Configuration Page URL from the configuration Element smConfigManagerURL = Application.ptSocialMedia.getConfigManagerURL(); // Get the selected Service Types serviceTypeList = application.ptSocialMedia.getServiceTypeList(); // Get the Rebuild Feed Cache Scheduled Task Name from from the App.cfc smRebuidFeedCacheName = Application.ptSocialMedia.getRebuildFeedCacheScheduledTaskName(); // Get the Scheduled Task Suffix from the App.cfc smTaskSuffix = Application.ptSocialMedia.getScheduledTaskSuffix(); // Get the Rebuild Cache Interval from the configuration element cacheInterval = Application.ptSocialMedia.getRebuildFeedCacheInterval(); // Get the Feed Cache State feedCacheState = Application.ptSocialMedia.getFeedCacheState(); // Get the Date/Time Stamp of the Last Rebuild of the Feed Cache lastFeedCacheRebuildDate = DateFormat(Application.ptSocialMedia.socialMediaCacheDAO.getLastCacheRebuildDateTime(),"mm/dd/yyyy"); // Get the Date/Time Stamp of the Last Rebuild of the Feed Cache lastFeedCacheRebuildTime = TimeFormat(Application.ptSocialMedia.socialMediaCacheDAO.getLastCacheRebuildDateTime(),"hh:nn TT"); // Set the ADF Ajax Proxy Path smAjaxPath = Application.ADF.ajaxProxy; // Get Array of Scheduled Tasks schedArray = Application.ptSocialMedia.scheduler.getScheduledTasks(); //Application.ptSocialMedia.utils.doDump(schedArray,"schedArray",0); appName = "ptSocialMedia"; forceRebuildBean = "socialMediaCacheController"; forceRebuildMethod = "forceFeedCacheRebuildHTML"; forceRebuildAppName = appName; schedBean = "socialMediaCacheController"; schedMethod = "setFeedCacheRebuildTaskHTML"; schedAppName = appName; schedDeleteBean = "socialMediaScheduledTasksDAO"; schedDeleteMethod = "deleteScheduledTaskItem"; schedDeleteAppName=appName; cacheDumpBean = "socialMediaCacheController"; cacheDumpMethod = "displayFeedCacheDataDumpHTML"; cacheDumpAppName = appName; rebuildFeedCacheTaskExists = false; for ( x=1; x LTE ArrayLen(schedArray); x=x+1 ){ if ( schedArray[x].task EQ smRebuidFeedCacheName & smTaskSuffix ) { rebuildFeedCacheTaskExists = true; break; } } CSRF_Token = application.ADF.csSecurity.getCSRF_Token(); //TODO: Disable the scheduled rebuild button and the force rebuild button when cache is disabled application.ADF.scripts.addFooterJS(datatablesFooterJS,"TERTIARY");

Social Media App Status

Service Feed Cache: Service Feed Cache Last Build Date/Time:
EnabledDisabled #lastFeedCacheRebuildDate# #lastFeedCacheRebuildTime#
DisableEnable 'Service Feed Cache' via the Configuration Mananger

Social Media App Tools

#LinkHeadingText#
#Application.ptSocialMedia.ui.buildLightboxProxyLink( linkTitle=LinkText ,bean=schedBean ,method=schedMethod ,appName=schedAppName ,urlParams=LinkURLParams ,linkClass="smDasboardToolsBtn ds-icons ui_button ui-state-default ui-corner-all" ,uiTheme=UItheme )#
#LinkText#
#LinkTextDisabled#
#LinkHeadingText#
#Application.ptSocialMedia.ui.buildLightboxProxyLink( linkTitle=LinkText ,bean=forceRebuildBean ,method=forceRebuildMethod ,appName=forceRebuildAppName ,urlParams=LinkURLParams ,linkClass="smDasboardToolsBtn ds-icons ui_button ui-state-default ui-corner-all" ,uiTheme=UItheme )#
#LinkText#
#LinkTextDisabled#

Social Media App Scheduled Tasks

  Scheduled Task Interval Start Date Start Time
#LinkText# #cacheInterval# min(s) #DateFormat(schedArray[itm].start_date,"mm/dd/yyyy")# #TimeFormat(schedArray[itm].start_time,"hh:mm tt")#
Set the Interval for the 'Rebuild Feed Cache' Scheduled Task via the Configuration Mananger

Social Media App Cache Statistics

Service Total Cached Accounts Total Cached Posts
#serviceType# #application.ptSocialMedia.socialMediaCacheDAO.countCachedFeeds(serviceType)# #application.ptSocialMedia.socialMediaCacheDAO.countCachedPosts(serviceType)#
#Application.ptSocialMedia.ui.buildLightboxProxyLink( linkTitle=LinkText ,bean=cacheDumpBean ,method=cacheDumpMethod ,appName=cacheDumpAppName ,urlParams="width=600" )#