You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2015/03/22 17:05:18 UTC

[26/54] [partial] camel git commit: CAMEL-7263: Remove not maintained and deprecated camel-web module.

http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/cometd/_base.js
----------------------------------------------------------------------
diff --git a/components/camel-web/src/main/webapp/js/dojox/cometd/_base.js b/components/camel-web/src/main/webapp/js/dojox/cometd/_base.js
deleted file mode 100644
index 4843e43..0000000
--- a/components/camel-web/src/main/webapp/js/dojox/cometd/_base.js
+++ /dev/null
@@ -1,404 +0,0 @@
-/*
-	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
-	Available via Academic Free License >= 2.1 OR the modified BSD license.
-	see: http://dojotoolkit.org/license for details
-*/
-
-
-if(!dojo._hasResource["dojox.cometd._base"]){
-dojo._hasResource["dojox.cometd._base"]=true;
-dojo.provide("dojox.cometd._base");
-dojo.require("dojo.AdapterRegistry");
-dojox.cometd={Connection:function(_1){
-dojo.mixin(this,{prefix:_1,_status:"unconnected",_handshook:false,_initialized:false,_polling:false,expectedNetworkDelay:10000,connectTimeout:0,version:"1.0",minimumVersion:"0.9",clientId:null,messageId:0,batch:0,_isXD:false,handshakeReturn:null,currentTransport:null,url:null,lastMessage:null,_messageQ:[],handleAs:"json",_advice:{},_backoffInterval:0,_backoffIncrement:1000,_backoffMax:60000,_deferredSubscribes:{},_deferredUnsubscribes:{},_subscriptions:[],_extendInList:[],_extendOutList:[]});
-this.state=function(){
-return this._status;
-};
-this.init=function(_2,_3,_4){
-_3=_3||{};
-_3.version=this.version;
-_3.minimumVersion=this.minimumVersion;
-_3.channel="/meta/handshake";
-_3.id=""+this.messageId++;
-this.url=_2||dojo.config["cometdRoot"];
-if(!this.url){
-throw "no cometd root";
-return null;
-}
-var _5="^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$";
-var _6=(""+window.location).match(new RegExp(_5));
-if(_6[4]){
-var _7=_6[4].split(":");
-var _8=_7[0];
-var _9=_7[1]||"80";
-_6=this.url.match(new RegExp(_5));
-if(_6[4]){
-_7=_6[4].split(":");
-var _a=_7[0];
-var _b=_7[1]||"80";
-this._isXD=((_a!=_8)||(_b!=_9));
-}
-}
-if(!this._isXD){
-_3.supportedConnectionTypes=dojo.map(dojox.cometd.connectionTypes.pairs,"return item[0]");
-}
-_3=this._extendOut(_3);
-var _c={url:this.url,handleAs:this.handleAs,content:{"message":dojo.toJson([_3])},load:dojo.hitch(this,function(_d){
-this._backon();
-this._finishInit(_d);
-}),error:dojo.hitch(this,function(e){
-this._backoff();
-this._finishInit(e);
-}),timeout:this.expectedNetworkDelay};
-if(_4){
-dojo.mixin(_c,_4);
-}
-this._props=_3;
-for(var _f in this._subscriptions){
-for(var sub in this._subscriptions[_f]){
-if(this._subscriptions[_f][sub].topic){
-dojo.unsubscribe(this._subscriptions[_f][sub].topic);
-}
-}
-}
-this._messageQ=[];
-this._subscriptions=[];
-this._initialized=true;
-this._status="handshaking";
-this.batch=0;
-this.startBatch();
-var r;
-if(this._isXD){
-_c.callbackParamName="jsonp";
-r=dojo.io.script.get(_c);
-}else{
-r=dojo.xhrPost(_c);
-}
-return r;
-};
-this.publish=function(_12,_13,_14){
-var _15={data:_13,channel:_12};
-if(_14){
-dojo.mixin(_15,_14);
-}
-this._sendMessage(_15);
-};
-this.subscribe=function(_16,_17,_18,_19){
-_19=_19||{};
-if(_17){
-var _1a=_1+_16;
-var _1b=this._subscriptions[_1a];
-if(!_1b||_1b.length==0){
-_1b=[];
-_19.channel="/meta/subscribe";
-_19.subscription=_16;
-this._sendMessage(_19);
-var _ds=this._deferredSubscribes;
-if(_ds[_16]){
-_ds[_16].cancel();
-delete _ds[_16];
-}
-_ds[_16]=new dojo.Deferred();
-}
-for(var i in _1b){
-if(_1b[i].objOrFunc===_17&&(!_1b[i].funcName&&!_18||_1b[i].funcName==_18)){
-return null;
-}
-}
-var _1e=dojo.subscribe(_1a,_17,_18);
-_1b.push({topic:_1e,objOrFunc:_17,funcName:_18});
-this._subscriptions[_1a]=_1b;
-}
-var ret=this._deferredSubscribes[_16]||{};
-ret.args=dojo._toArray(arguments);
-return ret;
-};
-this.unsubscribe=function(_20,_21,_22,_23){
-if((arguments.length==1)&&(!dojo.isString(_20))&&(_20.args)){
-return this.unsubscribe.apply(this,_20.args);
-}
-var _24=_1+_20;
-var _25=this._subscriptions[_24];
-if(!_25||_25.length==0){
-return null;
-}
-var s=0;
-for(var i in _25){
-var sb=_25[i];
-if((!_21)||(sb.objOrFunc===_21&&(!sb.funcName&&!_22||sb.funcName==_22))){
-dojo.unsubscribe(_25[i].topic);
-delete _25[i];
-}else{
-s++;
-}
-}
-if(s==0){
-_23=_23||{};
-_23.channel="/meta/unsubscribe";
-_23.subscription=_20;
-delete this._subscriptions[_24];
-this._sendMessage(_23);
-this._deferredUnsubscribes[_20]=new dojo.Deferred();
-if(this._deferredSubscribes[_20]){
-this._deferredSubscribes[_20].cancel();
-delete this._deferredSubscribes[_20];
-}
-}
-return this._deferredUnsubscribes[_20];
-};
-this.disconnect=function(){
-for(var _29 in this._subscriptions){
-for(var sub in this._subscriptions[_29]){
-if(this._subscriptions[_29][sub].topic){
-dojo.unsubscribe(this._subscriptions[_29][sub].topic);
-}
-}
-}
-this._subscriptions=[];
-this._messageQ=[];
-if(this._initialized&&this.currentTransport){
-this._initialized=false;
-this.currentTransport.disconnect();
-}
-if(!this._polling){
-this._publishMeta("connect",false);
-}
-this._initialized=false;
-this._handshook=false;
-this._status="disconnected";
-this._publishMeta("disconnect",true);
-};
-this.subscribed=function(_2b,_2c){
-};
-this.unsubscribed=function(_2d,_2e){
-};
-this.tunnelInit=function(_2f,_30){
-};
-this.tunnelCollapse=function(){
-};
-this._backoff=function(){
-if(!this._advice){
-this._advice={reconnect:"retry",interval:0};
-}else{
-if(!this._advice.interval){
-this._advice.interval=0;
-}
-}
-if(this._backoffInterval<this._backoffMax){
-this._backoffInterval+=this._backoffIncrement;
-}
-};
-this._backon=function(){
-this._backoffInterval=0;
-};
-this._interval=function(){
-var i=this._backoffInterval+(this._advice?(this._advice.interval?this._advice.interval:0):0);
-if(i>0){
-
-}
-return i;
-};
-this._publishMeta=function(_32,_33,_34){
-try{
-var _35={cometd:this,action:_32,successful:_33,state:this.state()};
-if(_34){
-dojo.mixin(_35,_34);
-}
-dojo.publish(this.prefix+"/meta",[_35]);
-}
-catch(e){
-
-}
-};
-this._finishInit=function(_36){
-if(this._status!="handshaking"){
-return;
-}
-var _37=this._handshook;
-var _38=false;
-var _39={};
-if(_36 instanceof Error){
-dojo.mixin(_39,{reestablish:false,failure:true,error:_36,advice:this._advice});
-}else{
-_36=_36[0];
-_36=this._extendIn(_36);
-this.handshakeReturn=_36;
-if(_36["advice"]){
-this._advice=_36.advice;
-}
-_38=_36.successful?_36.successful:false;
-if(_36.version<this.minimumVersion){
-if(console.log){
-
-}
-_38=false;
-this._advice.reconnect="none";
-}
-dojo.mixin(_39,{reestablish:_38&&_37,response:_36});
-}
-this._publishMeta("handshake",_38,_39);
-if(this._status!="handshaking"){
-return;
-}
-if(_38){
-this._status="connecting";
-this._handshook=true;
-this.currentTransport=dojox.cometd.connectionTypes.match(_36.supportedConnectionTypes,_36.version,this._isXD);
-var _3a=this.currentTransport;
-_3a._cometd=this;
-_3a.version=_36.version;
-this.clientId=_36.clientId;
-this.tunnelInit=_3a.tunnelInit&&dojo.hitch(_3a,"tunnelInit");
-this.tunnelCollapse=_3a.tunnelCollapse&&dojo.hitch(_3a,"tunnelCollapse");
-_3a.startup(_36);
-}else{
-if(!this._advice||this._advice["reconnect"]!="none"){
-setTimeout(dojo.hitch(this,"init",this.url,this._props),this._interval());
-}
-}
-};
-this._extendIn=function(_3b){
-dojo.forEach(dojox.cometd._extendInList,function(f){
-_3b=f(_3b)||_3b;
-});
-return _3b;
-};
-this._extendOut=function(_3d){
-dojo.forEach(dojox.cometd._extendOutList,function(f){
-_3d=f(_3d)||_3d;
-});
-return _3d;
-};
-this.deliver=function(_3f){
-dojo.forEach(_3f,this._deliver,this);
-return _3f;
-};
-this._deliver=function(_40){
-_40=this._extendIn(_40);
-if(!_40["channel"]){
-if(_40["success"]!==true){
-return;
-}
-}
-this.lastMessage=_40;
-if(_40.advice){
-this._advice=_40.advice;
-}
-var _41=null;
-if((_40["channel"])&&(_40.channel.length>5)&&(_40.channel.substr(0,5)=="/meta")){
-switch(_40.channel){
-case "/meta/connect":
-var _42={response:_40};
-if(_40.successful){
-if(this._status!="connected"){
-this._status="connected";
-this.endBatch();
-}
-}
-if(this._initialized){
-this._publishMeta("connect",_40.successful,_42);
-}
-break;
-case "/meta/subscribe":
-_41=this._deferredSubscribes[_40.subscription];
-try{
-if(!_40.successful){
-if(_41){
-_41.errback(new Error(_40.error));
-}
-this.currentTransport.cancelConnect();
-return;
-}
-if(_41){
-_41.callback(true);
-}
-this.subscribed(_40.subscription,_40);
-}
-catch(e){
-log.warn(e);
-}
-break;
-case "/meta/unsubscribe":
-_41=this._deferredUnsubscribes[_40.subscription];
-try{
-if(!_40.successful){
-if(_41){
-_41.errback(new Error(_40.error));
-}
-this.currentTransport.cancelConnect();
-return;
-}
-if(_41){
-_41.callback(true);
-}
-this.unsubscribed(_40.subscription,_40);
-}
-catch(e){
-log.warn(e);
-}
-break;
-default:
-if(_40.successful&&!_40.successful){
-this.currentTransport.cancelConnect();
-return;
-}
-}
-}
-this.currentTransport.deliver(_40);
-if(_40.data){
-try{
-var _43=[_40];
-var _44=_1+_40.channel;
-var _45=_40.channel.split("/");
-var _46=_1;
-for(var i=1;i<_45.length-1;i++){
-dojo.publish(_46+"/**",_43);
-_46+="/"+_45[i];
-}
-dojo.publish(_46+"/**",_43);
-dojo.publish(_46+"/*",_43);
-dojo.publish(_44,_43);
-}
-catch(e){
-
-}
-}
-};
-this._sendMessage=function(_48){
-if(this.currentTransport&&!this.batch){
-return this.currentTransport.sendMessages([_48]);
-}else{
-this._messageQ.push(_48);
-return null;
-}
-};
-this.startBatch=function(){
-this.batch++;
-};
-this.endBatch=function(){
-if(--this.batch<=0&&this.currentTransport&&this._status=="connected"){
-this.batch=0;
-var _49=this._messageQ;
-this._messageQ=[];
-if(_49.length>0){
-this.currentTransport.sendMessages(_49);
-}
-}
-};
-this._onUnload=function(){
-dojo.addOnUnload(dojox.cometd,"disconnect");
-};
-this._connectTimeout=function(){
-var _4a=0;
-if(this._advice&&this._advice.timeout&&this.expectedNetworkDelay>0){
-_4a=this._advice.timeout+this.expectedNetworkDelay;
-}
-if(this.connectTimeout>0&&this.connectTimeout<_4a){
-return this.connectTimeout;
-}
-return _4a;
-};
-},connectionTypes:new dojo.AdapterRegistry(true)};
-dojox.cometd.Connection.call(dojox.cometd,"/cometd");
-dojo.addOnUnload(dojox.cometd,"_onUnload");
-}

http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/cometd/ack.js
----------------------------------------------------------------------
diff --git a/components/camel-web/src/main/webapp/js/dojox/cometd/ack.js b/components/camel-web/src/main/webapp/js/dojox/cometd/ack.js
deleted file mode 100644
index 461f9dd..0000000
--- a/components/camel-web/src/main/webapp/js/dojox/cometd/ack.js
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
-	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
-	Available via Academic Free License >= 2.1 OR the modified BSD license.
-	see: http://dojotoolkit.org/license for details
-*/
-
-
-if(!dojo._hasResource["dojox.cometd.ack"]){
-dojo._hasResource["dojox.cometd.ack"]=true;
-dojo.provide("dojox.cometd.ack");
-dojo.require("dojox.cometd._base");
-dojox.cometd._ack=new function(){
-var _1=false;
-var _2=-1;
-this._in=function(_3){
-if(_3.channel=="/meta/handshake"){
-_1=_3.ext&&_3.ext.ack;
-}else{
-if(_1&&_3.channel=="/meta/connect"&&_3.ext&&_3.ext.ack&&_3.successful){
-var _4=parseInt(_3.ext.ack);
-_2=_4;
-}
-}
-return _3;
-};
-this._out=function(_5){
-if(_5.channel=="/meta/handshake"){
-if(!_5.ext){
-_5.ext={};
-}
-_5.ext.ack=dojox.cometd.ackEnabled;
-_2=-1;
-}
-if(_1&&_5.channel=="/meta/connect"){
-if(!_5.ext){
-_5.ext={};
-}
-_5.ext.ack=_2;
-}
-return _5;
-};
-};
-dojox.cometd._extendInList.push(dojo.hitch(dojox.cometd._ack,"_in"));
-dojox.cometd._extendOutList.push(dojo.hitch(dojox.cometd._ack,"_out"));
-dojox.cometd.ackEnabled=true;
-}

