Package org.ejbca.core.model.ra.userdatasource

Examples of org.ejbca.core.model.ra.userdatasource.BaseUserDataSource.testConnection()


      UserDataSourceData pdl = UserDataSourceData.findById(entityManager, userdatasourceid);
      if (pdl != null) {
          BaseUserDataSource userdatasource = getUserDataSource(pdl);
          if(isAuthorizedToEditUserDataSource(admin,userdatasource)){
            try {
              userdatasource.testConnection(admin);
              String msg = intres.getLocalizedMessage("userdatasource.testedcon", pdl.getName());             
              logSession.log(admin, admin.getCaId(), LogConstants.MODULE_RA, new java.util.Date(), null,
                  null, LogConstants.EVENT_INFO_USERDATASOURCEDATA,msg);
            } catch (UserDataSourceConnectionException pe) {
              String msg = intres.getLocalizedMessage("userdatasource.errortestcon", pdl.getName());             
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.