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 (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -106,54 +106,81 @@ 106 106 107 107 = Configuration = 108 108 109 +Now you can modify the systems configuration files, use the values written down from databases. 110 + 109 109 === __Competent__ === 110 110 111 111 In the application.properties, or in your own application-yourNameShortcut.properties file set the following propeties: 112 112 113 -* **competentItrivioIntegration.enabled=true** 114 -//(true to allow the connection between apps)// 115 -* **competentItrivioIntegration.itrivioCompanyUrlContext=/test** 116 -//(url name of the company for which you are setting the connection, leave empty if the only company is the root)// 117 -* **competentItrivioIntegration.url=http:~/~/localhost:8080/** 118 -//(url of the iTrivio app)// 119 -* **competentItrivioIntegration.linkUrl=http:~/~/127.0.0.1:8080** 120 -//(probably the same as above, this will be the url where the iTrivio courses will run, leave out the final slash! or the course address will show wrong)// 121 -* **competentItrivioIntegration.itrivioCompanyId=1** 122 -//(Id of the company you are setting it for)// 123 -* **competentItrivioIntegration.userCreatorItrivioUserId=2** 124 -//(ID of the user - existing in the system - in whos name the courses will be created. Someone with Admin roles)// 125 -* **competentItrivioIntegration.newUserSubtypeId=1** 126 -//(ID of subtype of user in Competent? - for when creating new users - probably)// 127 -* **competentItrivioIntegration.newActivitySubtypeId=2** 128 -//(ID of subtype of Activity? - when creating new activities - probably)// 129 -* **competentItrivioIntegration.newActivityTargetFolderId=20** 130 -//(ID of folder in iTrivio in which to create new Activites)// 131 -* **competentItrivioIntegration.auth.userId=2** 132 -//(ID of user in whose name the authorisation of running the course will be done?)// 133 -* **competentItrivioIntegration.auth.key=** 134 -//(secret key for JWT token)// 135 -* **competentItrivioIntegration.auth.environment=demo** 136 -//(authentication environment, used in JWT token I think)// 115 +{{code language="properties"}} 116 +#-# set to true if enabled 117 +competentItrivioIntegration.enabled=true 137 137 119 +#-# itrivio company url context, leave empty if company has no url context 120 +competentItrivioIntegration.itrivioCompanyUrlContext=<COMPANY_URL> 121 + 122 +#-# url of iTrivio app (for integration API communication - accessible from Competent server location) 123 +competentItrivioIntegration.url=http://localhost:8080/ 124 + 125 +#-# url of iTrivio app (for generating user links - accessible from browser of users) 126 +competentItrivioIntegration.linkUrl=http://localhost:8080 127 + 128 +#-# integrated iTrivio db company ID 129 +competentItrivioIntegration.itrivioCompanyId=<COMPANY_ID> 130 + 131 +#-# -------------- COMPETENT INTEGRATION ------------ 132 +#-# --- From Competent to iTrivio synchronization --- 133 + 134 +#-# iTrivio db user ID, which will be used as a creator iTrivio ID when creating new users in iTrivio 135 +competentItrivioIntegration.userCreatorItrivioUserId=<ADMIN_USER_CREATOR> 136 + 137 +#-# iTrivio db user ID, which account will be used to perform actions in iTrivio (such as creating courses and users) 138 +competentItrivioIntegration.auth.userId=<ADMIN_CREATOR> 139 + 140 +#-# need to be same as "environment.id" property in iTrivio "settings.properties" file 141 +competentItrivioIntegration.auth.environment=PROD 142 + 143 +#-# need to be same as "jwt.key" property in iTrivio "settings.properties" file 144 +competentItrivioIntegration.auth.key=CHANGE_ME 145 + 146 +#-# -------------- COMPETENT INTEGRATION ------------ 147 +#-# --- From iTrivio to Competent synchronization --- 148 + 149 +#-# competent db subtype ID, which will be used when creating new Users in Competent 150 +competentItrivioIntegration.newUserSubtypeId=<USER_SUBTYPE> 151 + 152 +#-# competent db subtype ID, which will be used when creating new Activities in Competent 153 +competentItrivioIntegration.newActivitySubtypeId=<ACTIVITY_SUBTYPE> 154 + 155 +#-# competent db activitySet (folder) ID, which will be used when creating new Activities in Competent as parent folder ID 156 +competentItrivioIntegration.newActivityTargetFolderId=<ACTIVITY_FOLDER> 157 +{{/code}} 158 + 138 138 = iTrivio part = 139 139 161 +Run the url "http(s):~/~/<yourdomain>:<port>/(companyUrl/)setCompanyConfig.html" on the domain and port your iTrivio runs and with the companyUrl of the company you are setting this for. 140 140 141 - Run the url [[http:~~/~~/localhost:8080/(companyUrl/)setCompanyConfig.html>>url:http://localhost:8080/setCompanyConfig.html?locale=cs]] ofcourse on the domainyour iTrivio runs and withthecompanyUrl of the comany you aresettingthisfor.163 +Fill in the settings COMPETENT_INTEGRATION_XXX: 142 142 143 -Fill in the settings COMPETENT_INTEGRATION_: 165 +* **COMPETENT_INTEGRATION_ENABLED// //**//check the box to be set to true// 166 +* **COMPETENT_INTEGRATION_TARGET_FOLDER_ID** = <COURSE_FOLDER> 167 +* **COMPETENT_INTEGRATION_API_URL **//(url where Competent is running eg.: //[[http:~~/~~/localhost:9000/>>url:http://localhost:9000/]]//)// 168 +* **COMPETENT_INTEGRATION_USERGROUP_ID** = <USERGROUP> 169 +* **COMPETENT_INTEGRATION_COURSE_TEMPLATE** = <PLAYER_TEMPLATE> 144 144 145 -* **COMPETENT_INTEGRATION_ENABLED**// (set to true)// 146 -* **COMPETENT_INTEGRATION_TARGET_FOLDER_ID **//(ID of folder in iTrivio in which to create new Activites)// 147 -* **COMPETENT_INTEGRATION_API_URL **//(url where competent is running eg.: //[[http:~~/~~/localhost:9000/>>url:http://localhost:9000/]]//)// 148 -* **COMPETENT_INTEGRATION_USERGROUP_ID **//(ID of usergroup in iTrivio in which new users will be created)// 149 -* **COMPETENT_INTEGRATION_COURSE_TEMPLATE **//(optional - ID of course template in which new courses will be created)// 171 +Save the setting with the **Odeslat **button 150 150 151 - //(Save the settings...)//173 +Now open the file "/com.itrivio/src/main/resources/settings.properties" and set the two following properties: 152 152 153 -Now open the file /com.itrivio/src/main/resources/settings.properties and set the two following properties: 175 +{{code language="properties"}} 176 +# custom environment name, e.g. PROD,DEV,TEST... (must match the competentItrivioIntegration.auth.environment property from Competent) 177 +environment.id=PROD 154 154 155 -**environment.id=croco**// (must match the **competentItrivioIntegration.auth.environment** property from Competent)// 156 -**jwt.key=CCzzzQYDR1HTdfe67zoa **//(must match the **competentItrivioIntegration.auth.key** property from Competent)// 179 +# secret part of you JWT key - used for communication with the Competent system and creating auto-login links 180 +# see also jwt.expiration 181 +# (must match the competentItrivioIntegration.auth.key property from Competent) 182 +jwt.key=aaasssddd 183 +{{/code}} 157 157 158 158 = Final setting test = 159 159