http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/cometd/callbackPollTransport.js
----------------------------------------------------------------------
diff --git a/components/camel-web/src/main/webapp/js/dojox/cometd/callbackPollTransport.js b/components/camel-web/src/main/webapp/js/dojox/cometd/callbackPollTransport.js
deleted file mode 100644
index d36e455..0000000
--- a/components/camel-web/src/main/webapp/js/dojox/cometd/callbackPollTransport.js
+++ /dev/null
@@ -1,74 +0,0 @@
-/*
-	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
-	Available via Academic Free License >= 2.1 OR the modified BSD license.
-	see: http://dojotoolkit.org/license for details
-*/
-
-
-if(!dojo._hasResource["dojox.cometd.callbackPollTransport"]){
-dojo._hasResource["dojox.cometd.callbackPollTransport"]=true;
-dojo.provide("dojox.cometd.callbackPollTransport");
-dojo.require("dojox.cometd._base");
-dojo.require("dojox.cometd.longPollTransport");
-dojo.require("dojo.io.script");
-dojox.cometd.callbackPollTransport=new function(){
-this._connectionType="callback-polling";
-this._cometd=null;
-this.check=function(_1,_2,_3){
-return (dojo.indexOf(_1,"callback-polling")>=0);
-};
-this.tunnelInit=function(){
-var _4={channel:"/meta/connect",clientId:this._cometd.clientId,connectionType:this._connectionType,id:""+this._cometd.messageId++};
-_4=this._cometd._extendOut(_4);
-this.openTunnelWith([_4]);
-};
-this.tunnelCollapse=dojox.cometd.longPollTransport.tunnelCollapse;
-this._connect=dojox.cometd.longPollTransport._connect;
-this.deliver=dojox.cometd.longPollTransport.deliver;
-this.openTunnelWith=function(_5,_6){
-this._cometd._polling=true;
-var _7={load:dojo.hitch(this,function(_8){
-this._cometd._polling=false;
-this._cometd.deliver(_8);
-this._cometd._backon();
-this.tunnelCollapse();
-}),error:dojo.hitch(this,function(_9){
-this._cometd._polling=false;
-this._cometd._publishMeta("connect",false);
-this._cometd._backoff();
-this.tunnelCollapse();
-}),url:(_6||this._cometd.url),content:{message:dojo.toJson(_5)},callbackParamName:"jsonp"};
-var _a=this._cometd._connectTimeout();
-if(_a>0){
-_7.timeout=_a;
-}
-dojo.io.script.get(_7);
-};
-this.sendMessages=function(_b){
-for(var i=0;i<_b.length;i++){
-_b[i].clientId=this._cometd.clientId;
-_b[i].id=""+this._cometd.messageId++;
-_b[i]=this._cometd._extendOut(_b[i]);
-}
-var _d={url:this._cometd.url||dojo.config["cometdRoot"],load:dojo.hitch(this._cometd,"deliver"),callbackParamName:"jsonp",content:{message:dojo.toJson(_b)},error:dojo.hitch(this,function(_e){
-this._cometd._publishMeta("publish",false,{messages:_b});
-}),timeout:this._cometd.expectedNetworkDelay};
-return dojo.io.script.get(_d);
-};
-this.startup=function(_f){
-if(this._cometd._connected){
-return;
-}
-this.tunnelInit();
-};
-this.disconnect=dojox.cometd.longPollTransport.disconnect;
-this.disconnect=function(){
-var _10={channel:"/meta/disconnect",clientId:this._cometd.clientId,id:""+this._cometd.messageId++};
-_10=this._cometd._extendOut(_10);
-dojo.io.script.get({url:this._cometd.url||dojo.config["cometdRoot"],callbackParamName:"jsonp",content:{message:dojo.toJson([_10])}});
-};
-this.cancelConnect=function(){
-};
-};
-dojox.cometd.connectionTypes.register("callback-polling",dojox.cometd.callbackPollTransport.check,dojox.cometd.callbackPollTransport);
-}

http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/cometd/longPollTransport.js
----------------------------------------------------------------------
diff --git a/components/camel-web/src/main/webapp/js/dojox/cometd/longPollTransport.js b/components/camel-web/src/main/webapp/js/dojox/cometd/longPollTransport.js
deleted file mode 100644
index 84fae98..0000000
--- a/components/camel-web/src/main/webapp/js/dojox/cometd/longPollTransport.js
+++ /dev/null
@@ -1,12 +0,0 @@
-/*
-	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
-	Available via Academic Free License >= 2.1 OR the modified BSD license.
-	see: http://dojotoolkit.org/license for details
-*/
-
-
-if(!dojo._hasResource["dojox.cometd.longPollTransport"]){
-dojo._hasResource["dojox.cometd.longPollTransport"]=true;
-dojo.provide("dojox.cometd.longPollTransport");
-dojo.require("dojox.cometd.longPollTransportJsonEncoded");
-}

http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/cometd/longPollTransportFormEncoded.js
----------------------------------------------------------------------
diff --git a/components/camel-web/src/main/webapp/js/dojox/cometd/longPollTransportFormEncoded.js b/components/camel-web/src/main/webapp/js/dojox/cometd/longPollTransportFormEncoded.js
deleted file mode 100644
index 1c60e89..0000000
--- a/components/camel-web/src/main/webapp/js/dojox/cometd/longPollTransportFormEncoded.js
+++ /dev/null
@@ -1,118 +0,0 @@
-/*
-	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
-	Available via Academic Free License >= 2.1 OR the modified BSD license.
-	see: http://dojotoolkit.org/license for details
-*/
-
-
-if(!dojo._hasResource["dojox.cometd.longPollTransportFormEncoded"]){
-dojo._hasResource["dojox.cometd.longPollTransportFormEncoded"]=true;
-dojo.provide("dojox.cometd.longPollTransportFormEncoded");
-dojo.require("dojox.cometd._base");
-dojox.cometd.longPollTransportFormEncoded=new function(){
-this._connectionType="long-polling";
-this._cometd=null;
-this.check=function(_1,_2,_3){
-return ((!_3)&&(dojo.indexOf(_1,"long-polling")>=0));
-};
-this.tunnelInit=function(){
-var _4={channel:"/meta/connect",clientId:this._cometd.clientId,connectionType:this._connectionType,id:""+this._cometd.messageId++};
-_4=this._cometd._extendOut(_4);
-this.openTunnelWith({message:dojo.toJson([_4])});
-};
-this.tunnelCollapse=function(){
-if(!this._cometd._initialized){
-return;
-}
-if(this._cometd._advice&&this._cometd._advice["reconnect"]=="none"){
-return;
-}
-var _5=this._cometd._interval();
-if(this._cometd._status=="connected"){
-setTimeout(dojo.hitch(this,"_connect"),_5);
-}else{
-setTimeout(dojo.hitch(this._cometd,function(){
-this.init(this.url,this._props);
-}),_5);
-}
-};
-this._connect=function(){
-if(!this._cometd._initialized){
-return;
-}
-if(this._cometd._polling){
-return;
-}
-if((this._cometd._advice)&&(this._cometd._advice["reconnect"]=="handshake")){
-this._cometd._status="unconnected";
-this._initialized=false;
-this._cometd.init(this._cometd.url,this._cometd._props);
-}else{
-if(this._cometd._status=="connected"){
-var _6={channel:"/meta/connect",connectionType:this._connectionType,clientId:this._cometd.clientId,id:""+this._cometd.messageId++};
-if(this._cometd.connectTimeout>=this._cometd.expectedNetworkDelay){
-_6.advice={timeout:this._cometd.connectTimeout-this._cometd.expectedNetworkDelay};
-}
-_6=this._cometd._extendOut(_6);
-this.openTunnelWith({message:dojo.toJson([_6])});
-}
-}
-};
-this.deliver=function(_7){
-};
-this.openTunnelWith=function(_8,_9){
-this._cometd._polling=true;
-var _a={url:(_9||this._cometd.url),content:_8,handleAs:this._cometd.handleAs,load:dojo.hitch(this,function(_b){
-this._cometd._polling=false;
-this._cometd.deliver(_b);
-this._cometd._backon();
-this.tunnelCollapse();
-}),error:dojo.hitch(this,function(_c){
-var _d={failure:true,error:_c,advice:this._cometd._advice};
-this._cometd._polling=false;
-this._cometd._publishMeta("connect",false,_d);
-this._cometd._backoff();
-this.tunnelCollapse();
-})};
-var _e=this._cometd._connectTimeout();
-if(_e>0){
-_a.timeout=_e;
-}
-this._poll=dojo.xhrPost(_a);
-};
-this.sendMessages=function(_f){
-for(var i=0;i<_f.length;i++){
-_f[i].clientId=this._cometd.clientId;
-_f[i].id=""+this._cometd.messageId++;
-_f[i]=this._cometd._extendOut(_f[i]);
-}
-return dojo.xhrPost({url:this._cometd.url||dojo.config["cometdRoot"],handleAs:this._cometd.handleAs,load:dojo.hitch(this._cometd,"deliver"),content:{message:dojo.toJson(_f)},error:dojo.hitch(this,function(err){
-this._cometd._publishMeta("publish",false,{messages:_f});
-}),timeout:this._cometd.expectedNetworkDelay});
-};
-this.startup=function(_12){
-if(this._cometd._status=="connected"){
-return;
-}
-this.tunnelInit();
-};
-this.disconnect=function(){
-var _13={channel:"/meta/disconnect",clientId:this._cometd.clientId,id:""+this._cometd.messageId++};
-_13=this._cometd._extendOut(_13);
-dojo.xhrPost({url:this._cometd.url||dojo.config["cometdRoot"],handleAs:this._cometd.handleAs,content:{message:dojo.toJson([_13])}});
-};
-this.cancelConnect=function(){
-if(this._poll){
-this._poll.cancel();
-this._cometd._polling=false;
-this._cometd._publishMeta("connect",false,{cancel:true});
-this._cometd._backoff();
-this.disconnect();
-this.tunnelCollapse();
-}
-};
-};
-dojox.cometd.longPollTransport=dojox.cometd.longPollTransportFormEncoded;
-dojox.cometd.connectionTypes.register("long-polling",dojox.cometd.longPollTransport.check,dojox.cometd.longPollTransportFormEncoded);
-dojox.cometd.connectionTypes.register("long-polling-form-encoded",dojox.cometd.longPollTransport.check,dojox.cometd.longPollTransportFormEncoded);
-}

http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/cometd/longPollTransportJsonEncoded.js
----------------------------------------------------------------------
diff --git a/components/camel-web/src/main/webapp/js/dojox/cometd/longPollTransportJsonEncoded.js b/components/camel-web/src/main/webapp/js/dojox/cometd/longPollTransportJsonEncoded.js
deleted file mode 100644
index 8d0a07a..0000000
--- a/components/camel-web/src/main/webapp/js/dojox/cometd/longPollTransportJsonEncoded.js
+++ /dev/null
@@ -1,119 +0,0 @@
-/*
-	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
-	Available via Academic Free License >= 2.1 OR the modified BSD license.
-	see: http://dojotoolkit.org/license for details
-*/
-
-
-if(!dojo._hasResource["dojox.cometd.longPollTransportJsonEncoded"]){
-dojo._hasResource["dojox.cometd.longPollTransportJsonEncoded"]=true;
-dojo.provide("dojox.cometd.longPollTransportJsonEncoded");
-dojo.require("dojox.cometd._base");
-dojox.cometd.longPollTransportJsonEncoded=new function(){
-this._connectionType="long-polling";
-this._cometd=null;
-this.check=function(_1,_2,_3){
-return ((!_3)&&(dojo.indexOf(_1,"long-polling")>=0));
-};
-this.tunnelInit=function(){
-var _4={channel:"/meta/connect",clientId:this._cometd.clientId,connectionType:this._connectionType,id:""+this._cometd.messageId++};
-_4=this._cometd._extendOut(_4);
-this.openTunnelWith([_4]);
-};
-this.tunnelCollapse=function(){
-if(!this._cometd._initialized){
-return;
-}
-if(this._cometd._advice&&this._cometd._advice["reconnect"]=="none"){
-return;
-}
-if(this._cometd._status=="connected"){
-setTimeout(dojo.hitch(this,function(){
-this._connect();
-}),this._cometd._interval());
-}else{
-setTimeout(dojo.hitch(this._cometd,function(){
-this.init(this.url,this._props);
-}),this._cometd._interval());
-}
-};
-this._connect=function(){
-if(!this._cometd._initialized){
-return;
-}
-if(this._cometd._polling){
-return;
-}
-if((this._cometd._advice)&&(this._cometd._advice["reconnect"]=="handshake")){
-this._cometd._status="unconnected";
-this._initialized=false;
-this._cometd.init(this._cometd.url,this._cometd._props);
-}else{
-if(this._cometd._status=="connected"){
-var _5={channel:"/meta/connect",connectionType:this._connectionType,clientId:this._cometd.clientId,id:""+this._cometd.messageId++};
-if(this._cometd.connectTimeout>=this._cometd.expectedNetworkDelay){
-_5.advice={timeout:(this._cometd.connectTimeout-this._cometd.expectedNetworkDelay)};
-}
-_5=this._cometd._extendOut(_5);
-this.openTunnelWith([_5]);
-}
-}
-};
-this.deliver=function(_6){
-};
-this.openTunnelWith=function(_7,_8){
-this._cometd._polling=true;
-var _9={url:(_8||this._cometd.url),postData:dojo.toJson(_7),contentType:"text/json;charset=UTF-8",handleAs:this._cometd.handleAs,load:dojo.hitch(this,function(_a){
-this._cometd._polling=false;
-this._cometd.deliver(_a);
-this._cometd._backon();
-this.tunnelCollapse();
-}),error:dojo.hitch(this,function(_b){
-this._cometd._polling=false;
-var _c={failure:true,error:_b,advice:this._cometd._advice};
-this._cometd._publishMeta("connect",false,_c);
-this._cometd._backoff();
-this.tunnelCollapse();
-})};
-var _d=this._cometd._connectTimeout();
-if(_d>0){
-_9.timeout=_d;
-}
-this._poll=dojo.rawXhrPost(_9);
-};
-this.sendMessages=function(_e){
-for(var i=0;i<_e.length;i++){
-_e[i].clientId=this._cometd.clientId;
-_e[i].id=""+this._cometd.messageId++;
-_e[i]=this._cometd._extendOut(_e[i]);
-}
-return dojo.rawXhrPost({url:this._cometd.url||dojo.config["cometdRoot"],handleAs:this._cometd.handleAs,load:dojo.hitch(this._cometd,"deliver"),postData:dojo.toJson(_e),contentType:"text/json;charset=UTF-8",error:dojo.hitch(this,function(err){
-this._cometd._publishMeta("publish",false,{messages:_e});
-}),timeout:this._cometd.expectedNetworkDelay});
-};
-this.startup=function(_11){
-if(this._cometd._status=="connected"){
-return;
-}
-this.tunnelInit();
-};
-this.disconnect=function(){
-var _12={channel:"/meta/disconnect",clientId:this._cometd.clientId,id:""+this._cometd.messageId++};
-_12=this._cometd._extendOut(_12);
-dojo.rawXhrPost({url:this._cometd.url||dojo.config["cometdRoot"],handleAs:this._cometd.handleAs,postData:dojo.toJson([_12]),contentType:"text/json;charset=UTF-8"});
-};
-this.cancelConnect=function(){
-if(this._poll){
-this._poll.cancel();
-this._cometd._polling=false;
-this._cometd._publishMeta("connect",false,{cancel:true});
-this._cometd._backoff();
-this.disconnect();
-this.tunnelCollapse();
-}
-};
-};
-dojox.cometd.longPollTransport=dojox.cometd.longPollTransportJsonEncoded;
-dojox.cometd.connectionTypes.register("long-polling",dojox.cometd.longPollTransport.check,dojox.cometd.longPollTransportJsonEncoded);
-dojox.cometd.connectionTypes.register("long-polling-json-encoded",dojox.cometd.longPollTransport.check,dojox.cometd.longPollTransportJsonEncoded);
-}

