Tabnine Logo
CouchDocumentOptions
Code IndexAdd Tabnine to your IDE (free)

How to use
CouchDocumentOptions
in
ca.carleton.gcrc.couch.client

Best Java code snippets using ca.carleton.gcrc.couch.client.CouchDocumentOptions (Showing top 4 results out of 315)

origin: ca.carleton.gcrc/nunaliit2-couch-submission

public JSONObject deleteDocument(
    CouchAuthenticationContext authContext 
    ,String dbIdentifier 
    ,String docId 
    ,String rev
    ) throws Exception {
  
  if( "submissionDb".equals(dbIdentifier) ) {
    if( null == docId || null == rev ){
      throw new Exception("Document identifier and revision must be specified");
    }
    
    JSONObject originalDoc = null;
    {
      CouchDocumentOptions options = new CouchDocumentOptions();
      options.setRevision( rev );
      originalDoc = documentCouchDb.getDocument(docId, options);
    }
    
    JSONObject submissionRequest = buildSubmissionRequest(authContext, null, originalDoc);
    
    JSONObject result = submissionDesign.getDatabase().createDocument(submissionRequest);
    
    return result;
  } else {
    throw new Exception("Only operations against 'submissionDb' are accepted");
  }
}
origin: ca.carleton.gcrc/nunaliit2-couch-client

if( null != options.getRevision() ){
  parameters.add( new UrlParameter("rev",options.getRevision()) );
if( options.isRevsInfo() ){
  parameters.add( new UrlParameter("revs_info","true") );
if( options.isRevisions() ){
  parameters.add( new UrlParameter("revs","true") );
if( options.isConflicts() ){
  parameters.add( new UrlParameter("conflicts","true") );
if( options.isDeletedConflicts() ){
  parameters.add( new UrlParameter("deleted_conflicts","true") );
origin: ca.carleton.gcrc/nunaliit2-couch-client

if( options.isRevsInfo() ){
  parameters.add( new UrlParameter("revs_info","true") );
if( options.isRevisions() ){
  parameters.add( new UrlParameter("revs","true") );
if( options.isConflicts() ){
  parameters.add( new UrlParameter("conflicts","true") );
if( options.isDeletedConflicts() ){
  parameters.add( new UrlParameter("deleted_conflicts","true") );
origin: ca.carleton.gcrc/nunaliit2-couch-submission

CouchDocumentOptions options = new CouchDocumentOptions();
options.setRevision( doc.getString("_rev") );
originalDoc = documentCouchDb.getDocument(docId, options);
ca.carleton.gcrc.couch.clientCouchDocumentOptions

Most used methods

  • <init>
  • getRevision
  • isConflicts
  • isDeletedConflicts
  • isRevisions
  • isRevsInfo
  • setRevision

Popular in Java

  • Reactive rest calls using spring rest template
  • notifyDataSetChanged (ArrayAdapter)
  • setRequestProperty (URLConnection)
  • getResourceAsStream (ClassLoader)
  • Kernel (java.awt.image)
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • JTable (javax.swing)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now