Skip to content

Commit 5cfba6b

Browse files
committed
feat(flex-linux-setup): move flex schema to flex setup
Signed-off-by: Mustafa Baser <mbaser@mail.com>
1 parent 2f2ced8 commit 5cfba6b

File tree

2 files changed

+88
-2
lines changed

2 files changed

+88
-2
lines changed

flex-linux-setup/flex_linux_setup/flex_schema.json

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,29 @@
1515
"type": "TEXT"
1616
}
1717
}
18+
},
19+
{
20+
"desc": "Admin UI feature identifier",
21+
"equality": "caseIgnoreMatch",
22+
"names": [
23+
"auiFeatureId"
24+
],
25+
"oid": "jansAttr",
26+
"substr": "caseIgnoreSubstringsMatch",
27+
"syntax": "1.3.6.1.4.1.1466.115.121.1.15",
28+
"x_origin": "Jans created attribute"
29+
},
30+
{
31+
"desc": "Webhook identifier",
32+
"equality": "caseIgnoreMatch",
33+
"names": [
34+
"webhookId"
35+
],
36+
"rdbm_json_column": true,
37+
"oid": "jansAttr",
38+
"substr": "caseIgnoreSubstringsMatch",
39+
"syntax": "1.3.6.1.4.1.1466.115.121.1.15",
40+
"x_origin": "Jans created attribute"
1841
}
1942
],
2043
"objectClasses": [
@@ -39,6 +62,70 @@
3962
"top"
4063
],
4164
"x_origin": "Gluu Flex created objectclass"
65+
},
66+
{
67+
"kind": "STRUCTURAL",
68+
"may": [
69+
"auiFeatureId",
70+
"displayName",
71+
"jansScope",
72+
"webhookId"
73+
],
74+
"must": [
75+
"objectclass"
76+
],
77+
"names": [
78+
"auiFeatures"
79+
],
80+
"oid": "jansObjClass",
81+
"sup": [
82+
"top"
83+
],
84+
"x_origin": "Gluu Flex created objectclass"
85+
},
86+
{
87+
"kind": "STRUCTURAL",
88+
"may": [
89+
"inum",
90+
"displayName",
91+
"description",
92+
"url",
93+
"httpMethod",
94+
"httpRequestBody",
95+
"jansEnabled",
96+
"httpHeaders"
97+
],
98+
"must": [
99+
"objectclass"
100+
],
101+
"names": [
102+
"auiWebhooks"
103+
],
104+
"oid": "jansObjClass",
105+
"sup": [
106+
"top"
107+
],
108+
"x_origin": "Gluu Flex created objectclass"
109+
},
110+
{
111+
"kind": "STRUCTURAL",
112+
"may": [
113+
"inum",
114+
"jansResource",
115+
"jansAccessType",
116+
"jansScope"
117+
],
118+
"must": [
119+
"objectclass"
120+
],
121+
"names": [
122+
"adminUIResourceScopesMapping"
123+
],
124+
"oid": "jansObjClass",
125+
"sup": [
126+
"top"
127+
],
128+
"x_origin": "Gluu Flex created objectclass"
42129
}
43130
],
44131
"oidMacros": {

flex-linux-setup/flex_linux_setup/flex_setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,10 +485,9 @@ def get_scope_dn_by_id(self, jansid):
485485

486486

487487
def create_tables(self):
488-
print("self.schema_file", self.schema_file)
489488
self.dbUtils.read_jans_schema(others=[self.schema_file])
490489
rdbm_installer.create_tables([self.schema_file])
491-
490+
self.dbUtils.rdm_automapper(True)
492491

493492
def install_gluu_admin_ui(self):
494493

0 commit comments

Comments
 (0)