| <?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="createGroup"> |
| <from uri="direct:createGroup"/> |
| <setProperty propertyName="actual"> |
| <simple>${body}</simple> |
| </setProperty> |
| <doTry> |
| <bean ref="gwfAdapter" method="create(${body})"/> |
| <to uri="propagate:create?anyTypeKind=GROUP"/> |
| <to uri="direct:createGroupPort"/> |
| <doCatch> |
| <exception>java.lang.RuntimeException</exception> |
| <handled> |
| <constant>false</constant> |
| </handled> |
| <to uri="direct:createGroupPort"/> |
| </doCatch> |
| </doTry> |
| </route> |
| |
| <route id="createGroupPull"> |
| <from uri="direct:createGroupInPull"/> |
| <setProperty propertyName="actual"> |
| <simple>${body}</simple> |
| </setProperty> |
| <doTry> |
| <bean ref="gwfAdapter" method="create(${body})"/> |
| <to uri="propagate:create?anyTypeKind=GROUP&pull=true"/> |
| <to uri="direct:createGroupInPullPort"/> |
| <doCatch> |
| <exception>java.lang.RuntimeException</exception> |
| <handled> |
| <constant>false</constant> |
| </handled> |
| <to uri="direct:createGroupInPullPort"/> |
| </doCatch> |
| </doTry> |
| </route> |
| |
| <route id="updateGroup"> |
| <from uri="direct:updateGroup"/> |
| <setProperty propertyName="actual"> |
| <simple>${body}</simple> |
| </setProperty> |
| <doTry> |
| <bean ref="gwfAdapter" method="update(${body})"/> |
| <to uri="propagate:update?anyTypeKind=GROUP"/> |
| <to uri="direct:updateGroupPort"/> |
| <doCatch> |
| <exception>java.lang.RuntimeException</exception> |
| <handled> |
| <constant>false</constant> |
| </handled> |
| <to uri="direct:updateGroupPort"/> |
| </doCatch> |
| </doTry> |
| </route> |
| |
| <route id="deleteGroup"> |
| <from uri="direct:deleteGroup"/> |
| <doTry> |
| <to uri="propagate:delete?anyTypeKind=GROUP"/> |
| <bean ref="gwfAdapter" method="delete(${body})"/> |
| <setBody> |
| <simple>${property.statuses}</simple> |
| </setBody> |
| <to uri="direct:deleteGroupPort"/> |
| <doCatch> |
| <exception>java.lang.RuntimeException</exception> |
| <handled> |
| <constant>false</constant> |
| </handled> |
| <to uri="direct:deleteGroupPort"/> |
| </doCatch> |
| </doTry> |
| </route> |
| |
| <route id="unlinkGroup"> |
| <from uri="direct:unlinkGroup"/> |
| <doTry> |
| <bean ref="gwfAdapter" method="update(${body})"/> |
| <setBody> |
| <simple>${body.getResult}</simple> |
| </setBody> |
| <to uri="direct:unlinkGroupPort"/> |
| <doCatch> |
| <exception>java.lang.RuntimeException</exception> |
| <handled> |
| <constant>false</constant> |
| </handled> |
| <to uri="direct:unlinkGroupPort"/> |
| </doCatch> |
| </doTry> |
| </route> |
| |
| <route id="linkGroup"> |
| <from uri="direct:linkGroup"/> |
| <doTry> |
| <bean ref="gwfAdapter" method="update(${body})"/> |
| <setBody> |
| <simple>${body.getResult}</simple> |
| </setBody> |
| <to uri="direct:linkGroupPort"/> |
| <doCatch> |
| <exception>java.lang.RuntimeException</exception> |
| <handled> |
| <constant>false</constant> |
| </handled> |
| <to uri="direct:linkGroupPort"/> |
| </doCatch> |
| </doTry> |
| </route> |
| |
| <route id="provisionGroup"> |
| <from uri="direct:provisionGroup"/> |
| <to uri="propagate:provision?anyTypeKind=GROUP"/> |
| <to uri="direct:provisionGroupPort"/> |
| </route> |
| |
| <route id="deprovisionGroup"> |
| <from uri="direct:deprovisionGroup"/> |
| <to uri="propagate:deprovision?anyTypeKind=GROUP"/> |
| <to uri="direct:deprovisionGroupPort"/> |
| </route> |
| |
| </routes> |