Fix a couple of compile issues

This commit is contained in:
James 2017-02-09 06:53:22 -05:00
parent 0dd6364fe5
commit 12e047b931
4 changed files with 29 additions and 10 deletions

View File

@ -60,6 +60,11 @@ public class PagingPatientProvider implements IResourceProvider {
// Typically this method just returns null
return null;
}
@Override
public String getUuid() {
return null;
}
};
}

View File

@ -171,7 +171,7 @@ public class HistoryMethodBinding extends BaseResourceReturningMethodBinding {
return new IBundleProvider() {
@Override
public InstantDt getPublished() {
public IPrimitiveType<Date> getPublished() {
return resources.getPublished();
}

View File

@ -1,5 +1,7 @@
package ca.uhn.fhir.rest.server;
import java.util.Date;
/*
* #%L
* HAPI FHIR - Core Library
@ -23,6 +25,7 @@ package ca.uhn.fhir.rest.server;
import java.util.List;
import org.hl7.fhir.instance.model.api.IBaseResource;
import org.hl7.fhir.instance.model.api.IPrimitiveType;
import ca.uhn.fhir.model.primitive.InstantDt;
@ -34,8 +37,10 @@ public interface IBundleProvider {
* if the method is invoked with index 0,10 the method might return 10 search results, plus an
* additional 20 resources which matched a client's _include specification.
*
* @param theFromIndex The low index (inclusive) to return
* @param theToIndex The high index (exclusive) to return
* @param theFromIndex
* The low index (inclusive) to return
* @param theToIndex
* The high index (exclusive) to return
* @return A list of resources. The size of this list must be at least <code>theToIndex - theFromIndex</code>.
*/
List<IBaseResource> getResources(int theFromIndex, int theToIndex);
@ -60,7 +65,7 @@ public interface IBundleProvider {
/**
* Returns the instant as of which this result was valid
*/
InstantDt getPublished();
IPrimitiveType<Date> getPublished();
/**
* Returns the UUID associated with this search. Note that this
@ -68,7 +73,11 @@ public interface IBundleProvider {
* {@link IPagingProvider} is being used that requires UUIDs
* being returned.
* <p>
* Otherwise you may simply return {@code null}
* In other words, if you are using the default {@link FifoMemoryPagingProvider} in
* your server, it is fine for this method to simply return {@code null} since {@link FifoMemoryPagingProvider}
* does not use the value anyhow. On the other hand, if you are creating a custom
* [@code IPagingProvider} implementation you might use this method to communicate
* the search ID back to the provider.
* </p>
*/
public String getUuid();

View File

@ -160,6 +160,11 @@ public class SearchHl7OrgDstu2Test {
public int size() {
return 0;
}
@Override
public String getUuid() {
return null;
}
};
}