Fix build issues
This commit is contained in:
parent
479c09b174
commit
4dcfdc88fd
|
@ -34,6 +34,7 @@ import ca.uhn.fhir.i18n.HapiLocalizer;
|
||||||
import ca.uhn.fhir.model.api.IElement;
|
import ca.uhn.fhir.model.api.IElement;
|
||||||
import ca.uhn.fhir.model.api.IFhirVersion;
|
import ca.uhn.fhir.model.api.IFhirVersion;
|
||||||
import ca.uhn.fhir.model.api.IResource;
|
import ca.uhn.fhir.model.api.IResource;
|
||||||
|
import ca.uhn.fhir.model.dstu.resource.Binary;
|
||||||
import ca.uhn.fhir.model.view.ViewGenerator;
|
import ca.uhn.fhir.model.view.ViewGenerator;
|
||||||
import ca.uhn.fhir.narrative.INarrativeGenerator;
|
import ca.uhn.fhir.narrative.INarrativeGenerator;
|
||||||
import ca.uhn.fhir.parser.DataFormatException;
|
import ca.uhn.fhir.parser.DataFormatException;
|
||||||
|
@ -167,7 +168,12 @@ public class FhirContext {
|
||||||
try {
|
try {
|
||||||
String className = myNameToResourceType.get(resourceName.toLowerCase());
|
String className = myNameToResourceType.get(resourceName.toLowerCase());
|
||||||
if (className == null) {
|
if (className == null) {
|
||||||
throw new DataFormatException("Unknown resource name[" + resourceName + "]");
|
if ("binary".equals(resourceName.toLowerCase())) {
|
||||||
|
// Binary is not generated so it's not in the list of potential resources
|
||||||
|
className = Binary.class.getName();
|
||||||
|
} else {
|
||||||
|
throw new DataFormatException("Unknown resource name[" + resourceName + "]");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Class<?> clazz = Class.forName(className);
|
Class<?> clazz = Class.forName(className);
|
||||||
if (IResource.class.isAssignableFrom(clazz)) {
|
if (IResource.class.isAssignableFrom(clazz)) {
|
||||||
|
|
|
@ -37,6 +37,11 @@ import ca.uhn.fhir.rest.server.exceptions.AuthenticationException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provides methods to intercept requests and responses. Note that implementations of this interface may wish to use {@link InterceptorAdapter} in order to not need to implement every method.
|
* Provides methods to intercept requests and responses. Note that implementations of this interface may wish to use {@link InterceptorAdapter} in order to not need to implement every method.
|
||||||
|
* <p>
|
||||||
|
* <b>See:</b> See the
|
||||||
|
* <a href="http://jamesagnew.github.io/hapi-fhir/doc_rest_server_interceptor.html">server interceptor documentation</a>
|
||||||
|
* for more information on how to use this class.
|
||||||
|
* </p>
|
||||||
*/
|
*/
|
||||||
public interface IServerInterceptor {
|
public interface IServerInterceptor {
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
|
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
|
||||||
<wb-module deploy-name="hapi-fhir-structures-dstu">
|
<wb-module deploy-name="hapi-fhir-structures-dstu">
|
||||||
<wb-resource deploy-path="/" source-path="/src/main/java"/>
|
<wb-resource deploy-path="/" source-path="/src/main/java"/>
|
||||||
<wb-resource deploy-path="/" source-path="/src/test/java"/>
|
|
||||||
<wb-resource deploy-path="/" source-path="/src/test/resources"/>
|
|
||||||
<wb-resource deploy-path="/" source-path="/target/generated-resources/tinder"/>
|
<wb-resource deploy-path="/" source-path="/target/generated-resources/tinder"/>
|
||||||
<wb-resource deploy-path="/" source-path="/target/generated-sources/tinder"/>
|
<wb-resource deploy-path="/" source-path="/target/generated-sources/tinder"/>
|
||||||
</wb-module>
|
</wb-module>
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
package ca.uhn.fhir.context;
|
package ca.uhn.fhir.context;
|
||||||
|
|
||||||
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import ca.uhn.fhir.model.dstu.resource.Patient;
|
import ca.uhn.fhir.model.dstu.resource.Patient;
|
||||||
|
@ -15,4 +17,10 @@ public class FhirContextTest {
|
||||||
ctx.getResourceDefinition(Patient.class);
|
ctx.getResourceDefinition(Patient.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testFindBinary() {
|
||||||
|
RuntimeResourceDefinition def = new FhirContext().getResourceDefinition("Binary");
|
||||||
|
assertEquals("Binary", def.getName());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
2
pom.xml
2
pom.xml
|
@ -631,7 +631,7 @@
|
||||||
<modules>
|
<modules>
|
||||||
<module>hapi-deployable-pom</module>
|
<module>hapi-deployable-pom</module>
|
||||||
<module>hapi-fhir-base</module>
|
<module>hapi-fhir-base</module>
|
||||||
<module>hapi-fhir-oauth2</module>
|
<!--<module>hapi-fhir-oauth2</module>-->
|
||||||
<module>hapi-fhir-base/testmindeps</module>
|
<module>hapi-fhir-base/testmindeps</module>
|
||||||
<module>hapi-tinder-plugin</module>
|
<module>hapi-tinder-plugin</module>
|
||||||
<module>hapi-tinder-test</module>
|
<module>hapi-tinder-test</module>
|
||||||
|
|
|
@ -15,6 +15,21 @@
|
||||||
<![CDATA[<a href="./doc_upgrading.html">upgrading</a>]]>
|
<![CDATA[<a href="./doc_upgrading.html">upgrading</a>]]>
|
||||||
for more information.
|
for more information.
|
||||||
</action>
|
</action>
|
||||||
|
<action type="fix">
|
||||||
|
<![CDATA[
|
||||||
|
<b>Deprocated API Removal</b>: The following classes (which were deprocated previously)
|
||||||
|
have now been removed:
|
||||||
|
<ul>
|
||||||
|
<li><b>ISecurityManager</b>: If you are using this class, the same functionality
|
||||||
|
is available through the more general purpose
|
||||||
|
<a href="http://jamesagnew.github.io/hapi-fhir/doc_rest_server_interceptor.html">server interceptor</a>
|
||||||
|
capabilities.
|
||||||
|
<li><b>CodingListParam</b>: This class was made redundant by the
|
||||||
|
<a href="http://jamesagnew.github.io/hapi-fhir/apidocs/ca/uhn/fhir/rest/param/TokenOrListParam.html">TokenOrListParam</a>
|
||||||
|
class, which can be used in its place.
|
||||||
|
</ul>
|
||||||
|
]]>
|
||||||
|
</action>
|
||||||
<action type="add" issue="38" dev="wdebeau1">
|
<action type="add" issue="38" dev="wdebeau1">
|
||||||
Profile generation on the server was not working due to IdDt being
|
Profile generation on the server was not working due to IdDt being
|
||||||
incorrectly used. Thanks to Bill de Beaubien for the pull request!
|
incorrectly used. Thanks to Bill de Beaubien for the pull request!
|
||||||
|
|
Loading…
Reference in New Issue