org.ow2.bonita.facade.impl
Class QueryAPIImpl

java.lang.Object
  extended by org.ow2.bonita.facade.impl.QueryAPIImpl
All Implemented Interfaces:
QueryAPI

public class QueryAPIImpl
extends java.lang.Object
implements QueryAPI

Author:
Pierre Vigneras

Constructor Summary
QueryAPIImpl()
           
 
Method Summary
 java.util.Map<java.lang.String,org.ow2.bonita.services.record.ActivityRecord> getActivities(java.lang.String instanceId)
          Returns all records of activity for the given instance id.
 org.ow2.bonita.services.record.ActivityRecord getActivity(java.lang.String instanceId, java.lang.String activityId)
          Returns the record of the activity with the given instance id and activity id.
 org.ow2.bonita.services.record.InstanceRecord getInstance(java.lang.String instanceId)
          Returns the record of the instance with the given id.
 java.util.Map<java.lang.String,org.ow2.bonita.services.record.InstanceRecord> getInstances(java.lang.String processId)
          Returns all records of instance for the given process id.
 org.ow2.bonita.services.record.TaskRecord getTask(java.lang.String taskId)
          Returns the record of the task with the given task id.
 java.util.Map<java.lang.String,org.ow2.bonita.services.record.TaskRecord> getTasks(java.lang.String instanceId)
          Returns all records of task for the given instance id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryAPIImpl

public QueryAPIImpl()
Method Detail

getInstance

public org.ow2.bonita.services.record.InstanceRecord getInstance(java.lang.String instanceId)
Description copied from interface: QueryAPI
Returns the record of the instance with the given id.

Specified by:
getInstance in interface QueryAPI
Parameters:
instanceId - the instance id.
Returns:
the record of the instance with the given id.

getInstances

public java.util.Map<java.lang.String,org.ow2.bonita.services.record.InstanceRecord> getInstances(java.lang.String processId)
Description copied from interface: QueryAPI
Returns all records of instance for the given process id.

Specified by:
getInstances in interface QueryAPI
Parameters:
processId - the process id.
Returns:
the map containing all instance records. Key is the id of the instance. Value is the record for the instance.

getActivity

public org.ow2.bonita.services.record.ActivityRecord getActivity(java.lang.String instanceId,
                                                                 java.lang.String activityId)
Description copied from interface: QueryAPI
Returns the record of the activity with the given instance id and activity id.

Specified by:
getActivity in interface QueryAPI
Parameters:
instanceId - the instance id.
activityId - the activity id.
Returns:
the record activity with the given instance id and activity id.

getActivities

public java.util.Map<java.lang.String,org.ow2.bonita.services.record.ActivityRecord> getActivities(java.lang.String instanceId)
Description copied from interface: QueryAPI
Returns all records of activity for the given instance id.

Specified by:
getActivities in interface QueryAPI
Parameters:
instanceId - the instance id.
Returns:
the map containing activity records. Key is the id of the activity. Value is the record for the activity.

getTask

public org.ow2.bonita.services.record.TaskRecord getTask(java.lang.String taskId)
Description copied from interface: QueryAPI
Returns the record of the task with the given task id.

Specified by:
getTask in interface QueryAPI
Parameters:
taskId - the task id.
Returns:
the record of the task with the given task id.

getTasks

public java.util.Map<java.lang.String,org.ow2.bonita.services.record.TaskRecord> getTasks(java.lang.String instanceId)
Description copied from interface: QueryAPI
Returns all records of task for the given instance id.

Specified by:
getTasks in interface QueryAPI
Parameters:
instanceId - the instance id.
Returns:
the map containing all task records. Key is the id of the task. Value is the record for the task.