Skip to content

Commit

Permalink
Changed to support current version of core person schema, added safe …
Browse files Browse the repository at this point in the history
…checks for missing attributes.
  • Loading branch information
ethan committed May 15, 2019
1 parent 29af31a commit 45ecbe5
Show file tree
Hide file tree
Showing 3 changed files with 271 additions and 85 deletions.
56 changes: 37 additions & 19 deletions connector-amqp-import/README
Original file line number Diff line number Diff line change
Expand Up @@ -5,41 +5,59 @@ into midPoint as a source for registry entries. Currently
it implements a very minimal sample of the TIER minimal
registry schema published in:

* https://gist.github.com/geszes/b63b5c3dedff2a2f702c6fd54555b9cc

Currently it is hard coded for a demonstration of importing
a minor sample of the schema such as:
https://github.internet2.edu/TIER/schema/blob/master/schema/core-person.json

{
"id": "EMPP00010",
"names": [
"name": {
"familyName": "Jansen",
"givenName": "Jo",
"middleName": "ethan",
"nameType": "Legal"
},
"birthDate": "1955-12-10",
"logon-id": "jjansen",
"subject-id": "34-546877",
"priorSubject-id": [
{
"givenName": "Ethan",
"familyName": "Kromhout",
"formatted": "Ethan Kromhout"
"id": "34-546876"
}
],
"emails": [
"sourceId": [
{
"id": "357A225",
"source": "SIS"
},
{
"value": "ethan10@unc.edu",
"type": "primary"
"id": "jansen121",
"source": "HR"
}
],
"phoneNumbers": [
"email": [
{
"value": "9194450056"
"emailAddress": "jjansen@goo.edu",
"emailType": "primary"
}
]
],
"phone": [
{
"phoneNumber": "9194450056",
"phoneType": "Work"
},
{
"phoneNumber": "9194481296",
"phoneType": "Mobile"
}
],
"personalPronoun": "Mr"
}

This limited version is being published as a part of
demonstrations for TechEx 2017, but should be expanded
further after that event.

The connector currently supports DeleteOp, SearchOp<String>, SchemaOp, TestOp
with DeleteOp not having any actions, import operations are supported
by the SearchOp.

__NAME__ currently set to required email attribute.
__UID__ set to sourceId attribute, a concatenation of source + '-' + id.

The configuration class supports items that are described in

* src/main/resources/edu/unc/polygon/connector/amqp/Messages.properties
Expand Down
6 changes: 3 additions & 3 deletions connector-amqp-import/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

<groupId>edu.unc.polygon</groupId>
<artifactId>connector-amqp-import</artifactId>
<version>0.1-SNAPSHOT</version>
<version>0.3-SNAPSHOT</version>
<packaging>jar</packaging>

<name>AMQP Connector</name>
Expand Down Expand Up @@ -89,12 +89,12 @@
<version>4.0.2</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-api -->
<!-- <dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.12</version>
<scope>provided</scope>
</dependency> -->
</dependency>
<!-- https://mvnrepository.com/artifact/com.googlecode.json-simple/json-simple -->
<dependency>
<groupId>com.googlecode.json-simple</groupId>
Expand Down
Loading

0 comments on commit 45ecbe5

Please sign in to comment.