http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/cometd/timestamp.js
----------------------------------------------------------------------
diff --git a/components/camel-web/src/main/webapp/js/dojox/cometd/timestamp.js b/components/camel-web/src/main/webapp/js/dojox/cometd/timestamp.js
deleted file mode 100644
index 77b20c5..0000000
--- a/components/camel-web/src/main/webapp/js/dojox/cometd/timestamp.js
+++ /dev/null
@@ -1,16 +0,0 @@
-/*
-	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
-	Available via Academic Free License >= 2.1 OR the modified BSD license.
-	see: http://dojotoolkit.org/license for details
-*/
-
-
-if(!dojo._hasResource["dojox.cometd.timestamp"]){
-dojo._hasResource["dojox.cometd.timestamp"]=true;
-dojo.provide("dojox.cometd.timestamp");
-dojo.require("dojox.cometd._base");
-dojox.cometd._extendOutList.push(function(_1){
-_1.timestamp=new Date().toUTCString();
-return _1;
-});
-}

http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/cometd/timesync.js
----------------------------------------------------------------------
diff --git a/components/camel-web/src/main/webapp/js/dojox/cometd/timesync.js b/components/camel-web/src/main/webapp/js/dojox/cometd/timesync.js
deleted file mode 100644
index 1b65936..0000000
--- a/components/camel-web/src/main/webapp/js/dojox/cometd/timesync.js
+++ /dev/null
@@ -1,70 +0,0 @@
-/*
-	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
-	Available via Academic Free License >= 2.1 OR the modified BSD license.
-	see: http://dojotoolkit.org/license for details
-*/
-
-
-if(!dojo._hasResource["dojox.cometd.timesync"]){
-dojo._hasResource["dojox.cometd.timesync"]=true;
-dojo.provide("dojox.cometd.timesync");
-dojo.require("dojox.cometd._base");
-dojox.cometd.timesync=new function(){
-this._window=10;
-this._minWindow=4;
-this._offsets=[];
-this.offset=0;
-this.samples=0;
-this.getServerTime=function(){
-return new Date().getTime()+this.offset;
-};
-this.getServerDate=function(){
-return new Date(this.getServerTime());
-};
-this.setTimeout=function(_1,_2){
-var ts=(_2 instanceof Date)?_2.getTime():(0+_2);
-var tc=ts-this.offset;
-var _5=tc-new Date().getTime();
-if(_5<=0){
-_5=1;
-}
-return setTimeout(_1,_5);
-};
-this._in=function(_6){
-var _7=_6.channel;
-if(_7&&_7.indexOf("/meta/")==0){
-if(_6.ext&&_6.ext.timesync){
-var _8=_6.ext.timesync;
-var _9=new Date().getTime();
-this._offsets.push(_8.ts-_8.tc-(_9-_8.tc-_8.p)/2);
-if(this._offsets.length>this._window){
-this._offsets.shift();
-}
-this.samples++;
-var _a=0;
-for(var i in this._offsets){
-_a+=this._offsets[i];
-}
-this.offset=parseInt((_a/this._offsets.length).toFixed());
-if(this.samples<this._minWindow){
-setTimeout(dojox._scopeName+".cometd.publish('/meta/ping',null)",100);
-}
-}
-}
-return _6;
-};
-this._out=function(_c){
-var _d=_c.channel;
-if(_d&&_d.indexOf("/meta/")==0){
-var _e=new Date().getTime();
-if(!_c.ext){
-_c.ext={};
-}
-_c.ext.timesync={tc:_e};
-}
-return _c;
-};
-};
-dojox.cometd._extendInList.push(dojo.hitch(dojox.cometd.timesync,"_in"));
-dojox.cometd._extendOutList.push(dojo.hitch(dojox.cometd.timesync,"_out"));
-}

