dangsn
2024-12-26 4e9ff2ce6a830bb2340d7c8612c72eea0c5a553e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
package com.vci.server.framework;
 
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
 
import com.vci.common.ServiceNames;
import com.vci.common.exception.VciException;
import com.vci.common.log.ServerWithLog4j;
import com.vci.common.resource.CommonProperties;
import com.vci.common.utility.ObjectUtility;
import com.vci.corba.common.VCIError;
import com.vci.corba.framework.data.AppConfigCategoryInfo;
import com.vci.corba.framework.data.AppConfigDetailInfo;
import com.vci.corba.framework.data.CombinationInfo;
import com.vci.corba.framework.data.CombinationValueInfo;
import com.vci.corba.framework.data.DataSourceInfo;
import com.vci.corba.framework.data.DeptInfo;
import com.vci.corba.framework.data.FuncOperationInfo;
import com.vci.corba.framework.data.FunctionInfo;
import com.vci.corba.framework.data.MachSecurityInfo;
import com.vci.corba.framework.data.OperateInfo;
import com.vci.corba.framework.data.PasswordStrategyInfo;
import com.vci.corba.framework.data.PvolumeInfo;
import com.vci.corba.framework.data.RoleInfo;
import com.vci.corba.framework.data.RoleRightInfo;
import com.vci.corba.framework.data.SpecialCharClsfInfo;
import com.vci.corba.framework.data.SpecialCharInfo;
import com.vci.corba.framework.data.SpecialtyInfo;
import com.vci.corba.common.data.UserEntityInfo;
import com.vci.corba.framework.data.UserInfo;
import com.vci.corba.framework.data.UserLogonInfo;
import com.vci.corba.framework.FrameworkService;
import com.vci.server.BaseService;
import com.vci.corba.framework.data.CheckValue;
import com.vci.corba.framework.data.GrandValue;
import com.vci.server.framework.delegate.AppConfigCategoryDelegate;
import com.vci.server.framework.delegate.AppConfigDetailDelegate;
import com.vci.server.framework.delegate.DataTypeRightDelegate;
import com.vci.server.framework.delegate.FuncOperationDelegate;
import com.vci.server.framework.delegate.FunctionDelegate;
import com.vci.server.framework.delegate.MachSecurityDelegate;
import com.vci.server.framework.delegate.OperateDelegate;
import com.vci.server.framework.delegate.RightManagementDelegate;
import com.vci.server.framework.delegate.RoleRightDelegate;
import com.vci.server.framework.delegate.SystemCfgDelegate;
import com.vci.server.framework.volume.delegate.PvolumeDelegate;
import com.zeroc.Ice.Current;
 
/**
 * <p>Title: </p>
 * <p>Copyright: Copyright (c) 2011</p>
 * <p>Company: VCI</p>
 * @author Administrator
 * @time 2011-6-3
 * @version 1.0
 */
public class FrameworkServiceImpl extends BaseService implements FrameworkService {
    
    private RightManagementDelegate rightmanagementDelegate = new RightManagementDelegate(); //权限的delegate
    
    public FrameworkServiceImpl() {
//        AppConfigDetailCatch.InitCatch();
//        UserCacheUtil.initCache();
//        DeptCacheUtil.initCache();
//        RoleCacheUtil.initCache();
    }
    
 
    @Override
    public String getServiceName() {
        return ServiceNames.FRAMESERVICE;
    }
    
    
    @Override
    public boolean test(com.zeroc.Ice.Current current) {
        String op = current.operation;
        String adapter = current.adapter.getName();
        String id = current.id.name;
        String time = new Date().toString();
        System.out.println(String.format("== %s [FrameworkService.test] (adapter=%s, id=%s, op=%s)",  time, adapter, id, op));
        
        return true;
    }
    
    /**
     * 验证用户登录
     */
    @Override
    public UserInfo checkLogin(String userName, String password, com.zeroc.Ice.Current current)
            throws VCIError {
        return rightmanagementDelegate.checkLogin(userName,password);
    }
 
    @Override
    public UserInfo checkLoginForBS(String userName, String password, com.zeroc.Ice.Current current)
            throws VCIError {
        return rightmanagementDelegate.checkLoginForBS(userName,password);
    }
    
    @Override
    public UserInfo getUserObjectByUserName(String userName, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.getUserObjectByUserName(userName);
    }
    
    @Override
    public UserInfo checkByToken(String token, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.loginByToken(token);
    }
    
