return new CouchDatabase( uri, dbName, filters );
}
public void publishViews( @Nonnull CouchDatabase couchDatabase ) throws URISyntaxException, IOException, ActionFailedException {
try {
DesignDocumentsProvider provider = getDesignDocumentsProvider();
if ( provider == null ) {
return;
}
List<? extends DesignDocument> designDocuments = provider.getDesignDocuments();
if ( designDocuments.isEmpty() ) {
return;
}
DesignDocumentsUpdater updater = new DesignDocumentsUpdater( couchDatabase );