Class DocumentRequest

java.lang.Object
org.projecthusky.communication.DocumentRequest

public class DocumentRequest extends Object
Represents request information for one Document
  • Constructor Details

    • DocumentRequest

      public DocumentRequest()
      Standard constructor.
    • DocumentRequest

      public DocumentRequest(String repositoryId, URI repositoryUri, String documentId)
      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

      public String getDocumentId()
      Gets the document Id.
      Returns:
      the document Id
    • getHomeCommunityId

      public String 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

      public String getRepositoryId()
      Gets the repository id.
      Returns:
      the repositoryId
    • getRepositoryUri

      public URI getRepositoryUri()
      Gets the repository URI.
      Returns:
      repositoryURI
    • setDocumentId

      public void setDocumentId(String documentId)
      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

      public void setHomeCommunityId(String homeCommunityId)
      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

      public void setRepositoryId(String repositoryId)
      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

      public void setRepositoryUri(URI repositoryUri)
      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())