-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathact-reviewer-sectest-map-sample.sas
More file actions
119 lines (97 loc) · 4.36 KB
/
Copy pathact-reviewer-sectest-map-sample.sas
File metadata and controls
119 lines (97 loc) · 4.36 KB
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
/*
--------------------------------------------------------------------------------
Sample: act-reviewer-sectest-map-sample.sas
Purpose:
Demonstrates the use of act-reviewer-sectest-map.xml
Authors:
* Paul Homes <paul.homes@metacoda.com>
--------------------------------------------------------------------------------
Copyright 2017 Metacoda Pty Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
--------------------------------------------------------------------------------
*/
filename sectest "input/act-reviewer-sectest.xml" lrecl=32767 encoding="utf-8";
filename map "act-reviewer-sectest-map.xml" lrecl=32767 encoding="utf-8";
libname sectest xml xmlfileref=sectest xmlmap=map access=readonly;
proc sql;
create table work.acts as select * from sectest.acts;
create table work.actAppliedACTs as
select m.key, m.repoName, m.name, d.appliedACTRepoName, d.appliedACTName
from work.acts m, sectest.actAppliedACTs d
where m.key = d.key
;
create table work.actPermissionPatterns as
select m.key, m.repoName, m.name, d.identityRepoName, d.identityPublicType, d.identityName, d.permissions
from work.acts m, sectest.actGroupPermissionPatterns d
where m.key = d.key
outer union corr
select m.key, m.repoName, m.name, d.identityRepoName, d.identityPublicType, d.identityName, d.permissions
from work.acts m, sectest.actUserPermissionPatterns d
where m.key = d.key
order by key, identityRepoName, identityPublicType, identityName;
;
create table work.actProtectedObjects as
select m.key, m.repoName, m.name, d.protectedObjRepoName, d.protectedObjModelType, d.protectedObjPublicType, d.protectedObjFolder, d.protectedObjName
from work.acts m, sectest.actProtectedObjects d
where m.key = d.key
outer union corr
select m.key, m.repoName, m.name, d.protectedObjRepoName, d.protectedObjModelType, d.protectedObjPublicType, d.protectedObjFolder, d.protectedObjName
from work.acts m, sectest.actProtectedACTs d
where m.key = d.key
outer union corr
select m.key, m.repoName, m.name, d.protectedObjRepoName, d.protectedObjModelType, d.protectedObjPublicType, d.protectedObjFolder, d.protectedObjName
from work.acts m, sectest.actProtectedUsers d
where m.key = d.key
outer union corr
select m.key, m.repoName, m.name, d.protectedObjRepoName, d.protectedObjModelType, d.protectedObjPublicType, d.protectedObjFolder, d.protectedObjName
from work.acts m, sectest.actProtectedGroups d
where m.key = d.key
outer union corr
select m.key, m.repoName, m.name, d.protectedObjRepoName, d.protectedObjModelType, d.protectedObjPublicType, d.protectedObjFolder, d.protectedObjName
from work.acts m, sectest.actProtectedRoles d
where m.key = d.key
order by key, protectedObjFolder, protectedObjName
;
create table work.actAppliedACEs as
select m.key, m.repoName, m.name, d.aceIdentityRepoName, d.aceIdentityPublicType, d.aceIdentityName, d.acePermissions
from work.acts m, sectest.actAppliedGroupACEs d
where m.key = d.key
outer union corr
select m.key, m.repoName, m.name, d.aceIdentityRepoName, d.aceIdentityPublicType, d.aceIdentityName, d.acePermissions
from work.acts m, sectest.actAppliedUserACEs d
where m.key = d.key
order by key, aceIdentityRepoName, aceIdentityPublicType, aceIdentityName;
;
quit;
libname sectest;
filename map;
filename sectest;
* -----------------------------------------------------------------------------;
ods listing close;
ods html body='output/act-reviewer-sectest-data.html';
title1 "ACTs";
proc print data=work.acts;
run;
title1 "Permission Patterns for ACTs";
proc print data=work.actPermissionPatterns;
run;
title1 "ACT Protected Objects";
proc print data=work.actProtectedObjects;
run;
title1 "ACTs applied to ACTs";
proc print data=work.actAppliedACTs;
run;
title1 "ACEs applied to ACTs";
proc print data=work.actAppliedACEs;
run;
ods html close;
ods listing;
* -----------------------------------------------------------------------------;