[jbpm-commits] JBoss JBPM SVN: r5126 - in projects/gwt-console/trunk: server/server-core/src/main/java/org/jboss/bpm/console/server and 1 other directories.

do-not-reply at jboss.org do-not-reply at jboss.org
Fri Jun 26 06:11:55 EDT 2009


Author: heiko.braun at jboss.com
Date: 2009-06-26 06:11:54 -0400 (Fri, 26 Jun 2009)
New Revision: 5126

Added:
   projects/gwt-console/trunk/server/server-integration/src/main/java/org/jboss/bpm/console/server/plugin/ProcessEnginePlugin.java
Removed:
   projects/gwt-console/trunk/server/server-integration/src/main/java/org/jboss/bpm/console/server/plugin/DeploymentPlugin.java
Modified:
   projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/process/ProcessDetailView.java
   projects/gwt-console/trunk/server/server-core/src/main/java/org/jboss/bpm/console/server/DeploymentFacade.java
   projects/gwt-console/trunk/server/server-core/src/main/java/org/jboss/bpm/console/server/InfoFacade.java
Log:
Rename deployment plugin

Modified: projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/process/ProcessDetailView.java
===================================================================
--- projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/process/ProcessDetailView.java	2009-06-26 08:23:24 UTC (rev 5125)
+++ projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/process/ProcessDetailView.java	2009-06-26 10:11:54 UTC (rev 5126)
@@ -31,7 +31,6 @@
 import org.gwt.mosaic.ui.client.layout.BoxLayoutData;
 import org.jboss.bpm.console.client.common.PropertyGrid;
 import org.jboss.bpm.console.client.model.ProcessDefinitionRef;
