[jbpm-commits] JBoss JBPM SVN: r5170 - in jbpm4/trunk/modules: examples/src/test/java/org/jbpm/examples/task/variables and 1 other directories.

do-not-reply at jboss.org do-not-reply at jboss.org
Wed Jul 1 06:13:04 EDT 2009


Author: tom.baeyens at jboss.com
Date: 2009-07-01 06:13:04 -0400 (Wed, 01 Jul 2009)
New Revision: 5170

Removed:
   jbpm4/trunk/modules/api/src/main/java/org/jbpm/api/task/GroupRef.java
   jbpm4/trunk/modules/api/src/main/java/org/jbpm/api/task/IdentityRef.java
   jbpm4/trunk/modules/api/src/main/java/org/jbpm/api/task/UserRef.java
Modified:
   jbpm4/trunk/modules/examples/src/test/java/org/jbpm/examples/task/variables/TaskVariablesTest.java
   jbpm4/trunk/modules/test-db/src/test/java/org/jbpm/test/task/TaskListTest.java
Log:
removed unused identity refs

Deleted: jbpm4/trunk/modules/api/src/main/java/org/jbpm/api/task/GroupRef.java
===================================================================
--- jbpm4/trunk/modules/api/src/main/java/org/jbpm/api/task/GroupRef.java	2009-07-01 08:12:26 UTC (rev 5169)
+++ jbpm4/trunk/modules/api/src/main/java/org/jbpm/api/task/GroupRef.java	2009-07-01 10:13:04 UTC (rev 5170)
@@ -1,40 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt 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.jbpm.api.task;
-
-
-
-/**
- * @author Tom Baeyens
- */
-public class GroupRef extends IdentityRef {
-
-  private static final long serialVersionUID = 1L;
-  
-  public GroupRef(String groupId) {
-    super(groupId);
-  }
-  
-  public String toString() {
-    return "GroupRef("+id+")";
-  }
-}

Deleted: jbpm4/trunk/modules/api/src/main/java/org/jbpm/api/task/IdentityRef.java
===================================================================
--- jbpm4/trunk/modules/api/src/main/java/org/jbpm/api/task/IdentityRef.java	2009-07-01 08:12:26 UTC (rev 5169)
+++ jbpm4/trunk/modules/api/src/main/java/org/jbpm/api/task/IdentityRef.java	2009-07-01 10:13:04 UTC (rev 5170)
@@ -1,75 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt 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.jbpm.api.task;
-
-import java.io.Serializable;
-
-import org.jbpm.api.JbpmException;
-
-
-/**
- * references an identity. usally a user or group.
- *
- * @see org.jbpm.api.task.UserRef
- * @see org.jbpm.api.task.GroupRef
- * @see org.jbpm.api.task.Participation
- *
- * @author Tom Baeyens
- * @author Heiko Braun
- */
-public abstract class IdentityRef implements Serializable {
-  
-  private static final long serialVersionUID = 1L;
-
-  protected String id;
-
-  public IdentityRef(String id) {
-    if (id==null) {
-      throw new JbpmException("id is null");
-    }
-    this.id = id;
-  }
-
-  public String getId() {
-    return id;
-  }
-
-  public int hashCode() {
-    final int prime = 31;
-    int result = 1;
-    result = prime * result + ((id == null) ? 0 : id.hashCode());
-    return result;
-  }
-
-  public boolean equals(Object obj) {
-    if (this == obj)
-      return true;
-    if (obj == null)
-      return false;
-    if (getClass() != obj.getClass())
-      return false;
-    IdentityRef other = (IdentityRef) obj;
-    if (!id.equals(other.id))
-      return false;
-    return true;
-  }
-}

Deleted: jbpm4/trunk/modules/api/src/main/java/org/jbpm/api/task/UserRef.java
===================================================================
--- jbpm4/trunk/modules/api/src/main/java/org/jbpm/api/task/UserRef.java	2009-07-01 08:12:26 UTC (rev 5169)
+++ jbpm4/trunk/modules/api/src/main/java/org/jbpm/api/task/UserRef.java	2009-07-01 10:13:04 UTC (rev 5170)
@@ -1,40 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt 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.jbpm.api.task;
-
-
-
-/**
- * @author Tom Baeyens
- */
-public class UserRef extends IdentityRef {
-  
-  private static final long serialVersionUID = 1L;
-
-  public UserRef(String userId) {
-    super(userId);
-  }
-  
-  public String toString() {
-    return "UserRef("+id+")";
-  }
-}

Modified: jbpm4/trunk/modules/examples/src/test/java/org/jbpm/examples/task/variables/TaskVariablesTest.java
===================================================================
--- jbpm4/trunk/modules/examples/src/test/java/org/jbpm/examples/task/variables/TaskVariablesTest.java	2009-07-01 08:12:26 UTC (rev 5169)
+++ jbpm4/trunk/modules/examples/src/test/java/org/jbpm/examples/task/variables/TaskVariablesTest.java	2009-07-01 10:13:04 UTC (rev 5170)
@@ -29,7 +29,6 @@
 
 import org.jbpm.api.Execution;
 import org.jbpm.api.task.Task;
-import org.jbpm.api.task.UserRef;
 import org.jbpm.test.JbpmTestCase;
 
 

Modified: jbpm4/trunk/modules/test-db/src/test/java/org/jbpm/test/task/TaskListTest.java
===================================================================
--- jbpm4/trunk/modules/test-db/src/test/java/org/jbpm/test/task/TaskListTest.java	2009-07-01 08:12:26 UTC (rev 5169)
+++ jbpm4/trunk/modules/test-db/src/test/java/org/jbpm/test/task/TaskListTest.java	2009-07-01 10:13:04 UTC (rev 5170)
@@ -24,7 +24,6 @@
 import java.util.List;
 
 import org.jbpm.api.task.Task;
-import org.jbpm.api.task.UserRef;
 import org.jbpm.test.JbpmTestCase;
 
 
@@ -33,9 +32,6 @@
  */
 public class TaskListTest extends JbpmTestCase {
 
-  UserRef johndoe = new UserRef("johndoe");
-  UserRef joesmoe = new UserRef("joesmoe");
-  
   public void testPersonalTaskList() {
     Task task = taskService.newTask();
     task.setName("do laundry");




More information about the jbpm-commits mailing list