[jbpm-commits] JBoss JBPM SVN: r4670 - in projects/gwt-console/trunk/server: server-integration/src/main/java/org/jboss/bpm/console/server/plugin and 1 other directory.

do-not-reply at jboss.org do-not-reply at jboss.org
Wed Apr 29 05:39:06 EDT 2009


Author: heiko.braun at jboss.com
Date: 2009-04-29 05:39:06 -0400 (Wed, 29 Apr 2009)
New Revision: 4670

Added:
   projects/gwt-console/trunk/server/server-integration/src/main/java/org/jboss/bpm/console/server/plugin/TaskDispatcherPlugin.java
Removed:
   projects/gwt-console/trunk/server/server-integration/src/main/java/org/jboss/bpm/console/server/plugin/TaskFormPlugin.java
Modified:
   projects/gwt-console/trunk/server/server-core/src/main/java/org/jboss/bpm/console/server/TaskListFacade.java
Log:
Rename TaskForm to TaskDispatcher plugin

Modified: projects/gwt-console/trunk/server/server-core/src/main/java/org/jboss/bpm/console/server/TaskListFacade.java
===================================================================
--- projects/gwt-console/trunk/server/server-core/src/main/java/org/jboss/bpm/console/server/TaskListFacade.java	2009-04-29 09:34:18 UTC (rev 4669)
+++ projects/gwt-console/trunk/server/server-core/src/main/java/org/jboss/bpm/console/server/TaskListFacade.java	2009-04-29 09:39:06 UTC (rev 4670)
@@ -29,7 +29,7 @@
 import org.jboss.bpm.console.server.gson.GsonFactory;
 import org.jboss.bpm.console.server.integration.ManagementFactory;
 import org.jboss.bpm.console.server.integration.TaskManagement;
-import org.jboss.bpm.console.server.plugin.TaskFormPlugin;
+import org.jboss.bpm.console.server.plugin.TaskDispatcherPlugin;
 import org.jboss.bpm.console.server.plugin.PluginMgr;
 
 import javax.ws.rs.*;
@@ -48,7 +48,7 @@
   private static final Log log = LogFactory.getLog(TaskMgmtFacade.class);
 
   private TaskManagement taskManagement;
-  private TaskFormPlugin formPlugin;
+  private TaskDispatcherPlugin formPlugin;
 
   /**
    * Lazy load the {@link org.jboss.bpm.console.server.integration.TaskManagement}
@@ -68,12 +68,12 @@
   /**
    * Lazy load the {@link org.jboss.bpm.console.server.integration.TaskManagement}
    */
-  private TaskFormPlugin getTaskFormPlugin()
+  private TaskDispatcherPlugin getTaskFormPlugin()
   {
     if(null==this.formPlugin)
     {
-      this.formPlugin = PluginMgr.load(TaskFormPlugin.class);
-      log.debug("Using TaskFormPlugin impl:" + this.formPlugin);
+      this.formPlugin = PluginMgr.load(TaskDispatcherPlugin.class);
+      log.debug("Using TaskDispatcherPlugin impl:" + this.formPlugin);
     }
 
     return this.formPlugin;
@@ -90,12 +90,12 @@
     List<TaskRef> refs = getTaskManagement().getTasksForIdentity(idRef);
 
     // decorate task form URL if plugin available
-    TaskFormPlugin formPlugin = getTaskFormPlugin();
+    TaskDispatcherPlugin formPlugin = getTaskFormPlugin();
     if(formPlugin!=null)
     {
       for(TaskRef task : refs)
       {
-        URL taskFormURL = formPlugin.resolveURLForTask(task);
+        URL taskFormURL = formPlugin.getDispatchUrl(task);
         if(taskFormURL!=null)
         {
           task.setUrl(taskFormURL.toExternalForm());

Added: projects/gwt-console/trunk/server/server-integration/src/main/java/org/jboss/bpm/console/server/plugin/TaskDispatcherPlugin.java
===================================================================
--- projects/gwt-console/trunk/server/server-integration/src/main/java/org/jboss/bpm/console/server/plugin/TaskDispatcherPlugin.java	                        (rev 0)
+++ projects/gwt-console/trunk/server/server-integration/src/main/java/org/jboss/bpm/console/server/plugin/TaskDispatcherPlugin.java	2009-04-29 09:39:06 UTC (rev 4670)
@@ -0,0 +1,40 @@
+/*
+ * 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.TaskRef;
+
+import java.net.URL;
+
+/**
+ * Create dispatch URL's for reneering task forms.
+ * 
+ * @author Heiko.Braun <heiko.braun at jboss.com>
+ */
+public interface TaskDispatcherPlugin
+{
+  /**   
+   * @param task
+   * @return a URL or null if the task doesn't have an associated form 
+   */
+  URL getDispatchUrl(TaskRef task);
+}

Deleted: projects/gwt-console/trunk/server/server-integration/src/main/java/org/jboss/bpm/console/server/plugin/TaskFormPlugin.java
===================================================================
--- projects/gwt-console/trunk/server/server-integration/src/main/java/org/jboss/bpm/console/server/plugin/TaskFormPlugin.java	2009-04-29 09:34:18 UTC (rev 4669)
+++ projects/gwt-console/trunk/server/server-integration/src/main/java/org/jboss/bpm/console/server/plugin/TaskFormPlugin.java	2009-04-29 09:39:06 UTC (rev 4670)
@@ -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.TaskRef;
-
-import java.net.URL;
-
-/**
- * @author Heiko.Braun <heiko.braun at jboss.com>
- */
-public interface TaskFormPlugin
-{
-  /**   
-   * @param task
-   * @return a URL or null if the task doesn't have an associated form 
-   */
-  URL resolveURLForTask(TaskRef task);                                      
-}




More information about the jbpm-commits mailing list