-import org.jboss.bpm.console.client.ApplicationContext;
 import org.jboss.bpm.console.client.ServerPlugins;
 
 /**
@@ -71,7 +70,7 @@
     dropBox.addItem("Properties");
 
     // deployment info
-    if(ServerPlugins.has("org.jboss.bpm.console.server.plugin.DeploymentPlugin"))
+    if(ServerPlugins.has("org.jboss.bpm.console.server.plugin.ProcessEnginePlugin"))
     {
       dropBox.addItem("Deployment");
       deploymentPanel = new DeploymentPanel();

Modified: projects/gwt-console/trunk/server/server-core/src/main/java/org/jboss/bpm/console/server/DeploymentFacade.java
===================================================================
--- projects/gwt-console/trunk/server/server-core/src/main/java/org/jboss/bpm/console/server/DeploymentFacade.java	2009-06-26 08:23:24 UTC (rev 5125)
+++ projects/gwt-console/trunk/server/server-core/src/main/java/org/jboss/bpm/console/server/DeploymentFacade.java	2009-06-26 10:11:54 UTC (rev 5126)
@@ -27,7 +27,7 @@
 import org.jboss.bpm.console.client.model.DeploymentRef;
 import org.jboss.bpm.console.client.model.DeploymentRefWrapper;
 import org.jboss.bpm.console.server.gson.GsonFactory;
-import org.jboss.bpm.console.server.plugin.DeploymentPlugin;
+import org.jboss.bpm.console.server.plugin.ProcessEnginePlugin;
 import org.jboss.bpm.console.server.plugin.PluginMgr;
 
 import javax.ws.rs.*;
@@ -44,16 +44,16 @@
 {
   private static final Log log = LogFactory.getLog(DeploymentFacade.class);
 
-  private DeploymentPlugin deploymentPlugin;
+  private ProcessEnginePlugin processEnginePlugin;
 
-  private DeploymentPlugin getDeploymentPlugin()
+  private ProcessEnginePlugin getDeploymentPlugin()
   {
-    if(null==this.deploymentPlugin)
+    if(null==this.processEnginePlugin)
     {
-      this.deploymentPlugin = PluginMgr.load(DeploymentPlugin.class);
+      this.processEnginePlugin = PluginMgr.load(ProcessEnginePlugin.class);
     }
 
-    return this.deploymentPlugin;
+    return this.processEnginePlugin;
   }
 
   @GET
@@ -62,8 +62,8 @@
   public Response getDeployments()
   {
 
-    DeploymentPlugin dplPlugin = getDeploymentPlugin();
-    if(deploymentPlugin!=null)
+    ProcessEnginePlugin dplPlugin = getDeploymentPlugin();
+    if(processEnginePlugin !=null)
     {
       List<DeploymentRef> dpls = dplPlugin.getDeployments();
       return createJsonResponse(
@@ -72,7 +72,7 @@
     }
     else
     {
-      log.error("DeploymentPlugin not available");
+      log.error("ProcessEnginePlugin not available");
       return Response.serverError().build();
     }
 
@@ -102,15 +102,15 @@
 
   private Response doSuspend(String id, boolean suspended)
   {
-    DeploymentPlugin dplPlugin = getDeploymentPlugin();
-    if(deploymentPlugin!=null)
+    ProcessEnginePlugin dplPlugin = getDeploymentPlugin();
+    if(processEnginePlugin !=null)
     {
-      deploymentPlugin.setSuspended(id, suspended);
+      processEnginePlugin.suspendDeployment(id, suspended);
       return Response.ok().build();
     }
     else
     {
-      log.error("DeploymentPlugin not available");
+      log.error("ProcessEnginePlugin not available");
       return Response.serverError().build();
     }
   }
@@ -124,15 +124,15 @@
   )
   {
 
-    DeploymentPlugin dplPlugin = getDeploymentPlugin();
-    if(deploymentPlugin!=null)
+    ProcessEnginePlugin dplPlugin = getDeploymentPlugin();
+    if(processEnginePlugin !=null)
     {
-      deploymentPlugin.deleteDeployment(id);
+      processEnginePlugin.deleteDeployment(id);
       return Response.ok().build();
     }
     else
     {
-      log.error("DeploymentPlugin not available");
+      log.error("ProcessEnginePlugin not available");
       return Response.serverError().build();
     }
 

Modified: projects/gwt-console/trunk/server/server-core/src/main/java/org/jboss/bpm/console/server/InfoFacade.java
===================================================================
--- projects/gwt-console/trunk/server/server-core/src/main/java/org/jboss/bpm/console/server/InfoFacade.java	2009-06-26 08:23:24 UTC (rev 5125)
+++ projects/gwt-console/trunk/server/server-core/src/main/java/org/jboss/bpm/console/server/InfoFacade.java	2009-06-26 10:11:54 UTC (rev 5126)
@@ -24,7 +24,7 @@
 import org.jboss.bpm.console.server.plugin.TaskDispatcherPlugin;
 import org.jboss.bpm.console.server.plugin.PluginMgr;
 import org.jboss.bpm.console.server.plugin.GraphViewerPlugin;
-import org.jboss.bpm.console.server.plugin.DeploymentPlugin;
+import org.jboss.bpm.console.server.plugin.ProcessEnginePlugin;
 import org.jboss.bpm.console.server.gson.GsonFactory;
 import org.jboss.bpm.console.client.model.ServerStatus;
 import org.jboss.bpm.console.client.model.PluginInfo;
@@ -46,7 +46,7 @@
   private Class[] pluginInterfaces = {
       TaskDispatcherPlugin.class,
       GraphViewerPlugin.class,
-      DeploymentPlugin.class
+      ProcessEnginePlugin.class
   };
 
   private ServerStatus status = null;

Deleted: projects/gwt-console/trunk/server/server-integration/src/main/java/org/jboss/bpm/console/server/plugin/DeploymentPlugin.java
===================================================================
--- projects/gwt-console/trunk/server/server-integration/src/main/java/org/jboss/bpm/console/server/plugin/DeploymentPlugin.java	2009-06-26 08:23:24 UTC (rev 5125)
+++ projects/gwt-console/trunk/server/server-integration/src/main/java/org/jboss/bpm/console/server/plugin/DeploymentPlugin.java	2009-06-26 10:11:54 UTC (rev 5126)
@@ -1,38 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.bpm.console.server.plugin;
-
-import org.jboss.bpm.console.client.model.DeploymentRef;
-
-import java.util.List;
-
-/**
- * @author Heiko.Braun <heiko.braun at jboss.com>
- */
-public interface DeploymentPlugin
-{
-  List<DeploymentRef> getDeployments();
-
-  void deleteDeployment(String id);
-  
-  void setSuspended(String id, boolean isSuspended);
-}

Copied: projects/gwt-console/trunk/server/server-integration/src/main/java/org/jboss/bpm/console/server/plugin/ProcessEnginePlugin.java (from rev 5125, projects/gwt-console/trunk/server/server-integration/src/main/java/org/jboss/bpm/console/server/plugin/DeploymentPlugin.java)
===================================================================
--- projects/gwt-console/trunk/server/server-integration/src/main/java/org/jboss/bpm/console/server/plugin/ProcessEnginePlugin.java	                        (rev 0)
+++ projects/gwt-console/trunk/server/server-integration/src/main/java/org/jboss/bpm/console/server/plugin/ProcessEnginePlugin.java	2009-06-26 10:11:54 UTC (rev 5126)
@@ -0,0 +1,38 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.bpm.console.server.plugin;
+
+import org.jboss.bpm.console.client.model.DeploymentRef;
+
+import java.util.List;
+
+/**
+ * @author Heiko.Braun <heiko.braun at jboss.com>
+ */
+public interface ProcessEnginePlugin
+{
+  List<DeploymentRef> getDeployments();
+
+  void deleteDeployment(String id);
+  
+  void suspendDeployment(String id, boolean isSuspended);
+}




More information about the jbpm-commits mailing list