Package ca.carleton.gcrc.couch.client

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


    CouchUserContext submitter = null;
   
    String submitterName = getSubmitterName();
    if( null != submitterName ) {
      try {
        CouchUserDb userDb = context.getClient().getUserDatabase();
        submitter = userDb.getUserFromName(submitterName);
      } catch(Exception e) {
        logger.error("Unable to obtain submitter information",e);
        // Ignore error
      }
    }
View Full Code Here


    CouchUserContext submitter = null;
   
    String submitterName = getSubmitterName();
    if( null != submitterName ) {
      try {
        CouchUserDb userDb = context.getClient().getUserDatabase();
        submitter = userDb.getUserFromName(submitterName);
      } catch(Exception e) {
        logger.error("Unable to obtain submitter information");
        // Ignore error
      }
    }
View Full Code Here

    CouchUserContext submitter = null;
   
    String submitterName = getSubmitterName();
    if( null != submitterName ) {
      try {
        CouchUserDb userDb = context.getClient().getUserDatabase();
        submitter = userDb.getUserFromName(submitterName);
      } catch(Exception e) {
        logger.error("Unable to obtain submitter information");
        // Ignore error
      }
    }
View Full Code Here

        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());
        settings.setDocumentDesignDocument(couchDd);
        settings.setSubmissionDesignDocument(submissionDesign);
View Full Code Here

  }

  private void initUser(ServletContext servletContext) throws ServletException {
   
    try {
      CouchUserDb userDb = couchClient.getUserDatabase();
      servletContext.setAttribute(UserServlet.ConfigAttributeName_UserDb, userDb);
      servletContext.setAttribute(
        UserServlet.ConfigAttributeName_AtlasName
        ,atlasProperties.getAtlasName()
        );
View Full Code Here

    return new File(mediaDir, fileName);
  }

  @Override
  public CouchAuthenticationContext getUserFromName(String userName) throws Exception {
    CouchUserDb userDb = getClient().getUserDatabase();
    return userDb.getUserFromName(userName);
  }
View Full Code Here

    CouchUserContext submitter = null;
   
    String submitterName = getSubmitterName();
    if( null != submitterName ) {
      try {
        CouchUserDb userDb = context.getClient().getUserDatabase();
        submitter = userDb.getUserFromName(submitterName);
      } catch(Exception e) {
        logger.error("Unable to obtain submitter information");
        // Ignore error
      }
    }
View Full Code Here

    CouchUserContext submitter = null;
   
    String submitterName = getSubmitterName();
    if( null != submitterName ) {
      try {
        CouchUserDb userDb = context.getClient().getUserDatabase();
        submitter = userDb.getUserFromName(submitterName);
      } catch(Exception e) {
        logger.error("Unable to obtain submitter information");
        // Ignore error
      }
    }
View Full Code Here

TOP

Related Classes of ca.carleton.gcrc.couch.client.CouchUserDb

Copyright © 2018 www.massapicom. 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.