diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/edit/SiteAdminController.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/edit/SiteAdminController.java deleted file mode 100644 index 35da13f35..000000000 --- a/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/edit/SiteAdminController.java +++ /dev/null @@ -1,92 +0,0 @@ -/* $This file is distributed under the terms of the license in /doc/license.txt$ */ - -package edu.cornell.mannlib.vitro.webapp.controller.edit; - -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; - -import javax.servlet.RequestDispatcher; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; - -import org.apache.commons.collections.map.ListOrderedMap; -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; - -import edu.cornell.mannlib.vedit.beans.EditProcessObject; -import edu.cornell.mannlib.vedit.beans.FormObject; -import edu.cornell.mannlib.vedit.beans.LoginStatusBean; -import edu.cornell.mannlib.vedit.controller.BaseEditController; -import edu.cornell.mannlib.vedit.util.FormUtils; -import edu.cornell.mannlib.vitro.webapp.beans.Portal; -import edu.cornell.mannlib.vitro.webapp.beans.VClassGroup; -import edu.cornell.mannlib.vitro.webapp.controller.Controllers; -import edu.cornell.mannlib.vitro.webapp.controller.VitroRequest; - -public class SiteAdminController extends BaseEditController { - - private static final Log log = LogFactory.getLog(SiteAdminController.class.getName()); - - public void doGet(HttpServletRequest request, HttpServletResponse response) { - try { - super.doGet(request,response); - } catch (Exception e) { - e.printStackTrace(); - } - VitroRequest vreq = new VitroRequest(request); - - EditProcessObject epo = super.createEpo(request); - FormObject foo = new FormObject(); - HashMap optionMap = new HashMap(); - - List classGroups = vreq.getFullWebappDaoFactory().getVClassGroupDao().getPublicGroupsWithVClasses(true,true,false); // order by displayRank, include uninstantiated classes, don't get the counts of individuals - - Iterator classGroupIt = classGroups.iterator(); - ListOrderedMap optGroupMap = new ListOrderedMap(); - while (classGroupIt.hasNext()) { - VClassGroup group = (VClassGroup)classGroupIt.next(); - List classes = group.getVitroClassList(); - optGroupMap.put(group.getPublicName(),FormUtils.makeOptionListFromBeans(classes,"URI","PickListName",null,null,false)); - } - optionMap.put("VClassId", optGroupMap); - foo.setOptionLists(optionMap); - epo.setFormObject(foo); - - if ( (200 <= vreq.getFullWebappDaoFactory().getLanguageProfile()) && (vreq.getFullWebappDaoFactory().getLanguageProfile() < 300) ) { - request.setAttribute("languageModeStr", "OWL Mode" ); - } else if ( 100 == vreq.getFullWebappDaoFactory().getLanguageProfile() ) { - request.setAttribute("languageModeStr", "RDF Schema Mode" ); - } - - if (LoginStatusBean.getBean(vreq).isLoggedInAtLeast(LoginStatusBean.CURATOR)) { - String verbose = request.getParameter("verbose"); - if ("true".equals(verbose)) { - request.getSession().setAttribute(VERBOSE, Boolean.TRUE); - } else if ("false".equals(verbose)) { - request.getSession().setAttribute(VERBOSE, Boolean.FALSE); - } - } - - request.setAttribute("singlePortal",new Boolean(vreq.getFullWebappDaoFactory().getPortalDao().isSinglePortal())); - - RequestDispatcher rd = request.getRequestDispatcher(Controllers.BASIC_JSP); - request.setAttribute("bodyJsp","/siteAdmin/siteAdminMain.jsp"); - request.setAttribute("scripts","/siteAdmin/siteAdminHeadContent.jsp"); - request.setAttribute("title",((Portal)request.getAttribute("portalBean")).getAppName() + " Site Administration"); - request.setAttribute("epoKey",epo.getKey()); - try { - rd.forward(request, response); - } catch (Exception e) { - log.error("SiteAdminController could not forward to view."); - log.error(e.getMessage()); - log.error(e.getStackTrace()); - } - } - - public void doPost(HttpServletRequest request, HttpServletResponse response) { - doGet(request,response); - } - - public static final String VERBOSE = "verbosePropertyListing"; -} diff --git a/webapp/web/siteAdmin/advancedDataTools.jsp b/webapp/web/siteAdmin/advancedDataTools.jsp deleted file mode 100644 index 53a92238c..000000000 --- a/webapp/web/siteAdmin/advancedDataTools.jsp +++ /dev/null @@ -1,17 +0,0 @@ -<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%> - -<% if (loginBean.isLoggedInAtLeast(LoginStatusBean.DBA)) { %> -
- -

Advanced Data Tools

- - -
-<% } %> diff --git a/webapp/web/siteAdmin/customReports.jsp b/webapp/web/siteAdmin/customReports.jsp deleted file mode 100644 index dc5713795..000000000 --- a/webapp/web/siteAdmin/customReports.jsp +++ /dev/null @@ -1,3 +0,0 @@ -<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%> - - \ No newline at end of file diff --git a/webapp/web/siteAdmin/dataInput.jsp b/webapp/web/siteAdmin/dataInput.jsp deleted file mode 100644 index c8dda6e50..000000000 --- a/webapp/web/siteAdmin/dataInput.jsp +++ /dev/null @@ -1,27 +0,0 @@ -<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%> - -<% if (loginBean.isLoggedInAtLeast(LoginStatusBean.EDITOR)) { %> -
- -

Data Input

- - <%--
- - - - -
--%> - - -
- - - -
- -
-<% } %> \ No newline at end of file diff --git a/webapp/web/siteAdmin/loginForm.jsp b/webapp/web/siteAdmin/loginForm.jsp deleted file mode 100644 index d824b2f55..000000000 --- a/webapp/web/siteAdmin/loginForm.jsp +++ /dev/null @@ -1,12 +0,0 @@ -<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%> - -<%-- Included in siteAdmin/main.jsp to handle login/logout form and processing --%> - -<%@ page import="edu.cornell.mannlib.vitro.webapp.controller.login.LoginTemplateHelper" %> -<%@ page import="edu.cornell.mannlib.vitro.webapp.controller.VitroRequest" %> - -<% - String themeDir = new VitroRequest(request).getPortal().getThemeDir().replaceAll("/$", ""); -%> - -<%= new LoginTemplateHelper(request).showLoginPage(request) %> \ No newline at end of file diff --git a/webapp/web/siteAdmin/ontologyEditor.jsp b/webapp/web/siteAdmin/ontologyEditor.jsp deleted file mode 100644 index 83a957944..000000000 --- a/webapp/web/siteAdmin/ontologyEditor.jsp +++ /dev/null @@ -1,58 +0,0 @@ -<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%> - -<%@ page import="edu.cornell.mannlib.vitro.webapp.dao.jena.pellet.PelletListener"%> - -<% if (loginBean.isLoggedInAtLeast(LoginStatusBean.CURATOR)) { %> - -
- -

Ontology Editor

-<% - Object plObj = getServletContext().getAttribute("pelletListener"); - if ( (plObj != null) && (plObj instanceof PelletListener) ) { - PelletListener pelletListener = (PelletListener) plObj; - if (!pelletListener.isConsistent()) { -%> -

- INCONSISTENT ONTOLOGY: reasoning halted. -

-

- Cause: <%=pelletListener.getExplanation()%> -

-<% } else if (pelletListener.isInErrorState()) { %> -

- An error occurred during reasoning; - reasoning has been halted. - See error log for details. -

- -<% } - } -%> - - -

Class Management

- - -

Property Management

- - - -
- - Verbose property display for this session is ${verbosePropertyListing == true ? 'on' : 'off'}. - -
- -
- -<% } %> \ No newline at end of file diff --git a/webapp/web/siteAdmin/siteAdminHeadContent.jsp b/webapp/web/siteAdmin/siteAdminHeadContent.jsp deleted file mode 100644 index cee7517ac..000000000 --- a/webapp/web/siteAdmin/siteAdminHeadContent.jsp +++ /dev/null @@ -1,15 +0,0 @@ -<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%> - -<%@ page import="edu.cornell.mannlib.vitro.webapp.beans.User" %> -<%@ page import="edu.cornell.mannlib.vitro.webapp.controller.VitroRequest" %> -<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %> - - - - - - - - - - \ No newline at end of file diff --git a/webapp/web/siteAdmin/siteAdminMain.jsp b/webapp/web/siteAdmin/siteAdminMain.jsp deleted file mode 100644 index 0d70dcec0..000000000 --- a/webapp/web/siteAdmin/siteAdminMain.jsp +++ /dev/null @@ -1,45 +0,0 @@ -<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%> - -<%@ page import="edu.cornell.mannlib.vedit.beans.LoginStatusBean" %> -<%@ page import="edu.cornell.mannlib.vitro.webapp.beans.Portal" %> -<%@ page import="edu.cornell.mannlib.vitro.webapp.dao.WebappDaoFactory" %> -<%@ page import="edu.cornell.mannlib.vitro.webapp.dao.jena.pellet.PelletListener"%> -<%@ page import="edu.cornell.mannlib.vitro.webapp.controller.Controllers" %> -<%@ page import="edu.cornell.mannlib.vitro.webapp.auth.policy.RoleBasedPolicy" %> - -<%@ page errorPage="/error.jsp"%> - -<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %><%/* this odd thing points to something in web.xml */ %> -<%@ taglib prefix="form" uri="http://vitro.mannlib.cornell.edu/edit/tags" %> - -<% - Portal portal = (Portal) request.getAttribute("portalBean"); - final String DEFAULT_SEARCH_METHOD = "fulltext"; /* options are fulltext/termlike */ - LoginStatusBean loginBean = LoginStatusBean.getBean(request); -%> - - -
- -
-

Site Administration

-
- -
- - <%@ include file="loginForm.jsp" %> - - <%@ include file="dataInput.jsp" %> - - <%@ include file="siteConfiguration.jsp" %> - - <%@ include file="ontologyEditor.jsp" %> - - <%@ include file="advancedDataTools.jsp" %> - - <%@ include file="customReports.jsp" %> -
- -
- - diff --git a/webapp/web/siteAdmin/siteConfiguration.jsp b/webapp/web/siteAdmin/siteConfiguration.jsp deleted file mode 100644 index a32b57cbb..000000000 --- a/webapp/web/siteAdmin/siteConfiguration.jsp +++ /dev/null @@ -1,27 +0,0 @@ -<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%> - -<% if (loginBean.isLoggedInAtLeast(LoginStatusBean.CURATOR)) { %> -
- -

Site Configuration

- - -
-<% } %> - - -