    @Override
    public String getConfigValue(String key, com.zeroc.Ice.Current current) throws VCIError {
        return new SystemCfgDelegate().getConfigValue(key);
    }
 
    
//    /*-------------------日志管理模块---------------------*/
//    
//    /**
//     * 初始化日志模块时检查是否配置了自动删除
//     */
//    @Override
//    public boolean getIsAutoDelete(com.zeroc.Ice.Current current) throws VCIError {
//        LogManagementDelegate logDel = new LogManagementDelegate();
//        boolean res = false;
//        res = logDel.getIsAutoDelete();
//        return res;
//    }
//
//
//
//    /**
//     * 获取配置好的日志查询页面显示条数
//     */
//    @Override
//    public long getPageSize(com.zeroc.Ice.Current current) throws VCIError {
//        LogManagementDelegate logDel = new LogManagementDelegate();
//        return logDel.getPageSize();
//    }
//
//    /**
//     * 获取当前查询日志的总条�?
//     */
//    @Override
//    public long getSumLogRows(String sql, com.zeroc.Ice.Current current) throws VCIError {
//        LogManagementDelegate logDel = new LogManagementDelegate();
//        return logDel.getSumLogRows(sql);
//    }
//
//
//
//    /**
//     * 获取当前保存/备份期限
//     */
//    @Override
//    public long getCurPeriod(String type, com.zeroc.Ice.Current current) throws VCIError {
//        LogManagementDelegate logDel = new LogManagementDelegate();
//        return logDel.getCurPeriod(type);
//    }
//
//    /**
//     * 手动删除日志
//     */
//    @Override
//    public boolean deleteLog(String deleteDate, com.zeroc.Ice.Current current) throws VCIError {
//        LogManagementDelegate logDel = new LogManagementDelegate();
//        return logDel.deleteLog(deleteDate);
//    }
//    
    
 
    /**
     * 保存特殊字符分类
     */
    @Override
    public String saveSpecialCharClsf(SpecialCharClsfInfo specialCharClsfInfo,
            UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError {
        SystemCfgDelegate sysCfgDel = new SystemCfgDelegate();
        return sysCfgDel.saveSpecialCharClsf(specialCharClsfInfo, userEntityInfo);
    }
 
    /**
     * 删除特殊字符分类
     */
    @Override
    public boolean deletSpecialCharClsf(String[] ids,
            UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError {
        SystemCfgDelegate sysCfgDel = new SystemCfgDelegate();
        return sysCfgDel.deletSpecialCharClsf(ids, userEntityInfo);
    }
 
    /**
     * 更新特殊字符分类
     */
    @Override
    public boolean updateSpecialCharClsf(
            SpecialCharClsfInfo specialCharClsfInfo,
            UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError {
        SystemCfgDelegate sysCfgDel = new SystemCfgDelegate();
        return sysCfgDel.updateSpecialCharClsf(specialCharClsfInfo, userEntityInfo);
    }
 
    /**
     * 获取所有特殊字符分�?
     */
    public SpecialCharClsfInfo[] getSpecialCharClsfList(int pageNo,int pageSize, com.zeroc.Ice.Current current)
            throws VCIError {
        SystemCfgDelegate sysCfgDel = new SystemCfgDelegate();
        return sysCfgDel.getSpecialCharClsfList(pageNo,pageSize);
    }
    
    /***
     * 根据字符分类获取字符
     */
    @Override
    public SpecialCharInfo[] getBychar(String plscsfoId, com.zeroc.Ice.Current current) throws VCIError {
        SystemCfgDelegate sysCfgDel = new SystemCfgDelegate();
        return sysCfgDel.getBychar(plscsfoId);
    }
    
    /**
     * 获取所有特殊字符分�?
     */
    public SpecialCharClsfInfo[] getSpecialCharClsfList(com.zeroc.Ice.Current current)
            throws VCIError {
        SystemCfgDelegate sysCfgDel = new SystemCfgDelegate();
        return sysCfgDel.getSpecialCharClsfList();
    }
 
    /**
     * 保存特殊字符
     */
    public String saveSpecialChar(SpecialCharInfo[] specialCharInfos,
            UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError {
        SystemCfgDelegate sysCfgDel = new SystemCfgDelegate();
        return sysCfgDel.saveSpecialChar(specialCharInfos, userEntityInfo);
    }
 
    /**
     * 删除特殊字符
     */
    public boolean deletSpecialChar(String[] ids, UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current)
            throws VCIError {
        SystemCfgDelegate sysCfgDel = new SystemCfgDelegate();
        return sysCfgDel.deletSpecialChar(ids, userEntityInfo);
    }
    
    /**
     * 根据PID删除特殊字符
     */
    public boolean deleteSpecialCharByParentId(String id, UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current)
            throws VCIError {
        SystemCfgDelegate sysCfgDel = new SystemCfgDelegate();
        return sysCfgDel.deleteSpecialCharByParentId(id, userEntityInfo);
    }
 
    /**
     * 更新特殊字符
     */
    public boolean updateSpecialChar(SpecialCharInfo specialCharInfo,
            UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError {
        SystemCfgDelegate sysCfgDel = new SystemCfgDelegate();
        return sysCfgDel.updateSpecialChar(specialCharInfo, userEntityInfo);
    }
 
    /**
     * 获取特殊字符
     */
    public SpecialCharInfo[] fetchSpecialChar(String classId, com.zeroc.Ice.Current current) throws VCIError {
        SystemCfgDelegate sysCfgDel = new SystemCfgDelegate();
        return sysCfgDel.fetchSpecialChar(classId);
    }
 
    /**
     * 获取随机数ID
     */
    public String getRandomGUID36(com.zeroc.Ice.Current current) throws VCIError {
        String id = "";
        try {
            id = ObjectUtility.getNewObjectID36();
        } catch (Exception e) {
            throw new VCIError("150113", new String[0]);//连接服务器时发生异常!
        }
        return id;
    }
 
 
 
    @Override
    public DeptInfo[] fetchDepartmentInfo(com.zeroc.Ice.Current current) throws VCIError {
         return rightmanagementDelegate.fetchDepartmentInfo();
    }
    
    @Override
    public DeptInfo[] fetchDeptByUserNames(String[] userNames, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.fetchDeptByUserNames(userNames);
    }
 
    @Override
    public DeptInfo fetchDepartmentInfoById(String id, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.fetchDepartmentInfoById(id);
    }
    
    @Override
    public DeptInfo[] fetchDepartmentInfoRoot(com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.fetchDepartmentInfoRoot();
    }
 
    @Override
    public DeptInfo[] fetchDepartmentInfoByParentId(String prtoid, com.zeroc.Ice.Current current)
            throws VCIError {
        return rightmanagementDelegate.fetchDepartmentInfoByParentId(prtoid);
    }
 
    @Override
    public DeptInfo[] fetchDepartmentInfosById(String id, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.fetchDepartmentInfosById(id);
    }
    @Override
    public DeptInfo[] fetchDepartmentInfosBySonId(String id, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.fetchDepartmentInfosBySonId(id);
    }
 
    @Override
    public RoleInfo fetchRoleInfoById(String roleId, com.zeroc.Ice.Current current) throws VCIError {
         return rightmanagementDelegate.fetchRoleInfoById(roleId);
    }
    @Override
    public RoleInfo fetchRoleByName(String name, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.fetchRoleByName(name);
    }
    @Override
    public RoleInfo[] fetchRoleInfo(com.zeroc.Ice.Current current) throws VCIError {
         return rightmanagementDelegate.fetchRoleInfo();
    }
 
    @Override
    public RoleInfo[] fetchRoleInfoByType(short type, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.fetchRoleInfoByType((int)type);
    }
    
    @Override
    public RoleInfo[] fetchRoleInfoByRoleType(short type, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.fetchRoleInfoByRoleType(type);
    }
 
    @Override
    public UserInfo[] fetchUserInfo(com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.fetchUserInfo();
    }
    
    @Override
    public UserInfo[] fetchUserInfoWithOutSanYuan(com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.fetchUserInfoWithOutSanYuan();
    }
 
    @Override
    public UserInfo[] fetchUserInfoByCondition(String searchName, String searchUserName,
            String deptId, String roleId, String userName,long pageNo,long pageSize, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.fetchUserInfoByCondition(searchName,searchUserName,deptId,roleId,userName,(int)pageNo,(int)pageSize);
    }
 
    @Override
    public UserInfo[] fetchUserInfoByType(short type, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.fetchUserInfoByType(type);
    }
 
    @Override
    public UserInfo fetchUserInfoByName(String userName, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.fetchUserInfoByName(userName);
    }
 
    @Override
    public UserInfo[] fetchUserInfoByRoleId(String roleId, short type, com.zeroc.Ice.Current current)
            throws VCIError {
        return rightmanagementDelegate.fetchUserInfoByRoleId(roleId ,type);
    }
    @Override
    public UserInfo[] fetchUsersByRoleId(String roleId, com.zeroc.Ice.Current current)
            throws VCIError {
        return rightmanagementDelegate.fetchUsersByRoleId(roleId);
    }
    
    public UserInfo[] fetchUserInfoByDeptAndRole(String[] deptIds, String[] roleIds, com.zeroc.Ice.Current current)
            throws VCIError {
        return rightmanagementDelegate.fetchUserInfoByDeptAndRole(deptIds ,roleIds);
    }
 
    @Override
    public boolean saveRight(String roleId, String[] userIds,
            UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.saveRight(roleId , userIds, userEntityInfo);
    }
    
    @Override
    public boolean saveRighForDept(String deptId, String[] userIds,
            UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.saveRighForDept(deptId , userIds, userEntityInfo);
    }
    public boolean saveRights(String[] roleIds, String[] userIds,
            UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.saveRights(roleIds , userIds, userEntityInfo);
    }
 
    @Override
    public String saveDepartment(DeptInfo deptInfo,
            UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.saveDepartment(deptInfo,userEntityInfo);
    }
    
    @Override
    public boolean batchSaveDepart(DeptInfo[] deptInfo, UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.batchSaveDepart(deptInfo, userEntityInfo);
    }
 
    @Override
    public String saveRole(RoleInfo roleInfo,UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current)
            throws VCIError {
        return rightmanagementDelegate.saveRole(roleInfo,userEntityInfo);
    }
 
    @Override
    public UserInfo[] selectUserByRoleId(String roleId, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.selectUserByRoleId(roleId);
    }
    
    @Override
    public long checkRoleIsquotedCount(String id, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.checkRoleIsquotedCount(id);
    }
 
    @Override
    public String saveUser(UserInfo userInfo,UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current)
            throws VCIError {
        return rightmanagementDelegate.saveUser(userInfo,userEntityInfo);
    }
    
    @Override
    public boolean batchSaveUsers(UserInfo[] userInfos,
            String[][] deptAndUserRelation, UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current)
            throws VCIError {
        for(UserInfo userInfo : userInfos){
            rightmanagementDelegate.saveUser(userInfo,userEntityInfo);
        }
        for(String[] userDept : deptAndUserRelation){
            String[] userIds = new String[]{userDept[0]};
            String deptId = userDept[1];
            rightmanagementDelegate.saveUserDept(userIds , deptId, userEntityInfo);
        }
        return true;
    }
    @Override
    public boolean updateDepartment(DeptInfo deptInfo,
            UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.updateDepartment(deptInfo, userEntityInfo);
    }
 
    @Override
    public boolean updateRole(RoleInfo roleInfo, UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current)
            throws VCIError {
        return rightmanagementDelegate.updateRole(roleInfo, userEntityInfo);
    }
 
    @Override
    public boolean saveOrUpdateUser(UserInfo userInfo, UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current)
            throws VCIError {
        return rightmanagementDelegate.saveOrUpdateUser(userInfo, userEntityInfo);
    }
    @Override
    public boolean updateUser(UserInfo userInfo, UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current)
            throws VCIError {
        return rightmanagementDelegate.updateUser(userInfo, userEntityInfo);
    }
    
    @Override
    public String modifyUserPassword(String idUser, String oldPW, String newPW, UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current)
            throws VCIError {
        //System.out.println("======modifyUserPassword======");
        return rightmanagementDelegate.modifyUserPassword(idUser, oldPW, newPW, userEntityInfo);
    }
    @Override
    public boolean deleteDepartment(String[] ids, UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current)
            throws VCIError {
        return rightmanagementDelegate.deleteDepartment(ids,userEntityInfo);
    }
    
    @Override
    public boolean updateDeptParentId(String id, String parentId, UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.updateDeptParentId(id, parentId, userEntityInfo);
    }
 
    @Override
    public boolean deleteRole(String[] ids, UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current)
            throws VCIError {
        return rightmanagementDelegate.deleteRole(ids,userEntityInfo);
    }
 
    @Override
    public boolean deleteUser(String[] ids, UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current)
            throws VCIError {
        return rightmanagementDelegate.deleteUser(ids,userEntityInfo);
    }
    @Override
    public UserInfo[] getUserByDeptId(String deptId, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.getUserByDeptId(deptId);
    }
    @Override
    public RoleInfo[] fetchRoleInfoByUserId(String userId, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.fetchRoleInfoByUserId(userId);
    }
    
    @Override
    public UserInfo[] fetchUserInfoByModelId(String modelId, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.fetchUserInfoByModelId(modelId);
    }
    @Override
    public UserInfo[] fetchUserInfoByModel(String model, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.fetchUserInfoByModel(model);
    }
 
    @Override
    public RoleInfo[] fetchRoleInfoByUserName(String userName, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.fetchRoleInfoByUserName(userName);
    }
 
    @Override
    public RoleInfo[] fetchRoleInfoByUserType(String userName, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.fetchRoleInfoByUserType(userName);
    }
    
    @Override
    public DeptInfo fetchDeptByUserId(String userId, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.fetchDeptByUserId(userId);
    }
    @Override
    public DeptInfo fetchDeptByDeptName(String deptName, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.fetchDeptByDeptName(deptName);
    }
    @Override
    public DeptInfo fetchDeptByParentIdAndName(String parentId, String deptName, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.fetchDeptByParentIdAndName(parentId,deptName);
    }
 
    @Override
    public boolean saveUserDept(String[] userIds, String deptId,
            UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.saveUserDept(userIds , deptId, userEntityInfo);
    }
    
    @Override
    public boolean stopUsers(String[] ids, boolean flag,
            UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.stopUsers(ids , flag, userEntityInfo);
    }
 
    @Override
    public String saveModule(FunctionInfo functionInfo,
            UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError {
        return new FunctionDelegate(userEntityInfo).saveModule(functionInfo);
    }
 
    @Override
    public String updateModule(FunctionInfo functionInfo,
            UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError {
        return new FunctionDelegate(userEntityInfo).updateModule(functionInfo);
    }
 
    @Override
    public String deleteModule(String moduleId, UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current)
            throws VCIError {
        return new FunctionDelegate(userEntityInfo).deleteModule(moduleId);
    }
 
    @Override
    public String saveOperate(OperateInfo operateInfo,
            UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError {
        return new OperateDelegate(userEntityInfo).saveOperate(operateInfo);
    }
 
    @Override
    public String updateOperate(OperateInfo operateInfo,
            UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError {
        return new OperateDelegate(userEntityInfo).updateOperate(operateInfo);
    }
 
    @Override
    public boolean deleteOperate(String id, UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current)
            throws VCIError {
        return new OperateDelegate(userEntityInfo).deleteOperate(id);
    }
 
//    @Override
//    public int getAutoModuleNo() throws VCIError {
//        return new FunctionDelegate().getAutoModuleNo();
//    }
 
    @Override
    public FunctionInfo[] getModuleListByParentId(String parentId, boolean isAll, com.zeroc.Ice.Current current)
            throws VCIError {
        return new FunctionDelegate().getModuleListByParentId(parentId, isAll);
    }
    
    public FunctionInfo[] getChildrenFunctionsByParentId(String parentId, boolean isAll, com.zeroc.Ice.Current current)
            throws VCIError {
        return new FunctionDelegate().getChildrenFunctionsByParentId(parentId, isAll);
    }
    
    @Override
    public FunctionInfo[] getModuleListByParentIdForBS(String parentId, boolean isAll, com.zeroc.Ice.Current current)
            throws VCIError {
        return new FunctionDelegate().getModuleListByParentIdForBS(parentId, isAll);
    }
    @Override
    public FunctionInfo[] getModuleListByParentIdForCS(String parentId, boolean isAll, com.zeroc.Ice.Current current)
            throws VCIError {
        return new FunctionDelegate().getModuleListByParentIdForCS(parentId, isAll);
    }
 
    @Override
    public OperateInfo[] getOperateTreeList(String moduleId, com.zeroc.Ice.Current current) throws VCIError {
        return new OperateDelegate().getOperateTreeList(moduleId);
    }
 
    @Override
    public long checkChildObject(String moduleId, com.zeroc.Ice.Current current) throws VCIError {
        return new FunctionDelegate().checkChildObject(moduleId);
    }
    /**
     * 获取模块下的操作,如果操作ID为空,则获取模块下的全部操作
     * @param functionId 模块ID
     * @param operateId  操作ID
     * @param onlyIsValid onlyIsValid 参数表示是否仅仅返回是生效的操作 true:是 false :不是(此时返回模块下全部的操作,仅在定义模块下的操作时需要返回全部的操作,其它情况需要均只需要返回生效的操作�?
     * @return
     */
    @Override
    public FuncOperationInfo[] getFuncOperationByModule(String functionId,String operateId, boolean onlyIsValid, com.zeroc.Ice.Current current)
            throws VCIError {
        return new FuncOperationDelegate().getFuncOperationByModule(functionId, operateId, onlyIsValid);
    }
 
    @Override
    public boolean saveFuncOperation(FuncOperationInfo[] funcOperationInfos,
            UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError {
        return new FuncOperationDelegate(userEntityInfo).saveFuncOperation(funcOperationInfos);
    }
    
    @Override
    public boolean updateFuncOperation(String id, String alias, boolean isSelected, 
            UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError {
        return new FuncOperationDelegate(userEntityInfo).updateFuncOperation(id, alias, isSelected);
    }
 
    @Override
    public long checkOperateIsReferenced(String operateId, com.zeroc.Ice.Current current) throws VCIError {
        return new OperateDelegate().checkOperateIsReferenced(operateId);
    }
 
    @Override
    public boolean deleteFuncOperation(FuncOperationInfo funcOperationInfo,UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current)
            throws VCIError {
        return new FuncOperationDelegate(userEntityInfo).deleteFuncOperation(funcOperationInfo);
    }
 
    @Override
    public boolean saveRoleRight(RoleRightInfo[] roleRightInfos,String roleId, String userName,UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current)
            throws VCIError {
        return new RoleRightDelegate(userEntityInfo).saveRoleRight(roleRightInfos,roleId,userName);
    }
 
    @Override
    public boolean addRoleRight(RoleRightInfo[] roleRightInfos, String roleId,
            String userName, UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError {
        return new RoleRightDelegate(userEntityInfo).addRoleRight(roleRightInfos, roleId, userName);
    }
    
    @Override
    public boolean removeRoleRight(RoleRightInfo[] roleRightInfos,String roleId, String userName,UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current)
            throws VCIError {
        return new RoleRightDelegate(userEntityInfo).removeRoleRight(roleRightInfos,roleId,userName);
    }
    
    
    @Override
    public RoleRightInfo[] getRoleRightList(String roleId,String userName, com.zeroc.Ice.Current current) throws VCIError {
        return new RoleRightDelegate().getRoleRightList(roleId,userName);
    }
    @Override
    public RoleRightInfo[] getRoleRightListByType(String[] rightType, com.zeroc.Ice.Current current) throws VCIError {
        return new RoleRightDelegate().getRoleRightListByType(rightType);
    }
    @Override
    public PasswordStrategyInfo[] fetchAllPasswordStrategy(com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.fetchAllPasswordStrategy();
    }
 
 
    @Override
    public boolean savePasswordStrategy(PasswordStrategyInfo info, 
            UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.savePasswordStrategy(info, userEntityInfo );
    }
 
    @Override
    public boolean editPasswordStrategy(PasswordStrategyInfo info,
            UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.editPasswordStrategy(info, userEntityInfo );
    }
 
    @Override
    public boolean deletePasswordStrategy(String[] ids,
            UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.deletePasswordStrategy(ids,userEntityInfo );
    }
 
    @Override
    public FunctionInfo[] getModuleListByRoleRight(String parentId,
            String userName, com.zeroc.Ice.Current current) throws VCIError {
        return new FunctionDelegate().getModuleListByRoleRight(parentId,userName);
    }
    @Override
    public FunctionInfo[] getModuleListByRoleRightForBS(String parentId,
            String userName, com.zeroc.Ice.Current current) throws VCIError {
        return new FunctionDelegate().getModuleListByRoleRightForBS(parentId,userName);
    }
 
    @Override
    public FunctionInfo getModuleByClass(String classPath, com.zeroc.Ice.Current current) throws VCIError {
        return new FunctionDelegate().getModuleByClass(classPath);
    }
    /**
     * 
     * <p>根据模块funcOid信息查询出模块对象的信息</p>
     * 
     * @author xchao
     * @time 2014-6-6
     * @param funcOid
     * @return
     * @throws VciException
     */
    @Override
    public FunctionInfo getFunctionObjectById(String funcOid, com.zeroc.Ice.Current current) throws VCIError{
        return new FunctionDelegate().getFunctionObjectById(funcOid);
    }
    @Override
    public FunctionInfo getModuleByName(String moduleName, com.zeroc.Ice.Current current) throws VCIError {
        return new FunctionDelegate().getModuleByName(moduleName);
    }
 
    @Override
    public RoleRightInfo[] getRoleRightByModule(String funcId, String userName, com.zeroc.Ice.Current current)
            throws VCIError {
        
        String swithUIRight = CommonProperties.getStringProperty("ui.right.swith");
        if (swithUIRight.equalsIgnoreCase("off"))
        {
            RoleInfo[] roles = this.fetchRoleInfoByUserName(userName, current);
            
            RoleRightInfo right = new RoleRightInfo();
            right.funcId = funcId;
            if (roles.length > 0)
                right.roleId = roles[0].id;
            right.rightValue = 0xffffffff;
            right.rightType = 2;
            return new RoleRightInfo[] {right};
        }
        
        return new RoleRightDelegate().getRoleRightByModule(funcId,userName);
    }
    @Override
    public RoleRightInfo[] getRoleRightByUserName(String userName, com.zeroc.Ice.Current current) throws VCIError {
        
        return new RoleRightDelegate().getRoleRightByUserName(userName);
    }
    
    @Override
    public RoleRightInfo[] getFunctionRoleRightByUserName(String userName, com.zeroc.Ice.Current current) throws VCIError {
        return new RoleRightDelegate().getFunctionRoleRightByUserName(userName);
    }
 
    @Override
    public OperateInfo getOperateByIdentify(String identify, com.zeroc.Ice.Current current) throws VCIError {
        return new OperateDelegate().getOperateByIdentify(identify);
    }
 
    @Override
    public FuncOperationInfo getFuncOperationByIdentify(String funcId,
            String identify, com.zeroc.Ice.Current current) throws VCIError {
        return new FuncOperationDelegate().getFuncOperationByIdentify(funcId,identify);
    }
    @Override
    public PasswordStrategyInfo fetchPasswordStrategyByUserId(String userId, com.zeroc.Ice.Current current)
            throws VCIError {
        return rightmanagementDelegate.fetchPasswordStrategyByUserId(userId);
    }
 
 
    @Override
    public String checkPasswordStrategyByUserId(String userId, String password, UserEntityInfo userEnt, com.zeroc.Ice.Current current)
            throws VCIError {
        //System.out.println("==================checkPasswordStrategyByUserId=========================");
        return rightmanagementDelegate.checkPasswordStrategyByUserId(userId, password);
    }
 
    @Override
    public long checkPasswordStrategyIsquotedCount(String id, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.checkPasswordStrategyIsquotedCount(id);
    }
 
    @Override
    public boolean saveUserPasswordStrateg(String[] userIds, String passwordStrategId,
            UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.saveUserPasswordStrateg(userIds , passwordStrategId, userEntityInfo);
    }
 
    @Override
    public UserLogonInfo fetchUserLogonObj(String userId, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.fetchUserLogonObj(userId);
    }
 
    @Override
    public long getSystemTime(com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.getSystemTime();
    }
 
    @Override
    public void updateLogonInfo(String userId, boolean flag, com.zeroc.Ice.Current current) throws VCIError {
        rightmanagementDelegate.updateLogonInfo(userId,flag);
    }
    
    @Override
    public void deblock(String[] ids,UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError {
        rightmanagementDelegate.deblock(ids,userEntityInfo);
    }
//
//    @Override
//    public LogPeriodInfo[] getPeriods(com.zeroc.Ice.Current current) throws VCIError {
//        LogManagementDelegate logDel = new LogManagementDelegate();
//        return logDel.getPeriods();
//    }
 
//    @Override
//    public LogInfo[] fetchLogInfo(long pageNo, long pagesize, String sql, com.zeroc.Ice.Current current)
//            throws VCIError {
//        LogManagementDelegate logDel = new LogManagementDelegate();
//        return logDel.fetchLogInfo((int)pageNo,(int)pagesize,sql);
//    }
//    
//    @Override
//    public LogInfo[] getLogListByContion(long pageNo, long pagesize, String sql, com.zeroc.Ice.Current current)
//            throws VCIError {
//        LogManagementDelegate logDelegate = new LogManagementDelegate();
//        return logDelegate.getLogListByContion((int)pageNo,(int)pagesize,sql);
//    }
//
//    @Override
//    public boolean savePeriod(SystemCfgInfo period,
//            UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError {
//        LogManagementDelegate logDelegate = new LogManagementDelegate();
//        return logDelegate.savePeriod(period,userEntityInfo);
//    }
 
    @Override
    public OperateInfo fetchOperateTypeByName(String name, com.zeroc.Ice.Current current) throws VCIError {
        return new OperateDelegate().fetchOperateTypeByName(name);
    }
 
    @Override
    public OperateInfo getOperatetById(String id, com.zeroc.Ice.Current current) throws VCIError {
        return new OperateDelegate().getOperatetById(id);
    }
 
    @Override
    public RoleInfo[] getRoleListByTypeForMeasure(short type, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.getRoleListByTypeForMeasure(type);
    }
 
//    @Override
//    public void savelog(String message, UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError {
//         rightmanagementDelegate.savelog(message, userEntityInfo);
//    }
//    @Override
//    public void saveLogV2(String result, String message, String type, short logTypeIntVal, String dataObjOid, UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError {
//         rightmanagementDelegate.saveLogV2(result, message, type, logTypeIntVal, dataObjOid, userEntityInfo);
//    }
//    
//    @Override
//    public void savelogfail(String message, UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current)
//            throws VCIError {
//         rightmanagementDelegate.savelogfail(message, userEntityInfo);
//        
//    }
 
    @Override
    public RoleInfo[] fetchRoleInfoByUserNameAndPage(long pageNo, long pageSize,
            String userName, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.fetchRoleInfoByUserName((int)pageNo,(int)pageSize,userName);
    }
 
    @Override
    public long getRoleTotalByUserName(String userName, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.getRoleTotalByUserName(userName);
    }
 
    @Override
    public PasswordStrategyInfo[] fetchAllPasswordStrategyByPage(long pageNo,long pageSize, com.zeroc.Ice.Current current)
            throws VCIError {
        return rightmanagementDelegate.fetchAllPasswordStrategy((int)pageNo, (int)pageSize);
    }
 
    @Override
    public long getPasswordStrategyTotal(com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.getPasswordStrategyTotal();
    }
 
    @Override
    public long getUserTotalByCondition(String searchName,
            String searchUserName, String deptId, String roleId, String userName, com.zeroc.Ice.Current current)
            throws VCIError {
        return rightmanagementDelegate.getUserTotalByCondition(searchName, searchUserName, deptId, roleId, userName);
    }
 
    @Override
    public long getSpecialCharClsTotal(com.zeroc.Ice.Current current) throws VCIError {
        SystemCfgDelegate sysCfgDel = new SystemCfgDelegate();
        return sysCfgDel.getSpecialCharClsTotal();
    }
 
 
    @Override
    public SpecialCharClsfInfo[] getSpecialCharClsfList(long pageNo, long pageSize, Current current) throws VCIError {
        throw new VCIError("getSpecialCharClsfList", new String[] {"The method is not implemented"});
    }
 
    
    @Override
    public SpecialCharClsfInfo[] getAllSpecialCharClsfList(com.zeroc.Ice.Current current) throws VCIError {
        SystemCfgDelegate sysCfgDel = new SystemCfgDelegate();
        return sysCfgDel.getSpecialCharClsfList();
    }
    @Override
    public CombinationInfo[] fetchAllCombinations(com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.fetchAllCombinations();
    }
 
    @Override
    public CombinationInfo[] fetchCombinationsToPage(long pageIndex, long pageSize, com.zeroc.Ice.Current current)
            throws VCIError {
        return rightmanagementDelegate.fetchCombinationsToPage((int)pageIndex, (int)pageSize);
    }
 
    @Override
    public String saveCombination(CombinationInfo combinationInfo,
            UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.saveCombination(combinationInfo ,userEntityInfo);
    }
 
    @Override
    public boolean updateCombination(CombinationInfo combinationInfo,
            UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.updateCombination(combinationInfo ,userEntityInfo);
    }
 
    @Override
    public boolean deleteCombination(String[] ids, UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current)
            throws VCIError {
        return rightmanagementDelegate.deleteCombination(ids ,userEntityInfo);
    }
 
    @Override
    public CombinationValueInfo[] fetchCombinationValuesByParentId(
            String parentId, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.fetchCombinationValuesByParentId(parentId);
    }
 
    @Override
    public String saveCombinationValue(
            CombinationValueInfo[] combinationValueInfo,
            UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.saveCombinationValue(combinationValueInfo ,userEntityInfo);
    }
 
    @Override
    public boolean updateCombinationValue(
            CombinationValueInfo combinationValueInfo,
            UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.updateCombinationValue(combinationValueInfo,userEntityInfo);
    }
 
    @Override
    public boolean deletCombinationValues(String[] ids,
            UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.deletCombinationValues(ids ,userEntityInfo);
    }
 
    @Override
    public CombinationInfo[] fetchCombinationsByPstId(String pstId, com.zeroc.Ice.Current current)
            throws VCIError {
        return rightmanagementDelegate.fetchCombinationsByPstId(pstId);
    }
 
    @Override
    public long checkCombinationIsquotedCount(String combinationd, com.zeroc.Ice.Current current)
            throws VCIError {
        return rightmanagementDelegate.checkCombinationIsquotedCount(combinationd);
    }
 
 
    /**
     * 加载客户端需要加载的jar包路径
     */
    @Override
    public String[] getClientDeployJarPath(com.zeroc.Ice.Current current) throws VCIError {
        List<String> list = new ArrayList<String>();
//        try {
//            ClassLoaderUtil clu = new ClassLoaderUtil();
//            List<File> files = clu.getNeedLoadJars();
//            for (File file : files) {
//                String path = file.getCanonicalPath();
//                list.add(path);
//            }
//        } catch (Exception e) {
//            e.printStackTrace();
//        } catch (Throwable e) {
//            e.printStackTrace();
//        }
        return list.toArray(new String[]{});
    }
    @Override
    public boolean savePvolumeUser(String pvolumId, String[] userIds,
            UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError {
        //return  rightmanagementDelegate.savePvolumeUser(pvolumId , userIds, userEntityInfo);
        return false;
    }
 
    @Override
    public UserInfo[] fetchUserInfoByPvolumeId(String pvolumeId, short type, com.zeroc.Ice.Current current)
            throws VCIError {
        return  rightmanagementDelegate.fetchUserInfoByPvolumeId(pvolumeId ,type);
    }
 
    @Override
    public boolean saveSpecialRole(String roleId, String[] userIds,
            UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.saveSpecialRole(roleId , userIds, userEntityInfo);
    }
 
//    @Override
//    public SpecialRoleInfo[] getSpecialRoleList(com.zeroc.Ice.Current current) throws VCIError {
//        return new SpecialRoleDelegate().getSpecialRoleList();
//    }
 
    /**
     * flag:nonsys删除非系统模块
     * flag:business删除业务模块
     */
    @Override
    public boolean deleteModules(String flag, com.zeroc.Ice.Current current) throws VCIError {
        return new FunctionDelegate().deleteModules(flag);
    }
    /**
     * 
     * 查询"功能模块管理"整个树结构并导出
     * add by caill start
     * */
    @Override
    public String[][] checkLevel(com.zeroc.Ice.Current current) throws VCIError {
        // TODO Auto-generated method stub
        return new FunctionDelegate().checkLevel();
    }
    //add by caill end
    /**
     * 
     * 导入"功能模块管理"数据
     * add by caill start
     * */
    @Override
    public boolean importModules(FunctionInfo[] functionInfos,
            UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError {
        // TODO Auto-generated method stub
        boolean b=false;
        int len=functionInfos.length;
        String[] res=new String[len];
        for(int i=0;i<len;i++){
             b=new FunctionDelegate(userEntityInfo).importModules(functionInfos[i]);
        }
        return b;
    }
    @Override
    public String saveFunOper(FuncOperationInfo funcoperationInfo, com.zeroc.Ice.Current current)
            throws VCIError {
        // TODO Auto-generated method stub
        new FuncOperationDelegate().saveFunOper(funcoperationInfo);
        return null;
    }
    /**
     * 保存操作类型
     * add by caill
     * */
    @Override
    public boolean saveFuncOperation2(FuncOperationInfo funcOperationInfo,
            UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError {
        // TODO Auto-generated method stub
        return new FuncOperationDelegate(userEntityInfo).saveFuncOperation2(funcOperationInfo);
    }
    @Override
    public boolean firstLevel(String plName, com.zeroc.Ice.Current current) throws VCIError {
        // TODO Auto-generated method stub
        return new FunctionDelegate().firstLevel(plName);
    }
 
    @Override
    public String  changeFirstLevel(FunctionInfo functionInfo, String plName, com.zeroc.Ice.Current current)
            throws VCIError {
        // TODO Auto-generated method stub
        return new FunctionDelegate().changeFirstLevel(functionInfo, plName);
    }
 
    @Override
    public boolean secondLevel(String plName, String fParentId, com.zeroc.Ice.Current current) throws VCIError {
        // TODO Auto-generated method stub
        return new FunctionDelegate().secondLevel(plName,fParentId);
    }
 
    @Override
    public String changeSecondLevel(FunctionInfo functionInfo, String plName,
            String fParentId, com.zeroc.Ice.Current current) throws VCIError {
        // TODO Auto-generated method stub
        return new FunctionDelegate().changeSecondLevel(functionInfo, plName,fParentId);
    }
 
    @Override
    public boolean selSameOper(String dataOperName, String plFuncOid, com.zeroc.Ice.Current current)
            throws VCIError {
        // TODO Auto-generated method stub
        return new FuncOperationDelegate().selSameOper(dataOperName,plFuncOid);
    }
 
    @Override
    public boolean updateOperation(FuncOperationInfo funcOperationInfo,
            UserEntityInfo userEntityInfo,String dataOperName,String plFuncOid, com.zeroc.Ice.Current current) throws VCIError {
        // TODO Auto-generated method stub
        return new FuncOperationDelegate(userEntityInfo).updateOperation(funcOperationInfo,dataOperName,plFuncOid);
    }
    
    @Override
    public String[][] getAllDatas(long size, com.zeroc.Ice.Current current) throws VCIError {
        // TODO Auto-generated method stub
        return new FunctionDelegate().getAllDatas((int)size); 
    }
 
    @Override
    public long getAllOperitionsNum(com.zeroc.Ice.Current current) throws VCIError {
        // TODO Auto-generated method stub
        return new OperateDelegate().getAllOperitionsNum();
    }
 
    @Override
    public String[][] getAllOperitions(long size, com.zeroc.Ice.Current current) throws VCIError {
        // TODO Auto-generated method stub
        return new OperateDelegate().getAllOperitions((int)size);
    }
 
    @Override
    public long getAllModelManagementNum(com.zeroc.Ice.Current current) throws VCIError {
        // TODO Auto-generated method stub
        return new FunctionDelegate().getAllModelManagementNum();
    }
 
    /**
    * 添加、保�?AppConfigCategory 对象
    * @param info AppConfigCategoryInfo 对象
    */
    public String saveAppConfigCategory(AppConfigCategoryInfo info, UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError{
        return new AppConfigCategoryDelegate(userEntityInfo).saveAppConfigCategory(info);
    }
    
    /**
    * 修改、更�? AppConfigCategory 对象
    * @param info AppConfigCategoryInfo 对象
    */
    public boolean updateAppConfigCategory(AppConfigCategoryInfo info, UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError{
        return new AppConfigCategoryDelegate(userEntityInfo).updateAppConfigCategory(info);
    }
    
    /**
    * 根据 ID 删除 AppConfigCategory 对象(批量)
    * @param ids AppConfigCategory 对象�?ID 列表
    */
    public boolean deleteAppConfigCategory(String[] ids, UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError{
        return new AppConfigCategoryDelegate(userEntityInfo).deleteAppConfigCategory(ids);
    }
    
    /**
    * 返回属性下�?  AppConfigCategory 对象
    */
    public AppConfigCategoryInfo[] getAppConfigCategorys(UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError{
        return new AppConfigCategoryDelegate(userEntityInfo).getAppConfigCategorys();
    }
    
    /**
    * 根据 ID 返回  AppConfigCategory 对象
    * @param id AppConfigCategory 
    */
    public AppConfigCategoryInfo getAppConfigCategoryById(String id, UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError{
        return new AppConfigCategoryDelegate(userEntityInfo).getAppConfigCategoryById(id);
    }
    /**
    * 添加、保�?AppConfigDetail 对象
    * @param info AppConfigDetailInfo 对象
    */
    public String saveAppConfigDetail(AppConfigDetailInfo info, UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError{
        return new AppConfigDetailDelegate(userEntityInfo).saveAppConfigDetail(info);
    }
    
    /**
    * 修改、更�? AppConfigDetail 对象
    * @param info AppConfigDetailInfo 对象
    */
    public boolean updateAppConfigDetail(AppConfigDetailInfo info, UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError{
        return new AppConfigDetailDelegate(userEntityInfo).updateAppConfigDetail(info);
    }
    
    /**
    * 根据 ID 删除 AppConfigDetail 对象(批量)
    * @param ids AppConfigDetail 对象�?ID 列表
    */
    public boolean deleteAppConfigDetail(String[] ids, UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError{
        return new AppConfigDetailDelegate(userEntityInfo).deleteAppConfigDetail(ids);
    }
    
    /**
    * 返回全部�?  AppConfigDetail 对象
    */
    public AppConfigDetailInfo[] getAppConfigDetails(UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError{
        return new AppConfigDetailDelegate(userEntityInfo).getAppConfigDetails();
    }
    
    /**
    * 返回全部�?  AppConfigDetail 对象
    */
    public AppConfigDetailInfo[] getAppConfigDetailsByCatId(String clsfId, UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError{
        return new AppConfigDetailDelegate(userEntityInfo).getAppConfigDetailsByCatId(clsfId);
    }
    
    
    @Override
    public AppConfigDetailInfo[] getAppConfigDetailsByCategory(String catName, UserEntityInfo userEntity,
            Current current) throws VCIError {
        return new AppConfigDetailDelegate(userEntity).getAppConfigDetailsByCategory(catName);
    }
    
    /**
    * 根据 ID 返回  AppConfigDetail 对象
    * @param id AppConfigDetail 
    */
    public AppConfigDetailInfo getAppConfigDetailById(String id, UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError{
        return new AppConfigDetailDelegate(userEntityInfo).getAppConfigDetailById(id);
    }
    /**
    * 根据 Key 返回  AppConfigDetail 对象
    * @param key  
    */
    public AppConfigDetailInfo getAppConfigDetailByKey(String key, UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError{
        return new AppConfigDetailDelegate(userEntityInfo).getAppConfigDetailByKey(key);
    }
    
    /**
    * 返回全部�?  AppConfigDetail 对象
    */
    public AppConfigDetailInfo[] getAppConfigDetailsByName(String name, UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError{
        return new AppConfigDetailDelegate(userEntityInfo).getAppConfigDetailsByName(name);
    }
    
    @Override
    public boolean batchSaveRoles(RoleInfo[] roleInfos,
            UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError {
        // TODO Auto-generated method stub
        for(RoleInfo roleInfo : roleInfos){
            rightmanagementDelegate.saveRole(roleInfo,userEntityInfo);
        }
        return true;
    }
//    @Override
//    public void blocklog(String userId, UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current)
//            throws VCIError {
//         rightmanagementDelegate.blocklog(userId, userEntityInfo);
//        // TODO Auto-generated method stub
//        
//    }
 
    @Override
    public UserInfo[] fetchUserInfoByConditionUnited(String searchName,
            String searchUserName, String deptId, String roleId,
            String userName, long pageNo, long pageSize, com.zeroc.Ice.Current current) throws VCIError {
        // TODO Auto-generated method stub
        return rightmanagementDelegate.fetchUserInfoByConditionUnited(searchName,searchUserName,deptId,roleId,userName,(int)pageNo,(int)pageSize);
    }
 
    @Override
    public void savelogGeneralOperation(String result, String content,
            UserEntityInfo userEntityInfo, String dataId,String plType, com.zeroc.Ice.Current current) throws VCIError {
        rightmanagementDelegate.savelogGeneralOperation(result, content, userEntityInfo, dataId,plType);
    }
 
    @Override
    public DataSourceInfo getDataSourceInfo(com.zeroc.Ice.Current current) throws VCIError {
        return new SystemCfgDelegate().getDataSourceInfo();
    }
    
    @Override
    public boolean clearRoleRight(String roleId, String userName, UserEntityInfo userEntityInfo, short functionType, com.zeroc.Ice.Current current)
            throws VCIError {
        return new RoleRightDelegate(userEntityInfo).clearRoleRight(roleId,userName,functionType);
    }
 
    @Override
    public DeptInfo[] fetchDepartmentInfoByIds(String otherFiterString, com.zeroc.Ice.Current current)
            throws VCIError {
        
        String[] ids = otherFiterString.split(";");
        return rightmanagementDelegate.fetchDepartmentInfoByIds(ids);
    }
 
    @Override
    public DeptInfo[] fetchChildrenDeptByParentOid(String prtoid,
            boolean iscontains, String otherFiterString, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.fetchChildrenDeptByParentOid(prtoid,iscontains,otherFiterString);
    }
 
    @Override
    public DeptInfo[] gridDeptDataGrids(String filter, long pageNo, long pageSize, com.zeroc.Ice.Current current)
            throws VCIError {
        return rightmanagementDelegate.gridDeptDataGrids(filter,(int)pageNo,(int)pageSize);
    }
 
    @Override
    public long gridDeptDataGridsCount(String filter, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.gridDeptDataGridsCount(filter);
    }
 
    @Override
    public RoleInfo[] queryRoleInfos(String filter, long pageNo, long pageSize, com.zeroc.Ice.Current current)
            throws VCIError {
        return rightmanagementDelegate.queryRoleInfos(filter,(int)pageNo,(int)pageSize);
    }
 
    @Override
    public long queryRoleInfosCount(String filter, com.zeroc.Ice.Current current) throws VCIError {
        return  rightmanagementDelegate.queryRoleInfosCount(filter);
    }
 
    @Override
    public UserInfo[] fetchUserInfoByFilterString(String filterString,
            long pageNo, long pageSize, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.fetchUserInfoByFilterString(filterString, (int)pageNo, (int)pageSize);
    }
 
    @Override
    public long fetchUserInfoByFilterStringCount(String filterString, com.zeroc.Ice.Current current)
            throws VCIError {
        return rightmanagementDelegate.fetchUserInfoByFilterStringCount(filterString);
    }
 
    @Override
    public UserInfo[] fetchUserInfosByFilterStringsql(String filterString, com.zeroc.Ice.Current current)
            throws VCIError {
        return rightmanagementDelegate.fetchUserInfosByFilterStringsql(filterString);
    }
 
    @Override
    public UserInfo[] fetchUserInfoByNames(String[] userNames, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.fetchUserInfoByNames(userNames);
    }
 
    @Override
    public UserInfo getUserObjectByoid(String userOid, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.getUserObjectByoid(userOid);
    }
 
    @Override
    public UserInfo[] getUserObjectByoids(String[] userOids, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.getUserObjectByoids(userOids);
    }
 
    @Override
    public UserInfo[] fetchNoramlUserInfoByConditionUnited(String searchName,
            String searchUserName, String deptId, String roleId,
            String userName, long pageNo, long pageSize, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.fetchNormalUserInfoByConditionUnited(searchName,searchUserName,deptId,roleId,userName,(int)pageNo,(int)pageSize);
    }
 
    @Override
    public long getNormalUserTotalByCondition(String searchName,
            String searchUserName, String deptId, String roleId, String userName, com.zeroc.Ice.Current current)
            throws VCIError {
        return rightmanagementDelegate.getNormalUserTotalByCondition(searchName,searchUserName,deptId,roleId,userName);
    }
 
    @Override
    public UserInfo[] fetchNormalUserInfoByCondition(String searchName,
            String searchUserName, String deptId, String roleId,
            String userName, long pageNo, long pageSize, com.zeroc.Ice.Current current) throws VCIError {
        return rightmanagementDelegate.fetchNormalUserInfoByCondition(searchName,searchUserName,deptId,roleId,userName,(int)pageNo,(int)pageSize);
        
    }
    
    /**专业相关操作**/
    @Override
    public SpecialtyInfo[] getAllSpecialtyInfo(com.zeroc.Ice.Current current) throws VCIError {
        // TODO Auto-generated method stub
        return null;
    }
 
    @Override
    public String saveSpecialty(SpecialtyInfo specialty, UserEntityInfo userEnt, com.zeroc.Ice.Current current) throws VCIError {
        // TODO Auto-generated method stub
        return null;
    }
 
    @Override
    public boolean batchSaveSpecialties(SpecialtyInfo[] specialties, UserEntityInfo userEnt, com.zeroc.Ice.Current current) throws VCIError {
        // TODO Auto-generated method stub
        return false;
    }
 
    @Override
    public boolean updateSpecialty(SpecialtyInfo specialty, UserEntityInfo userEnt, com.zeroc.Ice.Current current) throws VCIError {
        // TODO Auto-generated method stub
        return false;
    }
 
    @Override
    public boolean batchUpdateSpecialty(SpecialtyInfo[] specialties, UserEntityInfo userEnt, com.zeroc.Ice.Current current) throws VCIError {
        // TODO Auto-generated method stub
        return false;
    }
 
    @Override
    public boolean deletSpecialty(String[] ids, UserEntityInfo userEnt, com.zeroc.Ice.Current current) throws VCIError {
        // TODO Auto-generated method stub
        return false;
    }
 
    @Override
    public boolean userSecuritySwith(com.zeroc.Ice.Current current) throws VCIError {
        
        AppConfigDetailInfo userSecuritySwith = new AppConfigDetailDelegate(new UserEntityInfo()).getAppConfigDetailByKey("userSecuritySwith");
        if(userSecuritySwith != null && "on".equals(userSecuritySwith.value)){
            return true;
        }
        return false;
    }
 
    @Override
    public boolean ipSecuritySwitch(com.zeroc.Ice.Current current) throws VCIError {
        AppConfigDetailDelegate delegate = new AppConfigDetailDelegate(new UserEntityInfo());
        AppConfigDetailInfo ipSecuritySwitch = delegate.getAppConfigDetailByKey("ipSecuritySwitch");
        if(ipSecuritySwitch != null && "on".equals(ipSecuritySwitch.value)){
            return true;
        }
        return false;
    }
 
    @Override
    public String defaultHasRight(com.zeroc.Ice.Current current) throws VCIError {
        try {
            AppConfigDetailDelegate delegate = new AppConfigDetailDelegate(new UserEntityInfo());
            AppConfigDetailInfo info = delegate.getAppConfigDetailByKey("defaultHasRight");
    
            if (info.id != null && "Y".equalsIgnoreCase(info.value.trim())) {
                return "1";
            } else {
                return "0";
            }
        } catch (Throwable e) {
            //e.printStackTrace();
            ServerWithLog4j.logger.error(e);
        }
        
        return "0";
    }
 
    @Override
    public MachSecurityInfo[] getAllMachSecurity(com.zeroc.Ice.Current current) throws VCIError {
        return new MachSecurityDelegate().getAllMachSecurity();
    }
 
    @Override
    public long getMachSecurityTolal(com.zeroc.Ice.Current current) throws VCIError {
        return new MachSecurityDelegate().getMachSecurityTolal();
    }
 
    @Override
    public MachSecurityInfo[] fetchMachSecurityByPage(long pageNo, long pageSize, com.zeroc.Ice.Current current) throws VCIError {
        return new MachSecurityDelegate().fetchMachSecurityByPage((int)pageNo, (int)pageSize);
    }
    
    @Override
    public String saveMachSecurity(MachSecurityInfo info, UserEntityInfo userInfo, com.zeroc.Ice.Current current) throws VCIError {
        return new MachSecurityDelegate().saveMachSecurity(info, userInfo);
    }
 
    @Override
    public boolean batchSaveMachSecurity(MachSecurityInfo[] infos, UserEntityInfo userInfo, com.zeroc.Ice.Current current) throws VCIError {
        return new MachSecurityDelegate().batchSaveMachSecurity(infos, userInfo);
    }
 
    @Override
    public boolean updateMachSecurity(MachSecurityInfo info, UserEntityInfo userInfo, com.zeroc.Ice.Current current) throws VCIError {
        return new MachSecurityDelegate().updateMachSecurity(info, userInfo);
    }
 
    @Override
    public boolean batchUpdateMachSecurity(MachSecurityInfo[] infos, UserEntityInfo userInfo, com.zeroc.Ice.Current current) throws VCIError {
        return new MachSecurityDelegate().batchUpdateMachSecurity(infos, userInfo);
    }
 
    @Override
    public boolean deletMachSecurity(String[] ids, UserEntityInfo userInfo, com.zeroc.Ice.Current current) throws VCIError {
        return new MachSecurityDelegate().deletMachSecurity(ids, userInfo);
    }
 
    @Override
    public long getMachSecurity(String machAddress, short type, UserEntityInfo userInfo, com.zeroc.Ice.Current current) throws VCIError {
        return new MachSecurityDelegate().getMachSecurity(machAddress, type, userInfo);
    }
 
    @Override
    public MachSecurityInfo getMachSecurityInfo(String ipAddress, short type, UserEntityInfo userInfo, com.zeroc.Ice.Current current) throws VCIError {
        return new MachSecurityDelegate().getMachSecurityInfo(ipAddress, type, userInfo);
    }
 
    @Override
    public MachSecurityInfo[] fetchMachSecurityConditionByPage(String name, String ipAddress, short security, long pageNo,
            long pageSize, com.zeroc.Ice.Current current) throws VCIError {
        return new MachSecurityDelegate().fetchMachSecurityByConditionPage(name, ipAddress, (int)security, (int)pageNo, (int)pageSize);
    }
 
    @Override
    public long getMachSecurityTolalByCondition(String name, String ipAddress, short security, com.zeroc.Ice.Current current) throws VCIError {
        return new MachSecurityDelegate().getMachSecurityTolalByCondition(name, ipAddress, security);
    }
    
 
    /**数据授权接口**/
    @Override
    public boolean saveGrand(GrandValue[] values, com.zeroc.Ice.Current current) throws VCIError {
        
        return new DataTypeRightDelegate().saveGrand(values);
    }
 
 
    @SuppressWarnings("unchecked")
    @Override
    public GrandValue[] queryGrand(String identifier, com.zeroc.Ice.Current current) throws VCIError {
        return new DataTypeRightDelegate().queryGrand(identifier);
    }
 
    @Override
    public boolean deleteGrand(String ruleName, com.zeroc.Ice.Current current) throws VCIError {
        return new DataTypeRightDelegate().deleteGrand(ruleName);
    }
 
    @Override
    public boolean deleteTypeRuleGrand(String identifier, String ruleName, com.zeroc.Ice.Current current)
            throws VCIError {
        return new DataTypeRightDelegate().deleteTypeRuleGrand(identifier, ruleName);
    }
    
    @Override
    public String checkRight(CheckValue params, com.zeroc.Ice.Current current) throws VCIError {
        return new DataTypeRightDelegate().checkRight(params);
    }
    
    //=卷管理============================================================================
 
    /**
     * 卷创�?
     */
    @Override
    public String savePvolume(PvolumeInfo val, UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError {
         PvolumeDelegate pvolumeDelegate = new PvolumeDelegate(userEntityInfo);
        return pvolumeDelegate.savePvolume(val, userEntityInfo);
    }
 
    /**
     * 读取所有卷
     */
    @Override
    public PvolumeInfo[] getAllPvolumes(Current current) throws VCIError {
         PvolumeDelegate pvolumeDelegate = new PvolumeDelegate();
        return pvolumeDelegate.getAllPvolumes();
    }
 
 
    @Override
    public PvolumeInfo getDefaultVolume(Current current) throws VCIError {
         PvolumeDelegate pvolumeDelegate = new PvolumeDelegate();
        return pvolumeDelegate.getIsvalidVolumeName();
    }
 
 
    /**
     * 获取指定文档的卷
     */
    @Override
    public PvolumeInfo getVolumnByName(String volName, com.zeroc.Ice.Current current) throws VCIError {
         PvolumeDelegate pvolumeDelegate = new PvolumeDelegate();
        return pvolumeDelegate.getVolumnByName(volName);
    }
    
    /**
     * 分页查询卷信息
     */
 
    @Override
    public PvolumeInfo[] getPvolumesPage(short pageSize, short pageIndex, com.zeroc.Ice.Current current)
            throws VCIError {
         PvolumeDelegate pvolumeDelegate = new PvolumeDelegate();
        return pvolumeDelegate.getPvolumesPage(pageSize, pageIndex);
    }
 
    /**
     * 修改卷
     */
    @Override
    public boolean updatePvolume(PvolumeInfo val, UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError {
         PvolumeDelegate pvolumeDelegate = new PvolumeDelegate(userEntityInfo);
        return pvolumeDelegate.updatePvolume(val, userEntityInfo);
    }
 
    /**
     * 卷删�?
     */
    @Override
    public boolean deletePvolume(String[] ids, UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError {
         PvolumeDelegate pvolumeDelegate = new PvolumeDelegate(userEntityInfo);
        return pvolumeDelegate.deletePvolume(ids, userEntityInfo);
    }
 
    /**
     * 修改卷:将其他卷改为非首选路径
     */
    @Override
    public void updatePvolumeInvalid(UserEntityInfo userEntityInfo, com.zeroc.Ice.Current current) throws VCIError {
         PvolumeDelegate pvolumeDelegate = new PvolumeDelegate(userEntityInfo);
        pvolumeDelegate.updatePvolumeInvalid(userEntityInfo);
    }
 
    /**
     * 检查要删除的卷是否为首选路径
     */
    @Override
    public boolean checkIsvalid(String id, com.zeroc.Ice.Current current) throws VCIError {
        PvolumeDelegate pvolumeDelegate = new PvolumeDelegate();
        return pvolumeDelegate.checkDelIsvalid(id);
    }
}