http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/AndOrReadStore.js
----------------------------------------------------------------------
diff --git a/components/camel-web/src/main/webapp/js/dojox/data/AndOrReadStore.js b/components/camel-web/src/main/webapp/js/dojox/data/AndOrReadStore.js
deleted file mode 100644
index b8a154b..0000000
--- a/components/camel-web/src/main/webapp/js/dojox/data/AndOrReadStore.js
+++ /dev/null
@@ -1,617 +0,0 @@
-/*
-	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
-	Available via Academic Free License >= 2.1 OR the modified BSD license.
-	see: http://dojotoolkit.org/license for details
-*/
-
-
-if(!dojo._hasResource["dojox.data.AndOrReadStore"]){
-dojo._hasResource["dojox.data.AndOrReadStore"]=true;
-dojo.provide("dojox.data.AndOrReadStore");
-dojo.require("dojo.data.util.filter");
-dojo.require("dojo.data.util.simpleFetch");
-dojo.require("dojo.date.stamp");
-dojo.declare("dojox.data.AndOrReadStore",null,{constructor:function(_1){
-this._arrayOfAllItems=[];
-this._arrayOfTopLevelItems=[];
-this._loadFinished=false;
-this._jsonFileUrl=_1.url;
-this._jsonData=_1.data;
-this._datatypeMap=_1.typeMap||{};
-if(!this._datatypeMap["Date"]){
-this._datatypeMap["Date"]={type:Date,deserialize:function(_2){
-return dojo.date.stamp.fromISOString(_2);
-}};
-}
-this._features={"dojo.data.api.Read":true,"dojo.data.api.Identity":true};
-this._itemsByIdentity=null;
-this._storeRefPropName="_S";
-this._itemNumPropName="_0";
-this._rootItemPropName="_RI";
-this._reverseRefMap="_RRM";
-this._loadInProgress=false;
-this._queuedFetches=[];
-if(_1.urlPreventCache!==undefined){
-this.urlPreventCache=_1.urlPreventCache?true:false;
-}
-if(_1.clearOnClose){
-this.clearOnClose=true;
-}
-},url:"",data:null,typeMap:null,clearOnClose:false,urlPreventCache:false,_assertIsItem:function(_3){
-if(!this.isItem(_3)){
-throw new Error("dojox.data.AndOrReadStore: Invalid item argument.");
-}
-},_assertIsAttribute:function(_4){
-if(typeof _4!=="string"){
-throw new Error("dojox.data.AndOrReadStore: Invalid attribute argument.");
-}
-},getValue:function(_5,_6,_7){
-var _8=this.getValues(_5,_6);
-return (_8.length>0)?_8[0]:_7;
-},getValues:function(_9,_a){
-this._assertIsItem(_9);
-this._assertIsAttribute(_a);
-return _9[_a]||[];
-},getAttributes:function(_b){
-this._assertIsItem(_b);
-var _c=[];
-for(var _d in _b){
-if((_d!==this._storeRefPropName)&&(_d!==this._itemNumPropName)&&(_d!==this._rootItemPropName)&&(_d!==this._reverseRefMap)){
-_c.push(_d);
-}
-}
-return _c;
-},hasAttribute:function(_e,_f){
-return this.getValues(_e,_f).length>0;
-},containsValue:function(_10,_11,_12){
-var _13=undefined;
-if(typeof _12==="string"){
-_13=dojo.data.util.filter.patternToRegExp(_12,false);
-}
-return this._containsValue(_10,_11,_12,_13);
-},_containsValue:function(_14,_15,_16,_17){
-return dojo.some(this.getValues(_14,_15),function(_18){
-if(_18!==null&&!dojo.isObject(_18)&&_17){
-if(_18.toString().match(_17)){
-return true;
-}
-}else{
-if(_16===_18){
-return true;
-}
-}
-});
-},isItem:function(_19){
-if(_19&&_19[this._storeRefPropName]===this){
-if(this._arrayOfAllItems[_19[this._itemNumPropName]]===_19){
-return true;
-}
-}
-return false;
-},isItemLoaded:function(_1a){
-return this.isItem(_1a);
-},loadItem:function(_1b){
-this._assertIsItem(_1b.item);
-},getFeatures:function(){
-return this._features;
-},getLabel:function(_1c){
-if(this._labelAttr&&this.isItem(_1c)){
-return this.getValue(_1c,this._labelAttr);
-}
-return undefined;
-},getLabelAttributes:function(_1d){
-if(this._labelAttr){
-return [this._labelAttr];
-}
-return null;
-},_fetchItems:function(_1e,_1f,_20){
-var _21=this;
-var _22=function(_23,_24){
-var _25=[];
-if(_23.query){
-var _26=dojo.fromJson(dojo.toJson(_23.query));
-if(typeof _26=="object"){
-var _27=0;
-var p;
-for(p in _26){
-_27++;
-}
-if(_27>1&&_26.complexQuery){
-var cq=_26.complexQuery;
-var _2a=false;
-for(p in _26){
-if(p!=="complexQuery"){
-if(!_2a){
-cq="( "+cq+" )";
-_2a=true;
-}
-cq+=" AND "+p+":"+_23.query[p];
-delete _26[p];
-}
-}
-_26.complexQuery=cq;
-}
-}
-var _2b=_23.queryOptions?_23.queryOptions.ignoreCase:false;
-if(typeof _26!="string"){
-_26=dojo.toJson(_26);
-_26=_26.replace(/\\\\/g,"\\");
-}
-_26=_26.replace(/\\"/g,"\"");
-var _2c=dojo.trim(_26.replace(/{|}/g,""));
-var _2d,i;
-if(_2c.match(/"? *complexQuery *"?:/)){
-_2c=dojo.trim(_2c.replace(/"?\s*complexQuery\s*"?:/,""));
-var _2f=["'","\""];
-var _30,_31;
-var _32=false;
-for(i=0;i<_2f.length;i++){
-_30=_2c.indexOf(_2f[i]);
-_2d=_2c.indexOf(_2f[i],1);
-_31=_2c.indexOf(":",1);
-if(_30===0&&_2d!=-1&&_31<_2d){
-_32=true;
-break;
-}
-}
-if(_32){
-_2c=_2c.replace(/^\"|^\'|\"$|\'$/g,"");
-}
-}
-var _33=_2c;
-var _34=/^,|^NOT |^AND |^OR |^\(|^\)|^!|^&&|^\|\|/i;
-var _35="";
-var op="";
-var val="";
-var pos=-1;
-var err=false;
-var key="";
-var _3b="";
-var tok="";
-_2d=-1;
-for(i=0;i<_24.length;++i){
-var _3d=true;
-var _3e=_24[i];
-if(_3e===null){
-_3d=false;
-}else{
-_2c=_33;
-_35="";
-while(_2c.length>0&&!err){
-op=_2c.match(_34);
-while(op&&!err){
-_2c=dojo.trim(_2c.replace(op[0],""));
-op=dojo.trim(op[0]).toUpperCase();
-op=op=="NOT"?"!":op=="AND"||op==","?"&&":op=="OR"?"||":op;
-op=" "+op+" ";
-_35+=op;
-op=_2c.match(_34);
-}
-if(_2c.length>0){
-pos=_2c.indexOf(":");
-if(pos==-1){
-err=true;
-break;
-}else{
-key=dojo.trim(_2c.substring(0,pos).replace(/\"|\'/g,""));
-_2c=dojo.trim(_2c.substring(pos+1));
-tok=_2c.match(/^\'|^\"/);
-if(tok){
-tok=tok[0];
-pos=_2c.indexOf(tok);
-_2d=_2c.indexOf(tok,pos+1);
-if(_2d==-1){
-err=true;
-break;
-}
-_3b=_2c.substring(pos+1,_2d);
-if(_2d==_2c.length-1){
-_2c="";
-}else{
-_2c=dojo.trim(_2c.substring(_2d+1));
-}
-_35+=_21._containsValue(_3e,key,_3b,dojo.data.util.filter.patternToRegExp(_3b,_2b));
-}else{
-tok=_2c.match(/\s|\)|,/);
-if(tok){
-var _3f=new Array(tok.length);
-for(var j=0;j<tok.length;j++){
-_3f[j]=_2c.indexOf(tok[j]);
-}
-pos=_3f[0];
-if(_3f.length>1){
-for(var j=1;j<_3f.length;j++){
-pos=Math.min(pos,_3f[j]);
-}
-}
-_3b=dojo.trim(_2c.substring(0,pos));
-_2c=dojo.trim(_2c.substring(pos));
-}else{
-_3b=dojo.trim(_2c);
-_2c="";
-}
-_35+=_21._containsValue(_3e,key,_3b,dojo.data.util.filter.patternToRegExp(_3b,_2b));
-}
-}
-}
-}
-_3d=eval(_35);
-}
-if(_3d){
-_25.push(_3e);
-}
-}
-if(err){
-_25=[];
-
-}
-_1f(_25,_23);
-}else{
-for(var i=0;i<_24.length;++i){
-var _41=_24[i];
-if(_41!==null){
-_25.push(_41);
-}
-}
-_1f(_25,_23);
-}
-};
-if(this._loadFinished){
-_22(_1e,this._getItemsArray(_1e.queryOptions));
-}else{
-if(this._jsonFileUrl){
-if(this._loadInProgress){
-this._queuedFetches.push({args:_1e,filter:_22});
-}else{
-this._loadInProgress=true;
-var _42={url:_21._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache};
-var _43=dojo.xhrGet(_42);
-_43.addCallback(function(_44){
-try{
-_21._getItemsFromLoadedData(_44);
-_21._loadFinished=true;
-_21._loadInProgress=false;
-_22(_1e,_21._getItemsArray(_1e.queryOptions));
-_21._handleQueuedFetches();
-}
-catch(e){
-_21._loadFinished=true;
-_21._loadInProgress=false;
-_20(e,_1e);
-}
-});
-_43.addErrback(function(_45){
-_21._loadInProgress=false;
-_20(_45,_1e);
-});
-var _46=null;
-if(_1e.abort){
-_46=_1e.abort;
-}
-_1e.abort=function(){
-var df=_43;
-if(df&&df.fired===-1){
-df.cancel();
-df=null;
-}
-if(_46){
-_46.call(_1e);
-}
-};
-}
-}else{
-if(this._jsonData){
-try{
-this._loadFinished=true;
-this._getItemsFromLoadedData(this._jsonData);
-this._jsonData=null;
-_22(_1e,this._getItemsArray(_1e.queryOptions));
-}
-catch(e){
-_20(e,_1e);
-}
-}else{
-_20(new Error("dojox.data.AndOrReadStore: No JSON source data was provided as either URL or a nested Javascript object."),_1e);
-}
-}
-}
-},_handleQueuedFetches:function(){
-if(this._queuedFetches.length>0){
-for(var i=0;i<this._queuedFetches.length;i++){
-var _49=this._queuedFetches[i];
-var _4a=_49.args;
-var _4b=_49.filter;
-if(_4b){
-_4b(_4a,this._getItemsArray(_4a.queryOptions));
-}else{
-this.fetchItemByIdentity(_4a);
-}
-}
-this._queuedFetches=[];
-}
-},_getItemsArray:function(_4c){
-if(_4c&&_4c.deep){
-return this._arrayOfAllItems;
-}
-return this._arrayOfTopLevelItems;
-},close:function(_4d){
-if(this.clearOnClose&&(this._jsonFileUrl!=="")){
-this._arrayOfAllItems=[];
-this._arrayOfTopLevelItems=[];
-this._loadFinished=false;
-this._itemsByIdentity=null;
-this._loadInProgress=false;
-this._queuedFetches=[];
-}
-},_getItemsFromLoadedData:function(_4e){
-function _4f(_50){
-var _51=((_50!==null)&&(typeof _50==="object")&&(!dojo.isArray(_50))&&(!dojo.isFunction(_50))&&(_50.constructor==Object)&&(typeof _50._reference==="undefined")&&(typeof _50._type==="undefined")&&(typeof _50._value==="undefined"));
-return _51;
-};
-var _52=this;
-function _53(_54){
-_52._arrayOfAllItems.push(_54);
-for(var _55 in _54){
-var _56=_54[_55];
-if(_56){
-if(dojo.isArray(_56)){
-var _57=_56;
-for(var k=0;k<_57.length;++k){
-var _59=_57[k];
-if(_4f(_59)){
-_53(_59);
-}
-}
-}else{
-if(_4f(_56)){
-_53(_56);
-}
-}
-}
-}
-};
-this._labelAttr=_4e.label;
-var i;
-var _5b;
-this._arrayOfAllItems=[];
-this._arrayOfTopLevelItems=_4e.items;
-for(i=0;i<this._arrayOfTopLevelItems.length;++i){
-_5b=this._arrayOfTopLevelItems[i];
-_53(_5b);
-_5b[this._rootItemPropName]=true;
-}
-var _5c={};
-var key;
-for(i=0;i<this._arrayOfAllItems.length;++i){
-_5b=this._arrayOfAllItems[i];
-for(key in _5b){
-if(key!==this._rootItemPropName){
-var _5e=_5b[key];
-if(_5e!==null){
-if(!dojo.isArray(_5e)){
-_5b[key]=[_5e];
-}
-}else{
-_5b[key]=[null];
-}
-}
-_5c[key]=key;
-}
-}
-while(_5c[this._storeRefPropName]){
-this._storeRefPropName+="_";
-}
-while(_5c[this._itemNumPropName]){
-this._itemNumPropName+="_";
-}
-while(_5c[this._reverseRefMap]){
-this._reverseRefMap+="_";
-}
-var _5f;
-var _60=_4e.identifier;
-if(_60){
-this._itemsByIdentity={};
-this._features["dojo.data.api.Identity"]=_60;
-for(i=0;i<this._arrayOfAllItems.length;++i){
-_5b=this._arrayOfAllItems[i];
-_5f=_5b[_60];
-var _61=_5f[0];
-if(!this._itemsByIdentity[_61]){
-this._itemsByIdentity[_61]=_5b;
-}else{
-if(this._jsonFileUrl){
-throw new Error("dojox.data.AndOrReadStore:  The json data as specified by: ["+this._jsonFileUrl+"] is malformed.  Items within the list have identifier: ["+_60+"].  Value collided: ["+_61+"]");
-}else{
-if(this._jsonData){
-throw new Error("dojox.data.AndOrReadStore:  The json data provided by the creation arguments is malformed.  Items within the list have identifier: ["+_60+"].  Value collided: ["+_61+"]");
-}
-}
-}
-}
-}else{
-this._features["dojo.data.api.Identity"]=Number;
-}
-for(i=0;i<this._arrayOfAllItems.length;++i){
-_5b=this._arrayOfAllItems[i];
-_5b[this._storeRefPropName]=this;
-_5b[this._itemNumPropName]=i;
-}
-for(i=0;i<this._arrayOfAllItems.length;++i){
-_5b=this._arrayOfAllItems[i];
-for(key in _5b){
-_5f=_5b[key];
-for(var j=0;j<_5f.length;++j){
-_5e=_5f[j];
-if(_5e!==null&&typeof _5e=="object"){
-if(_5e._type&&_5e._value){
-var _63=_5e._type;
-var _64=this._datatypeMap[_63];
-if(!_64){
-throw new Error("dojox.data.AndOrReadStore: in the typeMap constructor arg, no object class was specified for the datatype '"+_63+"'");
-}else{
-if(dojo.isFunction(_64)){
-_5f[j]=new _64(_5e._value);
-}else{
-if(dojo.isFunction(_64.deserialize)){
-_5f[j]=_64.deserialize(_5e._value);
-}else{
-throw new Error("dojox.data.AndOrReadStore: Value provided in typeMap was neither a constructor, nor a an object with a deserialize function");
-}
-}
-}
-}
-if(_5e._reference){
-var _65=_5e._reference;
-if(!dojo.isObject(_65)){
-_5f[j]=this._itemsByIdentity[_65];
-}else{
-for(var k=0;k<this._arrayOfAllItems.length;++k){
-var _67=this._arrayOfAllItems[k];
-var _68=true;
-for(var _69 in _65){
-if(_67[_69]!=_65[_69]){
-_68=false;
-}
-}
-if(_68){
-_5f[j]=_67;
-}
-}
-}
-if(this.referenceIntegrity){
-var _6a=_5f[j];
-if(this.isItem(_6a)){
-this._addReferenceToMap(_6a,_5b,key);
-}
-}
-}else{
-if(this.isItem(_5e)){
-if(this.referenceIntegrity){
-this._addReferenceToMap(_5e,_5b,key);
-}
-}
-}
-}
-}
-}
-}
-},_addReferenceToMap:function(_6b,_6c,_6d){
-},getIdentity:function(_6e){
-var _6f=this._features["dojo.data.api.Identity"];
-if(_6f===Number){
-return _6e[this._itemNumPropName];
-}else{
-var _70=_6e[_6f];
-if(_70){
-return _70[0];
-}
-}
-return null;
-},fetchItemByIdentity:function(_71){
-if(!this._loadFinished){
-var _72=this;
-if(this._jsonFileUrl){
-if(this._loadInProgress){
-this._queuedFetches.push({args:_71});
-}else{
-this._loadInProgress=true;
-var _73={url:_72._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache};
-var _74=dojo.xhrGet(_73);
-_74.addCallback(function(_75){
-var _76=_71.scope?_71.scope:dojo.global;
-try{
-_72._getItemsFromLoadedData(_75);
-_72._loadFinished=true;
-_72._loadInProgress=false;
-var _77=_72._getItemByIdentity(_71.identity);
-if(_71.onItem){
-_71.onItem.call(_76,_77);
-}
-_72._handleQueuedFetches();
-}
-catch(error){
-_72._loadInProgress=false;
-if(_71.onError){
-_71.onError.call(_76,error);
-}
-}
-});
-_74.addErrback(function(_78){
-_72._loadInProgress=false;
-if(_71.onError){
-var _79=_71.scope?_71.scope:dojo.global;
-_71.onError.call(_79,_78);
-}
-});
-}
-}else{
-if(this._jsonData){
-_72._getItemsFromLoadedData(_72._jsonData);
-_72._jsonData=null;
-_72._loadFinished=true;
-var _7a=_72._getItemByIdentity(_71.identity);
-if(_71.onItem){
-var _7b=_71.scope?_71.scope:dojo.global;
-_71.onItem.call(_7b,_7a);
-}
-}
-}
-}else{
-var _7a=this._getItemByIdentity(_71.identity);
-if(_71.onItem){
-var _7b=_71.scope?_71.scope:dojo.global;
-_71.onItem.call(_7b,_7a);
-}
-}
-},_getItemByIdentity:function(_7c){
-var _7d=null;
-if(this._itemsByIdentity){
-_7d=this._itemsByIdentity[_7c];
-}else{
-_7d=this._arrayOfAllItems[_7c];
-}
-if(_7d===undefined){
-_7d=null;
-}
-return _7d;
-},getIdentityAttributes:function(_7e){
-var _7f=this._features["dojo.data.api.Identity"];
-if(_7f===Number){
-return null;
-}else{
-return [_7f];
-}
-},_forceLoad:function(){
-var _80=this;
-if(this._jsonFileUrl){
-var _81={url:_80._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,sync:true};
-var _82=dojo.xhrGet(_81);
-_82.addCallback(function(_83){
-try{
-if(_80._loadInProgress!==true&&!_80._loadFinished){
-_80._getItemsFromLoadedData(_83);
-_80._loadFinished=true;
-}else{
-if(_80._loadInProgress){
-throw new Error("dojox.data.AndOrReadStore:  Unable to perform a synchronous load, an async load is in progress.");
-}
-}
-}
-catch(e){
-
-throw e;
-}
-});
-_82.addErrback(function(_84){
-throw _84;
-});
-}else{
-if(this._jsonData){
-_80._getItemsFromLoadedData(_80._jsonData);
-_80._jsonData=null;
-_80._loadFinished=true;
-}
-}
-}});
-dojo.extend(dojox.data.AndOrReadStore,dojo.data.util.simpleFetch);
-}

http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/AndOrWriteStore.js
----------------------------------------------------------------------
diff --git a/components/camel-web/src/main/webapp/js/dojox/data/AndOrWriteStore.js b/components/camel-web/src/main/webapp/js/dojox/data/AndOrWriteStore.js
deleted file mode 100644
index 0f5c046..0000000
--- a/components/camel-web/src/main/webapp/js/dojox/data/AndOrWriteStore.js
+++ /dev/null
@@ -1,526 +0,0 @@
-/*
-	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
-	Available via Academic Free License >= 2.1 OR the modified BSD license.
-	see: http://dojotoolkit.org/license for details
-*/
-
-
-if(!dojo._hasResource["dojox.data.AndOrWriteStore"]){
-dojo._hasResource["dojox.data.AndOrWriteStore"]=true;
-dojo.provide("dojox.data.AndOrWriteStore");
-dojo.require("dojox.data.AndOrReadStore");
-dojo.declare("dojox.data.AndOrWriteStore",dojox.data.AndOrReadStore,{constructor:function(_1){
-this._features["dojo.data.api.Write"]=true;
-this._features["dojo.data.api.Notification"]=true;
-this._pending={_newItems:{},_modifiedItems:{},_deletedItems:{}};
-if(!this._datatypeMap["Date"].serialize){
-this._datatypeMap["Date"].serialize=function(_2){
-return dojo.date.stamp.toISOString(_2,{zulu:true});
-};
-}
-if(_1&&(_1.referenceIntegrity===false)){
-this.referenceIntegrity=false;
-}
-this._saveInProgress=false;
-},referenceIntegrity:true,_assert:function(_3){
-if(!_3){
-throw new Error("assertion failed in ItemFileWriteStore");
-}
-},_getIdentifierAttribute:function(){
-var _4=this.getFeatures()["dojo.data.api.Identity"];
-return _4;
-},newItem:function(_5,_6){
-this._assert(!this._saveInProgress);
-if(!this._loadFinished){
-this._forceLoad();
-}
-if(typeof _5!="object"&&typeof _5!="undefined"){
-throw new Error("newItem() was passed something other than an object");
-}
-var _7=null;
-var _8=this._getIdentifierAttribute();
-if(_8===Number){
-_7=this._arrayOfAllItems.length;
-}else{
-_7=_5[_8];
-if(typeof _7==="undefined"){
-throw new Error("newItem() was not passed an identity for the new item");
-}
-if(dojo.isArray(_7)){
-throw new Error("newItem() was not passed an single-valued identity");
-}
-}
-if(this._itemsByIdentity){
-this._assert(typeof this._itemsByIdentity[_7]==="undefined");
-}
-this._assert(typeof this._pending._newItems[_7]==="undefined");
-this._assert(typeof this._pending._deletedItems[_7]==="undefined");
-var _9={};
-_9[this._storeRefPropName]=this;
-_9[this._itemNumPropName]=this._arrayOfAllItems.length;
-if(this._itemsByIdentity){
-this._itemsByIdentity[_7]=_9;
-_9[_8]=[_7];
-}
-this._arrayOfAllItems.push(_9);
-var _a=null;
-if(_6&&_6.parent&&_6.attribute){
-_a={item:_6.parent,attribute:_6.attribute,oldValue:undefined};
-var _b=this.getValues(_6.parent,_6.attribute);
-if(_b&&_b.length>0){
-var _c=_b.slice(0,_b.length);
-if(_b.length===1){
-_a.oldValue=_b[0];
-}else{
-_a.oldValue=_b.slice(0,_b.length);
-}
-_c.push(_9);
-this._setValueOrValues(_6.parent,_6.attribute,_c,false);
-_a.newValue=this.getValues(_6.parent,_6.attribute);
-}else{
-this._setValueOrValues(_6.parent,_6.attribute,_9,false);
-_a.newValue=_9;
-}
-}else{
-_9[this._rootItemPropName]=true;
-this._arrayOfTopLevelItems.push(_9);
-}
-this._pending._newItems[_7]=_9;
-for(var _d in _5){
-if(_d===this._storeRefPropName||_d===this._itemNumPropName){
-throw new Error("encountered bug in ItemFileWriteStore.newItem");
-}
-var _e=_5[_d];
-if(!dojo.isArray(_e)){
-_e=[_e];
-}
-_9[_d]=_e;
-if(this.referenceIntegrity){
-for(var i=0;i<_e.length;i++){
-var val=_e[i];
-if(this.isItem(val)){
-this._addReferenceToMap(val,_9,_d);
-}
-}
-}
-}
-this.onNew(_9,_a);
-return _9;
-},_removeArrayElement:function(_11,_12){
-var _13=dojo.indexOf(_11,_12);
-if(_13!=-1){
-_11.splice(_13,1);
-return true;
-}
-return false;
-},deleteItem:function(_14){
-this._assert(!this._saveInProgress);
-this._assertIsItem(_14);
-var _15=_14[this._itemNumPropName];
-var _16=this.getIdentity(_14);
-if(this.referenceIntegrity){
-var _17=this.getAttributes(_14);
-if(_14[this._reverseRefMap]){
-_14["backup_"+this._reverseRefMap]=dojo.clone(_14[this._reverseRefMap]);
-}
-dojo.forEach(_17,function(_18){
-dojo.forEach(this.getValues(_14,_18),function(_19){
-if(this.isItem(_19)){
-if(!_14["backupRefs_"+this._reverseRefMap]){
-_14["backupRefs_"+this._reverseRefMap]=[];
-}
-_14["backupRefs_"+this._reverseRefMap].push({id:this.getIdentity(_19),attr:_18});
-this._removeReferenceFromMap(_19,_14,_18);
-}
-},this);
-},this);
-var _1a=_14[this._reverseRefMap];
-if(_1a){
-for(var _1b in _1a){
-var _1c=null;
-if(this._itemsByIdentity){
-_1c=this._itemsByIdentity[_1b];
-}else{
-_1c=this._arrayOfAllItems[_1b];
-}
-if(_1c){
-for(var _1d in _1a[_1b]){
-var _1e=this.getValues(_1c,_1d)||[];
-var _1f=dojo.filter(_1e,function(_20){
-return !(this.isItem(_20)&&this.getIdentity(_20)==_16);
-},this);
-this._removeReferenceFromMap(_14,_1c,_1d);
-if(_1f.length<_1e.length){
-this._setValueOrValues(_1c,_1d,_1f);
-}
-}
-}
-}
-}
-}
-this._arrayOfAllItems[_15]=null;
-_14[this._storeRefPropName]=null;
-if(this._itemsByIdentity){
-delete this._itemsByIdentity[_16];
-}
-this._pending._deletedItems[_16]=_14;
-if(_14[this._rootItemPropName]){
-this._removeArrayElement(this._arrayOfTopLevelItems,_14);
-}
-this.onDelete(_14);
-return true;
-},setValue:function(_21,_22,_23){
-return this._setValueOrValues(_21,_22,_23,true);
-},setValues:function(_24,_25,_26){
-return this._setValueOrValues(_24,_25,_26,true);
-},unsetAttribute:function(_27,_28){
-return this._setValueOrValues(_27,_28,[],true);
-},_setValueOrValues:function(_29,_2a,_2b,_2c){
-this._assert(!this._saveInProgress);
-this._assertIsItem(_29);
-this._assert(dojo.isString(_2a));
-this._assert(typeof _2b!=="undefined");
-var _2d=this._getIdentifierAttribute();
-if(_2a==_2d){
-throw new Error("ItemFileWriteStore does not have support for changing the value of an item's identifier.");
-}
-var _2e=this._getValueOrValues(_29,_2a);
-var _2f=this.getIdentity(_29);
-if(!this._pending._modifiedItems[_2f]){
-var _30={};
-for(var key in _29){
-if((key===this._storeRefPropName)||(key===this._itemNumPropName)||(key===this._rootItemPropName)){
-_30[key]=_29[key];
-}else{
-if(key===this._reverseRefMap){
-_30[key]=dojo.clone(_29[key]);
-}else{
-_30[key]=_29[key].slice(0,_29[key].length);
-}
-}
-}
-this._pending._modifiedItems[_2f]=_30;
-}
-var _32=false;
-if(dojo.isArray(_2b)&&_2b.length===0){
-_32=delete _29[_2a];
-_2b=undefined;
-if(this.referenceIntegrity&&_2e){
-var _33=_2e;
-if(!dojo.isArray(_33)){
-_33=[_33];
-}
-for(var i=0;i<_33.length;i++){
-var _35=_33[i];
-if(this.isItem(_35)){
-this._removeReferenceFromMap(_35,_29,_2a);
-}
-}
-}
-}else{
-var _36;
-if(dojo.isArray(_2b)){
-var _37=_2b;
-_36=_2b.slice(0,_2b.length);
-}else{
-_36=[_2b];
-}
-if(this.referenceIntegrity){
-if(_2e){
-var _33=_2e;
-if(!dojo.isArray(_33)){
-_33=[_33];
-}
-var map={};
-dojo.forEach(_33,function(_39){
-if(this.isItem(_39)){
-var id=this.getIdentity(_39);
-map[id.toString()]=true;
-}
-},this);
-dojo.forEach(_36,function(_3b){
-if(this.isItem(_3b)){
-var id=this.getIdentity(_3b);
-if(map[id.toString()]){
-delete map[id.toString()];
-}else{
-this._addReferenceToMap(_3b,_29,_2a);
-}
-}
-},this);
-for(var rId in map){
-var _3e;
-if(this._itemsByIdentity){
-_3e=this._itemsByIdentity[rId];
-}else{
-_3e=this._arrayOfAllItems[rId];
-}
-this._removeReferenceFromMap(_3e,_29,_2a);
-}
-}else{
-for(var i=0;i<_36.length;i++){
-var _35=_36[i];
-if(this.isItem(_35)){
-this._addReferenceToMap(_35,_29,_2a);
-}
-}
-}
-}
-_29[_2a]=_36;
-_32=true;
-}
-if(_2c){
-this.onSet(_29,_2a,_2e,_2b);
-}
-return _32;
-},_addReferenceToMap:function(_3f,_40,_41){
-var _42=this.getIdentity(_40);
-var _43=_3f[this._reverseRefMap];
-if(!_43){
-_43=_3f[this._reverseRefMap]={};
-}
-var _44=_43[_42];
-if(!_44){
-_44=_43[_42]={};
-}
-_44[_41]=true;
-},_removeReferenceFromMap:function(_45,_46,_47){
-var _48=this.getIdentity(_46);
-var _49=_45[this._reverseRefMap];
-var _4a;
-if(_49){
-for(_4a in _49){
-if(_4a==_48){
-delete _49[_4a][_47];
-if(this._isEmpty(_49[_4a])){
-delete _49[_4a];
-}
-}
-}
-if(this._isEmpty(_49)){
-delete _45[this._reverseRefMap];
-}
-}
-},_dumpReferenceMap:function(){
-var i;
-for(i=0;i<this._arrayOfAllItems.length;i++){
-var _4c=this._arrayOfAllItems[i];
-if(_4c&&_4c[this._reverseRefMap]){
-
-}
-}
-},_getValueOrValues:function(_4d,_4e){
-var _4f=undefined;
-if(this.hasAttribute(_4d,_4e)){
-var _50=this.getValues(_4d,_4e);
-if(_50.length==1){
-_4f=_50[0];
-}else{
-_4f=_50;
-}
-}
-return _4f;
-},_flatten:function(_51){
-if(this.isItem(_51)){
-var _52=_51;
-var _53=this.getIdentity(_52);
-var _54={_reference:_53};
-return _54;
-}else{
-if(typeof _51==="object"){
-for(var _55 in this._datatypeMap){
-var _56=this._datatypeMap[_55];
-if(dojo.isObject(_56)&&!dojo.isFunction(_56)){
-if(_51 instanceof _56.type){
-if(!_56.serialize){
-throw new Error("ItemFileWriteStore:  No serializer defined for type mapping: ["+_55+"]");
-}
-return {_type:_55,_value:_56.serialize(_51)};
-}
-}else{
-if(_51 instanceof _56){
-return {_type:_55,_value:_51.toString()};
-}
-}
-}
-}
-return _51;
-}
-},_getNewFileContentString:function(){
-var _57={};
-var _58=this._getIdentifierAttribute();
-if(_58!==Number){
-_57.identifier=_58;
-}
-if(this._labelAttr){
-_57.label=this._labelAttr;
-}
-_57.items=[];
-for(var i=0;i<this._arrayOfAllItems.length;++i){
-var _5a=this._arrayOfAllItems[i];
-if(_5a!==null){
-var _5b={};
-for(var key in _5a){
-if(key!==this._storeRefPropName&&key!==this._itemNumPropName&&key!==this._reverseRefMap&&key!==this._rootItemPropName){
-var _5d=key;
-var _5e=this.getValues(_5a,_5d);
-if(_5e.length==1){
-_5b[_5d]=this._flatten(_5e[0]);
-}else{
-var _5f=[];
-for(var j=0;j<_5e.length;++j){
-_5f.push(this._flatten(_5e[j]));
-_5b[_5d]=_5f;
-}
-}
-}
-}
-_57.items.push(_5b);
-}
-}
-var _61=true;
-return dojo.toJson(_57,_61);
-},_isEmpty:function(_62){
-var _63=true;
-if(dojo.isObject(_62)){
-var i;
-for(i in _62){
-_63=false;
-break;
-}
-}else{
-if(dojo.isArray(_62)){
-if(_62.length>0){
-_63=false;
-}
-}
-}
-return _63;
-},save:function(_65){
-this._assert(!this._saveInProgress);
-this._saveInProgress=true;
-var _66=this;
-var _67=function(){
-_66._pending={_newItems:{},_modifiedItems:{},_deletedItems:{}};
-_66._saveInProgress=false;
-if(_65&&_65.onComplete){
-var _68=_65.scope||dojo.global;
-_65.onComplete.call(_68);
-}
-};
-var _69=function(){
-_66._saveInProgress=false;
-if(_65&&_65.onError){
-var _6a=_65.scope||dojo.global;
-_65.onError.call(_6a);
-}
-};
-if(this._saveEverything){
-var _6b=this._getNewFileContentString();
-this._saveEverything(_67,_69,_6b);
-}
-if(this._saveCustom){
-this._saveCustom(_67,_69);
-}
-if(!this._saveEverything&&!this._saveCustom){
-_67();
-}
-},revert:function(){
-this._assert(!this._saveInProgress);
-var _6c;
-for(_6c in this._pending._modifiedItems){
-var _6d=this._pending._modifiedItems[_6c];
-var _6e=null;
-if(this._itemsByIdentity){
-_6e=this._itemsByIdentity[_6c];
-}else{
-_6e=this._arrayOfAllItems[_6c];
-}
-_6d[this._storeRefPropName]=this;
-_6e[this._storeRefPropName]=null;
-var _6f=_6e[this._itemNumPropName];
-this._arrayOfAllItems[_6f]=_6d;
-if(_6e[this._rootItemPropName]){
-var i;
-for(i=0;i<this._arrayOfTopLevelItems.length;i++){
-var _71=this._arrayOfTopLevelItems[i];
-if(this.getIdentity(_71)==_6c){
-this._arrayOfTopLevelItems[i]=_6d;
-break;
-}
-}
-}
-if(this._itemsByIdentity){
-this._itemsByIdentity[_6c]=_6d;
-}
-}
-var _72;
-for(_6c in this._pending._deletedItems){
-_72=this._pending._deletedItems[_6c];
-_72[this._storeRefPropName]=this;
-var _73=_72[this._itemNumPropName];
-if(_72["backup_"+this._reverseRefMap]){
-_72[this._reverseRefMap]=_72["backup_"+this._reverseRefMap];
-delete _72["backup_"+this._reverseRefMap];
-}
-this._arrayOfAllItems[_73]=_72;
-if(this._itemsByIdentity){
-this._itemsByIdentity[_6c]=_72;
-}
-if(_72[this._rootItemPropName]){
-this._arrayOfTopLevelItems.push(_72);
-}
-}
-for(_6c in this._pending._deletedItems){
-_72=this._pending._deletedItems[_6c];
-if(_72["backupRefs_"+this._reverseRefMap]){
-dojo.forEach(_72["backupRefs_"+this._reverseRefMap],function(_74){
-var _75;
-if(this._itemsByIdentity){
-_75=this._itemsByIdentity[_74.id];
-}else{
-_75=this._arrayOfAllItems[_74.id];
-}
-this._addReferenceToMap(_75,_72,_74.attr);
-},this);
-delete _72["backupRefs_"+this._reverseRefMap];
-}
-}
-for(_6c in this._pending._newItems){
-var _76=this._pending._newItems[_6c];
-_76[this._storeRefPropName]=null;
-this._arrayOfAllItems[_76[this._itemNumPropName]]=null;
-if(_76[this._rootItemPropName]){
-this._removeArrayElement(this._arrayOfTopLevelItems,_76);
-}
-if(this._itemsByIdentity){
-delete this._itemsByIdentity[_6c];
-}
-}
-this._pending={_newItems:{},_modifiedItems:{},_deletedItems:{}};
-return true;
-},isDirty:function(_77){
-if(_77){
-var _78=this.getIdentity(_77);
-return new Boolean(this._pending._newItems[_78]||this._pending._modifiedItems[_78]||this._pending._deletedItems[_78]).valueOf();
-}else{
-if(!this._isEmpty(this._pending._newItems)||!this._isEmpty(this._pending._modifiedItems)||!this._isEmpty(this._pending._deletedItems)){
-return true;
-}
-return false;
-}
-},onSet:function(_79,_7a,_7b,_7c){
-},onNew:function(_7d,_7e){
-},onDelete:function(_7f){
-},close:function(_80){
-if(this.clearOnClose){
-if(!this.isDirty()){
-this.inherited(arguments);
-}else{
-if(this._jsonFileUrl!==""){
-throw new Error("dojox.data.AndOrWriteStore: There are unsaved changes present in the store.  Please save or revert the changes before invoking close.");
-}
-}
-}
-}});
-}

http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/AppStore.js
----------------------------------------------------------------------
diff --git a/components/camel-web/src/main/webapp/js/dojox/data/AppStore.js b/components/camel-web/src/main/webapp/js/dojox/data/AppStore.js
deleted file mode 100644
index 2dba1b1..0000000
--- a/components/camel-web/src/main/webapp/js/dojox/data/AppStore.js
+++ /dev/null
@@ -1,557 +0,0 @@
-/*
-	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
-	Available via Academic Free License >= 2.1 OR the modified BSD license.
-	see: http://dojotoolkit.org/license for details
-*/
-
-
-if(!dojo._hasResource["dojox.data.AppStore"]){
-dojo._hasResource["dojox.data.AppStore"]=true;
-dojo.provide("dojox.data.AppStore");
-dojo.require("dojox.atom.io.Connection");
-dojo.require("dojo.data.util.simpleFetch");
-dojo.require("dojo.data.util.filter");
-dojo.requireLocalization("dojox.data","AppStore",null,"ROOT,cs,de,es,fr,hu,it,ja,ko,pl,pt,ru,zh,zh-tw");
-dojo.experimental("dojox.data.AppStore");
-dojo.declare("dojox.data.AppStore",null,{url:"",urlPreventCache:false,xmethod:false,_atomIO:null,_feed:null,_requests:null,_processing:null,_updates:null,_adds:null,_deletes:null,constructor:function(_1){
-if(_1&&_1.url){
-this.url=_1.url;
-}
-if(_1&&_1.urlPreventCache){
-this.urlPreventCache=_1.urlPreventCache;
-}
-if(!this.url){
-var _2=dojo.i18n.getLocalization("dojox.data","AppStore");
-throw new Error(_2.missingUrl);
-}
-},_setFeed:function(_3,_4){
-this._feed=_3;
-var i;
-for(i=0;i<this._feed.entries.length;i++){
-this._feed.entries[i].store=this;
-}
-if(this._requests){
-for(i=0;i<this._requests.length;i++){
-var _6=this._requests[i];
-if(_6.request&&_6.fh&&_6.eh){
-this._finishFetchItems(_6.request,_6.fh,_6.eh);
-}else{
-if(_6.clear){
-this._feed=null;
-}else{
-if(_6.add){
-this._feed.addEntry(_6.add);
-}else{
-if(_6.remove){
-this._feed.removeEntry(_6.remove);
-}
-}
-}
-}
-}
-}
-this._requests=null;
-},_getAllItems:function(){
-var _7=[];
-for(var i=0;i<this._feed.entries.length;i++){
-_7.push(this._feed.entries[i]);
-}
-return _7;
-},_assertIsItem:function(_9){
-if(!this.isItem(_9)){
-var _a=dojo.i18n.getLocalization("dojox.data","AppStore");
-throw new Error(_a.invalidItem);
-}
-},_assertIsAttribute:function(_b){
-if(typeof _b!=="string"){
-var _c=dojo.i18n.getLocalization("dojox.data","AppStore");
-throw new Error(_c.invalidAttributeType);
-}
-for(var _d in dojox.atom.io.model._actions){
-if(_d==_b){
-return true;
-}
-}
-return false;
-},_addUpdate:function(_e){
-if(!this._updates){
-this._updates=[_e];
-}else{
-this._updates.push(_e);
-}
-},getValue:function(_f,_10,_11){
-var _12=this.getValues(_f,_10);
-return (_12.length>0)?_12[0]:_11;
-},getValues:function(_13,_14){
-this._assertIsItem(_13);
-var _15=this._assertIsAttribute(_14);
-if(_15){
-if((_14==="author"||_14==="contributor"||_14==="link")&&_13[_14+"s"]){
-return _13[_14+"s"];
-}
-if(_14==="category"&&_13.categories){
-return _13.categories;
-}
-if(_13[_14]){
-_13=_13[_14];
-if(_13.declaredClass=="dojox.atom.io.model.Content"){
-return [_13.value];
-}
-return [_13];
-}
-}
-return [];
-},getAttributes:function(_16){
-this._assertIsItem(_16);
-var _17=[];
-for(var key in dojox.atom.io.model._actions){
-if(this.hasAttribute(_16,key)){
-_17.push(key);
-}
-}
-return _17;
-},hasAttribute:function(_19,_1a){
-return this.getValues(_19,_1a).length>0;
-},containsValue:function(_1b,_1c,_1d){
-var _1e=undefined;
-if(typeof _1d==="string"){
-_1e=dojo.data.util.filter.patternToRegExp(_1d,false);
-}
-return this._containsValue(_1b,_1c,_1d,_1e);
-},_containsValue:function(_1f,_20,_21,_22,_23){
-var _24=this.getValues(_1f,_20);
-for(var i=0;i<_24.length;++i){
-var _26=_24[i];
-if(typeof _26==="string"&&_22){
-if(_23){
-_26=_26.replace(new RegExp(/^\s+/),"");
-_26=_26.replace(new RegExp(/\s+$/),"");
-}
-_26=_26.replace(/\r|\n|\r\n/g,"");
-return (_26.match(_22)!==null);
-}else{
-if(_21===_26){
-return true;
-}
-}
-}
-return false;
-},isItem:function(_27){
-if(_27&&_27.store&&_27.store===this){
-return true;
-}
-return false;
-},isItemLoaded:function(_28){
-return this.isItem(_28);
-},loadItem:function(_29){
-this._assertIsItem(_29.item);
-},_fetchItems:function(_2a,_2b,_2c){
-if(this._feed){
-this._finishFetchItems(_2a,_2b,_2c);
-}else{
-var _2d=false;
-if(!this._requests){
-this._requests=[];
-_2d=true;
-}
-this._requests.push({request:_2a,fh:_2b,eh:_2c});
-if(_2d){
-this._atomIO=new dojox.atom.io.Connection(false,this.urlPreventCache);
-this._atomIO.getFeed(this.url,this._setFeed,null,this);
-}
-}
-},_finishFetchItems:function(_2e,_2f,_30){
-var _31=null;
-var _32=this._getAllItems();
-if(_2e.query){
-var _33=_2e.queryOptions?_2e.queryOptions.ignoreCase:false;
-_31=[];
-var _34={};
-var key;
-var _36;
-for(key in _2e.query){
-_36=_2e.query[key]+"";
-if(typeof _36==="string"){
-_34[key]=dojo.data.util.filter.patternToRegExp(_36,_33);
-}
-}
-for(var i=0;i<_32.length;++i){
-var _38=true;
-var _39=_32[i];
-for(key in _2e.query){
-_36=_2e.query[key]+"";
-if(!this._containsValue(_39,key,_36,_34[key],_2e.trim)){
-_38=false;
-}
-}
-if(_38){
-_31.push(_39);
-}
-}
-}else{
-if(_32.length>0){
-_31=_32.slice(0,_32.length);
-}
-}
-try{
-_2f(_31,_2e);
-}
-catch(e){
-_30(e,_2e);
-}
-},getFeatures:function(){
-return {"dojo.data.api.Read":true,"dojo.data.api.Write":true,"dojo.data.api.Identity":true};
-},close:function(_3a){
-this._feed=null;
-},getLabel:function(_3b){
-if(this.isItem(_3b)){
-return this.getValue(_3b,"title","No Title");
-}
-return undefined;
-},getLabelAttributes:function(_3c){
-return ["title"];
-},getIdentity:function(_3d){
-this._assertIsItem(_3d);
-return this.getValue(_3d,"id");
-},getIdentityAttributes:function(_3e){
-return ["id"];
-},fetchItemByIdentity:function(_3f){
-this._fetchItems({query:{id:_3f.identity},onItem:_3f.onItem,scope:_3f.scope},function(_40,_41){
-var _42=_41.scope;
-if(!_42){
-_42=dojo.global;
-}
-if(_40.length<1){
-_41.onItem.call(_42,null);
-}else{
-_41.onItem.call(_42,_40[0]);
-}
-},_3f.onError);
-},newItem:function(_43){
-var _44=new dojox.atom.io.model.Entry();
-var _45=null;
-var _46=null;
-var i;
-for(var key in _43){
-if(this._assertIsAttribute(key)){
-_45=_43[key];
-switch(key){
-case "link":
-for(i in _45){
-_46=_45[i];
-_44.addLink(_46.href,_46.rel,_46.hrefLang,_46.title,_46.type);
-}
-break;
-case "author":
-for(i in _45){
-_46=_45[i];
-_44.addAuthor(_46.name,_46.email,_46.uri);
-}
-break;
-case "contributor":
-for(i in _45){
-_46=_45[i];
-_44.addContributor(_46.name,_46.email,_46.uri);
-}
-break;
-case "category":
-for(i in _45){
-_46=_45[i];
-_44.addCategory(_46.scheme,_46.term,_46.label);
-}
-break;
-case "icon":
-case "id":
-case "logo":
-case "xmlBase":
-case "rights":
-_44[key]=_45;
-break;
-case "updated":
-case "published":
-case "issued":
-case "modified":
-_44[key]=dojox.atom.io.model.util.createDate(_45);
-break;
-case "content":
-case "summary":
-case "title":
-case "subtitle":
-_44[key]=new dojox.atom.io.model.Content(key);
-_44[key].value=_45;
-break;
-default:
-_44[key]=_45;
-break;
-}
-}
-}
-_44.store=this;
-_44.isDirty=true;
-if(!this._adds){
-this._adds=[_44];
-}else{
-this._adds.push(_44);
-}
-if(this._feed){
-this._feed.addEntry(_44);
-}else{
-if(this._requests){
-this._requests.push({add:_44});
-}else{
-this._requests=[{add:_44}];
-this._atomIO=new dojox.atom.io.Connection(false,this.urlPreventCache);
-this._atomIO.getFeed(this.url,dojo.hitch(this,this._setFeed));
-}
-}
-return true;
-},deleteItem:function(_49){
-this._assertIsItem(_49);
-if(!this._deletes){
-this._deletes=[_49];
-}else{
-this._deletes.push(_49);
-}
-if(this._feed){
-this._feed.removeEntry(_49);
-}else{
-if(this._requests){
-this._requests.push({remove:_49});
-}else{
-this._requests=[{remove:_49}];
-this._atomIO=new dojox.atom.io.Connection(false,this.urlPreventCache);
-this._atomIO.getFeed(this.url,dojo.hitch(this,this._setFeed));
-}
-}
-_49=null;
-return true;
-},setValue:function(_4a,_4b,_4c){
-this._assertIsItem(_4a);
-var _4d={item:_4a};
-if(this._assertIsAttribute(_4b)){
-switch(_4b){
-case "link":
-_4d.links=_4a.links;
-this._addUpdate(_4d);
-_4a.links=null;
-_4a.addLink(_4c.href,_4c.rel,_4c.hrefLang,_4c.title,_4c.type);
-_4a.isDirty=true;
-return true;
-case "author":
-_4d.authors=_4a.authors;
-this._addUpdate(_4d);
-_4a.authors=null;
-_4a.addAuthor(_4c.name,_4c.email,_4c.uri);
-_4a.isDirty=true;
-return true;
-case "contributor":
-_4d.contributors=_4a.contributors;
-this._addUpdate(_4d);
-_4a.contributors=null;
-_4a.addContributor(_4c.name,_4c.email,_4c.uri);
-_4a.isDirty=true;
-return true;
-case "category":
-_4d.categories=_4a.categories;
-this._addUpdate(_4d);
-_4a.categories=null;
-_4a.addCategory(_4c.scheme,_4c.term,_4c.label);
-_4a.isDirty=true;
-return true;
-case "icon":
-case "id":
-case "logo":
-case "xmlBase":
-case "rights":
-_4d[_4b]=_4a[_4b];
-this._addUpdate(_4d);
-_4a[_4b]=_4c;
-_4a.isDirty=true;
-return true;
-case "updated":
-case "published":
-case "issued":
-case "modified":
-_4d[_4b]=_4a[_4b];
-this._addUpdate(_4d);
-_4a[_4b]=dojox.atom.io.model.util.createDate(_4c);
-_4a.isDirty=true;
-return true;
-case "content":
-case "summary":
-case "title":
-case "subtitle":
-_4d[_4b]=_4a[_4b];
-this._addUpdate(_4d);
-_4a[_4b]=new dojox.atom.io.model.Content(_4b);
-_4a[_4b].value=_4c;
-_4a.isDirty=true;
-return true;
-default:
-_4d[_4b]=_4a[_4b];
-this._addUpdate(_4d);
-_4a[_4b]=_4c;
-_4a.isDirty=true;
-return true;
-}
-}
-return false;
-},setValues:function(_4e,_4f,_50){
-if(_50.length===0){
-return this.unsetAttribute(_4e,_4f);
-}
-this._assertIsItem(_4e);
-var _51={item:_4e};
-var _52;
-var i;
-if(this._assertIsAttribute(_4f)){
-switch(_4f){
-case "link":
-_51.links=_4e.links;
-_4e.links=null;
-for(i in _50){
-_52=_50[i];
-_4e.addLink(_52.href,_52.rel,_52.hrefLang,_52.title,_52.type);
-}
-_4e.isDirty=true;
-return true;
-case "author":
-_51.authors=_4e.authors;
-_4e.authors=null;
-for(i in _50){
-_52=_50[i];
-_4e.addAuthor(_52.name,_52.email,_52.uri);
-}
-_4e.isDirty=true;
-return true;
-case "contributor":
-_51.contributors=_4e.contributors;
-_4e.contributors=null;
-for(i in _50){
-_52=_50[i];
-_4e.addContributor(_52.name,_52.email,_52.uri);
-}
-_4e.isDirty=true;
-return true;
-case "categories":
-_51.categories=_4e.categories;
-_4e.categories=null;
-for(i in _50){
-_52=_50[i];
-_4e.addCategory(_52.scheme,_52.term,_52.label);
-}
-_4e.isDirty=true;
-return true;
-case "icon":
-case "id":
-case "logo":
-case "xmlBase":
-case "rights":
-_51[_4f]=_4e[_4f];
-_4e[_4f]=_50[0];
-_4e.isDirty=true;
-return true;
-case "updated":
-case "published":
-case "issued":
-case "modified":
-_51[_4f]=_4e[_4f];
-_4e[_4f]=dojox.atom.io.model.util.createDate(_50[0]);
-_4e.isDirty=true;
-return true;
-case "content":
-case "summary":
-case "title":
-case "subtitle":
-_51[_4f]=_4e[_4f];
-_4e[_4f]=new dojox.atom.io.model.Content(_4f);
-_4e[_4f].values[0]=_50[0];
-_4e.isDirty=true;
-return true;
-default:
-_51[_4f]=_4e[_4f];
-_4e[_4f]=_50[0];
-_4e.isDirty=true;
-return true;
-}
-}
-this._addUpdate(_51);
-return false;
-},unsetAttribute:function(_54,_55){
-this._assertIsItem(_54);
-if(this._assertIsAttribute(_55)){
-if(_54[_55]!==null){
-var _56={item:_54};
-switch(_55){
-case "author":
-case "contributor":
-case "link":
-_56[_55+"s"]=_54[_55+"s"];
-break;
-case "category":
-_56.categories=_54.categories;
-break;
-default:
-_56[_55]=_54[_55];
-break;
-}
-_54.isDirty=true;
-_54[_55]=null;
-this._addUpdate(_56);
-return true;
-}
-}
-return false;
-},save:function(_57){
-var i;
-for(i in this._adds){
-this._atomIO.addEntry(this._adds[i],null,function(){
-},_57.onError,false,_57.scope);
-}
-this._adds=null;
-for(i in this._updates){
-this._atomIO.updateEntry(this._updates[i].item,function(){
-},_57.onError,false,this.xmethod,_57.scope);
-}
-this._updates=null;
-for(i in this._deletes){
-this._atomIO.removeEntry(this._deletes[i],function(){
-},_57.onError,this.xmethod,_57.scope);
-}
-this._deletes=null;
-this._atomIO.getFeed(this.url,dojo.hitch(this,this._setFeed));
-if(_57.onComplete){
-var _59=_57.scope||dojo.global;
-_57.onComplete.call(_59);
-}
-},revert:function(){
-var i;
-for(i in this._adds){
-this._feed.removeEntry(this._adds[i]);
-}
-this._adds=null;
-var _5b,_5c,key;
-for(i in this._updates){
-_5b=this._updates[i];
-_5c=_5b.item;
-for(key in _5b){
-if(key!=="item"){
-_5c[key]=_5b[key];
-}
-}
-}
-this._updates=null;
-for(i in this._deletes){
-this._feed.addEntry(this._deletes[i]);
-}
-this._deletes=null;
-return true;
-},isDirty:function(_5e){
-if(_5e){
-this._assertIsItem(_5e);
-return _5e.isDirty?true:false;
-}
-return (this._adds!==null||this._updates!==null);
-}});
-dojo.extend(dojox.data.AppStore,dojo.data.util.simpleFetch);
-}

http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/AtomReadStore.js
----------------------------------------------------------------------
diff --git a/components/camel-web/src/main/webapp/js/dojox/data/AtomReadStore.js b/components/camel-web/src/main/webapp/js/dojox/data/AtomReadStore.js
deleted file mode 100644
index 1db2b95..0000000
--- a/components/camel-web/src/main/webapp/js/dojox/data/AtomReadStore.js
+++ /dev/null
@@ -1,339 +0,0 @@
-/*
-	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
-	Available via Academic Free License >= 2.1 OR the modified BSD license.
-	see: http://dojotoolkit.org/license for details
-*/
-
-
-if(!dojo._hasResource["dojox.data.AtomReadStore"]){
-dojo._hasResource["dojox.data.AtomReadStore"]=true;
-dojo.provide("dojox.data.AtomReadStore");
-dojo.require("dojo.data.util.simpleFetch");
-dojo.require("dojo.data.util.filter");
-dojo.require("dojo.date.stamp");
-dojo.experimental("dojox.data.AtomReadStore");
-dojo.declare("dojox.data.AtomReadStore",null,{constructor:function(_1){
-if(_1){
-this.url=_1.url;
-this.rewriteUrl=_1.rewriteUrl;
-this.label=_1.label||this.label;
-this.sendQuery=(_1.sendQuery||_1.sendquery||this.sendQuery);
-this.unescapeHTML=_1.unescapeHTML;
-}
-if(!this.url){
-throw new Error("AtomReadStore: a URL must be specified when creating the data store");
-}
-},url:"",label:"title",sendQuery:false,unescapeHTML:false,getValue:function(_2,_3,_4){
-this._assertIsItem(_2);
-this._assertIsAttribute(_3);
-this._initItem(_2);
-_3=_3.toLowerCase();
-if(!_2._attribs[_3]&&!_2._parsed){
-this._parseItem(_2);
-_2._parsed=true;
-}
-var _5=_2._attribs[_3];
-if(!_5&&_3=="summary"){
-var _6=this.getValue(_2,"content");
-var _7=new RegExp("/(<([^>]+)>)/g","i");
-var _8=_6.text.replace(_7,"");
-_5={text:_8.substring(0,Math.min(400,_8.length)),type:"text"};
-_2._attribs[_3]=_5;
-}
-if(_5&&this.unescapeHTML){
-if((_3=="content"||_3=="summary"||_3=="subtitle")&&!_2["_"+_3+"Escaped"]){
-_5.text=this._unescapeHTML(_5.text);
-_2["_"+_3+"Escaped"]=true;
-}
-}
-return _5?dojo.isArray(_5)?_5[0]:_5:_4;
-},getValues:function(_9,_a){
-this._assertIsItem(_9);
-this._assertIsAttribute(_a);
-this._initItem(_9);
-_a=_a.toLowerCase();
-if(!_9._attribs[_a]){
-this._parseItem(_9);
-}
-var _b=_9._attribs[_a];
-return _b?((_b.length!==undefined&&typeof (_b)!=="string")?_b:[_b]):undefined;
-},getAttributes:function(_c){
-this._assertIsItem(_c);
-if(!_c._attribs){
-this._initItem(_c);
-this._parseItem(_c);
-}
-var _d=[];
-for(var x in _c._attribs){
-_d.push(x);
-}
-return _d;
-},hasAttribute:function(_f,_10){
-return (this.getValue(_f,_10)!==undefined);
-},containsValue:function(_11,_12,_13){
-var _14=this.getValues(_11,_12);
-for(var i=0;i<_14.length;i++){
-if((typeof _13==="string")){
-if(_14[i].toString&&_14[i].toString()===_13){
-return true;
-}
-}else{
-if(_14[i]===_13){
-return true;
-}
-}
-}
-return false;
-},isItem:function(_16){
-if(_16&&_16.element&&_16.store&&_16.store===this){
-return true;
-}
-return false;
-},isItemLoaded:function(_17){
-return this.isItem(_17);
-},loadItem:function(_18){
-},getFeatures:function(){
-var _19={"dojo.data.api.Read":true};
-return _19;
-},getLabel:function(_1a){
-if((this.label!=="")&&this.isItem(_1a)){
-var _1b=this.getValue(_1a,this.label);
-if(_1b&&_1b.text){
-return _1b.text;
-}else{
-if(_1b){
-return _1b.toString();
-}else{
-return undefined;
-}
-}
-}
-return undefined;
-},getLabelAttributes:function(_1c){
-if(this.label!==""){
-return [this.label];
-}
-return null;
-},getFeedValue:function(_1d,_1e){
-var _1f=this.getFeedValues(_1d,_1e);
-if(dojo.isArray(_1f)){
-return _1f[0];
-}
-return _1f;
-},getFeedValues:function(_20,_21){
-if(!this.doc){
-return _21;
-}
-if(!this._feedMetaData){
-this._feedMetaData={element:this.doc.getElementsByTagName("feed")[0],store:this,_attribs:{}};
-this._parseItem(this._feedMetaData);
-}
-return this._feedMetaData._attribs[_20]||_21;
-},_initItem:function(_22){
-if(!_22._attribs){
-_22._attribs={};
-}
-},_fetchItems:function(_23,_24,_25){
-var url=this._getFetchUrl(_23);
-if(!url){
-_25(new Error("No URL specified."));
-return;
-}
-var _27=(!this.sendQuery?_23:null);
-var _28=this;
-var _29=function(_2a){
-_28.doc=_2a;
-var _2b=_28._getItems(_2a,_27);
-var _2c=_23.query;
-if(_2c){
-if(_2c.id){
-_2b=dojo.filter(_2b,function(_2d){
-return (_28.getValue(_2d,"id")==_2c.id);
-});
-}else{
-if(_2c.category){
-_2b=dojo.filter(_2b,function(_2e){
-var _2f=_28.getValues(_2e,"category");
-if(!_2f){
-return false;
-}
-return dojo.some(_2f,"return item.term=='"+_2c.category+"'");
-});
-}
-}
-}
-if(_2b&&_2b.length>0){
-_24(_2b,_23);
-}else{
-_24([],_23);
-}
-};
-if(this.doc){
-_29(this.doc);
-}else{
-var _30={url:url,handleAs:"xml"};
-var _31=dojo.xhrGet(_30);
-_31.addCallback(_29);
-_31.addErrback(function(_32){
-_25(_32,_23);
-});
-}
-},_getFetchUrl:function(_33){
-if(!this.sendQuery){
-return this.url;
-}
-var _34=_33.query;
-if(!_34){
-return this.url;
-}
-if(dojo.isString(_34)){
-return this.url+_34;
-}
-var _35="";
-for(var _36 in _34){
-var _37=_34[_36];
-if(_37){
-if(_35){
-_35+="&";
-}
-_35+=(_36+"="+_37);
-}
-}
-if(!_35){
-return this.url;
-}
-var _38=this.url;
-if(_38.indexOf("?")<0){
-_38+="?";
-}else{
-_38+="&";
-}
-return _38+_35;
-},_getItems:function(_39,_3a){
-if(this._items){
-return this._items;
-}
-var _3b=[];
-var _3c=[];
-if(_39.childNodes.length<1){
-this._items=_3b;
-
-return _3b;
-}
-var _3d=dojo.filter(_39.childNodes,"return item.tagName && item.tagName.toLowerCase() == 'feed'");
-var _3e=_3a.query;
-if(!_3d||_3d.length!=1){
-
-return _3b;
-}
-_3c=dojo.filter(_3d[0].childNodes,"return item.tagName && item.tagName.toLowerCase() == 'entry'");
-if(_3a.onBegin){
-_3a.onBegin(_3c.length,this.sendQuery?_3a:{});
-}
-for(var i=0;i<_3c.length;i++){
-var _40=_3c[i];
-if(_40.nodeType!=1){
-continue;
-}
-_3b.push(this._getItem(_40));
-}
-this._items=_3b;
-return _3b;
-},close:function(_41){
-},_getItem:function(_42){
-return {element:_42,store:this};
-},_parseItem:function(_43){
-var _44=_43._attribs;
-var _45=this;
-var _46,_47;
-function _48(_49){
-var txt=_49.textContent||_49.innerHTML||_49.innerXML;
-if(!txt&&_49.childNodes[0]){
-var _4b=_49.childNodes[0];
-if(_4b&&(_4b.nodeType==3||_4b.nodeType==4)){
-txt=_49.childNodes[0].nodeValue;
-}
-}
-return txt;
-};
-function _4c(_4d){
-return {text:_48(_4d),type:_4d.getAttribute("type")};
-};
-dojo.forEach(_43.element.childNodes,function(_4e){
-var _4f=_4e.tagName?_4e.tagName.toLowerCase():"";
-switch(_4f){
-case "title":
-_44[_4f]={text:_48(_4e),type:_4e.getAttribute("type")};
-break;
-case "subtitle":
-case "summary":
-case "content":
-_44[_4f]=_4c(_4e);
-break;
-case "author":
-var _50,_51;
-dojo.forEach(_4e.childNodes,function(_52){
-if(!_52.tagName){
-return;
-}
-switch(_52.tagName.toLowerCase()){
-case "name":
-_50=_52;
-break;
-case "uri":
-_51=_52;
-break;
-}
-});
-var _53={};
-if(_50&&_50.length==1){
-_53.name=_48(_50[0]);
-}
-if(_51&&_51.length==1){
-_53.uri=_48(_51[0]);
-}
-_44[_4f]=_53;
-break;
-case "id":
-_44[_4f]=_48(_4e);
-break;
-case "updated":
-_44[_4f]=dojo.date.stamp.fromISOString(_48(_4e));
-break;
-case "published":
-_44[_4f]=dojo.date.stamp.fromISOString(_48(_4e));
-break;
-case "category":
-if(!_44[_4f]){
-_44[_4f]=[];
-}
-_44[_4f].push({scheme:_4e.getAttribute("scheme"),term:_4e.getAttribute("term")});
-break;
-case "link":
-if(!_44[_4f]){
-_44[_4f]=[];
-}
-var _54={rel:_4e.getAttribute("rel"),href:_4e.getAttribute("href"),type:_4e.getAttribute("type")};
-_44[_4f].push(_54);
-if(_54.rel=="alternate"){
-_44["alternate"]=_54;
-}
-break;
-default:
-break;
-}
-});
-},_unescapeHTML:function(_55){
-_55=_55.replace(/&#8217;/m,"'").replace(/&#8243;/m,"\"").replace(/&#60;/m,">").replace(/&#62;/m,"<").replace(/&#38;/m,"&");
-return _55;
-},_assertIsItem:function(_56){
-if(!this.isItem(_56)){
-throw new Error("dojox.data.AtomReadStore: Invalid item argument.");
-}
-},_assertIsAttribute:function(_57){
-if(typeof _57!=="string"){
-throw new Error("dojox.data.AtomReadStore: Invalid attribute argument.");
-}
-}});
-dojo.extend(dojox.data.AtomReadStore,dojo.data.util.simpleFetch);
-}

http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/ClientFilter.js
----------------------------------------------------------------------
diff --git a/components/camel-web/src/main/webapp/js/dojox/data/ClientFilter.js b/components/camel-web/src/main/webapp/js/dojox/data/ClientFilter.js
deleted file mode 100644
index 6de020b..0000000
--- a/components/camel-web/src/main/webapp/js/dojox/data/ClientFilter.js
+++ /dev/null
@@ -1,171 +0,0 @@
-/*
-	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
-	Available via Academic Free License >= 2.1 OR the modified BSD license.
-	see: http://dojotoolkit.org/license for details
-*/
-
-
-if(!dojo._hasResource["dojox.data.ClientFilter"]){
-dojo._hasResource["dojox.data.ClientFilter"]=true;
-dojo.provide("dojox.data.ClientFilter");
-dojo.require("dojo.data.util.filter");
-(function(){
-var cf;
-var _2=function(_3,_4,_5){
-return function(_6){
-_3._updates.push({create:_4&&_6,remove:_5&&_6});
-cf.onUpdate();
-};
-};
-cf=dojo.declare("dojox.data.ClientFilter",null,{constructor:function(){
-this.onSet=_2(this,true,true);
-this.onNew=_2(this,true,false);
-this.onDelete=_2(this,false,true);
-this._updates=[];
-this._fetchCache=[];
-},updateResultSet:function(_7,_8){
-if(this.isUpdateable(_8)){
-for(var i=_8._version||0;i<this._updates.length;i++){
-var _a=this._updates[i].create;
-var _b=this._updates[i].remove;
-if(_b){
-for(var j=0;j<_7.length;j++){
-if(_7[j]==_b){
-_7.splice(j--,1);
-var _d=true;
-}
-}
-}
-if(_a&&this.matchesQuery(_a,_8)&&dojo.indexOf(_7,_a)==-1){
-_7.push(_a);
-_d=true;
-}
-}
-if(_8.sort&&_d){
-_7.sort(this.makeComparator(_8.sort.concat()));
-}
-if(_8.count&&_d){
-_7.splice(_8.count,_7.length);
-}
-_8._version=this._updates.length;
-return _d?2:1;
-}
-return 0;
-},querySuperSet:function(_e,_f){
-if(_e.query==_f.query){
-return {};
-}
-if(!(_f.query instanceof Object&&(!_e.query||typeof _e.query=="object"))){
-return false;
-}
-var _10=dojo.mixin({},_f.query);
-for(var i in _e.query){
-if(_10[i]==_e.query[i]){
-delete _10[i];
-}else{
-if(!(typeof _e.query[i]=="string"&&dojo.data.util.filter.patternToRegExp(_e.query[i]).test(_10[i]))){
-return false;
-}
-}
-}
-return _10;
-},serverVersion:0,cachingFetch:function(_12){
-var _13=this;
-for(var i=0;i<this._fetchCache.length;i++){
-var _15=this._fetchCache[i];
-var _16=this.querySuperSet(_15,_12);
-if(_16!==false){
-var _17=_15._loading;
-if(!_17){
-_17=new dojo.Deferred();
-_17.callback(_15.cacheResults);
-}
-_17.addCallback(function(_18){
-_18=_13.clientSideFetch({query:_16,sort:_12.sort,start:_12.start,count:_12.count},_18);
-_17.fullLength=_18._fullLength;
-return _18;
-});
-}
-}
-if(!_17){
-var _19=dojo.mixin({},_12);
-var _1a=(_12.queryOptions||0).cache;
-if(_1a===undefined?this.cacheByDefault:_1a){
-if(_12.start||_12.count){
-delete _19.start;
-delete _19.count;
-_12.clientQuery=dojo.mixin(_12.clientQuery||{},{start:_12.start,count:_12.count});
-}
-_12=_19;
-this._fetchCache.push(_12);
-}
-_17=_12._loading=this._doQuery(_12);
-}
-var _1b=this.serverVersion;
-_17.addCallback(function(_1c){
-delete _12._loading;
-if(_1c){
-_12._version=_1b;
-_13.updateResultSet(_1c,_12);
-_12.cacheResults=_1c;
-}
-return _1c;
-});
-return _17;
-},isUpdateable:function(_1d){
-return typeof _1d.query=="object";
-},clientSideFetch:function(_1e,_1f){
-if(_1e.query){
-var _20=[];
-for(var i=0;i<_1f.length;i++){
-var _22=_1f[i];
-if(_22&&this.matchesQuery(_22,_1e)){
-_20.push(_1f[i]);
-}
-}
-}else{
-_20=_1e.sort?_1f.concat():_1f;
-}
-if(_1e.sort){
-_20.sort(this.makeComparator(_1e.sort.concat()));
-}
-return this.clientSidePaging(_1e,_20);
-},clientSidePaging:function(_23,_24){
-var _25=_23.start||0;
-var _26=(_25||_23.count)?_24.slice(_25,_25+(_23.count||_24.length)):_24;
-_26._fullLength=_24.length;
-return _26;
-},matchesQuery:function(_27,_28){
-var _29=_28.query;
-var _2a=_28.queryOptions&&_28.queryOptions.ignoreCase;
-for(var i in _29){
-var _2c=_29[i];
-var _2d=this.getValue(_27,i);
-if((typeof _2c=="string"&&(_2c.match(/[\*\.]/)||_2a))?!dojo.data.util.filter.patternToRegExp(_2c,_2a).test(_2d):_2d!=_2c){
-return false;
-}
-}
-return true;
-},makeComparator:function(_2e){
-var _2f=_2e.shift();
-if(!_2f){
-return function(){
-};
-}
-var _30=_2f.attribute;
-var _31=!!_2f.descending;
-var _32=this.makeComparator(_2e);
-var _33=this;
-return function(a,b){
-var av=_33.getValue(a,_30);
-var bv=_33.getValue(b,_30);
-if(av!=bv){
-return av<bv==_31?1:-1;
-}
-return _32(a,b);
-};
-}});
-cf.onUpdate=function(){
-};
-})();
-}

http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/CouchDBRestStore.js
----------------------------------------------------------------------
diff --git a/components/camel-web/src/main/webapp/js/dojox/data/CouchDBRestStore.js b/components/camel-web/src/main/webapp/js/dojox/data/CouchDBRestStore.js
deleted file mode 100644
index 24760cb..0000000
--- a/components/camel-web/src/main/webapp/js/dojox/data/CouchDBRestStore.js
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
-	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
-	Available via Academic Free License >= 2.1 OR the modified BSD license.
-	see: http://dojotoolkit.org/license for details
-*/
-
-
-if(!dojo._hasResource["dojox.data.CouchDBRestStore"]){
-dojo._hasResource["dojox.data.CouchDBRestStore"]=true;
-dojo.provide("dojox.data.CouchDBRestStore");
-dojo.require("dojox.data.JsonRestStore");
-dojo.declare("dojox.data.CouchDBRestStore",dojox.data.JsonRestStore,{save:function(_1){
-var _2=this.inherited(arguments);
-var _3=this.service.servicePath;
-for(var i=0;i<_2.length;i++){
-(function(_5,_6){
-_6.addCallback(function(_7){
-if(_7){
-_5.__id=_3+_7.id;
-_5._rev=_7.rev;
-}
-return _7;
-});
-})(_2[i].content,_2[i].deferred);
-}
-},fetch:function(_8){
-_8.query=_8.query||"_all_docs?";
-if(_8.start){
-_8.query=(_8.query?(_8.query+"&"):"")+"startkey="+_8.start;
-delete _8.start;
-}
-if(_8.count){
-_8.query=(_8.query?(_8.query+"&"):"")+"count="+_8.count;
-delete _8.count;
-}
-return this.inherited(arguments);
-},_processResults:function(_9){
-var _a=_9.rows;
-if(_a){
-var _b=this.service.servicePath;
-var _c=this;
-for(var i=0;i<_a.length;i++){
-_a[i]={__id:_b+_a[i].id,_id:_a[i].id,_loadObject:function(_e){
-_c.fetchItemByIdentity({identity:this._id,onItem:_e});
-delete this._loadObject;
-}};
-}
-return {totalCount:_9.total_rows,items:_9.rows};
-}else{
-return {items:_9};
-}
-}});
-dojox.data.CouchDBRestStore.getStores=function(_f){
-var dfd=dojo.xhrGet({url:_f+"_all_dbs",handleAs:"json",sync:true});
-var _11={};
-dfd.addBoth(function(dbs){
-for(var i=0;i<dbs.length;i++){
-_11[dbs[i]]=new dojox.data.CouchDBRestStore({target:_f+dbs[i],idAttribute:"_id"});
-}
-return _11;
-});
-return _11;
-};
-}

http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/CssClassStore.js
----------------------------------------------------------------------
diff --git a/components/camel-web/src/main/webapp/js/dojox/data/CssClassStore.js b/components/camel-web/src/main/webapp/js/dojox/data/CssClassStore.js
deleted file mode 100644
index bd5c1cb..0000000
--- a/components/camel-web/src/main/webapp/js/dojox/data/CssClassStore.js
+++ /dev/null
@@ -1,104 +0,0 @@
-/*
-	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
-	Available via Academic Free License >= 2.1 OR the modified BSD license.
-	see: http://dojotoolkit.org/license for details
-*/
-
-
-if(!dojo._hasResource["dojox.data.CssClassStore"]){
-dojo._hasResource["dojox.data.CssClassStore"]=true;
-dojo.provide("dojox.data.CssClassStore");
-dojo.require("dojox.data.CssRuleStore");
-dojo.declare("dojox.data.CssClassStore",dojox.data.CssRuleStore,{_labelAttribute:"class",_idAttribute:"class",_cName:"dojox.data.CssClassStore",getFeatures:function(){
-return {"dojo.data.api.Read":true,"dojo.data.api.Identity":true};
-},getAttributes:function(_1){
-this._assertIsItem(_1);
-return ["class","classSans"];
-},getValue:function(_2,_3,_4){
-var _5=this.getValues(_2,_3);
-if(_5&&_5.length>0){
-return _5[0];
-}
-return _4;
-},getValues:function(_6,_7){
-this._assertIsItem(_6);
-this._assertIsAttribute(_7);
-var _8=[];
-if(_7==="class"){
-_8=[_6.className];
-}else{
-if(_7==="classSans"){
-_8=[_6.className.replace(/\./g,"")];
-}
-}
-return _8;
-},_handleRule:function(_9,_a,_b){
-var _c={};
-var s=_9["selectorText"].split(" ");
-for(var j=0;j<s.length;j++){
-var _f=s[j];
-var _10=_f.indexOf(".");
-if(_f&&_f.length>0&&_10!==-1){
-var _11=_f.indexOf(",")||_f.indexOf("[");
-_f=_f.substring(_10,((_11!==-1&&_11>_10)?_11:_f.length));
-_c[_f]=true;
-}
-}
-for(var key in _c){
-if(!this._allItems[key]){
-var _13={};
-_13.className=key;
-_13[this._storeRef]=this;
-this._allItems[key]=_13;
-}
-}
-},_handleReturn:function(){
-var _14=[];
-var _15={};
-for(var i in this._allItems){
-_15[i]=this._allItems[i];
-}
-var _17;
-while(this._pending.length){
-_17=this._pending.pop();
-_17.request._items=_15;
-_14.push(_17);
-}
-while(_14.length){
-_17=_14.pop();
-if(_17.fetch){
-this._handleFetchReturn(_17.request);
-}else{
-this._handleFetchByIdentityReturn(_17.request);
-}
-}
-},_handleFetchByIdentityReturn:function(_18){
-var _19=_18._items;
-var _1a=_19[(dojo.isWebKit?_18.identity.toLowerCase():_18.identity)];
-if(!this.isItem(_1a)){
-_1a=null;
-}
-if(_18.onItem){
-var _1b=_18.scope||dojo.global;
-_18.onItem.call(_1b,_1a);
-}
-},getIdentity:function(_1c){
-this._assertIsItem(_1c);
-return this.getValue(_1c,this._idAttribute);
-},getIdentityAttributes:function(_1d){
-this._assertIsItem(_1d);
-return [this._idAttribute];
-},fetchItemByIdentity:function(_1e){
-_1e=_1e||{};
-if(!_1e.store){
-_1e.store=this;
-}
-if(this._pending&&this._pending.length>0){
-this._pending.push({request:_1e});
-}else{
-this._pending=[{request:_1e}];
-this._fetch(_1e);
-}
-return _1e;
-}});
-}