ludc
2025-01-16 68fd566d21b3efc3a670a5295289b1801f5a4155
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
#ifndef Authentication
#define Authentication
 
#include "01-base.idl"
 
module com {
    module vci {
        module corba{
            module auth2 {
                module data {
                    // 鉴权
                    struct CheckValue{
                        wstring users;
                        wstring roles;
                        wstring userGroups;
                        wstring paramValues;
                        wstring businesstype;
                        wstring opname;
                        wstring objectoid;
                        wstring objectroid;
                        wstring objectmoid;
                    };
 
                    // 授权
                    struct GrandValue{
                        wstring ID;
                        wstring users;
                        wstring roles;
                        wstring userGroups;
                        wstring identifier;
                        wstring expToSQL;
                        char isGrand;
                        wstring ruleText;
                        wstring seniorRuleText;
                        wstring ruleName;
                        wstring ruleType;
                        wstring lexpToSQL;
                        wstring lruleText;
                        wstring lseniorRuleText;
                    };//Value
                    typedef sequence<GrandValue> GrandValueArray;
                };
 
                //授权服务
                interface Auth2Service {
                    //保存授权
                    boolean saveGrand(in data::GrandValueArray values) raises (com::vci::corba::common::VCIError);
                    //查询授权
                    data::GrandValueArray queryGrand(in wstring identifier) raises (com::vci::corba::common::VCIError);
                    //删除授权
                    boolean deleteGrand(in wstring ruleName)raises (com::vci::corba::common::VCIError);
                    //删除授权
                    boolean deleteTypeRuleGrand(in wstring identifier,in wstring ruleName)raises (com::vci::corba::common::VCIError);
 
                    //鉴权
                    wstring checkRight(in data::CheckValue value) raises (com::vci::corba::common::VCIError);
                    //过滤用户密级
                    wstring checkUserSecret(in data::CheckValue value) raises (com::vci::corba::common::VCIError);
                    //过滤IP密级
                    wstring checkIPSecret(in data::CheckValue value) raises (com::vci::corba::common::VCIError);
                };
            }; // auth2
        };//corba
    }; //vci
};//com
 
#endif