From version < 32.1 >
edited by Ondřej Steffl
on 2024/09/13 07:01
To version < 19.1 >
edited by Petr Blšťák
on 2020/04/30 14:10
< >
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.osteffl
1 +XWiki.pblstak
Content
... ... @@ -4,8 +4,9 @@
4 4  
5 5  ==== [[iTrivio 2.9.017>>doc:Main.Official manuals.iTrivio installation manual.WebHome]] ====
6 6  
7 -==== [[Competent 622>>doc:Main.Official manuals.Competent installation manual.WebHome]] ====
7 +==== [[Competent 33>>doc:Main.Official manuals.Competent installation manual.WebHome]] ====
8 8  
9 +
9 9  = Introduction =
10 10  
11 11  //On this page we use the term "Course" for both: course and test in iTrivio.//
... ... @@ -85,7 +85,7 @@
85 85  1. __Competent__ database, in the table __activity_set__ write down
86 86  1*. **ACTIVITY_FOLDER **(by default 1) = ID of the folder you created for new itrivio courses (find by name in the column "name")
87 87  1. __iTrivio__ database, in the table __company__ write down
88 -1*. **COMPANY_ID **(by default 1) = ID of the company that will be synchronized with Competent (find by name in the column "name")
89 +1*. **COMPANY_ID **(by default 1) = ID of the company that will be synchornized with Competent (find by name in the column "name")
89 89  1*. **COMPANY_URL **(by default empty) = value from the column "urlContext" of the company that will be synchornized with Competent (find by name in the column "name")
90 90  1. __iTrivio__ database, in the table __course__ write down
91 91  1*. **COURSE_FOLDER **(by default 1) = ID of the folder that you created for new courses created from Competent (find by name in the column "name")
... ... @@ -96,11 +96,6 @@
96 96  1. __iTrivio__ database, in the table __usergroup__ write down
97 97  1*. **USERGROUP **(by default 1) = ID of the usegroup that all your new users will be assigned to
98 98  
99 -Beside these ids from database you might need these two optional course ids:
100 -
101 -* **COURSE_TEMPLATE_ID** - a course id that will be used as a template for newly created courses.
102 -* **TEST_TEMPLATE_ID** - a test id for newly created tests
103 -
104 104  = Configuration =
105 105  
106 106  Now you can modify the systems configuration files, use the values written down from databases.
... ... @@ -109,8 +109,8 @@
109 109  
110 110  First we need to manually connect the first two users:
111 111  
112 -* Go to the Competent database once more, to the table __user_mt__ and find either the default Competent admin (by login "admin" and typically it will be the user with ID=1) or the other user you created in the Competent preparation step (for editing your iTrivio courses).
113 -* Find the column external_id and instead of NULL fill in the **<ADMIN_CREATOR>** value.
108 +* Go to the Competent database once more, to the table __user_mt__ and find either the default Competent admin (by login "admin" and typically it will be the user with ID=1) or the other user you created in the Competent preparation step, to edit your iTrivio courses.
109 +* Find the column external_id and instead of NULL fill in the <ADMIN_CREATOR> value.
114 114  * For now, this user will be the **only one** in your company that will be able to edit the iTrivio courses. Other users with appropriate rights can only create/delete/run them.
115 115  
116 116  Now open the **application.properties** file and set the following propeties:
... ... @@ -131,14 +131,6 @@
131 131  #-# integrated iTrivio db company ID
132 132  competentItrivioIntegration.itrivioCompanyId=<COMPANY_ID>
133 133  
134 -#-# iTrivio db course ID, which will be used as a template for new test
135 -# can be null, than the test will be empty
136 -competentItrivioIntegration.itrivioTestTemplateId=<COURSE_TEMPLATE_ID or EMPTY>
137 -
138 -#-# iTrivio db course ID, which will be used as a template for new course
139 -# can be null, than the course will be empty
140 -competentItrivioIntegration.itrivioCourseTemplateId=<TEST_TEMPLATE_ID or EMPTY>
141 -
142 142  #-# -------------- COMPETENT INTEGRATION ------------
143 143  #-# --- From Competent to iTrivio synchronization ---
144 144  
... ... @@ -152,7 +152,7 @@
152 152  competentItrivioIntegration.auth.environment=PROD
153 153  
154 154  #-# need to be same as "jwt.key" property in iTrivio "settings.properties" file
155 -competentItrivioIntegration.auth.key=SECRET_CODE_CHANGE_IT
143 +competentItrivioIntegration.auth.key=CHANGE_ME
156 156  
157 157  #-# -------------- COMPETENT INTEGRATION ------------
158 158  #-# --- From iTrivio to Competent synchronization ---
... ... @@ -184,13 +184,13 @@
184 184  Now open the file "/com.itrivio/src/main/resources/settings.properties" and set the two following properties:
185 185  
186 186  {{code language="properties"}}
187 -# custom environment name, e.g. PROD,DEV,TEST...
188 -# (must match the competentItrivioIntegration.auth.environment property from Competent)
175 +# custom environment name, e.g. PROD,DEV,TEST... (must match the competentItrivioIntegration.auth.environment property from Competent)
189 189  environment.id=PROD
190 190  
191 191  # secret part of you JWT key - used for communication with the Competent system and creating auto-login links
179 +# see also jwt.expiration
192 192  # (must match the competentItrivioIntegration.auth.key property from Competent)
193 -jwt.key=SECRET_CODE_CHANGE_IT
181 +jwt.key=xxxsecret
194 194  {{/code}}
195 195  
196 196  = Final setting test =