/** * Perform the specified action. * * @param action * @param user * @throws SQLException * @throws IOException */ private void userAction(int action, User user) throws SQLException, IOException { try (FbService service = attachServiceManager()) { ServiceRequestBuffer srb = getUserSRB(service, action, user); setSecurityDatabaseArgument(srb); executeServicesOperation(service, srb); } }
/** * Perform the specified action. * * @param action * @param user * @throws SQLException * @throws IOException */ private void userAction(int action, User user) throws SQLException, IOException { try (FbService service = attachServiceManager()) { ServiceRequestBuffer srb = getUserSRB(service, action, user); setSecurityDatabaseArgument(srb); executeServicesOperation(service, srb); } }
private void connectToServer() { if (iscSvcHandle == null) { fbUserManager.setHost(jtextfieldServer.getText()); fbUserManager.setPort(FirebirdManagerHelper.convertStringToIntDef(jtextfieldPort.getText(), 3050)); fbUserManager.setUser(jtextfieldManagerUsername.getText()); fbUserManager.setPassword(new String(jpasswordfieldManager.getPassword())); try { iscSvcHandle = fbUserManager.attachServiceManager(fbUserManager.getGds()); readUsers(); controlComponents(mode); saveSessionPreferences(); } catch (GDSException e) { JOptionPane.showMessageDialog(null, i18n.ERROR_CANNOT_CONNECT_SERVER); log.error(i18n.ERROR_CANNOT_CONNECT_SERVER); jcheckboxConnectToServer.setSelected(false); } } }
/** * Services API execution for setting and dropping the auto admin role mapping * * @param action * @throws SQLException * @throws IOException */ private void adminRoleAction(int action) throws SQLException, IOException { try (FbService service = attachServiceManager()) { ServiceRequestBuffer srb = service.createServiceRequestBuffer(); srb.addArgument(action); setSecurityDatabaseArgument(srb); executeServicesOperation(service, srb); } }
/** * Services API execution for setting and dropping the auto admin role mapping * * @param action * @throws SQLException * @throws IOException */ private void adminRoleAction(int action) throws SQLException, IOException { try (FbService service = attachServiceManager()) { ServiceRequestBuffer srb = service.createServiceRequestBuffer(); srb.addArgument(action); setSecurityDatabaseArgument(srb); executeServicesOperation(service, srb); } }
IscSvcHandle iscSvcHandle = fbUserManager.attachServiceManager(fbUserManager.getGds()); Map<String,FBUser> mapUsers = null; try {