|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ohf.ihe.xds.consumer.Consumer
public class Consumer
IHE XDS Document Consumer implementation - (SEK) updated for EOHF Supports Transaction ITI-16: Query Registry, Transaction ITI-17: Retrieve Document and Transaction ITI-18: Registry Stored Query
| Constructor Summary | |
|---|---|
Consumer(java.lang.String regURL)
Constructor, |
|
Consumer(java.lang.String regURL,
boolean doAudit)
Deprecated. use AtnaAgentFactory.getAtnaAgent().setDoAudit(doAudit) to turn auditing on and off for all your actors |
|
Consumer(java.net.URI regURI)
Constructor, |
|
Consumer(java.net.URI regURI,
boolean doAudit)
Deprecated. use AtnaAgentFactory.getAtnaAgent().setDoAudit(doAudit) to turn auditing on and off for all your actors |
|
| Method Summary | |
|---|---|
java.net.URI |
getRegURI()
|
java.lang.String |
getRegURL()
|
java.util.List |
invokeStoredQuery(StoredQuery q,
boolean returnReferencesOnly,
java.lang.String initiatingUser)
Transaction ITI-18: Registry Stored Query Query for and retrieve a list of docoment metadata or metadata references based on the input attributes. |
boolean |
isDoAudit()
|
java.util.List |
query(Query q,
boolean returnReferencesOnly,
java.lang.String initiatingUser)
Transaction ITI-16: Query Registry Query for and retrieve a list of docoment metadata or metadata references based on the input attributes. |
java.util.List |
query(java.lang.String sqlQueryString,
boolean returnReferencesOnly,
java.lang.String initiatingUser)
Transaction ITI-16: Query Registry Query for and retrieve a list of docoment metadata or metadata references based on the input attributes. |
java.io.InputStream |
retrieveDocument(java.lang.String uri,
java.lang.String initiatingUser)
Transaction ITI-17: Retrieve Document Retrieve an input stream from which the document content can be read. |
void |
setDoAudit(boolean doAudit)
Deprecated. use AtnaAgentFactory.getAtnaAgent().setDoAudit(doAudit) to turn auditing on and off for all your actors |
void |
setRegURI(java.net.URI regURI)
Sets the the URI of the registy |
void |
setRegURL(java.lang.String regURL)
Sets the string url to be the URI of the registy |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Consumer(java.lang.String regURL,
boolean doAudit)
regURL - the URL string for the registry to use for query requestsdoAudit - whether to enable or disable auditing for the consumer actorpublic Consumer(java.lang.String regURL)
regURL - the URL string for the registry to use for query requests
public Consumer(java.net.URI regURI,
boolean doAudit)
regURI - the URI for the registry to use for query requestsdoAudit - whether to enable or disable auditing for the consumer actorpublic Consumer(java.net.URI regURI)
regURI - the URI for the registry to use for query requests| Method Detail |
|---|
public boolean isDoAudit()
public void setDoAudit(boolean doAudit)
doAudit - the doAudit to setpublic java.lang.String getRegURL()
public void setRegURL(java.lang.String regURL)
regURL - The regURL to set.public java.net.URI getRegURI()
public void setRegURI(java.net.URI regURI)
regURL - The URI to set.
public java.util.List query(Query q,
boolean returnReferencesOnly,
java.lang.String initiatingUser)
throws java.lang.Exception
q - fully populated Query object to be executed by the consumer QueryreturnReferencesOnly - used to indicate the return type desired by the user.
Set returnReferencesOnly = true if only references to document entries are desired. This option is
desireable if the user is expecting many documents to satisfy the query, or if memory space is
a concern. Set returnReferencesOnly = false if the complete document entry object is desired.initiatingUser - entity issuing the query. Can only be null or empty string if
auditing is disabled for the Consumer
java.lang.Exception
public java.util.List query(java.lang.String sqlQueryString,
boolean returnReferencesOnly,
java.lang.String initiatingUser)
throws java.lang.Exception
sqlQueryString - query to be executed by the ConsumerreturnReferencesOnly - used to indicate the return type desired by the user.
Set returnReferencesOnly = true if only references to document entries are desired. This option is
desireable if the user is expecting many documents to satisfy the query, or if memory space is
a concern. Set returnReferencesOnly = false if the complete document entry object is desired.initiatingUser - entity issuing the query. Can only be null or empty string if
auditing is disabled for the Consumer
java.lang.Exception
public java.util.List invokeStoredQuery(StoredQuery q,
boolean returnReferencesOnly,
java.lang.String initiatingUser)
throws java.lang.Exception
q - fully populated AdhocQueryType object to be executed by the consumer AdhocQueryTypereturnReferencesOnly - used to indicate the return type desired by the user.
Set returnReferencesOnly = true if only references to document entries are desired. This option is
desireable if the user is expecting many documents to satisfy the query, or if memory space is
a concern. Set returnReferencesOnly = false if the complete document entry object is desired.initiatingUser - entity issuing the query. Can only be null or empty string if
auditing is disabled for the Consumer
java.lang.Exception
public java.io.InputStream retrieveDocument(java.lang.String uri,
java.lang.String initiatingUser)
throws java.io.IOException,
ATNAAuditClientException,
java.security.GeneralSecurityException
uri - The input value is the URI for the document, presumably returned from
the getUri() function on an element returned from findDocuments.initiatingUser - identity of the user initiating the export transaction.
Used only for auditing.
ATNAAuditClientException
java.security.GeneralSecurityException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||