Increase visibility of two methods needed by the HSPC sandbox

This commit is contained in:
James Agnew 2018-10-18 10:17:55 -04:00
parent da2763d8c8
commit e00ff641b2
2 changed files with 8 additions and 4 deletions

View File

@ -1761,11 +1761,11 @@ public abstract class BaseHapiFhirDao<T extends IBaseResource> implements IDao,
theEntity, Date theDeletedTimestampOrNull, boolean thePerformIndexing, theEntity, Date theDeletedTimestampOrNull, boolean thePerformIndexing,
boolean theUpdateVersion, Date theUpdateTime, boolean theForceUpdate, boolean theCreateNewHistoryEntry) { boolean theUpdateVersion, Date theUpdateTime, boolean theForceUpdate, boolean theCreateNewHistoryEntry) {
Validate.notNull(theEntity); Validate.notNull(theEntity);
Validate.isTrue(theDeletedTimestampOrNull != null || theResource != null, "Must have either a resource[{}] or a deleted timestamp[{}] for resource PID[{}]", theDeletedTimestampOrNull != null, theResource != null, theEntity.getId()); Validate.isTrue(theDeletedTimestampOrNull != null || theResource != null, "Must have either a resource[%s] or a deleted timestamp[%s] for resource PID[%s]", theDeletedTimestampOrNull != null, theResource != null, theEntity.getId());
ourLog.debug("Starting entity update"); ourLog.debug("Starting entity update");
i
/* /*
* This should be the very first thing.. * This should be the very first thing..
*/ */

View File

@ -253,7 +253,9 @@ public class PersistedJpaBundleProvider implements IBundleProvider {
mySearchDao = theSearchDao; mySearchDao = theSearchDao;
} }
void setSearchEntity(Search theSearchEntity) { // Note: Leave as protected, HSPC depends on this
@SuppressWarnings("WeakerAccess")
protected void setSearchEntity(Search theSearchEntity) {
mySearchEntity = theSearchEntity; mySearchEntity = theSearchEntity;
} }
@ -269,7 +271,9 @@ public class PersistedJpaBundleProvider implements IBundleProvider {
return Math.max(0, size); return Math.max(0, size);
} }
List<IBaseResource> toResourceList(ISearchBuilder sb, List<Long> pidsSubList) { // Note: Leave as protected, HSPC depends on this
@SuppressWarnings("WeakerAccess")
protected List<IBaseResource> toResourceList(ISearchBuilder sb, List<Long> pidsSubList) {
Set<Long> includedPids = new HashSet<>(); Set<Long> includedPids = new HashSet<>();
if (mySearchEntity.getSearchType() == SearchTypeEnum.SEARCH) { if (mySearchEntity.getSearchType() == SearchTypeEnum.SEARCH) {
includedPids.addAll(sb.loadIncludes(myDao, myContext, myEntityManager, pidsSubList, mySearchEntity.toRevIncludesList(), true, mySearchEntity.getLastUpdated())); includedPids.addAll(sb.loadIncludes(myDao, myContext, myEntityManager, pidsSubList, mySearchEntity.toRevIncludesList(), true, mySearchEntity.getLastUpdated()));