%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page trimDirectiveWhitespaces="true" %>
<%@ page import="org.crosswire.community.RightsAndRoles" %>
<%@ page import="org.crosswire.community.projects.ntmss.data.Apparatus" %>
<%
int fromSegmentReadingID = -1; try {fromSegmentReadingID = Integer.parseInt(request.getParameter("fromSegmentReadingID"));} catch (Exception e){}
int toSegmentReadingID = -1; try {toSegmentReadingID = Integer.parseInt(request.getParameter("toSegmentReadingID"));} catch (Exception e){}
if (fromSegmentReadingID > -1 && toSegmentReadingID > -1) {
response.setContentType("text/xml");
// let's check to see if we're a privileged user
boolean permission = RightsAndRoles.hasRole(request, response, "VMR Administrator");
// ---------------------------------------------
if (permission) {
Apparatus.reassignSegmentReading(fromSegmentReadingID, toSegmentReadingID);
%>
Reassign all witness from a reading to a different reading
| fromSegmentReadingID | segment reading id to reassign |
| toSegmentReadingID | new value for segment reading id |