added missing uninstall (#643)
This commit is contained in:
committed by
GitHub
parent
bb8f620d91
commit
7e82e63fc2
@@ -20,5 +20,9 @@ public interface IImplementationGuideOperationProvider {
|
||||
// The following declaration is the one that counts but cannot be used across different versions as stating
|
||||
// Base64BinaryType would bind to a separate version
|
||||
// @Operation(name = "$install", typeName = "ImplementationGuide")
|
||||
|
||||
// Parameters install(@OperationParam(name = "npmContent",min = 1, max = 1) Base64BinaryType implementationGuide);
|
||||
|
||||
// Parameters uninstall(@OperationParam(name = "name", min = 1, max = 1) String name, @OperationParam(name = "version", min = 1, max = 1) String version) ;
|
||||
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package ca.uhn.fhir.jpa.starter.ig;
|
||||
|
||||
import ca.uhn.fhir.jpa.packages.IPackageInstallerSvc;
|
||||
import ca.uhn.fhir.jpa.packages.PackageInstallationSpec;
|
||||
import ca.uhn.fhir.jpa.starter.annotations.OnR4Condition;
|
||||
import ca.uhn.fhir.rest.annotation.Operation;
|
||||
import ca.uhn.fhir.rest.annotation.OperationParam;
|
||||
@@ -33,4 +34,12 @@ public class ImplementationGuideR4OperationProvider implements IImplementationGu
|
||||
}
|
||||
return new Parameters();
|
||||
}
|
||||
|
||||
@Operation(name = "$uninstall", typeName = "ImplementationGuide")
|
||||
public Parameters uninstall(
|
||||
@OperationParam(name = "name", min = 1, max = 1) String name, @OperationParam(name = "version", min = 1, max = 1) String version) {
|
||||
|
||||
packageInstallerSvc.uninstall(new PackageInstallationSpec().setName(name).setVersion(version));
|
||||
return new Parameters();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package ca.uhn.fhir.jpa.starter.ig;
|
||||
|
||||
import ca.uhn.fhir.jpa.packages.IPackageInstallerSvc;
|
||||
import ca.uhn.fhir.jpa.packages.PackageInstallationSpec;
|
||||
import ca.uhn.fhir.jpa.starter.annotations.OnR5Condition;
|
||||
import ca.uhn.fhir.rest.annotation.Operation;
|
||||
import ca.uhn.fhir.rest.annotation.OperationParam;
|
||||
@@ -13,7 +14,7 @@ import java.io.IOException;
|
||||
|
||||
@Conditional({OnR5Condition.class, IgConfigCondition.class})
|
||||
@Service
|
||||
public class ImplementationGuideR5OperationProvider {
|
||||
public class ImplementationGuideR5OperationProvider implements IImplementationGuideOperationProvider {
|
||||
|
||||
IPackageInstallerSvc packageInstallerSvc;
|
||||
|
||||
@@ -33,4 +34,12 @@ public class ImplementationGuideR5OperationProvider {
|
||||
}
|
||||
return new Parameters();
|
||||
}
|
||||
|
||||
@Operation(name = "$uninstall", typeName = "ImplementationGuide")
|
||||
public org.hl7.fhir.r4.model.Parameters uninstall(
|
||||
@OperationParam(name = "name", min = 1, max = 1) String name, @OperationParam(name = "version", min = 1, max = 1) String version) {
|
||||
|
||||
packageInstallerSvc.uninstall(new PackageInstallationSpec().setName(name).setVersion(version));
|
||||
return new org.hl7.fhir.r4.model.Parameters();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user