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

Examples of org.ejbca.core.model.ra.userdatasource.UserDataSourceException


      Iterator<String> iter = userDataSourceNames.iterator();
      while(iter.hasNext()){
        String nextName = iter.next();
        int id = userDataSourceSession.getUserDataSourceId(admin, nextName);
        if(id == 0){
          throw new UserDataSourceException("Error: User Data Source with name : " + nextName + " couldn't be found, aborting operation.");
        }
        userDataSourceIds.add(Integer.valueOf(id));
      }
      ret = userDataSourceSession.removeUserData(admin, userDataSourceIds, searchString, removeMultipleMatch);
        } catch (RuntimeException e) {  // EJBException, ClassCastException, ...
View Full Code Here


          }
        } else {
          String msg = intres.getLocalizedMessage("userdatasource.erroruserdatasourceexist", id);             
          logSession.log(admin, admin.getCaId(), LogConstants.MODULE_RA, new java.util.Date(), null, null,
              LogConstants.EVENT_ERROR_USERDATAFETCHED, msg);
          throw new UserDataSourceException(msg);
        }
      }
        return result;
    }
View Full Code Here

          }
        } else {
          String msg = intres.getLocalizedMessage("userdatasource.erroruserdatasourceexist", id);             
          logSession.log(admin, admin.getCaId(), LogConstants.MODULE_RA, new java.util.Date(), null, null,
              LogConstants.EVENT_ERROR_USERDATAREMOVED, msg);
          throw new UserDataSourceException(msg);
        }
      }
      return retval;
    }
View Full Code Here

TOP

Related Classes of org.ejbca.core.model.ra.userdatasource.UserDataSourceException

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.