Return-Path: Delivered-To: apmail-geronimo-scm-archive@www.apache.org Received: (qmail 39563 invoked from network); 7 Sep 2007 15:54:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Sep 2007 15:54:59 -0000 Received: (qmail 73470 invoked by uid 500); 7 Sep 2007 15:54:52 -0000 Delivered-To: apmail-geronimo-scm-archive@geronimo.apache.org Received: (qmail 73443 invoked by uid 500); 7 Sep 2007 15:54:52 -0000 Mailing-List: contact scm-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list scm@geronimo.apache.org Received: (qmail 73432 invoked by uid 99); 7 Sep 2007 15:54:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Sep 2007 08:54:52 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Sep 2007 15:54:49 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 59EB71A9832; Fri, 7 Sep 2007 08:54:29 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r573619 - in /geronimo/server/branches/2.0/applications/console/geronimo-console-standard/src/main: java/org/apache/geronimo/console/configmanager/ConfigManagerPortlet.java webapp/WEB-INF/view/configmanager/normal.jsp Date: Fri, 07 Sep 2007 15:54:28 -0000 To: scm@geronimo.apache.org From: jbohn@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20070907155429.59EB71A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: jbohn Date: Fri Sep 7 08:54:27 2007 New Revision: 573619 URL: http://svn.apache.org/viewvc?rev=573619&view=rev Log: GERONIMO-3401 Add checkbox for expert mode when dealing with configurations, move expert config check to server, reformat confirmation messages Modified: geronimo/server/branches/2.0/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/configmanager/ConfigManagerPortlet.java geronimo/server/branches/2.0/applications/console/geronimo-console-standard/src/main/webapp/WEB-INF/view/configmanager/normal.jsp Modified: geronimo/server/branches/2.0/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/configmanager/ConfigManagerPortlet.java URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.0/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/configmanager/ConfigManagerPortlet.java?rev=573619&r1=573618&r2=573619&view=diff ============================================================================== --- geronimo/server/branches/2.0/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/configmanager/ConfigManagerPortlet.java (original) +++ geronimo/server/branches/2.0/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/configmanager/ConfigManagerPortlet.java Fri Sep 7 08:54:27 2007 @@ -386,17 +386,19 @@ private String contextPath; // only relevant for webapps private List parents = new ArrayList(); private List children = new ArrayList(); + private boolean expertConfig = false; // used to mark this config as one that should only be managed (stop/uninstall) by expert users. public ModuleDetails(Artifact configId, ConfigurationModuleType type, State state) { this.configId = configId; this.type = type; this.state = state; + if (configId.toString().indexOf("org.apache.geronimo.configs/") == 0) { + this.expertConfig = true; + } } public ModuleDetails(Artifact configId, ConfigurationModuleType type, State state, List parents, List children) { - this.configId = configId; - this.type = type; - this.state = state; + this(configId, type, state); this.parents = parents; this.children = children; } @@ -427,6 +429,10 @@ public ConfigurationModuleType getType() { return type; + } + + public boolean getExpertConfig() { + return expertConfig; } public List getParents() { Modified: geronimo/server/branches/2.0/applications/console/geronimo-console-standard/src/main/webapp/WEB-INF/view/configmanager/normal.jsp URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.0/applications/console/geronimo-console-standard/src/main/webapp/WEB-INF/view/configmanager/normal.jsp?rev=573619&r1=573618&r2=573619&view=diff ============================================================================== --- geronimo/server/branches/2.0/applications/console/geronimo-console-standard/src/main/webapp/WEB-INF/view/configmanager/normal.jsp (original) +++ geronimo/server/branches/2.0/applications/console/geronimo-console-standard/src/main/webapp/WEB-INF/view/configmanager/normal.jsp Fri Sep 7 08:54:27 2007 @@ -18,7 +18,6 @@ <%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%> -
+
+ Expert User (enable all actions on Geronimo Provided Components) +

@@ -139,36 +167,79 @@ - - - - - - - - + + + + + + + + - + + + + + + + + + + + + + +
 ${moduleDetails.configId} ${moduleDetails.configId}  + +  ${moduleDetails.contextPath}  ${moduleDetails.state} -  " onClick="return promptIfUnsafeToStop('${moduleDetails.configId}','${moduleDetails.type.name}');");">Stop -  ">Start -  " onClick="return promptIfUnsafeToStop('${moduleDetails.configId}','${moduleDetails.type.name}');");">Stop + + name=expert > +  " onClick="return promptIfUnsafeToStop('${moduleDetails.configId}','${moduleDetails.expertConfig}','${moduleDetails.type.name}');">Stop + + + + +  Stop + + + +  ">Start + -  " onClick="return promptIfUnsafeToRestart('${moduleDetails.configId}','${moduleDetails.type.name}');");">Restart + + name=expert > +  " onClick="return promptIfUnsafeToRestart('${moduleDetails.configId}','${moduleDetails.expertConfig}','${moduleDetails.type.name}');">Restart + + + + +  Restart + + + + - " onClick="return uninstallPrompt('${moduleDetails.configId}','${moduleDetails.type.name}');");">Uninstall + name=expert > +  " onClick="return uninstallPrompt('${moduleDetails.configId}','${moduleDetails.expertConfig}','${moduleDetails.type.name}');">Uninstall + + + +  Uninstall + + ${parent}
${child}
@@ -178,4 +249,11 @@
+

${messageInstalled} ${messageStatus}

+ + +