Class GetFolderAndContentsQuery
java.lang.Object
org.projecthusky.communication.xd.storedquery.AbstractStoredQuery
org.projecthusky.communication.xd.storedquery.GetFolderAndContentsQuery
- All Implemented Interfaces:
StoredQueryInterface
- Direct Known Subclasses:
GetFolderAndContentsQueryAt
Represents a query to get folders and its contents (associations, documents)
from an XDS Registry.
-
Constructor Summary
ConstructorsConstructorDescriptionGetFolderAndContentsQuery
(String folderId, boolean isUUID, List<Code> formatCodes, List<Code> confidentialityCodes) Constructor.GetFolderAndContentsQuery
(String folderId, boolean isUUID, List<Code> formatCodes, List<Code> confidentialityCodes, String homeCommunityId) Constructor that allows for the addition of a homeCommunityId to the query to support the XCA (Cross Community Access) profile extension of this query.GetFolderAndContentsQuery
(String folderId, boolean isUUID, List<Code> formatCodes, List<Code> confidentialityCodes, String homeCommunityId, org.openehealth.ipf.commons.ihe.xds.core.metadata.DocumentEntryType objectType) Constructor that allows for the addition of a homeCommunityId to the query to support the XCA profile extension of this query. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addConfidentialityCodes
(List<Code> confidentialityCodes) Adds an additional disjunctive clause of confidentiality codes to the query.Methods inherited from class org.projecthusky.communication.xd.storedquery.AbstractStoredQuery
getIpfQuery, setIpfStoredQuery
-
Constructor Details
-
GetFolderAndContentsQuery
public GetFolderAndContentsQuery(String folderId, boolean isUUID, List<Code> formatCodes, List<Code> confidentialityCodes) Constructor. All arrays of codes are interpreted with as a disjunction (OR - semantics).- Parameters:
folderId
- id of the folder (either uniqueId or entryUUID) (required)isUUID
- set to true if folderID is the entryUUID (internal registry identifier) of the folder and set to false if it is the uniqueID (external to registry) of the folder. In most user cases, this should be set to falseformatCodes
- array of formatCodes to query for (can be null)confidentialityCodes
- array of confidentiality codes to query for (can be null)
-
GetFolderAndContentsQuery
public GetFolderAndContentsQuery(String folderId, boolean isUUID, List<Code> formatCodes, List<Code> confidentialityCodes, String homeCommunityId) Constructor that allows for the addition of a homeCommunityId to the query to support the XCA (Cross Community Access) profile extension of this query.- Parameters:
folderId
- id of the folder (either uniqueId or entryUUID) (required)isUUID
- set to true if folderID is the entryUUID (internal registry identifier) of the folder and set to false if it is the uniqueID (external to registry) of the folder. In most user cases, this should be set to falseformatCodes
- array of formatCodes to query for (can be null)confidentialityCodes
- array of confidentiality codes to query for (can be null)homeCommunityId
- this is the id of the home community as specified by the XCA profile. Value may be null or empty, in which case it is not added to the query.
-
GetFolderAndContentsQuery
public GetFolderAndContentsQuery(String folderId, boolean isUUID, List<Code> formatCodes, List<Code> confidentialityCodes, String homeCommunityId, org.openehealth.ipf.commons.ihe.xds.core.metadata.DocumentEntryType objectType) Constructor that allows for the addition of a homeCommunityId to the query to support the XCA profile extension of this query.- Parameters:
folderId
- id of the folder (either uniqueId or entryUUID) (required)isUUID
- set to true if folderID is the entryUUID (internal registry identifier) of the folder and set to false if it is the uniqueID (external to registry) of the folder. In most user cases, this should be set to falseformatCodes
- array of formatCodes to query for (can be null)confidentialityCodes
- array of confidentiality codes to query for (can be null)homeCommunityId
- this is the id of the home community as specified by the XCA profile. Value may be null or empty, in which case it is not added to the query.objectType
- for the OnDemand document feature. Tells whether you want static docs, on demand docs, or both
-
-
Method Details
-
addConfidentialityCodes
Adds an additional disjunctive clause of confidentiality codes to the query. Per IHE 2008-2009 ITI CP 228, codes with in the parameter will be interpreted with OR semantics. The resultant disjunctive clause will be AND-ed together with any confidentialityCode clauses previously added. Calling this method sequentially will result in the AND-ing of multiple clauses.- Parameters:
confidentialityCodes
- array of confidentialityCodes, interpreted as a disjunctive clause in which each confidentialityCodes[i] will be a literal of that clause, to add to the query.
-