Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
tutorial:dev:conector_-_how_to_implement_connector [2020/02/14 07:29]
kucerar crate connector without downloading archetype
tutorial:dev:conector_-_how_to_implement_connector [2020/06/10 08:07] (current)
kucerar licence
Line 31: Line 31:
 </note> </note>
  
-===== 2. Implement generated schema =====+===== 2. Licence for new connector ===== 
 +When you have skeleton for the new connector from artifact, you need to created two files if you have plans to edit any file which was generated. Your new connector will be under CDDL and Apache licence. Requirements are changelog file and licence file. 
 + 
 +In root directory for you connector create: 
 +  * LICENCE - example https://github.com/bcvsolutions/moodle-connector/blob/develop/LICENSE 
 +  * CHANGELOG.md - example https://github.com/bcvsolutions/moodle-connector/blob/develop/CHANGELOG.md 
 + 
 + 
 +===== 3. Implement generated schema =====
  
 Now everything is generated so we can start to implement the connector. First, we need to change the name of our Sample classes. Let's say we change these names to //CSVConnConnector//, //CSVConnConfiguration// and //CSVConnFilter//. Now everything is generated so we can start to implement the connector. First, we need to change the name of our Sample classes. Let's say we change these names to //CSVConnConnector//, //CSVConnConfiguration// and //CSVConnFilter//.
Line 728: Line 736:
 </code> </code>
  
-===== 3. Add connector to IDM =====+===== 4. Add connector to IDM =====
  
 After everything is written we should add our new connector into IDM. It might look like its hard but actually, it is easy. We just add dependency into app module in CzechIdM app. After everything is written we should add our new connector into IDM. It might look like its hard but actually, it is easy. We just add dependency into app module in CzechIdM app.
Line 741: Line 749:
 </code> </code>
  
-===== 4. Setup logging for connector =====+===== 5. Setup logging for connector =====
  
 If you want to log for example INFO messages from connectors you have to add following property to your active profile in logback-spring.xml: If you want to log for example INFO messages from connectors you have to add following property to your active profile in logback-spring.xml:
  • by kucerar