1 package sellwin.server; 2 3 import sellwin.domain.*; 4 import sellwin.db.*; 5 import sellwin.utils.*; 6 7 import java.rmi.*; 8 import java.rmi.server.*; 9 import java.sql.*; 10 import java.util.*; 11 12 16 21 public class RMIBizServices extends UnicastRemoteObject 22 implements ServerInterface { 23 24 private Login login; 27 28 private BizServices biz; 29 30 public RMIBizServices(String serverName) 31 throws RemoteException { 32 33 super(); 34 try { 35 Naming.rebind(serverName, this); 36 37 String dbType = Prefs.getDatabaseType(); 38 if ((dbType == null) || (!dbType.equals("ORACLE") && !dbType.equals("MYSQL"))) 39 raiseError("Please specify DATABASE_HOST property. ORACLE or MYSQL"); 40 41 if (dbType.equals("ORACLE")) 42 biz = new BizServices(Prefs.ORACLE); 43 else 44 if (dbType.equals("MYSQL")) 45 biz = new BizServices(Prefs.MYSQL); 46 47 String dbHost = Prefs.getDatabaseHost(); 48 if (dbHost == null) 49 raiseError("Please specify DATABASE_HOST property"); 50 51 String dbPort = Prefs.getDatabasePort(); 52 if (dbPort == null) 53 raiseError("Please specify DATABASE_PORT property"); 54 55 String dbName = Prefs.getDatabaseName(); 56 if (dbName == null) 57 raiseError("Please specify DATABASE_NAME property"); 58 59 60 String dbID = Prefs.getDatabaseID(); 61 if (dbID == null) 62 raiseError("Please specify DATABASE_ID property"); 63 64 String dbPassword = Prefs.getDatabasePassword(); 65 if (dbPassword == null) 66 raiseError("Please specify DATABASE_PASSWORD property"); 67 68 String jdbcurl; 69 70 if (dbType.equals("ORACLE")) { 71 jdbcurl = "jdbc:oracle:thin:@" + dbHost + ":" + dbPort + ":" + dbName; 72 System.out.println("JDBC URL: " + jdbcurl); 73 biz.init2Tier(jdbcurl, dbID, dbPassword); 74 } else { 75 jdbcurl ="jdbc:mysql://"+ dbHost + "/" + dbName; 76 System.out.println("JDBC URL: " + jdbcurl); 77 biz.init2Tier(jdbcurl, dbID, dbPassword); 78 } 79 } catch (Exception e) { 80 e.printStackTrace(); 81 } 82 } 83 84 91 public void updateLead(long campPK, Lead l) 92 throws RemoteException, AngError { 93 94 if (Prefs.DEBUG) System.out.println("RMIBizServices.updateLead"); 95 96 biz.updateLead(campPK, l); 97 98 } 99 100 106 public ArrayList getOpportunityIndex(SalesPerson u) 107 throws RemoteException, AngError { 108 109 if (Prefs.DEBUG) System.out.println("RMIBizServices.getOpportunityIndex"); 110 111 return biz.getOpportunityIndex(u); 112 } 113 114 120 public ArrayList getProductMatrix() 121 throws RemoteException, AngError { 122 123 if (Prefs.DEBUG) System.out.println("RMIBizServices.getProductMatrix"); 124 125 return biz.getProductMatrix(); 126 } 127 128 133 public Product getProduct(long pk) 134 throws RemoteException, AngError { 135 136 if (Prefs.DEBUG) System.out.println("RMIBizServices.getProduct"); 137 return biz.getProduct(pk); 138 } 139 140 145 public void updateProduct(Product product) 146 throws RemoteException, AngError { 147 148 if (Prefs.DEBUG) System.out.println("RMIBizServices.updateProduct"); 149 biz.updateProduct(product); 150 } 151 152 158 public ArrayList getProductGroups() 159 throws RemoteException, AngError { 160 161 if (Prefs.DEBUG) System.out.println("RMIBizServices.getProductGroups"); 162 return biz.getProductGroups(); 163 } 164 165 172 public ArrayList getProductLines(String group) 173 throws RemoteException, AngError { 174 175 if (Prefs.DEBUG) System.out.println("RMIBizServices.getProductLines"); 176 return biz.getProductLines(group); 177 } 178 179 186 public ArrayList getProductsForLine(String group, String line) 187 throws RemoteException, AngError { 188 ArrayList prods = null; 189 190 if (Prefs.DEBUG) System.out.println("RMIBizServices.getProductsForLine"); 191 return biz.getProductsForLine(group, line); 192 } 193 194 202 public Product getProduct(String group, String line, String name) 203 throws RemoteException, AngError { 204 205 if (Prefs.DEBUG) System.out.println("RMIBizServices.getProduct"); 206 207 return biz.getProduct(group, line, name); 208 } 209 210 218 public long addForecast(long opportunityPK, Forecast a) 219 throws RemoteException, AngError { 220 221 if (Prefs.DEBUG) System.out.println("RMIBizServices.addForecast"); 222 return biz.addForecast(opportunityPK, a); 223 } 224 225 226 233 public void updateForecast(long oppPK, Forecast a) 234 throws RemoteException, AngError { 235 236 if (Prefs.DEBUG) System.out.println("RMIBizServices.updateForecast"); 237 biz.updateForecast(oppPK, a); 238 } 239 240 246 public void deleteForecast(long opportunityPK, long forecastPK) 247 throws RemoteException, AngError { 248 249 if (Prefs.DEBUG) System.out.println("RMIBizServices.deleteForecast"); 250 biz.deleteForecast(opportunityPK, forecastPK); 251 } 252 253 260 public long addOrder(long oppPK, Order q) 261 throws RemoteException, AngError { 262 263 if (Prefs.DEBUG) System.out.println("RMIBizServices.addOrder"); 264 return biz.addOrder(oppPK, q); 265 } 266 267 273 public void updateOrder(long oppPK, Order q) 274 throws RemoteException, AngError { 275 276 if (Prefs.DEBUG) System.out.println("RMIBizServices.updateOrder"); 277 biz.updateOrder(oppPK, q); 278 } 279 280 287 public long addQuote(long oppPK, Quote q) 288 throws RemoteException, AngError { 289 290 if (Prefs.DEBUG) System.out.println("RMIBizServices.addQuote"); 291 return biz.addQuote(oppPK, q); 292 } 293 294 300 public void updateQuote(long oppPK, Quote q) 301 throws RemoteException, AngError { 302 303 if (Prefs.DEBUG) System.out.println("RMIBizServices.updateQuote"); 304 biz.updateQuote(oppPK, q); 305 } 306 307 313 public void deleteQuote(long oppPK, long quotePK) 314 throws RemoteException, AngError { 315 316 if (Prefs.DEBUG) System.out.println("RMIBizServices.deleteQuote"); 317 biz.deleteQuote(oppPK, quotePK); 318 } 319 320 328 public long addQuoteLine(long oppPK, long quotePK, QuoteLine a) 329 throws RemoteException, AngError { 330 331 if (Prefs.DEBUG) System.out.println("RMIBizServices.addQuoteLine"); 332 return biz.addQuoteLine(oppPK, quotePK, a); 333 } 334 335 342 public void deleteQuoteLine(long oppPK, long quotePK, long linePK) 343 throws RemoteException, AngError { 344 if (Prefs.DEBUG) System.out.println("RMIBizServices.deleteQuoteLine"); 345 biz.deleteQuoteLine(oppPK, quotePK, linePK); 346 } 347 348 357 public ArrayList getAlarms(long salesPersonPK) 358 throws RemoteException, AngError { 359 360 if (Prefs.DEBUG) System.out.println("RMIBizServices.getAlarms"); 361 ArrayList acts = biz.getAlarms(salesPersonPK); 362 System.out.println("RMIBizServices.getAlarms acts="+ acts.size()); 363 return acts; 364 } 365 366 372 public long addActivity(long opportunityPK, Activity a) 373 throws RemoteException, AngError { 374 375 if (Prefs.DEBUG) System.out.println("RMIBizServices.addActivity"); 376 return biz.addActivity(opportunityPK, a); 377 } 378 379 385 public void updateActivity(long oppPK, Activity a) 386 throws RemoteException, AngError { 387 388 if (Prefs.DEBUG) System.out.println("RMIBizServices.updateActivity"); 389 biz.updateActivity(oppPK, a); 390 } 391 392 398 public void deleteActivity(long opportunityPK, long activityPK) 399 throws RemoteException, AngError { 400 401 if (Prefs.DEBUG) System.out.println("RMIBizServices.deleteActivity"); 402 biz.deleteActivity(opportunityPK, activityPK); 403 } 404 405 406 413 public ArrayList getAllUserRoles(java.util.Date lastSyncDate) 414 throws RemoteException, AngError { 415 416 if (Prefs.DEBUG) System.out.println("RMIBizServices.getAllUserRoles"); 417 return biz.getAllUserRoles(lastSyncDate); 418 } 419 420 425 public void loadUserRole(UserRole role) 426 throws RemoteException, AngError { 427 428 if (Prefs.DEBUG) System.out.println("RMIBizServices.loadUserRole"); 429 biz.loadUserRole(role); 430 } 431 432 433 434 439 public void addUserRole(UserRole role) 440 throws RemoteException, AngError { 441 442 if (Prefs.DEBUG) System.out.println("RMIBizServices.addUserRole"); 443 biz.addUserRole(role); 444 } 445 446 447 452 public void deleteUserRole(long pk) 453 throws RemoteException, AngError { 454 455 if (Prefs.DEBUG) System.out.println("RMIBizServices.deleteUserRole"); 456 biz.deleteUserRole(pk); 457 } 458 459 460 465 public void updateUserRole(UserRole role) 466 throws RemoteException, AngError { 467 468 if (Prefs.DEBUG) System.out.println("RMIBizServices.updateUserRole"); 469 biz.updateUserRole(role); 470 } 471 472 473 479 public UserRole getUserRole(String name) 480 throws RemoteException, AngError { 481 482 if (Prefs.DEBUG) System.out.println("RMIBizServices.getUserRole"); 483 return biz.getUserRole(name); 484 } 485 486 487 494 public Login logon(String id, String psw) 495 throws RemoteException, AngError { 496 497 if (Prefs.DEBUG) System.out.println(id + "/" + psw + " BizServices.logon"); 498 System.out.println("before logon call"); 499 return biz.logon(id, psw); 500 } 501 502 507 public void deleteCustomer(Customer cust) 508 throws RemoteException, AngError { 509 510 if (Prefs.DEBUG) System.out.println("RMIBizServices.deleteCustomer"); 511 biz.deleteCustomer(cust); 512 } 513 514 519 public void deleteCustomer(String name) 520 throws RemoteException, AngError { 521 522 if (Prefs.DEBUG) System.out.println("RMIBizServices.deleteCustomer"); 523 biz.deleteCustomer(name); 524 } 525 526 527 532 public void updateCustomer(Customer c) 533 throws RemoteException, AngError { 534 535 if (Prefs.DEBUG) System.out.println("RMIBizServices.udpateCustomer"); 536 biz.updateCustomer(c); 537 } 538 539 544 public void loadCustomer(Customer c) 545 throws RemoteException, AngError { 546 547 if (Prefs.DEBUG) System.out.println("RMIBizServices.loadCustomer"); 548 biz.loadCustomer(c); 549 } 550 551 557 public long addCustomer(Customer c) 558 throws RemoteException, AngError { 559 560 if (Prefs.DEBUG) System.out.println("RMIBizServices.addCustomer"); 561 return biz.addCustomer(c); 562 } 563 564 565 571 public Customer getCustomer(String name) 572 throws RemoteException, AngError { 573 574 if (Prefs.DEBUG) System.out.println("RMIBizServices.getCustomer"); 575 return biz.getCustomer(name); 576 } 577 578 579 584 public Object [] getAllCustomerNames() 585 throws RemoteException, AngError { 586 587 if (Prefs.DEBUG) System.out.println("RMIBizServices.getAllCustomerNames"); 588 return biz.getAllCustomerNames(); 589 } 590 591 597 public StateTax getTax(String code) 598 throws RemoteException, AngError { 599 600 if (Prefs.DEBUG) System.out.println("RMIBizServices.getTax"); 601 return biz.getTax(code); 602 } 603 604 609 public void updateTax(StateTax tax) 610 throws RemoteException, AngError { 611 612 if (Prefs.DEBUG) System.out.println("RMIBizServices.updateTax"); 613 biz.updateTax(tax); 614 } 615 616 620 public void deleteAllTax() 621 throws RemoteException, AngError { 622 623 if (Prefs.DEBUG) System.out.println("RMIBizServices.deleteAllTax"); 624 biz.deleteAllTax(); 625 } 626 627 632 public void loadTax(StateTax row) 633 throws RemoteException, AngError { 634 if (Prefs.DEBUG) System.out.println("RMIBizServices.getStateTax"); 635 biz.loadTax(row); 636 } 637 638 645 public ArrayList getStateTax(java.util.Date lastSyncDate) 646 throws RemoteException, AngError { 647 648 if (Prefs.DEBUG) System.out.println("RMIBizServices.getStateTax"); 649 return biz.getStateTax(lastSyncDate); 650 } 651 652 653 660 public ArrayList getCustomers(java.util.Date lastSyncDate) 661 throws RemoteException, AngError { 662 663 if (Prefs.DEBUG) System.out.println("RMIBizServices.getCustomers"); 664 return biz.getCustomers(lastSyncDate); 665 } 666 667 672 public void loadProduct(Product p) 673 throws RemoteException, AngError { 674 675 if (Prefs.DEBUG) System.out.println("RMIBizServices.loadProduct"); 676 biz.loadProduct(p); 677 } 678 679 684 public void addProduct(Product p) 685 throws RemoteException, AngError { 686 687 if (Prefs.DEBUG) System.out.println("RMIBizServices.addProduct"); 688 biz.addProduct(p); 689 } 690 691 696 public void deleteProduct(Product prod) 697 throws RemoteException, AngError { 698 699 if (Prefs.DEBUG) System.out.println("RMIBizServices.deleteAllProduct"); 700 biz.deleteProduct(prod); 701 } 702 703 704 710 public ArrayList getProducts(java.util.Date afterDate) 711 throws RemoteException, AngError { 712 713 if (Prefs.DEBUG) System.out.println("RMIBizServices.getProducts"); 714 return biz.getProducts(afterDate); 715 } 716 717 718 724 public ArrayList getOpportunityNames(SalesPerson u) 725 throws RemoteException, AngError { 726 727 if (Prefs.DEBUG) System.out.println("RMIBizServices.getOpportunityNames"); 728 return biz.getOpportunityNames(u); 729 } 730 731 732 740 public ArrayList getOpportunities(SalesPerson u, java.util.Date lastSyncDate) 741 throws RemoteException, AngError { 742 743 if (Prefs.DEBUG) System.out.println("RMIBizServices.getOpportunities"); 744 return biz.getOpportunities(u, lastSyncDate); 745 } 746 747 748 754 public Opportunity getOpportunity(long pk) 755 throws RemoteException, AngError { 756 757 if (Prefs.DEBUG) System.out.println("RMIBizServices.getOpportunity"); 758 return biz.getOpportunity(pk); 759 } 760 761 762 767 public void deleteOpportunity(long pk) 768 throws RemoteException, AngError { 769 770 if (Prefs.DEBUG) System.out.println("RMIBizServices.deleteOpportunity"); 771 biz.deleteOpportunity(pk); 772 } 773 774 779 public void loadOpportunity(Opportunity o) 780 throws RemoteException, AngError { 781 782 if (Prefs.DEBUG) System.out.println("RMIBizServices.loadOpportunity"); 783 biz.loadOpportunity(o); 784 } 785 786 792 public long addOpportunity(Opportunity o) 793 throws RemoteException, AngError { 794 795 if (Prefs.DEBUG) System.out.println("RMIBizServices.addOpportunity"); 796 return biz.addOpportunity(o); 797 } 798 799 800 805 public void updateOpportunity(Opportunity o) 806 throws RemoteException, AngError { 807 808 if (Prefs.DEBUG) System.out.println("RMIBizServices.updateOpportunity"); 809 biz.updateOpportunity(o); 810 } 811 812 813 819 public void deleteContact(long oppPk, long contPk) 820 throws RemoteException, AngError { 821 822 if (Prefs.DEBUG) System.out.println("RMIBizServices.deleteContact"); 823 biz.deleteContact(oppPk, contPk); 824 } 825 826 827 833 public void updateContact(long oppPK, Contact c) 834 throws RemoteException, AngError { 835 836 if (Prefs.DEBUG) System.out.println("RMIBizServices.udpateContact"); 837 biz.updateContact(oppPK, c); 838 } 839 840 849 public long addContact(long oppPk, Contact contact) 850 throws RemoteException, AngError { 851 852 if (Prefs.DEBUG) System.out.println("RMIBizServices.addContact"); 853 return biz.addContact(oppPk, contact); 854 } 855 856 857 864 public Object [] getSalesPersons(java.util.Date lastSyncDate) 865 throws RemoteException, AngError { 866 867 if (Prefs.DEBUG) System.out.println("RMIBizServices.getSalesPersons"); 868 return biz.getSalesPersons(lastSyncDate); 869 } 870 871 877 public SalesPerson getSalesPerson(long pk) 878 throws RemoteException, AngError { 879 880 if (Prefs.DEBUG) System.out.println("RMIBizServices.getSalesPerson"); 881 return biz.getSalesPerson(pk); 882 } 883 884 885 890 public void updateSalesPerson(SalesPerson s) 891 throws RemoteException, AngError { 892 893 if (Prefs.DEBUG) System.out.println("RMIBizServices.updateSalesPerson"); 894 biz.updateSalesPerson(s); 895 } 896 897 901 public void deleteAllSalesPerson() 902 throws RemoteException, AngError { 903 904 if (Prefs.DEBUG) System.out.println("RMIBizServices.deleteAllSalesPerson"); 905 biz.deleteAllSalesPerson(); 906 } 907 908 913 public void deleteSalesPerson(SalesPerson per) 914 throws RemoteException, AngError { 915 916 if (Prefs.DEBUG) System.out.println("RMIBizServices.deleteSalesPerson"); 917 biz.deleteSalesPerson(per); 918 } 919 920 925 public void loadSalesPerson(SalesPerson s) 926 throws RemoteException, AngError { 927 928 if (Prefs.DEBUG) System.out.println("RMIBizServices.loadSalesPerson"); 929 biz.loadSalesPerson(s); 930 } 931 932 938 public long addSalesPerson(SalesPerson s) 939 throws RemoteException, AngError { 940 941 if (Prefs.DEBUG) System.out.println("RMIBizServices.addSalesPerson"); 942 return biz.addSalesPerson(s); 943 } 944 945 946 951 public ArrayList getSalesPersonIDs() 952 throws RemoteException, AngError { 953 954 if (Prefs.DEBUG) System.out.println("RMIBizServices.getSalesPersonIDs"); 955 return biz.getSalesPersonIDs(); 956 } 957 958 963 public ArrayList getSalesPersonNames() 964 throws RemoteException, AngError { 965 966 if (Prefs.DEBUG) System.out.println("RMIBizServices.getSalesPersonNames"); 967 return biz.getSalesPersonNames(); 968 } 969 970 971 977 public void addUserToGroup(long userPK, UserGroup group) 978 throws RemoteException, AngError { 979 980 if (Prefs.DEBUG) System.out.println("RMIBizServices.addUserToGroup"); 981 biz.addUserToGroup(userPK, group); 982 } 983 984 985 991 public Object [] getUsersInGroup(String groupName) 992 throws RemoteException, AngError { 993 994 if (Prefs.DEBUG) System.out.println("RMIBizServices.getUsersInGroup"); 995 return biz.getUsersInGroup(groupName); 996 } 997 998 1004 public UserGroup getUserGroup(long pk) 1005 throws RemoteException, AngError { 1006 1007 if (Prefs.DEBUG) System.out.println("RMIBizServices.getUserGroup"); 1008 return biz.getUserGroup(pk); 1009 } 1010 1011 1017 public Object [] getUserGroups(java.util.Date lastSyncDate) 1018 throws RemoteException, AngError { 1019 1020 if (Prefs.DEBUG) System.out.println("RMIBizServices.getUserGroups"); 1021 return biz.getUserGroups(lastSyncDate); 1022 } 1023 1024 1028 public void deleteAllUserGroup() 1029 throws RemoteException, AngError { 1030 1031 if (Prefs.DEBUG) System.out.println("RMIBizServices.deleteAllUserGroups"); 1032 biz.deleteAllUserGroup(); 1033 } 1034 1035 1040 public void loadUserGroup(UserGroup g) 1041 throws RemoteException, AngError { 1042 1043 if (Prefs.DEBUG) System.out.println("RMIBizServices.loadUserGroup"); 1044 biz.loadUserGroup(g); 1045 } 1046 1047 1052 public void addUserGroup(UserGroup g) 1053 throws RemoteException, AngError { 1054 1055 if (Prefs.DEBUG) System.out.println("RMIBizServices.addUserGroup"); 1056 biz.addUserGroup(g); 1057 } 1058 1059 1060 1065 public void deleteUserGroup(String groupName) 1066 throws RemoteException, AngError { 1067 1068 if (Prefs.DEBUG) System.out.println("RMIBizServices.deleteUserGroup"); 1069 biz.deleteUserGroup(groupName); 1070 } 1071 1072 1073 1079 public void deleteUserInGroup(UserGroup g, long userPK) 1080 throws RemoteException, AngError { 1081 1082 if (Prefs.DEBUG) System.out.println("RMIBizServices.deleteUserInGroup"); 1083 biz.deleteUserInGroup(g, userPK); 1084 } 1085 1086 1087 1093 public ArrayList getGroupsForUser(long userPK) 1094 throws RemoteException, AngError { 1095 1096 if (Prefs.DEBUG) System.out.println("RMIBizServices.getGroupsForUser"); 1097 return biz.getGroupsForUser(userPK); 1098 } 1099 1100 1101 1105 public void loadCampaign(Campaign c) 1106 throws RemoteException, AngError { 1107 1108 if (Prefs.DEBUG) System.out.println("RMIBizServices.loadCampaign"); 1109 biz.loadCampaign(c); 1110 } 1111 1112 1118 public Campaign getCampaign(long pk) 1119 throws RemoteException, AngError { 1120 1121 if (Prefs.DEBUG) System.out.println("RMIBizServices.getCampaign"); 1122 return biz.getCampaign(pk); 1123 } 1124 1125 1132 public ArrayList getCampaigns(java.util.Date lastSyncDate) 1133 throws RemoteException, AngError { 1134 1135 if (Prefs.DEBUG) System.out.println("RMIBizServices.getCampaigns"); 1136 return biz.getCampaigns(lastSyncDate); 1137 } 1138 1139 1143 public void deleteAllCampaign() 1144 throws RemoteException, AngError { 1145 1146 if (Prefs.DEBUG) System.out.println("RMIBizServices.deleteAllCampaign"); 1147 biz.deleteAllCampaign(); 1148 } 1149 1150 1151 1156 public Lead getLead(long pk) 1157 throws RemoteException, AngError { 1158 1159 if (Prefs.DEBUG) System.out.println("RMIBizServices.getLead"); 1160 return biz.getLead(pk); 1161 } 1162 1163 1169 public ArrayList getCampaignLeads(long campaignPK) 1170 throws RemoteException, AngError { 1171 1172 if (Prefs.DEBUG) System.out.println("RMIBizServices.getCampaignLeads"); 1173 return biz.getCampaignLeads(campaignPK); 1174 } 1175 1176 1183 public ArrayList getCampaignLeads(java.util.Date lastSyncDate) 1184 throws RemoteException, AngError { 1185 1186 if (Prefs.DEBUG) System.out.println("RMIBizServices.getCampaignLeads all"); 1187 return biz.getCampaignLeads(lastSyncDate); 1188 } 1189 1190 1198 public void uploadDeletes(ArrayList deletes) 1199 throws RemoteException, AngError { 1200 1201 if (Prefs.DEBUG) System.out.println("RMIBizServices.getCampaignLeads"); 1202 biz.uploadDeletes(deletes); 1203 } 1204 1205 1211 public long addCustomerInventory(CustomerInventory c) 1212 throws RemoteException, AngError { 1213 1214 if (Prefs.DEBUG) System.out.println("RMIBizServices.addCustomerInventory"); 1215 return biz.addCustomerInventory(c); 1216 } 1217 1218 1223 public void deleteCustomerInventory(CustomerInventory ci) 1224 throws RemoteException, AngError { 1225 1226 if (Prefs.DEBUG) System.out.println("RMIBizServices.deleteCustomerInventory"); 1227 biz.deleteCustomerInventory(ci); 1228 } 1229 1230 1236 public ArrayList getCustomerInventory(long custPK) 1237 throws RemoteException, AngError { 1238 1239 if (Prefs.DEBUG) System.out.println("RMIBizServices.getCustomerInventory"); 1240 return biz.getCustomerInventory(custPK); 1241 } 1242 1243 1246 public void deleteAllUserRole() 1247 throws RemoteException, AngError { 1248 1249 if (Prefs.DEBUG) System.out.println("RMIBizServices.deleteAllUserRole"); 1250 biz.deleteAllUserRole(); 1251 } 1252 1253 1256 public ArrayList getGroupMembers(java.util.Date lastSyncDate) 1257 throws RemoteException, AngError { 1258 1259 if (Prefs.DEBUG) System.out.println("RMIBizServices.getGroupMembers"); 1260 return biz.getGroupMembers(lastSyncDate); 1261 } 1262 1263 1266 public UserGroupMember getGroupMember(long pk) 1267 throws RemoteException, AngError { 1268 1269 if (Prefs.DEBUG) System.out.println("RMIBizServices.getGroupMember"); 1270 return biz.getGroupMember(pk); 1271 } 1272 1273 1276 public void loadGroupMember(UserGroupMember ugm) 1277 throws RemoteException, AngError { 1278 1279 if (Prefs.DEBUG) System.out.println("RMIBizServices.loadGroupMember"); 1280 biz.loadGroupMember(ugm); 1281 } 1282 1283 1286 private void loadLead(Lead lead) 1287 throws RemoteException, AngError { 1288 1289 if (Prefs.DEBUG) System.out.println("RMIBizServices.loadLead"); 1290 biz.loadLead(lead); 1291 } 1292 1293 1296 private void raiseError(String msg) { 1297 System.out.println(msg); 1298 System.exit(1); 1299 } 1300 1301} 1302 | Popular Tags |