[jbpm-commits] JBoss JBPM SVN: r3141 - in projects/spec/trunk/modules/api/src/main/java/org: jboss/bpm/api and 2 other directories.

do-not-reply at jboss.org do-not-reply at jboss.org
Fri Nov 28 06:04:14 EST 2008


Author: thomas.diesler at jboss.com
Date: 2008-11-28 06:04:14 -0500 (Fri, 28 Nov 2008)
New Revision: 3141

Added:
   projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/service/ExecutionService.java
   projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/service/IdentityService.java
   projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/service/TaskService.java
   projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/task/
   projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/task/Task.java
Removed:
   projects/spec/trunk/modules/api/src/main/java/org/jbpm/
Log:
Add task & identiy service

Added: projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/service/ExecutionService.java
===================================================================
--- projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/service/ExecutionService.java	                        (rev 0)
+++ projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/service/ExecutionService.java	2008-11-28 11:04:14 UTC (rev 3141)
@@ -0,0 +1,55 @@
+/*
+ * 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.jboss.bpm.api.service;
+
+// $Id$
+
+import java.util.Set;
+
+import javax.management.ObjectName;
+
+import org.jboss.bpm.api.runtime.Token;
+
+
+/**
+ * The ExecutionService manages Tokens
+ * 
+ * @author thomas.diesler at jboss.com
+ * @since 28-Nov-2008
+ */
+public abstract class ExecutionService extends AbstractService
+{
+  // Hide public constructor
+  protected ExecutionService()
+  {
+  }
+
+  /**
+   * Get the set of tokens.
+   */
+  public abstract Set<Token> getTokens();
+  
+  /**
+   * Get a token by id.
+   */
+  public abstract Token getToken(ObjectName tokenID);
+}


Property changes on: projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/service/ExecutionService.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/service/IdentityService.java
===================================================================
--- projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/service/IdentityService.java	                        (rev 0)
+++ projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/service/IdentityService.java	2008-11-28 11:04:14 UTC (rev 3141)
@@ -0,0 +1,61 @@
+/*
+ * 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.jboss.bpm.api.service;
+
+// $Id$
+
+import java.util.List;
+
+
+/**
+ * The IdentityService manages identities
+ * 
+ * @author thomas.diesler at jboss.com
+ * @since 28-Nov-2008
+ */
+public abstract class IdentityService extends AbstractService
+{
+  // Hide public constructor
+  protected IdentityService()
+  {
+  }
+
+  /**
+   * Get a list of groups.
+   */
+  public abstract List<String> getGroups();
+  
+  /**
+   * Get a list of groups a given actor belongs to.
+   */
+  public abstract List<String> getGroupsByActor(String actor);
+  
+  /**
+   * Get a list of groups.
+   */
+  public abstract List<String> getActors();
+  
+  /**
+   * Get a list of actors that belong to a given group.
+   */
+  public abstract List<String> getActorsByGroup(String group);
+}


Property changes on: projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/service/IdentityService.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/service/TaskService.java
===================================================================
--- projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/service/TaskService.java	                        (rev 0)
+++ projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/service/TaskService.java	2008-11-28 11:04:14 UTC (rev 3141)
@@ -0,0 +1,53 @@
+/*
+ * 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.jboss.bpm.api.service;
+
+// $Id$
+
+import java.util.List;
+
+import javax.management.ObjectName;
+
+import org.jboss.bpm.api.task.Task;
+
+
+/**
+ * The TaskService manages Tasks.
+ * 
+ * @author thomas.diesler at jboss.com
+ * @since 28-Nov-2008
+ */
+public abstract class TaskService extends AbstractService
+{
+  // Hide public constructor
+  protected TaskService()
+  {
+  }
+
+  public abstract Task getTask(ObjectName taskID);
+
+  public abstract List<Task> getTasksByActor(String actor);
+
+  public abstract void reassignTask(ObjectName taskID, String actor);
+  
+  public abstract void closeTask(ObjectName taskID, String signalName);
+}


Property changes on: projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/service/TaskService.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/task/Task.java
===================================================================
--- projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/task/Task.java	                        (rev 0)
+++ projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/task/Task.java	2008-11-28 11:04:14 UTC (rev 3141)
@@ -0,0 +1,44 @@
+/*
+ * 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.api.task;
+
+import java.util.Set;
+
+import javax.management.ObjectName;
+
+public interface Task
+{
+  ObjectName getKey();
+  
+  ObjectName getCorrelationKey();
+  
+  String getName();
+  
+  String getActor();
+  
+  Set<String> getPooledActors();
+  
+  boolean isBlocking();
+  
+  boolean isSignalling();
+}
+


Property changes on: projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/task/Task.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF




More information about the jbpm-commits mailing list