public class DocumentStoreClient extends Interface_Client
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
_storeURI |
Constructor and Description |
---|
DocumentStoreClient()
Constructs a new, empty DocumentStoreClient object
|
DocumentStoreClient(java.lang.String uri)
Constructs a new DocumentStoreClient object
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
addCaseID(long docID,
java.lang.String caseID,
java.lang.String handle)
Updates a stored document with its case id.
|
boolean |
checkConnection(java.lang.String handle)
Check that a session handle is active
|
java.lang.String |
clearCase(java.lang.String caseID,
java.lang.String handle)
Removes all documents from the Document Store matching a case id
|
java.lang.String |
clearCase(YDocument doc,
java.lang.String handle)
Removes all documents from the Document Store matching a case id
|
java.lang.String |
completeCase(java.lang.String caseID,
java.lang.String handle)
Removes all documents from the Document Store matching a case id
|
java.lang.String |
completeCase(YDocument doc,
java.lang.String handle)
Removes all documents from the Document Store matching a case id
|
java.lang.String |
connect(java.lang.String userID,
java.lang.String password)
Connects an external entity to the document store
|
void |
disconnect(java.lang.String handle)
Disconnects an external entity from the document store
|
YDocument |
getDocument(long docID,
java.lang.String handle)
Gets a document from the Document Store
|
YDocument |
getDocument(YDocument doc,
java.lang.String handle)
Gets a document from the Document Store
|
java.lang.String |
putDocument(YDocument doc,
java.lang.String handle)
Stores a document in the Document Store
|
java.lang.String |
removeDocument(long docID,
java.lang.String handle)
Removes a document from the Document Store
|
java.lang.String |
removeDocument(YDocument doc,
java.lang.String handle)
Removes a document from the Document Store
|
void |
setURI(java.lang.String uri)
Sets the document store URI for this client
|
executeGet, executePost, getReply, initPostConnection, prepareParamMap, send, setReadTimeout, stripOuterElement, successful
public DocumentStoreClient()
public DocumentStoreClient(java.lang.String uri)
uri
- the uri of the YAWL document storepublic void setURI(java.lang.String uri)
uri
- the uri of the YAWL document storepublic java.lang.String connect(java.lang.String userID, java.lang.String password) throws java.io.IOException
userID
- the useridpassword
- the corresponding passwordjava.io.IOException
- if the service can't be reachedpublic boolean checkConnection(java.lang.String handle) throws java.io.IOException
handle
- the session handle to checkjava.io.IOException
- if the service can't be reachedpublic void disconnect(java.lang.String handle) throws java.io.IOException
handle
- the sessionHandle to disconnectjava.io.IOException
- if the service can't be reachedpublic java.lang.String putDocument(YDocument doc, java.lang.String handle) throws java.io.IOException
doc
- the YDocument to store. If the YDocument's id matches an existing
document in the Store, this 'put' is treated as an update rather
that a new document insertionhandle
- a valid session handlejava.io.IOException
- if the service can't be reachedpublic YDocument getDocument(YDocument doc, java.lang.String handle) throws java.io.IOException
doc
- the YDocument to get. The YDocument's id must match an existing
documenthandle
- a valid session handlejava.io.IOException
- if the service can't be reachedpublic YDocument getDocument(long docID, java.lang.String handle) throws java.io.IOException
docID
- the id of the document to get. The id must match an existing
documenthandle
- a valid session handlejava.io.IOException
- if the service can't be reachedpublic java.lang.String removeDocument(YDocument doc, java.lang.String handle) throws java.io.IOException
doc
- the YDocument to remove. The YDocument's id must match an existing
documenthandle
- a valid session handlejava.io.IOException
- if the service can't be reachedpublic java.lang.String removeDocument(long docID, java.lang.String handle) throws java.io.IOException
docID
- the id of the document to remove. The id must match an existing
documenthandle
- a valid session handlejava.io.IOException
- if the service can't be reachedpublic java.lang.String addCaseID(long docID, java.lang.String caseID, java.lang.String handle) throws java.io.IOException
docID
- the id of the already uploaded documentcaseID
- the case id of the case launched with the document as a case paramhandle
- a valid session handlejava.io.IOException
- if the service can't be reachedpublic java.lang.String clearCase(YDocument doc, java.lang.String handle) throws java.io.IOException
doc
- a YDocument containing the case id of the documents to removehandle
- a valid session handlejava.io.IOException
- if the service can't be reachedpublic java.lang.String clearCase(java.lang.String caseID, java.lang.String handle) throws java.io.IOException
caseID
- the case id of the documents to removehandle
- a valid session handlejava.io.IOException
- if the service can't be reachedpublic java.lang.String completeCase(YDocument doc, java.lang.String handle) throws java.io.IOException
doc
- a YDocument containing the case id of the documents to removehandle
- a valid session handlejava.io.IOException
- if the service can't be reachedpublic java.lang.String completeCase(java.lang.String caseID, java.lang.String handle) throws java.io.IOException
caseID
- the case id of the documents to removehandle
- a valid session handlejava.io.IOException
- if the service can't be reachedCopyright © 2004-2014 The YAWL Foundation.