/* this belongs to the WebRaveler package */ package webraveler.vurl; import java.util.*; import webraveler.http.HTTPRequest; import webraveler.http.HTTPResponse; import webraveler.ravel.Raveler; import webraveler.ravel.RavelerException; import webraveler.ravel.RavelerPlugin; import webraveler.ravel.RavelerUser; /** * Provides facilities for changing the configuration of the given user * * @author The Web Raveler Development Squad * @version 1.0 */ public class UserConfigVURL implements VURL { String message; /** * */ public UserConfigVURL () { message = new String(""); } // UserConfigVURL() /** * Displays a form that allows users to change the plugins activated, deactivated, disabled, and enabled * and change the execution sequence plugins */ public HTTPResponse resolveVURL(String username, String query, HTTPRequest request, Raveler ravel) { /* Get the RavelerUser for the given username */ RavelerUser user = null; String responseString = new String(""); try { user = ravel.getUser(username); responseString += "
" + Raveler.ravelerCSS; responseString += "Web Raveler Configuration for " + username + "
"; /* Display the form for activating plugins */ /* Get the active plugins and display */ /* Try displaying with checkboxes */ boolean displayed = false; //determine whether the form has been displayed (i.e. there are plugins to activate) int pluginNum=0; if (!user.activePlugins.isEmpty()) { displayed = true; responseString += "Plugin Activation
"; responseString += "