package org.vivoweb.webapp.startup;

import edu.cornell.mannlib.vitro.webapp.controller.freemarker.InstitutionalInternalClassController;
import edu.cornell.mannlib.vitro.webapp.controller.freemarker.SiteAdminController;
import edu.cornell.mannlib.vitro.webapp.controller.freemarker.UrlBuilder;
import edu.cornell.mannlib.vitro.webapp.utils.menuManagement.MenuManagementDataUtils;
import edu.cornell.mannlib.vitro.webapp.utils.menuManagement.VIVOMenuManagementDataUtils;
import edu.cornell.mannlib.vitro.webapp.visualization.tools.ToolsRequestHandler;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

public class SiteAdminSetup implements ServletContextListener {
    @Override
    public void contextInitialized(ServletContextEvent servletContextEvent) {
        SiteAdminController.registerSiteMaintenanceUrl("rebuildVisCache", UrlBuilder.getUrl("/vis/tools"), ToolsRequestHandler.REQUIRED_ACTIONS);
        SiteAdminController.registerSiteConfigData("internalClass", UrlBuilder.getUrl("/processInstitutionalInternalClass"), InstitutionalInternalClassController.REQUIRED_ACTIONS);
   }

    @Override
    public void contextDestroyed(ServletContextEvent servletContextEvent) {

    }
}

@@ -863,34 +863,16 @@
 Cache%22, 
-UrlBuilder.getUrl(
 %22/vis/to
@@ -875,17 +875,22 @@
 s/tools%22
-)
+, null
 , ToolsR
@@ -994,26 +994,8 @@
 s%22, 
-UrlBuilder.getUrl(
 %22/pr
@@ -1026,17 +1026,22 @@
 alClass%22
-)
+, null
 , Instit

Fix broken site admin links