<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%> <%@ page import="edu.cornell.mannlib.vedit.beans.LoginStatusBean" %> <%@ 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" %> <% if (!LoginStatusBean.getBean(request).isLoggedInAtLeast(LoginStatusBean.CURATOR)) { %><% } if( request.getParameter("force") != null ){ VitroRequestPrep.forceToSelfEditing(request); 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){ VitroRequestPrep.forceOutOfSelfEditing(request); 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
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.