org.yawlfoundation.yawl.resourcing
Class RuntimeCache

java.lang.Object
  extended by org.yawlfoundation.yawl.resourcing.RuntimeCache

public class RuntimeCache
extends Object

Author:
Michael Adams
Created/Last Date:
22/02/12

Constructor Summary
RuntimeCache()
           
 
Method Summary
protected  Participant addChainedCase(String caseID, Participant p)
           
protected  void addClientCredentials(String id, String password)
           
protected  CodeletRunner addCodeletRunner(String itemID, CodeletRunner runner)
           
protected  Map<String,org.jdom.Element> addDataSchema(YSpecificationID specID, String schema)
           
protected  TaggedStringList addDeferredItemGroup(TaggedStringList group)
           
protected  void addDelayedCaseLaunch(DelayedLaunchRecord record)
           
protected  void addOrphanedItem(WorkItemRecord wir)
           
protected  void addSession(String handle, Participant p, String jSessionID)
           
protected  void addSession(String handle, String jSessionID)
           
protected  void addSpecificationData(SpecificationData specData)
           
protected  void addTaskCompleter(Participant p, WorkItemRecord wir)
           
protected  void addUserKey(Participant p)
           
protected  void cancelCodeletRunner(String itemID)
           
protected  void cancelCodeletRunnersForCase(String caseID)
           
protected  boolean checkServiceConnection(String handle)
           
protected  void clearOrphanedItems()
           
protected  String connectClient(String userid, String password, long timeOutSeconds)
           
protected  void deleteClientCredentials(String id)
           
protected  Participant expireSession(String jSessionID)
           
protected  String getActiveParticipantsAsXML()
           
protected  Set<String> getChainedCaseIDs()
           
 Set<String> getChainedCaseIDsForParticipant(Participant p)
           
protected  Participant getChainedParticipant(String caseID)
           
protected  String getClientPassword(String id)
           
protected  Map<String,org.jdom.Element> getDataSchemaMap(YSpecificationID specID)
           
protected  TaggedStringList getDeferredItemGroup(String groupID)
           
protected  ResourceDataSet getOrgDataSet()
           
protected  List<WorkItemRecord> getOrphanedItems()
           
protected  String getParticipantIDFromUserID(String userID)
           
protected  Participant getParticipantWithSessionHandle(String handle)
           
protected  String getSessionHandle(Participant p)
           
protected  SpecificationData getSpecificationData(YSpecificationID specID)
           
protected  Set<Participant> getTaskCompleters(String taskID, String caseID)
           
protected  String getUserIDForSessionHandle(String handle)
           
protected  String getWhoLaunchedCase(String handle)
           
protected  boolean hasClientCredentials()
           
protected  boolean isActiveSession(String jSessionID)
           
protected  boolean isChainedCase(String caseID)
           
protected  boolean isChainedParticipant(Participant p)
           
protected  boolean isKnownUserID(String userid)
           
protected  boolean isValidUserSession(String handle)
           
protected  boolean logDelayedCaseLaunch(YSpecificationID specID, String caseID)
           
protected  void logout(String handle)
           
protected  void refreshClientCredentials(Map<String,String> users)
           
protected  void removeCaseFromTaskCompleters(String caseid)
           
protected  Participant removeChainedCase(String caseID)
           
protected  void removeChainedCasesForParticpant(Participant p)
           
protected  CodeletRunner removeCodeletRunner(String itemID)
           
protected  void removeDataSchema(YSpecificationID specID)
           
protected  TaggedStringList removeDeferredItemGroup(TaggedStringList group)
           
protected  void removeSpecification(YSpecificationID specID)
           
protected  void removeSpecificationData(YSpecificationID specID)
           
protected  void removeTaskCompleter(Participant p, WorkItemRecord wir)
           
protected  void removeUserKey(Participant p)
           
protected  void removeUserKey(String userKey)
           
protected  void serviceDisconnect(String handle)
           
protected  void setOrgDataSet(ResourceDataSet dataSet)
           
protected  void shutdown()
           
protected  void shutdownCodeletRunners()
           
protected  void updateClientCredentials(String id, String password)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuntimeCache

public RuntimeCache()
Method Detail

getOrgDataSet

protected ResourceDataSet getOrgDataSet()

setOrgDataSet

protected void setOrgDataSet(ResourceDataSet dataSet)

addUserKey

protected void addUserKey(Participant p)

removeUserKey

protected void removeUserKey(Participant p)

removeUserKey

protected void removeUserKey(String userKey)

isKnownUserID

protected boolean isKnownUserID(String userid)

