Examples of CouchDesignDocument


Examples of ca.carleton.gcrc.couch.client.CouchDesignDocument

  private void initExport(ServletContext servletContext) throws ServletException {
   
    try {
      ExportConfiguration config = new ExportConfiguration();
      config.setCouchDb(couchDb);
      CouchDesignDocument atlasDesign = couchDb.getDesignDocument("atlas");
      config.setAtlasDesignDocument(atlasDesign);
      servletContext.setAttribute(ExportConfiguration.CONFIGURATION_KEY, config);

    } catch(Exception e) {
      logger.error("Error configuring export service",e);
View Full Code Here

Examples of ca.carleton.gcrc.couch.client.CouchDesignDocument

        // Submission DB name
        String submissionDbName = atlasProperties.getCouchDbSubmissionDbName();

        CouchDb submissionDb = couchClient.getDatabase(submissionDbName);
        CouchDesignDocument submissionDesign = submissionDb.getDesignDocument("submission");

        CouchUserDb userDb = couchClient.getUserDatabase();
       
        SubmissionRobotSettings settings = new SubmissionRobotSettings();
        settings.setAtlasName(atlasProperties.getAtlasName());
View Full Code Here

Examples of ca.carleton.gcrc.couch.client.CouchDesignDocument

    try {
      ExportConfiguration config = new ExportConfiguration();
      CouchDb couchDb = couchDd.getDatabase();
      config.setCouchDb(couchDb);
      CouchDesignDocument atlasDesign = couchDb.getDesignDocument("atlas");
      config.setAtlasDesignDocument(atlasDesign);
      servletContext.setAttribute(ExportConfiguration.CONFIGURATION_KEY, config);

    } catch(Exception e) {
      logger.error("Error configuring export service",e);
View Full Code Here

Examples of ca.carleton.gcrc.couch.client.CouchDesignDocument

  private void initExport(ServletContext servletContext) throws ServletException {
   
    try {
      ExportConfiguration config = new ExportConfiguration();
      config.setCouchDb(couchDb);
      CouchDesignDocument atlasDesign = couchDb.getDesignDocument("atlas");
      config.setAtlasDesignDocument(atlasDesign);
      servletContext.setAttribute(ExportConfiguration.CONFIGURATION_KEY, config);

    } catch(Exception e) {
      logger.error("Error configuring export service",e);
View Full Code Here

Examples of ca.carleton.gcrc.couch.client.CouchDesignDocument

    if( false == couchDb.documentExists(DD_ID) ) {
      throw new Exception("Design document "+DD_ID+" was not found");
    }

    CouchDesignDocument dd = couchDb.getDesignDocument(DD_NAME);
    return new UserDesignDocumentImpl(dd);
  }
View Full Code Here

Examples of ca.carleton.gcrc.couch.client.CouchDesignDocument

    }
   
    // Add documents marked as skeleton
    {
      logger.debug("Obtain list of documents from skeleton-docs view");
      CouchDesignDocument designDoc = couchDb.getDesignDocument("atlas");
      CouchQuery query = new CouchQuery();
      query.setViewName("skeleton-docs");
      CouchQueryResults results = designDoc.performQuery(query);
      List<JSONObject> rows = results.getRows();
      for(JSONObject row : rows){
        String docId = row.getString("id");
        docIds.add(docId);
      }
View Full Code Here

Examples of ca.carleton.gcrc.couch.client.CouchDesignDocument

        PdfFileConverter pdfPlugin = new PdfFileConverter(props);
        pdfPlugin.setAtlasName(atlasProperties.getAtlasName());
        uploadWorker.addConversionPlugin( pdfPlugin );
      }
      if( null != submissionDb ){
        CouchDesignDocument submissionDbDesign = submissionDb.getDesignDocument("submission");
        uploadWorker.setSubmissionDbDesign(submissionDbDesign);
      }
      uploadWorker.start();
    } catch (Exception e) {
      logger.error("Error starting upload worker",e);
View Full Code Here

Examples of ca.carleton.gcrc.couch.client.CouchDesignDocument

  private void initSubmissionRobot(ServletContext servletContext) throws ServletException {
   
    try {
      // Is submission DB enabled
      if( null != submissionDb ){
        CouchDesignDocument submissionDesign = submissionDb.getDesignDocument("submission");

        SubmissionRobotSettings settings = new SubmissionRobotSettings();
        settings.setAtlasName(atlasProperties.getAtlasName());
        settings.setDocumentDesignDocument(couchDd);
        settings.setSubmissionDesignDocument(submissionDesign);
View Full Code Here

Examples of ca.carleton.gcrc.couch.client.CouchDesignDocument

    try {
      ExportConfiguration config = new ExportConfiguration();
      CouchDb couchDb = couchDd.getDatabase();
      config.setCouchDb(couchDb);
      CouchDesignDocument atlasDesign = couchDb.getDesignDocument("atlas");
      config.setAtlasDesignDocument(atlasDesign);
      servletContext.setAttribute(ExportConfiguration.CONFIGURATION_KEY, config);

    } catch(Exception e) {
      logger.error("Error configuring export service",e);
View Full Code Here

Examples of ca.carleton.gcrc.couch.client.CouchDesignDocument

    try {
      DateServletConfiguration config = new DateServletConfiguration();
      CouchDb couchDb = couchDd.getDatabase();
      config.setCouchDb(couchDb);
      CouchDesignDocument atlasDesign = couchDb.getDesignDocument("atlas");
      config.setAtlasDesignDocument(atlasDesign);
      servletContext.setAttribute(DateServletConfiguration.CONFIGURATION_KEY, config);

    } catch(Exception e) {
      logger.error("Error configuring export service",e);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.