@SuppressWarnings( "unchecked" ) private void updateRepositoryReferences( RepositoryProvider provider, RemoteRepository repo, RemoteRepositoryConfiguration cfg, Configuration configuration) throws RepositoryException { if ( repo instanceof EditableRemoteRepository && repo.getContent() == null) { EditableRemoteRepository editableRepo = (EditableRemoteRepository) repo; editableRepo.setContent( repositoryContentFactory.getRemoteRepositoryContent( repo ) ); if (repo.supportsFeature(IndexCreationFeature.class) && repo.getIndexingContext()==null ) { createIndexingContext(editableRepo); } } }
if ( remoteRepository.supportsFeature( RemoteIndexFeature.class ) )
return; if (!remoteRepo.supportsFeature(RemoteIndexFeature.class)) { log.warn("ignore scheduleDownloadRemote for repo with id {}. Does not support remote index.", repositoryId); return;
throw new RepositoryException("Bad repository type"); if (!this.remoteRepository.supportsFeature(RemoteIndexFeature.class)) { throw new RepositoryException("Repository does not support RemotIndexFeature "+remoteRepository.getId());
if ( remoteRepository.supportsFeature( RemoteIndexFeature.class ) )