%@ page import="WebFlow.*" %>
<%@ page import="WebFlow.Collaborator.*" %>
<%@ page import="java.util.*" %>
<%
org.omg.CORBA.Object m1 = null;
Collaborator coll = null;
String eachuser = null;
String filechoose = null;
String id = request.getParameter("id");
String password = request.getParameter("password");
String urlName = "http://birch.csit.fsu.edu:8001/GOW/CollabPages/AdminXML.jsp?id="+id+"&password="+password;
String userid = CollabManager.getControlUser();
System.out.println("UserNameID: "+userid);
m1 = CollabManager.getCollaborator(userid);
coll = CollaboratorHelper.narrow(m1);
Enumeration activeUsers = CollabManager.hashKeys();
while(activeUsers.hasMoreElements()) {
eachuser = (String)activeUsers.nextElement();
if(!eachuser.equals(userid)) {
System.out.println("AdminXMLColl:UserName: "+eachuser);
if((CollabManager.getFileName(eachuser)).equals(eachuser)) {
filechoose = eachuser+"NEXT";
CollabManager.setFileName(eachuser, filechoose);
eachuser = filechoose;
}
else {
CollabManager.setFileName(eachuser, eachuser);
}
coll.writePullFile(eachuser, urlName);
}
}
CollabManager.eventListeners(userid, "sharingPages");
coll.runfireEvent("sharingPages", "webpage");
coll.setEventFlag(false);
if(id.equals("admin") || id.equals("cyoun") || id.equals("mpierce")) {
if(password.equals("gateway")) {
%>
Welcome to the
XML Database
The Gateway Science Portal is a tool for remotely
accessing computational science applications. For more information,
please click the "About" button in the Tool frame on the left. To
enter, please select one of the options below. To end this
session, click the "Logout" button in the Tool frame.
<%
}
else {
%>
You have the incorrect password.
Please try it again.
<% }
}
else {
%>
You are invalid user.
In order to become the XML administrator, Please ask the system administrator.
Please try it again.
<%
}
%>