/** * Whether or not the requested path should be added to NFC. Item will be added to NFC if is not local/remote only. * * @param request resource store request * @return true if requested path should be added to NFC * @since 2.0 */ protected boolean shouldAddToNotFoundCache( final ResourceStoreRequest request ) { // if not local/remote only, add it to NFC return !request.isRequestLocalOnly() && !request.isRequestRemoteOnly(); }
db.append( ", remoteOnly=" ).append( request.isRequestRemoteOnly() ); if ( !request.isRequestRemoteOnly() ) if ( !request.isRequestRemoteOnly() )
new ResourceStoreRequest( path, request.isRequestLocalOnly(), request.isRequestRemoteOnly() ); mdRequest.getRequestContext().setParentContext( request.getRequestContext() );
@Override public StorageItem call() throws IllegalOperationException, ItemNotFoundException, IOException { final ResourceStoreRequest newreq = new ResourceStoreRequest( getRequest() ); newreq.setRequestLocalOnly( getRequest().isRequestLocalOnly() ); newreq.setRequestRemoteOnly( getRequest().isRequestRemoteOnly() ); try { return getRepository().retrieveItem( false, newreq ); } finally { getRequest().addProcessedRepository( getRepository() ); } }
@Override public StorageItem call() throws ItemNotFoundException, IllegalOperationException, IOException, AccessDeniedException { final ResourceStoreRequest newreq = new ResourceStoreRequest( getRequest() ); newreq.setRequestLocalOnly( getRequest().isRequestLocalOnly() ); newreq.setRequestRemoteOnly( getRequest().isRequestRemoteOnly() ); StorageItem item = getRepository().retrieveItem( newreq ); getRequest().addProcessedRepository( getRepository() ); if ( item instanceof StorageCollectionItem ) { item = new DefaultStorageCollectionItem( groupRepository, newreq, true, false ); } return item; }
item = repositoryRouter.dereferenceLink((StorageLinkItem) item, request.isRequestLocalOnly(), request.isRequestRemoteOnly());
request.isRequestRemoteOnly() ); if ( repo.getLocalStorage().containsItem( repo, repoRequest ) )
request.isRequestRemoteOnly()); if (repo.getLocalStorage().containsItem(repo, repoRequest)) { try {