-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
2,552 additions
and
17 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
...-import/src/main/java/edu/unc/polygon/connector/amqp/AmqpFilterTranslator.java.2019-04-18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package edu.unc.polygon.connector.amqp; | ||
|
||
import org.identityconnectors.framework.common.objects.Attribute; | ||
import org.identityconnectors.framework.common.objects.Uid; | ||
import org.identityconnectors.framework.common.objects.filter.AbstractFilterTranslator; | ||
import org.identityconnectors.framework.common.objects.filter.EqualsFilter; | ||
|
||
import java.util.List; | ||
|
||
public class AmqpFilterTranslator extends AbstractFilterTranslator<String> { | ||
|
||
@Override | ||
protected String createEqualsExpression(EqualsFilter filter, boolean not) { | ||
if (not) { | ||
return null; | ||
} | ||
|
||
Attribute attr = filter.getAttribute(); | ||
if (!attr.is(Uid.NAME)) { | ||
return null; | ||
} | ||
|
||
List<Object> values = attr.getValue(); | ||
if (values.isEmpty()) { | ||
return null; | ||
} | ||
|
||
Object value = values.get(0); | ||
|
||
return value != null ? value.toString() : null; | ||
} | ||
} | ||
|
Binary file added
BIN
+3.7 KB
connector-amqp-import/target/classes/edu/unc/polygon/connector/amqp/AmqpConfiguration.class
Binary file not shown.
Binary file added
BIN
+18.3 KB
connector-amqp-import/target/classes/edu/unc/polygon/connector/amqp/AmqpConnector.class
Binary file not shown.
Binary file added
BIN
+793 Bytes
connector-amqp-import/target/classes/edu/unc/polygon/connector/amqp/AmqpFilter.class
Binary file not shown.
Binary file added
BIN
+2.94 KB
...ctor-amqp-import/target/classes/edu/unc/polygon/connector/amqp/AmqpFilterTranslator.class
Binary file not shown.
21 changes: 21 additions & 0 deletions
21
connector-amqp-import/target/classes/edu/unc/polygon/connector/amqp/Messages.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
UI_AMQP_CONNECTOR_NAME=AMQP Connector | ||
UI_AMQP_USERNAME=AMQP Username | ||
UI_AMQP_USERNAME_HELP=The Username to authenticate to the rabbitMQ virtualhost. | ||
UI_AMQP_PASSWORD=AMQP Password | ||
UI_AMQP_PASSWORD_HELP=Password for the rabbitMQ virtualhost connection. | ||
UI_AMQP_HOST=AMQP Host | ||
UI_AMQP_HOST_HELP=Hostname or IP of the server running rabbitMQ. | ||
UI_AMQP_EXCHANGE_NAME=AMQP Exchange Name | ||
UI_AMQP_EXCHANGE_NAME_HELP=The exchange or topic on the rabbitMQ virtualhost. | ||
UI_AMQP_QUEUE_NAME=AMQP Queue Name | ||
UI_AMQP_QUEUE_NAME_HELP=The queue on the rabbitMQ exchange. | ||
UI_AMQP_ROUTING_KEY=AMQP Routing Key | ||
UI_AMQP_ROUTING_KEY_HELP=The routing key for messages on the queue to process to import accounts. | ||
UI_AMQP_UNIQUE_ATTRIBUTE=AMQP Unique Attribute | ||
UI_AMQP_UNIQUE_ATTRIBUTE_HELP=The unique attribute for accounts on the source system or messages (id, externalId,userName etc.), may be the same as the name attribute. | ||
UI_AMQP_NAME_ATTRIBUTE=AMQP Name Attribute | ||
UI_AMQP_NAME_ATTRIBUTE_HELP=The name attribure for accounts in the source system or messages. | ||
UI_AMQP_PASSWORD_ATTRIBUTE=AMQP Password Attribute | ||
UI_AMQP_PASSWORD_ATTRIBUTE_HELP=The password attribute for the account from the source system or messages. | ||
UI_AMQP_SCIM_PAYLOAD_FIELD=Scim Payload Field | ||
UI_AMQP_SCIM_PAYLOAD_FIELD_HELP=The field inside the AMQP message that holds the SCIM payload. |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#Generated by Maven | ||
#Mon Nov 11 12:18:35 EST 2019 | ||
version=0.4-SNAPSHOT | ||
groupId=edu.unc.polygon | ||
artifactId=connector-amqp-import |
4 changes: 4 additions & 0 deletions
4
...import/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
edu/unc/polygon/connector/amqp/AmqpFilterTranslator.class | ||
edu/unc/polygon/connector/amqp/AmqpFilter.class | ||
edu/unc/polygon/connector/amqp/AmqpConfiguration.class | ||
edu/unc/polygon/connector/amqp/AmqpConnector.class |
4 changes: 4 additions & 0 deletions
4
...p-import/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/home/ekromhout/src/midpoint-connectors/connector-amqp-import/src/main/java/edu/unc/polygon/connector/amqp/AmqpConnector.java | ||
/home/ekromhout/src/midpoint-connectors/connector-amqp-import/src/main/java/edu/unc/polygon/connector/amqp/AmqpConfiguration.java | ||
/home/ekromhout/src/midpoint-connectors/connector-amqp-import/src/main/java/edu/unc/polygon/connector/amqp/AmqpFilterTranslator.java | ||
/home/ekromhout/src/midpoint-connectors/connector-amqp-import/src/main/java/edu/unc/polygon/connector/amqp/AmqpFilter.java |