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
<sub-flow name="invokePatientService" doc:name="invokePatientService"> | |
<cxf:proxy-client payload="body" enableMuleSoapHeaders="true" doc:name="Proxy client" /> | |
<http:outbound-endpoint exchange-pattern="request-response" host="localhost" port="${http.port}" path="PatientService" doc:name="PatientService" /> | |
</sub-flow> |
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
<flow name="admitPatientService" doc:name="admitPatientService"> | |
<http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="${http.port}" doc:name="AdmissionService" path="AdmissionService" /> | |
<cxf:proxy-service doc:name="Proxy service" namespace="http://www.mule-health.com/SOA/service/admission/1.0" payload="body" port="AdmissionPort" service="AdmissionService" wsdlLocation="service/AdmissionService.wsdl" validationEnabled="true"/> | |
... | |
</flow> |
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
<set-variable doc:name="operation" value="#[xpath('fn:local-name(/*)')]" variableName="operation"/> | |
<choice doc:name="Choice"> | |
<when expression="#[flowVars.operation == 'createEpisode']"> | |
... | |
</when> | |
<otherwise> | |
... | |
</otherwise> | |
</choice> |
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
mvn archetype:generate -DarchetypeGroupId=org.mule.tools.devkit -DarchetypeArtifactId=mule-devkit-archetype-generic -DarchetypeVersion=3.0.1 -DarchetypeRepository=http://repository.mulesoft.org/releases/ -DgroupId=org.mule.module.ldap -DartifactId=ldap-connector -Dversion=1.0 -DmuleVersion=3.3.1 -DmuleModuleName=LDAPConnector |
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
@Disconnect | |
public void disconnect() throws LDAPException | |
{ | |
... |
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
@ConnectionIdentifier | |
public String connectionId() | |
{ |
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
@ValidateConnection | |
public boolean isConnected() throws LDAPException | |
{ |
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
<ldap:config name="Ldap" authDn="${ldap.userDn}" authPassword="${ldap.password}" authentication="simple" url="${ldap.url}" doc:name="LDAP" /> | |
<flow name="search" doc:name="search"> | |
<http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8081" path="ldapSearch" doc:name="HTTP" /> | |
<ldap:search config-ref="Ldap" doc:name="search" baseDn="ou=People,dc=muleforge,dc=org" filter="(objectclass=person)" scope="SUB_TREE" pageSize="500" maxResults="200"> | |
<ldap:attributes> | |
<ldap:attribute>#[message.inboundProperties['http.query.params'].cn]</ldap:attribute> | |
</ldap:attributes> | |
</ldap:search> | |
<collection-splitter doc:name="Split Result Set"/> | |
<ldap:ldap-entry-to-ldif doc:name="to LDIF"/> |
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
@Transformer(sourceTypes = {LDAPEntry.class}) | |
public static String ldapEntryToLdif(LDAPEntry entry) | |
{ | |
... |
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
@Processor | |
public void addFromMap(@Optional @FriendlyName("DN") String dn, @Optional @Default("#[payload:]") Map<String, Object> entry) throws Exception | |
{ | |
... |