Package org.projecthusky.communication
Class DocumentRequest
java.lang.Object
org.projecthusky.communication.DocumentRequest
Represents request information for one Document
-
Constructor Summary
ConstructorsConstructorDescriptionStandard constructor.DocumentRequest
(String repositoryId, URI repositoryUri, String documentId) Minimal constructor.DocumentRequest
(String repositoryId, URI repositoryUri, String documentId, String homeCommunityId) Constructor with homeCommunityID for the IHE XCA profile. -
Method Summary
Modifier and TypeMethodDescriptionGets the document Id.Gets the home community idorg.openehealth.ipf.commons.ihe.xds.core.metadata.DocumentEntry
Gets the OHT DocumentRequestType, which is wrapped by this classGets the repository id.Gets the repository URI.void
setDocumentId
(String documentId) Sets the document Id.void
setHomeCommunityId
(String homeCommunityId) Sets the home community Id.void
setRepositoryId
(String repositoryId) Sets the repository id.void
setRepositoryUri
(URI repositoryUri) Sets the repository URI.
-
Constructor Details
-
DocumentRequest
public DocumentRequest()Standard constructor. -
DocumentRequest
Minimal constructor.- Parameters:
repositoryId
- the ID of the repository. Typically you will find this id in the object that you get after using ConvenienceCommunication.queryForDocuments. (Using XDSQueryResponseType .getDocumentEntryResponses().getDocumentEntry ().getRepositoryUniqueId())repositoryUri
- the Uri of the repository. Typically you will find this id in the object that you get after using ConvenienceCommunication.queryForDocuments. (Using XDSQueryResponseType .getDocumentEntryResponses().getDocumentEntry ().getRepositoryUri())documentId
- the Uri of the repository. Typically you will find this id in the object that you get after using ConvenienceCommunication.queryForDocuments. (Using XDSQueryResponseType .getDocumentEntryResponses().getDocumentEntry().getUniqueId())
-
DocumentRequest
public DocumentRequest(String repositoryId, URI repositoryUri, String documentId, String homeCommunityId) Constructor with homeCommunityID for the IHE XCA profile.- Parameters:
repositoryId
- the ID of the repository. Typically you will find this id in the object that you get after using ConvenienceCommunication.queryForDocuments. (Using XDSQueryResponseType .getDocumentEntryResponses().getDocumentEntry ().getRepositoryUniqueId())repositoryUri
- the Uri of the repository. Typically you will find this id in the object that you get after using ConvenienceCommunication.queryForDocuments. (Using XDSQueryResponseType .getDocumentEntryResponses().getDocumentEntry ().getRepositoryUri())documentId
- the Uri of the repository. Typically you will find this id in the object that you get after using ConvenienceCommunication.queryForDocuments. (Using XDSQueryResponseType .getDocumentEntryResponses().getDocumentEntry().getUniqueId())homeCommunityId
- the id of the community. Typically you will find this id in the object that you get after using ConvenienceCommunication.queryForDocuments. (Using XDSQueryResponseType .getDocumentEntryResponses().getHomeCommunityId())
-
-
Method Details
-
getDocumentId
Gets the document Id.- Returns:
- the document Id
-
getHomeCommunityId
Gets the home community id- Returns:
- the Id of the community
-
getIpfDocumentEntry
public org.openehealth.ipf.commons.ihe.xds.core.metadata.DocumentEntry getIpfDocumentEntry()Gets the OHT DocumentRequestType, which is wrapped by this class- Returns:
- the OHT DocumentRequestType
-
getRepositoryId
Gets the repository id.- Returns:
- the repositoryId
-
getRepositoryUri
Gets the repository URI.- Returns:
- repositoryURI
-
setDocumentId
Sets the document Id.- Parameters:
documentId
- Typically you will find this id in the object that you get after using ConvenienceCommunication.queryForDocuments. (Using XDSQueryResponseType .getDocumentEntryResponses().getDocumentEntry ().getRepositoryUri())
-
setHomeCommunityId
Sets the home community Id.- Parameters:
homeCommunityId
- Typically you will find this id in the object that you get after using ConvenienceCommunication.queryForDocuments. (Using XDSQueryResponseType .getDocumentEntryResponses().getHomeCommunityId())
-
setRepositoryId
Sets the repository id.- Parameters:
repositoryId
- Typically you will find this id in the object that you get after using ConvenienceCommunication.queryForDocuments. (Using XDSQueryResponseType .getDocumentEntryResponses().getDocumentEntry ().getRepositoryUniqueId())
-
setRepositoryUri
Sets the repository URI.- Parameters:
repositoryUri
- Typically you will find this id in the object that you get after using ConvenienceCommunication.queryForDocuments. (Using XDSQueryResponseType .getDocumentEntryResponses().getDocumentEntry().getUniqueId())
-