| java.lang.Object de.danet.an.workflow.clients.wfxml.ObserverRegistry
ObserverRegistry | class ObserverRegistry (Code) | | This class encapsulates the database for the subscriptions.
author: Dirk Schnelle |
Inner Class :public static class ObserverInfo | |
Method Summary | |
public Collection | getObservers(String packageId, String processId, String processKey) Retrieves a collection of all observers for this process instance. | public void | subscribe(String observer, String packageId, String processId, String processKey, String senderBase) Adds the observer for the specified process. | public void | unsubscribe(String observer, String packageId, String processId, String processKey) Removes the observer for the specified process. | public void | unsubscribe(String packageId, String processId, String processKey) Removes all observers for this process instance. | public void | unsubscribe(String observer) Removes all notifications for this observer. |
getObservers | public Collection getObservers(String packageId, String processId, String processKey) throws SQLException(Code) | | Retrieves a collection of all observers for this process instance.
Parameters: packageId - the package id Parameters: processId - the process id Parameters: processKey - the process key collection of all observers. |
subscribe | public void subscribe(String observer, String packageId, String processId, String processKey, String senderBase) throws SQLException(Code) | | Adds the observer for the specified process.
Parameters: observer - the observer key Parameters: packageId - the package id of the process instance Parameters: processId - process id Parameters: processKey - key of the process instance throws: SQLException - database error. |
unsubscribe | public void unsubscribe(String observer, String packageId, String processId, String processKey) throws SQLException(Code) | | Removes the observer for the specified process.
Parameters: observer - the obeserver key Parameters: packageId - the package id of the process instance Parameters: processId - process id Parameters: processKey - key of the process instance throws: SQLException - database error. |
unsubscribe | public void unsubscribe(String packageId, String processId, String processKey) throws SQLException(Code) | | Removes all observers for this process instance.
Parameters: packageId - the package id Parameters: processId - the process id Parameters: processKey - the process key collection of all observers. |
unsubscribe | public void unsubscribe(String observer) throws SQLException(Code) | | Removes all notifications for this observer.
Parameters: observer - the observer. |
|
|