public static IBundleProvider newList(List<IBaseResource> theResources) { return new SimpleBundleProvider(theResources); } }
@Override public BundleProviderWithNamedPages setSize(Integer theSize) { super.setSize(theSize); return this; }
public static IBundleProvider newList(IBaseResource theResource) { return new SimpleBundleProvider(theResource); }
public SimpleBundleProvider(List<IBaseResource> theList, String theUuid) { myList = theList; myUuid = theUuid; setSize(theList.size()); }
@Override public IBundleProvider invokeServer(IRestfulServer<?> theServer, RequestDetails theRequest, Object[] theMethodParams) throws BaseServerResponseException { IBaseResource conf = (IBaseResource) invokeServerMethod(theServer, theRequest, theMethodParams); return new SimpleBundleProvider(conf); }
@Override public BundleProviderWithNamedPages setSize(Integer theSize) { super.setSize(theSize); return this; }
@Override public IBundleProvider search(SearchParameterMap theParams) { FhirContext fhirContext = myClient.getFhirContext(); IBaseBundle bundle = myClient .search() .forResource(ResourceTypeEnum.SEARCHPARAMETER.getCode()) .cacheControl(new CacheControlDirective().setNoCache(true)) .execute(); return new SimpleBundleProvider(BundleUtil.toListOfResources(fhirContext, bundle)); }
public SimpleBundleProvider(List<IBaseResource> theList, String theUuid) { myList = theList; myUuid = theUuid; setSize(theList.size()); }
return new SimpleBundleProvider(resources); });
@Override public IBundleProvider search(SearchParameterMap theMap) { FhirContext fhirContext = myClient.getFhirContext(); String searchURL = ResourceTypeEnum.SUBSCRIPTION.getCode() + theMap.toNormalizedQueryString(myFhirContext); IBaseBundle bundle = myClient .search() .byUrl(searchURL) .cacheControl(new CacheControlDirective().setNoCache(true)) .execute(); return new SimpleBundleProvider(BundleUtil.toListOfResources(fhirContext, bundle)); }
public static IBundleProvider newList(List<IBaseResource> theResources) { return new SimpleBundleProvider(theResources); } }
public static IBundleProvider newList(IBaseResource theResource) { return new SimpleBundleProvider(theResource); }
@Override public IBundleProvider invokeServer(IRestfulServer<?> theServer, RequestDetails theRequest, Object[] theMethodParams) throws BaseServerResponseException { IBaseResource conf = (IBaseResource) invokeServerMethod(theServer, theRequest, theMethodParams); return new SimpleBundleProvider(conf); }
public SimpleBundleProvider doInTransaction(TransactionStatus theStatus) { List<Long> pids = new ArrayList(); Iterator resultIter = sb.createQuery(theParams, searchUuid); while (resultIter.hasNext()) { pids.add((Long) resultIter.next()); if (theParams.getLoadSynchronousUpTo() != null && pids.size() >= theParams.getLoadSynchronousUpTo().intValue()) { break; } } Set<Long> includedPids = new HashSet(); includedPids.addAll(sb.loadReverseIncludes(theCallingDao, MultiTenantSearchCoordinatorSvcImpl.this.myContext, MultiTenantSearchCoordinatorSvcImpl.this.myEntityManager, pids, theParams.getRevIncludes(), true, theParams.getLastUpdated())); includedPids.addAll(sb.loadReverseIncludes(theCallingDao, MultiTenantSearchCoordinatorSvcImpl.this.myContext, MultiTenantSearchCoordinatorSvcImpl.this.myEntityManager, pids, theParams.getIncludes(), false, theParams.getLastUpdated())); List<IBaseResource> resources = new ArrayList(); sb.loadResourcesByPid(pids, resources, includedPids, false, MultiTenantSearchCoordinatorSvcImpl.this.myEntityManager, MultiTenantSearchCoordinatorSvcImpl.this.myContext, theCallingDao); return new SimpleBundleProvider(resources); } });
return new SimpleBundleProvider(resources); });