org.yawlfoundation.yawl.engine.interfce.interfaceB
Class IBControllerCache

java.lang.Object
  extended by org.yawlfoundation.yawl.engine.interfce.interfaceB.IBControllerCache

public class IBControllerCache
extends Object

Author:
Lachlan Aldred Date: 27/01/2004 Time: 18:56:15, Michael Adams (renamed/refactored/relocated for v2.0 07/2008 & 04/2009)

Constructor Summary
IBControllerCache()
           
 
Method Summary
 void addSpecificationData(SpecificationData specData)
           
 void addWorkItem(WorkItemRecord itemRecord)
           
 String getDataForWorkItemID(String workItemID)
           
 SpecificationData getSpecificationData(YSpecificationID specID)
          Gets a data object describing the specification.
 TaskInformation getTaskInformation(YSpecificationID specID, String taskID)
           
 WorkItemRecord getWorkItem(String workItemID)
           
 void removeRemotelyCachedWorkItem(String workItemID)
          Removes any cached copy of a work item from the custom yawl service.
 void setDataForWorkItemID(String workItemID, String data)
           
 void setTaskInformation(YSpecificationID specID, String taskID, TaskInformation taskInfo)
           
 void unloadSpecificationData(YSpecificationID specID)
           
 void unloadTaskInformation(YSpecificationID specID)
           
 void unsaveWorkItem(String workItemID)
           
 void updateWorkItems(List<WorkItemRecord> items)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IBControllerCache

public IBControllerCache()
Method Detail

updateWorkItems

public void updateWorkItems(List<WorkItemRecord> items)

getWorkItem

public WorkItemRecord getWorkItem(String workItemID)

getTaskInformation

public TaskInformation getTaskInformation(YSpecificationID specID,
                                          String taskID)

setTaskInformation

public void setTaskInformation(YSpecificationID specID,
                               String taskID,
                               TaskInformation taskInfo)

unloadTaskInformation

public void unloadTaskInformation(YSpecificationID specID)

setDataForWorkItemID

public void setDataForWorkItemID(String workItemID,
                                 String data)

getDataForWorkItemID

public String getDataForWorkItemID(String workItemID)

unsaveWorkItem

public void unsaveWorkItem(String workItemID)

addSpecificationData

public void addSpecificationData(SpecificationData specData)

getSpecificationData

public SpecificationData getSpecificationData(YSpecificationID specID)
                                       throws IOException
Gets a data object describing the specification. This is cached in the worklist application to reduce unecessary communication between messaging tiers, and to improve performance.

Parameters:
specID -
Returns:
the specification data
Throws:
IOException

unloadSpecificationData

public void unloadSpecificationData(YSpecificationID specID)
                             throws IOException
Throws:
IOException

addWorkItem

public void addWorkItem(WorkItemRecord itemRecord)

removeRemotelyCachedWorkItem

public void removeRemotelyCachedWorkItem(String workItemID)
Removes any cached copy of a work item from the custom yawl service.

Parameters:
workItemID - the work item id.


Copyright © 2004-2012 The YAWL Foundation.