From 6c8c6bcfae9b581647a8876904a3b0ef058524c5 Mon Sep 17 00:00:00 2001 From: j2blake Date: Tue, 26 Apr 2011 21:21:21 +0000 Subject: [PATCH] Get rid of FakeSelfEditing. --- webapp/config/web.xml | 17 -- .../FakeSelfEditingIdentifierFactory.java | 70 ------ ...SetupFakeSelfEditingIdentifierFactory.java | 35 --- .../controller/FakeSelfEditController.java | 145 ------------ webapp/web/admin/fakeselfedit.jsp | 23 -- webapp/web/admin/temporaryLogin.jsp | 206 ------------------ 6 files changed, 496 deletions(-) delete mode 100644 webapp/src/edu/cornell/mannlib/vitro/webapp/auth/identifier/FakeSelfEditingIdentifierFactory.java delete mode 100644 webapp/src/edu/cornell/mannlib/vitro/webapp/auth/identifier/SetupFakeSelfEditingIdentifierFactory.java delete mode 100644 webapp/src/edu/cornell/mannlib/vitro/webapp/controller/FakeSelfEditController.java delete mode 100644 webapp/web/admin/fakeselfedit.jsp delete mode 100644 webapp/web/admin/temporaryLogin.jsp diff --git a/webapp/config/web.xml b/webapp/config/web.xml index ab1e91156..0ecff7247 100644 --- a/webapp/config/web.xml +++ b/webapp/config/web.xml @@ -187,14 +187,6 @@ edu.cornell.mannlib.vitro.webapp.dao.jena.VClassGroupCache$Setup - - diff --git a/webapp/web/admin/temporaryLogin.jsp b/webapp/web/admin/temporaryLogin.jsp deleted file mode 100644 index 87ef76ddb..000000000 --- a/webapp/web/admin/temporaryLogin.jsp +++ /dev/null @@ -1,206 +0,0 @@ -<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%> - -<%@ page import="com.hp.hpl.jena.rdf.model.*" %> -<%@ page import="edu.cornell.mannlib.vitro.webapp.filters.VitroRequestPrep" %> -<%@ page import="java.util.Enumeration" %> -<%@ page import="edu.cornell.mannlib.vitro.webapp.auth.identifier.FakeSelfEditingIdentifierFactory" %> -<%@ page import="edu.cornell.mannlib.vitro.webapp.auth.policy.setup.CuratorEditingPolicySetup" %> -<%@ page import="edu.cornell.mannlib.vitro.webapp.controller.Controllers" %> - -<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> -<%@ taglib prefix="vitro" uri="/WEB-INF/tlds/VitroUtils.tld" %> - - - -<% - if( request.getParameter("force") != null ){ - String netid = request.getParameter("netid"); - // note that this affects the current user's session, not the whole servlet context - FakeSelfEditingIdentifierFactory.clearFakeIdInSession( session ); - FakeSelfEditingIdentifierFactory.putFakeIdInSession( netid , session ); - // don't want to do this because would affect the whole session - // if (!LoginStatusBean.getBean(request).isLoggedInAtLeast(LoginStatusBean.CURATOR)) { - // CuratorEditingPolicySetup.removeAllCuratorEditingPolicies(getServletConfig().getServletContext()); - //} %> - -<% } - String loggedOutNetId = (String)session.getAttribute(FakeSelfEditingIdentifierFactory.FAKE_SELF_EDIT_NETID); - if( request.getParameter("stopfaking") != null){ - FakeSelfEditingIdentifierFactory.clearFakeIdInSession( session ); - // don't want to do this because would affect the whole session - // if (!LoginStatusBean.getBean(request).isLoggedInAtLeast(LoginStatusBean.CURATOR)) { - // CuratorEditingPolicySetup.replaceCuratorEditing(getServletConfig().getServletContext(),(Model)application.getAttribute("jenaOntModel")); - //} - %><% - } - String netid = (String)session.getAttribute(FakeSelfEditingIdentifierFactory.FAKE_SELF_EDIT_NETID); - String msg = "You have not configured a netid for testing self-editing. "; - if( netid != null ) - msg = "You are testing self-editing as '" + netid + "'."; - else - netid = ""; - -%> - - -CUWebLogin - - - - - - - - - - - -
-
- -
-
- - - - - - -
- - -
 
-
 
- - -
- -
CUWebLogin
-
- Cornell University Login -
- -
-
- - - -
-
- - - About - CUWebLogin - - -
-
- - - -
-
- -
- - - - - -
- - - - - - - - - - - - - -
- - - Kerberos for Web
- - Please enter your Cornell NetID - - -
-   - - - - - - - - - - -
NetID: - - -
- For testing purposes only. -
-
-   - - - -
-
-
- - -
- - You have successfully logged out from <%=loggedOutNetId%>. - - - - Return to that public profile. - -
-
- -
- - - - - -
-
- -
- -
-
- - - - - - \ No newline at end of file