Changes for page Competent - iTrivio integration
Last modified by Petr Blšťák on 2024/09/18 11:55
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Objects (0 modified, 0 added, 1 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. jvencl1 +XWiki.pblstak - Content
-
... ... @@ -1,3 +1,8 @@ 1 +(% class="box errormessage" %) 2 +((( 3 +This section is currently under construction... please wait until is finished 4 +))) 5 + 1 1 = Software to be installed = 2 2 3 3 //Unless stated otherwise, newer stable versions of the program should work.// ... ... @@ -62,7 +62,6 @@ 62 62 1. Furthermore we need to create a folder, that would hold all the iTrivio courses in case of synchronization from iTrivio, so 63 63 1*. Log into Competent as the admin user and switch to the Admin view (if you didn't already) 64 64 1*. Go to the Competent page Activities and create a new folder named for example iTrivio Courses (click on the green plus icon, choose Folder, fill in it's name and click Save). 65 -1. If you want some other user than the default Competent admin to be able to edit the iTrivio courses, create this user. Note that this user should have appropriate admin rights. We recommend to use the default admin for now. 66 66 67 67 === __iTrivio__ === 68 68 ... ... @@ -86,7 +86,7 @@ 86 86 1. __Competent__ database, in the table __activity_set__ write down 87 87 1*. **ACTIVITY_FOLDER **(by default 1) = ID of the folder you created for new itrivio courses (find by name in the column "name") 88 88 1. __iTrivio__ database, in the table __company__ write down 89 -1*. **COMPANY_ID **(by default 1) = ID of the company that will be synch ronized with Competent (find by name in the column "name")93 +1*. **COMPANY_ID **(by default 1) = ID of the company that will be synchornized with Competent (find by name in the column "name") 90 90 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") 91 91 1. __iTrivio__ database, in the table __course__ write down 92 92 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,9 +96,10 @@ 96 96 1*. **ADMIN_USER_CREATOR **(by default 2) = ID of the user that will be creating all the users in iTrivio 97 97 1. __iTrivio__ database, in the table __usergroup__ write down 98 98 1*. **USERGROUP **(by default 1) = ID of the usegroup that all your new users will be assigned to 103 +1. __iTrivio__ database, in the table __playerskintemplate__ write down 104 +1*. **PLAYER_TEMPLATE **(by default 1) = ID of the player that will play your iTrivio courses (this is optional as the system has a default player) 105 +1. **TODO - IMPORTANT BUT CHECK WITH ONDREJ** - manually connect the two admins in Competent DB by external ID??? And generally who can EDIT the courses...? 99 99 100 -Beside these ids from database you might need 101 - 102 102 = Configuration = 103 103 104 104 Now you can modify the systems configuration files, use the values written down from databases. ... ... @@ -105,14 +105,8 @@ 105 105 106 106 === __Competent__ === 107 107 108 - Firstwe needtomanuallyconnecthe first twousers:113 +In the application.properties, or in your own application-yourNameShortcut.properties file set the following propeties: 109 109 110 -* 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). 111 -* Find the column external_id and instead of NULL fill in the **<ADMIN_CREATOR>** value. 112 -* 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. 113 - 114 -Now open the **application.properties** file and set the following propeties: 115 - 116 116 {{code language="properties"}} 117 117 #-# set to true if enabled 118 118 competentItrivioIntegration.enabled=true ... ... @@ -129,14 +129,6 @@ 129 129 #-# integrated iTrivio db company ID 130 130 competentItrivioIntegration.itrivioCompanyId=<COMPANY_ID> 131 131 132 -#-# iTrivio db course ID, which will be used as a template for new test 133 -# can be null, than the test will be empty 134 -competentItrivioIntegration.itrivioTestTemplateId=<COURSE_ID or EMPTY> 135 - 136 -#-# iTrivio db course ID, which will be used as a template for new course 137 -# can be null, than the course will be empty 138 -competentItrivioIntegration.itrivioCourseTemplateId=<TEST_ID or EMPTY> 139 - 140 140 #-# -------------- COMPETENT INTEGRATION ------------ 141 141 #-# --- From Competent to iTrivio synchronization --- 142 142 ... ... @@ -150,7 +150,7 @@ 150 150 competentItrivioIntegration.auth.environment=PROD 151 151 152 152 #-# need to be same as "jwt.key" property in iTrivio "settings.properties" file 153 -competentItrivioIntegration.auth.key= SECRET_CODE_CHANGE_IT144 +competentItrivioIntegration.auth.key=CHANGE_ME 154 154 155 155 #-# -------------- COMPETENT INTEGRATION ------------ 156 156 #-# --- From iTrivio to Competent synchronization --- ... ... @@ -175,7 +175,7 @@ 175 175 * **COMPETENT_INTEGRATION_TARGET_FOLDER_ID** = <COURSE_FOLDER> 176 176 * **COMPETENT_INTEGRATION_API_URL **//(url where Competent is running eg.: //[[http:~~/~~/localhost:9000/>>url:http://localhost:9000/]]//)// 177 177 * **COMPETENT_INTEGRATION_USERGROUP_ID** = <USERGROUP> 178 -* **COMPETENT_INTEGRATION_COURSE_TEMPLATE** = //leavethis optionblank,fornow ithasnoeffecton the system//169 +* **COMPETENT_INTEGRATION_COURSE_TEMPLATE** = <PLAYER_TEMPLATE> TODO This doesn't seem to have any effect 179 179 180 180 Save the setting with the **Odeslat **button (nothing visible will happen, don't be worried, it was saved) 181 181 ... ... @@ -182,19 +182,19 @@ 182 182 Now open the file "/com.itrivio/src/main/resources/settings.properties" and set the two following properties: 183 183 184 184 {{code language="properties"}} 185 -# custom environment name, e.g. PROD,DEV,TEST... 186 -# (must match the competentItrivioIntegration.auth.environment property from Competent) 176 +# custom environment name, e.g. PROD,DEV,TEST... (must match the competentItrivioIntegration.auth.environment property from Competent) 187 187 environment.id=PROD 188 188 189 189 # secret part of you JWT key - used for communication with the Competent system and creating auto-login links 180 +# see also jwt.expiration 190 190 # (must match the competentItrivioIntegration.auth.key property from Competent) 191 -jwt.key= SECRET_CODE_CHANGE_IT182 +jwt.key=aaasssddd 192 192 {{/code}} 193 193 194 194 = Final setting test = 195 195 196 -* Now run (or restart)bothSystems, **butfrom now ondo not touch iTrivio **apart from making changes in the course creator tool when redirected there from Competent.197 -* Log into Competent (as the user able to edit iTrivio courses), go to the Admin view to the Activities page.187 +* Now run both Apps, **but do not touch iTrivio app** apart from making changes in the course creator tool when redirected there from Competent. 188 +* Log into Competent, go to the Admin view to the Activities page. 198 198 * Create an Activity (of whatever subtype) and go to it's tab Details 199 199 * Edit the Launch type property, set it to iTrivio and hit the Save and Create in iTrivio button 200 200 * If you get any errors, check the configuration if all is set properly
- XWiki.XWikiComments[0]
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -xwiki:XWiki.jvencl - Comment
-
... ... @@ -1,1 +1,0 @@ 1 -ACTIVITY_FOLDER should be an id not text - Date
-
... ... @@ -1,1 +1,0 @@ 1 -2020-10-12 12:18:01.0 - Selection
-
... ... @@ -1,1 +1,0 @@ 1 -ACTIVITY_FOLDER (by default 1) = ID of the folder you created for new itrivio courses (find by name in the column "name") - State
-
... ... @@ -1,1 +1,0 @@ 1 -SAFE - Target
-
... ... @@ -1,1 +1,0 @@ 1 -Main.Official manuals.Competent installation manual.Competent - iTrivio integration.WebHome