pfx-api:importUsers
Â
Properties
Option | Type | Default | Description |
---|---|---|---|
| string | Â | Defines connection to Pricefx. This is an optional parameter and if it is not mentioned, the connection is taken from the Spring bean named pricefx. |
| string | Â | Defines mapper name which is a Spring bean or definition in the header or property. |
| string | Â | Defines converter strategy type for auto conversion of data based on the partition metadata. |
| Boolean | Â | Keeps user's permissions for already existing users. |
Examples
<route id="importusers-route">
<from uri="sftp://jiri@localhost:${sftpServer.getPort()}/yourdir?password=jiri&binary=true&move=.done&moveFailed=.error&doneFileName=file.done&useUserKnownHostsFile=false&readLock=changed"/>
<setProperty name="CamelCorrelationId">
<constant>test</constant>
</setProperty>
<to uri="pfx-csv:unmarshal?skipHeaderRecord=true" />
<to uri="pfx-api:importUsers?mapper=loadUserMapper&connection=pricefx&keepExistingPermissions=true"/>
<to uri="mock:response"/>
</route>
Â
<loadMapper id="loadUserMapper" includeUnmappedProperties="true">
<body in="uid" out="loginName"/>
<loadMapper>
<routes xmlns="http://camel.apache.org/schema/spring">
<route>
<from uri="direct:start"/>
<to uri="pfx-api:importUsers?connection=pricefx&mapper=loadUserMapper&keepExistingPermissions=true" />
<to uri="mock:end"/>
</route>
</routes>
Â
IntegrationManager version 5.8.0