|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ohf.ihe.xds.source.SubmitTransactionData
public class SubmitTransactionData
This object represents the transaction payload for ITI-15: Provide and Register Document Set Transaction. It is strongly recommended that the user be familiar with this transaction as documented by IHE (see link below). The transaction is comprised of two key componets:
Documents to submitProvideAndRegisterDocumentSetType
| Constructor Summary | |
|---|---|
SubmitTransactionData()
Constructor. |
|
| Method Summary | |
|---|---|
java.lang.String |
addDocument(Document document)
Add the given document to the Document Submission Set. |
void |
addDocumentToFolder(java.lang.String documentEntryUUID,
java.lang.String folderEntryUUID)
Adds the documentEntryUUID reference to the specified folder's list of associated documents. |
void |
addExistingDocument(java.lang.String documentEntryUUID)
Add document that already exists in the XDS Registry to the Document Submission Set. |
void |
addExistingFolder(java.lang.String folderEntryUUID)
Add folder that already exists in the XDS Registry to the Document Submission Set. |
java.lang.String |
addFolder()
Create and Add a folder to the submission set |
void |
deleteDocument(java.lang.String documentEntryUUID)
Removes the document and its associated metadata. |
void |
deleteDocumentFromFolder(java.lang.String documentEntryUUID,
java.lang.String folderEntryUUID)
Removes (deletes) the documentEntryUUID reference to the specified folder's list of associated documents. |
void |
deleteFolder(java.lang.String folderEntryUUID)
Remove(delete) the folder to the submission set with the corresponding folderEntryUUID |
java.util.List |
getDocList()
|
Document |
getDocument(java.lang.String documentEntryUUID)
Returns the Document object associated with the specified documentEntryUUID. |
DocumentEntryType |
getDocumentEntry(java.lang.String documentEntryUUID)
Returns the DocumentEntryType metadata object for the specified documentEntryUUID. |
FolderType |
getFolder(java.lang.String folderEntryUUID)
Returns the FolderType metadata object for the specified folderEntryUUID. |
ProvideAndRegisterDocumentSetType |
getMetadata()
|
SubmissionSetType |
getSubmissionSet()
Returns a reference to this Submission Set's metadata |
boolean |
isDocumentAdded(Document document)
Checks to see if the specified document object has been added to the Source |
java.lang.String |
loadDocumentWithEbXMLMetadata(Document document,
ExtrinsicObjectType docData,
AssociationType1 parentData)
Loads the DocumentEntry metadata from the ebXML objects specified, INCLUDING the entryUUID of the document entry, if present. |
java.lang.String |
loadDocumentWithEbXMLMetadata(Document document,
java.io.InputStream metadata)
Loads the DocumentEntry metadata from the ebXML file specified, INCLUDING the entryUUID of the document entry, if present. |
java.lang.String |
loadDocumentWithMetadata(Document document,
java.io.InputStream metadata)
Loads the DocumentEntry metadata from the file specified, INCLUDING the entryUUID of the document entry, if present. |
java.lang.String |
loadEbXMLFolder(java.io.InputStream folderStream)
Loads Folder metadata from the file specified, INCLUDING the entryUUID of the folder, if present. |
java.lang.String |
loadEbXMLFolder(RegistryPackageType folData)
Loads Folder metadata from the file specified, INCLUDING the entryUUID of the folder, if present. |
void |
loadEbXMLSubmissionSet(java.io.InputStream submissionSetStream)
Replaces the current SubmissionSet metadata with values from the EbXML v2.1 file specified, INCLUDING the entryUUID of the submission, if present. |
void |
loadEbXMLSubmissionSet(RegistryPackageType setData)
Replaces the current SubmissionSet metadata with values from the EbXML v2.1 RegistryPackage object specified, INCLUDING the entryUUID of the submission, if present. |
java.lang.String |
loadFolder(java.io.InputStream folderStream)
Loads Folder metadata from the file specified, INCLUDING the entryUUID of the folder, if present. |
void |
loadSubmissionSet(java.io.InputStream submissionSetStream)
Replaces the current SubmissionSet metadata from the file specified, INCLUDING the entryUUID of the submission, if present. |
void |
saveMetadataToFile(java.lang.String path)
Returns a file containing the current state of all metadata set in this submission |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SubmitTransactionData()
| Method Detail |
|---|
public java.util.List getDocList()
public java.lang.String addDocument(Document document)
throws MetadataExtractionException,
SubmitTransactionCompositionException
document - Document to add (@see com.ibm.ihii.xdssource.Document), must not be null
MetadataExtractionException - if an error occurred extracting the XDS metadata from the
document.
SubmitTransactionCompositionException - if an error occurred in composing the submit transaction data
public java.lang.String loadDocumentWithMetadata(Document document,
java.io.InputStream metadata)
throws MetadataExtractionException,
SubmitTransactionCompositionException
InputStreamDocumentEntryExtractor
Also, the document will be added. Note: Each
document may appear only once per submission set. If the same document
object is attempted to be added more than once, it will not be added to
the document set. The DocumentEntry.entryUUID returned will be the existing
object instance this document.
metadata - InputStream containing metadata.xsd compliant metadata metadata
MetadataExtractionException - if an error occurred extracting the XDS metadata from the
document.
SubmitTransactionCompositionException - if an error occurred in composing the submit transaction data
public java.lang.String loadDocumentWithEbXMLMetadata(Document document,
java.io.InputStream metadata)
throws MetadataExtractionException,
SubmitTransactionCompositionException
EbXML_2_1InputStreamDocumentEntryExtractor
Also, the document will be added. Note: Each
document may appear only once per submission set. If the same document
object is attempted to be added more than once, it will not be added to
the document set. The DocumentEntry.entryUUID returned will be the existing
object instance this document.
metadata - InputStream containing ebXML compliant metadata metadata
MetadataExtractionException - if an error occurred extracting the XDS metadata from the
document.
SubmitTransactionCompositionException - if an error occurred in composing the submit transaction data
public java.lang.String loadDocumentWithEbXMLMetadata(Document document,
ExtrinsicObjectType docData,
AssociationType1 parentData)
throws MetadataExtractionException,
SubmitTransactionCompositionException
docData - ebXML object containg metadata for the document, cannot be nullparentData - ebXML object containing metadata for a parent document, if
applicable. may be set to null if no parent document exists.
MetadataExtractionException - if an error occurred extracting the XDS metadata from the
document.
SubmitTransactionCompositionException - if an error occurred in composing the submit transaction dataEbXML_2_1DocumentEntryExtractor
public void addExistingDocument(java.lang.String documentEntryUUID)
throws MetadataExtractionException
documentEntryUUID - the DocumentEntry.entryUUID for the existing document
MetadataExtractionExceptionpublic void deleteDocument(java.lang.String documentEntryUUID)
documentEntryUUID - Reference to the DocumentEntryType object corresponding to the Document to
removepublic DocumentEntryType getDocumentEntry(java.lang.String documentEntryUUID)
documentEntryUUID -
public Document getDocument(java.lang.String documentEntryUUID)
documentEntryUUID -
public boolean isDocumentAdded(Document document)
document - document object to look for
public java.lang.String addFolder()
public java.lang.String loadFolder(java.io.InputStream folderStream)
throws MetadataExtractionException
InputStreamFolderExtractor
folderStream - InputStream contiaing a metadata.xsd compliant folder
MetadataExtractionException
public java.lang.String loadEbXMLFolder(java.io.InputStream folderStream)
throws MetadataExtractionException
EbXML_2_1InputStreamFolderExtractor
folderStream - InputStream contiaing a ebXML compliant folder
MetadataExtractionException
public java.lang.String loadEbXMLFolder(RegistryPackageType folData)
throws MetadataExtractionException
folData - ebXML object containg metadata for this folder, cannot be null
MetadataExtractionExceptionEbXML_2_1FolderExtractor
public void addExistingFolder(java.lang.String folderEntryUUID)
throws MetadataExtractionException
folderEntryUUID - the Folder.entryUUID for the existing folder
MetadataExtractionExceptionpublic void deleteFolder(java.lang.String folderEntryUUID)
folderEntryUUID - of the folder to remove (delete)public FolderType getFolder(java.lang.String folderEntryUUID)
public void addDocumentToFolder(java.lang.String documentEntryUUID,
java.lang.String folderEntryUUID)
public void deleteDocumentFromFolder(java.lang.String documentEntryUUID,
java.lang.String folderEntryUUID)
public SubmissionSetType getSubmissionSet()
public void loadSubmissionSet(java.io.InputStream submissionSetStream)
throws MetadataExtractionException
submissionSetStream - InputStream contiaing a metadata.xsd compliant folder
MetadataExtractionExceptionInputStreamSubmissionSetExtractor
public void loadEbXMLSubmissionSet(java.io.InputStream submissionSetStream)
throws MetadataExtractionException
EbXML_2_1InputStreamSubmissionSetExtractor
submissionSetStream - InputStream contiaing a ebXML compliant folder
MetadataExtractionException
public void loadEbXMLSubmissionSet(RegistryPackageType setData)
throws MetadataExtractionException
setData - ebXML object containg metadata for the submission set, cannot be null
MetadataExtractionExceptionEbXML_2_1SubmissionSetExtractorpublic ProvideAndRegisterDocumentSetType getMetadata()
public void saveMetadataToFile(java.lang.String path)
throws MetadataTransformationException
path - path to output file
MetadataTransformationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||