Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
| tutorial:adm:systems_db_treenodes_provisioning [2018/03/02 15:48] – stloukalp | tutorial:adm:systems_db_treenodes_provisioning [2018/03/05 08:53] (current) – stloukalp | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Systems - DB: TreeNodes (org. structure) provisioning ====== | ||
| + | ===== What do you need before you start ===== | ||
| + | * You need install **CzechIdM 7.7.0** (and higher). | ||
| + | * You need be logged in as **admin**. | ||
| + | * You need enable **ACC** module. | ||
| + | * You must have database **jdbcTest** with table **organizations**: | ||
| + | < | ||
| + | CREATE DATABASE " | ||
| + | WITH OWNER = idmadmin | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | </ | ||
| + | < | ||
| + | CREATE TABLE public.organizations | ||
| + | ( | ||
| + | id character varying(255), | ||
| + | code character varying(255), | ||
| + | name character varying(255), | ||
| + | parent character varying(255) | ||
| + | ) | ||
| + | WITH ( | ||
| + | OIDS=FALSE | ||
| + | ); | ||
| + | ALTER TABLE public.organizations | ||
| + | OWNER TO idmadmin; | ||
| + | </ | ||
| + | |||
| + | ===== Create and edit DB system ===== | ||
| + | We have completely empty organization' | ||
| + | {{ : | ||
| + | Now we go into **Systems** agenda and add new system. Click on green button **Add**. | ||
| + | {{ : | ||
| + | Fill **System name** and at bottom of page there is green button **Save and continue**, so click on it. | ||
| + | {{ : | ||
| + | Go to **Configuration** tab and fill in information about your database. Ours are as such: | ||
| + | < | ||
| + | ^ Host ^ jdbc: | ||
| + | | Port | 5432 | | ||
| + | | User | idmadmin | ||
| + | | User Password | ||
| + | | Database | ||
| + | | Table | organizations | ||
| + | | Key Column | ||
| + | | JDBC Driver | ||
| + | | JDBC Connection URL | jdbc: | ||
| + | </ | ||
| + | {{ : | ||
| + | Then go to tab **Scheme** and generate scheme. | ||
| + | {{ : | ||
| + | Then go to **Mapping** and click on **Add** button. | ||
| + | {{ : | ||
| + | Now fill in information from picture bellow and click on **Save and continue**. | ||
| + | {{ : | ||
| + | At the bottom of page, there are mapped attributes. We are going to add 4 attributes: | ||
| + | < | ||
| + | ^ Attribute in schema ^ Name ^ Identifier ^ Entity attr. ^ Extended attr. ^ Entity field ^ IdM key ^ | ||
| + | | code | code | false | true | false | Code (String) | ||
| + | | name | name | false | true | false | Name (String) | ||
| + | | parent | ||
| + | | __NAME__ | ||
| + | </ | ||
| + | |||
| + | Fill "code, name, parent" | ||
| + | {{ : | ||
| + | But " | ||
| + | {{ : | ||
| + | Now we have 4 mapped attributes: | ||
| + | {{ : | ||
| + | Go to the section **Organization** (in the left menu) to **Structure elements** tab and **Add** new organization. | ||
| + | {{ : | ||
| + | Fill in information of root organization: | ||
| + | {{ : | ||
| + | Then add another organization, | ||
| + | {{ : | ||
| + | As you can see in section **Organization** we have two structure elements. | ||
| + | {{ : | ||
| + | And in database: | ||
| + | {{ : | ||
| + | |||
| + | |||
| + | If you have it in a state like in the upper picture you successfully complete this tutorial. | ||
| + | |||
| + | < | ||