/** * 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); } }
/** * 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); } }