getParticipantIDFromUserID

protected String getParticipantIDFromUserID(String userID)

addDeferredItemGroup

protected TaggedStringList addDeferredItemGroup(TaggedStringList group)

removeDeferredItemGroup

protected TaggedStringList removeDeferredItemGroup(TaggedStringList group)

getDeferredItemGroup

protected TaggedStringList getDeferredItemGroup(String groupID)

addChainedCase

protected Participant addChainedCase(String caseID,
                                     Participant p)

isChainedCase

protected boolean isChainedCase(String caseID)

isChainedParticipant

protected boolean isChainedParticipant(Participant p)

getChainedParticipant

protected Participant getChainedParticipant(String caseID)

getChainedCaseIDsForParticipant

public Set<String> getChainedCaseIDsForParticipant(Participant p)

getChainedCaseIDs

protected Set<String> getChainedCaseIDs()

removeChainedCase

protected Participant removeChainedCase(String caseID)

removeChainedCasesForParticpant

protected void removeChainedCasesForParticpant(Participant p)

addTaskCompleter

protected void addTaskCompleter(Participant p,
                                WorkItemRecord wir)

getTaskCompleters

protected Set<Participant> getTaskCompleters(String taskID,
                                             String caseID)

removeTaskCompleter

protected void removeTaskCompleter(Participant p,
                                   WorkItemRecord wir)

removeCaseFromTaskCompleters

protected void removeCaseFromTaskCompleters(String caseid)

addCodeletRunner

protected CodeletRunner addCodeletRunner(String itemID,
                                         CodeletRunner runner)

removeCodeletRunner

protected CodeletRunner removeCodeletRunner(String itemID)

cancelCodeletRunner

protected void cancelCodeletRunner(String itemID)

cancelCodeletRunnersForCase

protected void cancelCodeletRunnersForCase(String caseID)

shutdownCodeletRunners

protected void shutdownCodeletRunners()

addOrphanedItem

protected void addOrphanedItem(WorkItemRecord wir)

getOrphanedItems

protected List<WorkItemRecord> getOrphanedItems()

clearOrphanedItems

protected void clearOrphanedItems()

addDelayedCaseLaunch

protected void addDelayedCaseLaunch(DelayedLaunchRecord record)

logDelayedCaseLaunch

protected boolean logDelayedCaseLaunch(YSpecificationID specID,
                                       String caseID)

addSpecificationData

protected void addSpecificationData(SpecificationData specData)

getSpecificationData

protected SpecificationData getSpecificationData(YSpecificationID specID)

removeSpecificationData

protected void removeSpecificationData(YSpecificationID specID)

addDataSchema

protected Map<String,org.jdom.Element> addDataSchema(YSpecificationID specID,
                                                     String schema)

getDataSchemaMap

protected Map<String,org.jdom.Element> getDataSchemaMap(YSpecificationID specID)

removeDataSchema

protected void removeDataSchema(YSpecificationID specID)

removeSpecification

protected void removeSpecification(YSpecificationID specID)

getParticipantWithSessionHandle

protected Participant getParticipantWithSessionHandle(String handle)

getWhoLaunchedCase

protected String getWhoLaunchedCase(String handle)

shutdown

protected void shutdown()
                 throws InterruptedException
Throws:
InterruptedException

isActiveSession

protected boolean isActiveSession(String jSessionID)

expireSession

protected Participant expireSession(String jSessionID)

isValidUserSession

protected boolean isValidUserSession(String handle)

logout

protected void logout(String handle)

addSession

protected void addSession(String handle,
                          String jSessionID)

addSession

protected void addSession(String handle,
                          Participant p,
                          String jSessionID)

getSessionHandle

protected String getSessionHandle(Participant p)

getActiveParticipantsAsXML

protected String getActiveParticipantsAsXML()

refreshClientCredentials

protected void refreshClientCredentials(Map<String,String> users)

addClientCredentials

protected void addClientCredentials(String id,
                                    String password)

updateClientCredentials

protected void updateClientCredentials(String id,
                                       String password)

deleteClientCredentials

protected void deleteClientCredentials(String id)

hasClientCredentials

protected boolean hasClientCredentials()

connectClient

protected String connectClient(String userid,
                               String password,
                               long timeOutSeconds)

getClientPassword

protected String getClientPassword(String id)

checkServiceConnection

protected boolean checkServiceConnection(String handle)

serviceDisconnect

protected void serviceDisconnect(String handle)

getUserIDForSessionHandle

protected String getUserIDForSessionHandle(String handle)


Copyright © 2004-2012 The YAWL Foundation.