pfx-api:importUsers

 

Properties

Option

Type

Default

Description

Option

Type

Default

Description

connection

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.

mapper

string

 

Defines mapper name which is a Spring bean or definition in the header or property.

converterStrategyType

string

 

Defines converter strategy type for auto conversion of data based on the partition metadata.

keepExistingPermissions

Boolean

 

Keeps user's permissions for already existing users.

Examples

<route id="importusers-route"> <from uri="sftp://jiri@localhost:${sftpServer.getPort()}/yourdir?password=jiri&amp;binary=true&amp;move=.done&amp;moveFailed=.error&amp;doneFileName=file.done&amp;useUserKnownHostsFile=false&amp;readLock=changed"/> <setProperty name="CamelCorrelationId"> <constant>test</constant> </setProperty> <to uri="pfx-csv:unmarshal?skipHeaderRecord=true" /> <to uri="pfx-api:importUsers?mapper=loadUserMapper&amp;connection=pricefx&amp;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&amp;mapper=loadUserMapper&amp;keepExistingPermissions=true" /> <to uri="mock:end"/> </route> </routes>

 

IntegrationManager version 5.8.0