| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| --> |
| <routes> |
| |
| <route id="createUser"> |
| <from uri="direct:createUser"/> |
| <setProperty name="actual"> |
| <simple>${body}</simple> |
| </setProperty> |
| <doTry> |
| <bean method="create(${body}, |
| ${exchangeProperty.disablePwdPolicyCheck}, |
| ${exchangeProperty.enabled}, |
| ${exchangeProperty.creator}, |
| ${exchangeProperty.context})" |
| ref="uwfAdapter" /> |
| <to uri="propagate:create?anyTypeKind=USER"/> |
| <to uri="direct:createPort"/> |
| <doCatch> |
| <exception>java.lang.RuntimeException</exception> |
| <handled> |
| <constant>false</constant> |
| </handled> |
| <to uri="direct:createPort"/> |
| </doCatch> |
| </doTry> |
| </route> |
| |
| <route id="updateUser"> |
| <from uri="direct:updateUser"/> |
| <setProperty name="actual"> |
| <simple>${body}</simple> |
| </setProperty> |
| <doTry> |
| <bean ref="uwfAdapter" method="update(${body},${exchangeProperty.updater},${exchangeProperty.context})"/> |
| <to uri="propagate:update?anyTypeKind=USER"/> |
| <to uri="direct:updatePort"/> |
| <doCatch> |
| <exception>java.lang.RuntimeException</exception> |
| <handled> |
| <constant>false</constant> |
| </handled> |
| <to uri="direct:updatePort"/> |
| </doCatch> |
| </doTry> |
| </route> |
| |
| <route id="updateUserInPull"> |
| <from uri="direct:updateUserInPull"/> |
| <doTry> |
| <bean ref="uwfAdapter" method="update(${body},${exchangeProperty.updater},${exchangeProperty.context})"/> |
| <to uri="direct:userInPull"/> |
| <doCatch> |
| <exception>java.lang.RuntimeException</exception> |
| <handled> |
| <constant>false</constant> |
| </handled> |
| <to uri="direct:updateInPullPort"/> |
| </doCatch> |
| </doTry> |
| </route> |
| |
| <route id="userInPull"> |
| <from uri="direct:userInPull"/> |
| <to uri="propagate:status?anyTypeKind=USER&pull=true"/> |
| <to uri="propagate:update?anyTypeKind=USER&pull=true"/> |
| <to uri="direct:updateInPullPort"/> |
| </route> |
| |
| <route id="deleteUser"> |
| <from uri="direct:deleteUser"/> |
| <doTry> |
| <to uri="propagate:delete?anyTypeKind=USER"/> |
| <bean ref="uwfAdapter" method="delete(${body},${exchangeProperty.eraser},${exchangeProperty.context})"/> |
| <setBody> |
| <simple>${exchangeProperty.statuses}</simple> |
| </setBody> |
| <to uri="direct:deletePort"/> |
| <doCatch> |
| <exception>java.lang.RuntimeException</exception> |
| <handled> |
| <constant>false</constant> |
| </handled> |
| <to uri="direct:deletePort"/> |
| </doCatch> |
| </doTry> |
| </route> |
| |
| <route id="unlinkUser"> |
| <from uri="direct:unlinkUser"/> |
| <doTry> |
| <bean ref="uwfAdapter" method="update(${body},${exchangeProperty.updater},${exchangeProperty.context})"/> |
| <setBody> |
| <simple>${body.getResult.getKey}</simple> |
| </setBody> |
| <to uri="direct:unlinkPort"/> |
| <doCatch> |
| <exception>java.lang.RuntimeException</exception> |
| <handled> |
| <constant>false</constant> |
| </handled> |
| <to uri="direct:unlinkPort"/> |
| </doCatch> |
| </doTry> |
| </route> |
| |
| <route id="linkUser"> |
| <from uri="direct:linkUser"/> |
| <doTry> |
| <bean ref="uwfAdapter" method="update(${body},${exchangeProperty.updater},${exchangeProperty.context})"/> |
| <setBody> |
| <simple>${body.getResult.getKey}</simple> |
| </setBody> |
| <to uri="direct:linkPort"/> |
| <doCatch> |
| <exception>java.lang.RuntimeException</exception> |
| <handled> |
| <constant>false</constant> |
| </handled> |
| <to uri="direct:linkPort"/> |
| </doCatch> |
| </doTry> |
| </route> |
| |
| <route id="activateUser"> |
| <from uri="direct:activateUser"/> |
| <doTry> |
| <bean ref="uwfAdapter" method="activate(${body}, |
| ${exchangeProperty.token}, |
| ${exchangeProperty.updater}, |
| ${exchangeProperty.context})"/> |
| <to uri="direct:userStatusPropagation"/> |
| <doCatch> |
| <exception>java.lang.RuntimeException</exception> |
| <handled> |
| <constant>false</constant> |
| </handled> |
| <to uri="direct:statusPort"/> |
| </doCatch> |
| </doTry> |
| </route> |
| |
| <route id="reactivateUser"> |
| <from uri="direct:reactivateUser"/> |
| <doTry> |
| <bean ref="uwfAdapter" method="reactivate(${body},${exchangeProperty.updater},${exchangeProperty.context})"/> |
| <to uri="direct:userStatusPropagation"/> |
| <doCatch> |
| <exception>java.lang.RuntimeException</exception> |
| <handled> |
| <constant>false</constant> |
| </handled> |
| <to uri="direct:statusPort"/> |
| </doCatch> |
| </doTry> |
| </route> |
| |
| <route id="suspendUser"> |
| <from uri="direct:suspendUser"/> |
| <doTry> |
| <bean ref="uwfAdapter" method="suspend(${body},${exchangeProperty.updater},${exchangeProperty.context})"/> |
| <to uri="direct:userStatusPropagation"/> |
| <doCatch> |
| <exception>java.lang.RuntimeException</exception> |
| <handled> |
| <constant>false</constant> |
| </handled> |
| <to uri="direct:statusPort"/> |
| </doCatch> |
| </doTry> |
| </route> |
| |
| <route id="userStatusPropagation"> |
| <from uri="direct:userStatusPropagation"/> |
| <to uri="propagate:status?anyTypeKind=USER"/> |
| <to uri="direct:statusPort"/> |
| </route> |
| |
| <route id="provisionUser"> |
| <from uri="direct:provisionUser"/> |
| <to uri="propagate:provision?anyTypeKind=USER"/> |
| <to uri="direct:provisionPort"/> |
| </route> |
| |
| <route id="deprovisionUser"> |
| <from uri="direct:deprovisionUser"/> |
| <to uri="propagate:deprovision?anyTypeKind=USER"/> |
| <to uri="direct:deprovisionPort"/> |
| </route> |
| |
| <route id="internalSuspendUser"> |
| <from uri="direct:internalSuspendUser"/> |
| <doTry> |
| <bean ref="uwfAdapter" method="internalSuspend(${body}, |
| ${exchangeProperty.updater}, |
| ${exchangeProperty.context})"/> |
| <to uri="propagate:suspend?anyTypeKind=USER"/> |
| <to uri="direct:internalSuspendUserPort"/> |
| <doCatch> |
| <exception>java.lang.RuntimeException</exception> |
| <handled> |
| <constant>false</constant> |
| </handled> |
| <to uri="direct:internalSuspendUserPort"/> |
| </doCatch> |
| </doTry> |
| </route> |
| |
| <route id="requestPwdReset"> |
| <from uri="direct:requestPwdReset"/> |
| <doTry> |
| <bean ref="uwfAdapter" method="requestPasswordReset(${body}, |
| ${exchangeProperty.updater}, |
| ${exchangeProperty.context})"/> |
| <to uri="direct:requestPwdResetPort"/> |
| <doCatch> |
| <exception>java.lang.RuntimeException</exception> |
| <handled> |
| <constant>false</constant> |
| </handled> |
| <to uri="direct:requestPwdResetPort"/> |
| </doCatch> |
| </doTry> |
| </route> |
| |
| <route id="confirmPwdReset"> |
| <from uri="direct:confirmPwdReset"/> |
| <doTry> |
| <bean ref="uwfAdapter" method="confirmPasswordReset(${exchangeProperty.key}, |
| ${exchangeProperty.token}, |
| ${exchangeProperty.password}, |
| ${exchangeProperty.updater}, |
| ${exchangeProperty.context})"/> |
| <to uri="propagate:confirmPasswordReset?anyTypeKind=USER"/> |
| <to uri="direct:confirmPwdResetPort"/> |
| <doCatch> |
| <exception>java.lang.RuntimeException</exception> |
| <handled> |
| <constant>false</constant> |
| </handled> |
| <to uri="direct:confirmPwdResetPort"/> |
| </doCatch> |
| </doTry> |
| </route> |
| |
| </routes> |