Skip to content

Commit

Permalink
feat: Remove unused object factory
Browse files Browse the repository at this point in the history
  • Loading branch information
vincenzo-ingenito committed Jan 17, 2024
1 parent ead5058 commit 4cd63b2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ public static ObjectRefListType buildObjectRefList(String uuid) {
* @return
*/
public static JAXBElement<ExternalIdentifierType> buildExternalIdentifierObjectJax(
ObjectFactory objectFactory,
String name,
String id,
String identificationScheme,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ private static List<ExternalIdentifierType> buildExternalIdentifierSubmissionSet

// Build external identifiers
JAXBElement<ExternalIdentifierType> externalIdentifierObject1 = buildExternalIdentifierObjectJax(
objectFactory,"XDSSubmissionSet.sourceId","SubmissionSet01_SourceId",
"XDSSubmissionSet.sourceId","SubmissionSet01_SourceId",
"urn:uuid:554ac39e-e3fe-47fe-b233-965d2a147832",
Constants.IniClientConstants.EXTERNAL_IDENTIFIER_URN,
Constants.IniClientConstants.SUBMISSION_SET_DEFAULT_ID,
submissionSetEntryDTO.getSourceId());
out.add(externalIdentifierObject1.getValue());

JAXBElement<ExternalIdentifierType> externalIdentifierObject2 = buildExternalIdentifierObjectJax(
objectFactory,"XDSSubmissionSet.uniqueId",
"XDSSubmissionSet.uniqueId",
"SubmissionSet01_UniqueId",
"urn:uuid:96fdda7c-d067-4183-912e-bf5ee74998a8",
Constants.IniClientConstants.EXTERNAL_IDENTIFIER_URN,
Expand All @@ -80,7 +80,7 @@ private static List<ExternalIdentifierType> buildExternalIdentifierSubmissionSet


JAXBElement<ExternalIdentifierType> externalPatientIdentifierObject = buildExternalIdentifierObjectJax(
objectFactory,"XDSSubmissionSet.patientId",
"XDSSubmissionSet.patientId",
"SubmissionSet01_PatientId",
"urn:uuid:6b5aea1a-874d-4603-a4bc-96a0a7b38446",
Constants.IniClientConstants.EXTERNAL_IDENTIFIER_URN,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,6 @@ private static RegistryPackageType rebuildRegistryPackageObjectMetadata(

// 3. merge uniqueId
JAXBElement<ExternalIdentifierType> externalIdentifierObjectUniqueId = buildExternalIdentifierObjectJax(
objectFactory,
"XDSSubmissionSet.uniqueId",
"SubmissionSet01_UniqueId",
"urn:uuid:96fdda7c-d067-4183-912e-bf5ee74998a8",
Expand All @@ -244,7 +243,6 @@ private static RegistryPackageType rebuildRegistryPackageObjectMetadata(

// // 1. merge sourceId
JAXBElement<ExternalIdentifierType> externalIdentifierObjectSourceId = buildExternalIdentifierObjectJax(
objectFactory,
"XDSSubmissionSet.sourceId",
"SubmissionSet01_SourceId",
"urn:uuid:554ac39e-e3fe-47fe-b233-965d2a147832",
Expand Down

0 comments on commit 4cd63b2

Please sign in to comment.