Revision 6672
Added by ben leinfelder over 12 years ago
ReplicationAdmin.java | ||
---|---|---|
43 | 43 |
import edu.ucsb.nceas.metacat.shared.MetacatUtilException; |
44 | 44 |
import edu.ucsb.nceas.metacat.shared.ServiceException; |
45 | 45 |
import edu.ucsb.nceas.metacat.util.AuthUtil; |
46 |
import edu.ucsb.nceas.metacat.util.RequestUtil; |
|
46 | 47 |
import edu.ucsb.nceas.metacat.util.SessionData; |
47 | 48 |
|
48 | 49 |
/** |
... | ... | |
101 | 102 |
if (!params.isEmpty() && params.get("action") != null) { |
102 | 103 |
action = ((String[]) params.get("action"))[0]; |
103 | 104 |
} |
104 |
String server = null; |
|
105 | 105 |
|
106 | 106 |
// start, stop, getall and servercontrol need to check if user is administrator |
107 | 107 |
HttpSession session = request.getSession(true); |
... | ... | |
157 | 157 |
out.println("<html><body>\"Get All\" Done</body></html>"); |
158 | 158 |
} else if (action.equals("servercontrol")) { |
159 | 159 |
ReplicationService.handleServerControlRequest(params, response); |
160 |
} |
|
160 |
} else { |
|
161 |
// Forward the request to the JSP page |
|
162 |
RequestUtil.forwardRequest(request, response, "/admin/replication-configuration.jsp", null); |
|
163 |
} |
|
161 | 164 |
|
162 |
// Forward the request to the JSP page |
|
163 |
//RequestUtil.forwardRequest(request, response, "/admin/replControl.html", null); |
|
164 |
|
|
165 | 165 |
} |
166 | 166 |
|
167 | 167 |
/** |
Also available in: Unified diff
replication control panel now fully implemented as an admin configuration screen
http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5528