/** * Whether this {@link ddf.catalog.CatalogFramework} is configured with a {@code CatalogProvider}. * * @return true if this has a {@code CatalogProvider} configured, false otherwise */ boolean hasCatalogProvider() { if (sourceOperations.getCatalog() != null) { LOGGER.trace("hasCatalogProvider() returning true"); return true; } LOGGER.trace("hasCatalogProvider() returning false"); return false; }
<T extends Request> T setFlagsOnRequest(T request) { if (request != null) { Set<String> ids = getCombinedIdSet(request); request .getProperties() .put( Constants.LOCAL_DESTINATION_KEY, ids.isEmpty() || (sourceOperations.getCatalog() != null && ids.contains(sourceOperations.getCatalog().getId()))); request .getProperties() .put( Constants.REMOTE_DESTINATION_KEY, (Requests.isLocal(request) && ids.size() > 1) || (!Requests.isLocal(request) && !ids.isEmpty())); } return request; }