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:17 UTC

[25/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/data/CssRuleStore.js
----------------------------------------------------------------------
diff --git a/components/camel-web/src/main/webapp/js/dojox/data/CssRuleStore.js b/components/camel-web/src/main/webapp/js/dojox/data/CssRuleStore.js
deleted file mode 100644
index 4daa93c..0000000
--- a/components/camel-web/src/main/webapp/js/dojox/data/CssRuleStore.js
+++ /dev/null
@@ -1,336 +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.CssRuleStore"]){
-dojo._hasResource["dojox.data.CssRuleStore"]=true;
-dojo.provide("dojox.data.CssRuleStore");
-dojo.require("dojo.data.util.filter");
-dojo.require("dojo.data.util.sorter");
-dojo.require("dojox.data.css");
-dojo.declare("dojox.data.CssRuleStore",null,{_storeRef:"_S",_labelAttribute:"selector",_cache:null,_browserMap:null,_cName:"dojox.data.CssRuleStore",constructor:function(_1){
-if(_1){
-dojo.mixin(this,_1);
-}
-this._cache={};
-this._allItems=null;
-this._waiting=[];
-this.gatherHandle=null;
-var _2=this;
-function _3(){
-try{
-_2.context=dojox.data.css.determineContext(_2.context);
-if(_2.gatherHandle){
-clearInterval(_2.gatherHandle);
-_2.gatherHandle=null;
-}
-while(_2._waiting.length){
-var _4=_2._waiting.pop();
-dojox.data.css.rules.forEach(_4.forFunc,null,_2.context);
-_4.finishFunc();
-}
-}
-catch(e){
-}
-};
-this.gatherHandle=setInterval(_3,250);
-},setContext:function(_5){
-if(_5){
-this.close();
-this.context=dojox.data.css.determineContext(_5);
-}
-},getFeatures:function(){
-return {"dojo.data.api.Read":true};
-},isItem:function(_6){
-if(_6&&_6[this._storeRef]==this){
-return true;
-}
-return false;
-},hasAttribute:function(_7,_8){
-this._assertIsItem(_7);
-this._assertIsAttribute(_8);
-var _9=this.getAttributes(_7);
-if(dojo.indexOf(_9,_8)!=-1){
-return true;
-}
-return false;
-},getAttributes:function(_a){
-this._assertIsItem(_a);
-var _b=["selector","classes","rule","style","cssText","styleSheet","parentStyleSheet","parentStyleSheetHref"];
-var _c=_a.rule.style;
-if(_c){
-var _d;
-for(_d in _c){
-_b.push("style."+_d);
-}
-}
-return _b;
-},getValue:function(_e,_f,_10){
-var _11=this.getValues(_e,_f);
-var _12=_10;
-if(_11&&_11.length>0){
-return _11[0];
-}
-return _10;
-},getValues:function(_13,_14){
-this._assertIsItem(_13);
-this._assertIsAttribute(_14);
-var _15=null;
-if(_14==="selector"){
-_15=_13.rule["selectorText"];
-if(_15&&dojo.isString(_15)){
-_15=_15.split(",");
-}
-}else{
-if(_14==="classes"){
-_15=_13.classes;
-}else{
-if(_14==="rule"){
-_15=_13.rule.rule;
-}else{
-if(_14==="style"){
-_15=_13.rule.style;
-}else{
-if(_14==="cssText"){
-if(dojo.isIE){
-if(_13.rule.style){
-_15=_13.rule.style.cssText;
-if(_15){
-_15="{ "+_15.toLowerCase()+" }";
-}
-}
-}else{
-_15=_13.rule.cssText;
-if(_15){
-_15=_15.substring(_15.indexOf("{"),_15.length);
-}
-}
-}else{
-if(_14==="styleSheet"){
-_15=_13.rule.styleSheet;
-}else{
-if(_14==="parentStyleSheet"){
-_15=_13.rule.parentStyleSheet;
-}else{
-if(_14==="parentStyleSheetHref"){
-if(_13.href){
-_15=_13.href;
-}
-}else{
-if(_14.indexOf("style.")===0){
-var _16=_14.substring(_14.indexOf("."),_14.length);
-_15=_13.rule.style[_16];
-}else{
-_15=[];
-}
-}
-}
-}
-}
-}
-}
-}
-}
-if(_15!==undefined){
-if(!dojo.isArray(_15)){
-_15=[_15];
-}
-}
-return _15;
-},getLabel:function(_17){
-this._assertIsItem(_17);
-return this.getValue(_17,this._labelAttribute);
-},getLabelAttributes:function(_18){
-return [this._labelAttribute];
-},containsValue:function(_19,_1a,_1b){
-var _1c=undefined;
-if(typeof _1b==="string"){
-_1c=dojo.data.util.filter.patternToRegExp(_1b,false);
-}
-return this._containsValue(_19,_1a,_1b,_1c);
-},isItemLoaded:function(_1d){
-return this.isItem(_1d);
-},loadItem:function(_1e){
-this._assertIsItem(_1e.item);
-},fetch:function(_1f){
-_1f=_1f||{};
-if(!_1f.store){
-_1f.store=this;
-}
-var _20=_1f.scope||dojo.global;
-if(this._pending&&this._pending.length>0){
-this._pending.push({request:_1f,fetch:true});
-}else{
-this._pending=[{request:_1f,fetch:true}];
-this._fetch(_1f);
-}
-return _1f;
-},_fetch:function(_21){
-var _22=_21.scope||dojo.global;
-if(this._allItems===null){
-this._allItems={};
-try{
-if(this.gatherHandle){
-this._waiting.push({"forFunc":dojo.hitch(this,this._handleRule),"finishFunc":dojo.hitch(this,this._handleReturn)});
-}else{
-dojox.data.css.rules.forEach(dojo.hitch(this,this._handleRule),null,this.context);
-this._handleReturn();
-}
-}
-catch(e){
-if(_21.onError){
-_21.onError.call(_22,e,_21);
-}
-}
-}else{
-this._handleReturn();
-}
-},_handleRule:function(_23,_24,_25){
-var _26=_23["selectorText"];
-var s=_26.split(" ");
-var _28=[];
-for(var j=0;j<s.length;j++){
-var tmp=s[j];
-var _2b=tmp.indexOf(".");
-if(tmp&&tmp.length>0&&_2b!==-1){
-var _2c=tmp.indexOf(",")||tmp.indexOf("[");
-tmp=tmp.substring(_2b,((_2c!==-1&&_2c>_2b)?_2c:tmp.length));
-_28.push(tmp);
-}
-}
-var _2d={};
-_2d.rule=_23;
-_2d.styleSheet=_24;
-_2d.href=_25;
-_2d.classes=_28;
-_2d[this._storeRef]=this;
-if(!this._allItems[_26]){
-this._allItems[_26]=[];
-}
-this._allItems[_26].push(_2d);
-},_handleReturn:function(){
-var _2e=[];
-var _2f=[];
-var _30=null;
-for(var i in this._allItems){
-_30=this._allItems[i];
-for(var j in _30){
-_2f.push(_30[j]);
-}
-}
-var _33;
-while(this._pending.length){
-_33=this._pending.pop();
-_33.request._items=_2f;
-_2e.push(_33);
-}
-while(_2e.length){
-_33=_2e.pop();
-this._handleFetchReturn(_33.request);
-}
-},_handleFetchReturn:function(_34){
-var _35=_34.scope||dojo.global;
-var _36=[];
-var _37="all";
-var i;
-if(_34.query){
-_37=dojo.toJson(_34.query);
-}
-if(this._cache[_37]){
-_36=this._cache[_37];
-}else{
-if(_34.query){
-for(i in _34._items){
-var _39=_34._items[i];
-var _3a=dojo.isWebKit?true:(_34.queryOptions?_34.queryOptions.ignoreCase:false);
-var _3b={};
-var key;
-var _3d;
-for(key in _34.query){
-_3d=_34.query[key];
-if(typeof _3d==="string"){
-_3b[key]=dojo.data.util.filter.patternToRegExp(_3d,_3a);
-}
-}
-var _3e=true;
-for(key in _34.query){
-_3d=_34.query[key];
-if(!this._containsValue(_39,key,_3d,_3b[key])){
-_3e=false;
-}
-}
-if(_3e){
-_36.push(_39);
-}
-}
-this._cache[_37]=_36;
-}else{
-for(i in _34._items){
-_36.push(_34._items[i]);
-}
-}
-}
-var _3f=_36.length;
-if(_34.sort){
-_36.sort(dojo.data.util.sorter.createSortFunction(_34.sort,this));
-}
-var _40=0;
-var _41=_36.length;
-if(_34.start>0&&_34.start<_36.length){
-_40=_34.start;
-}
-if(_34.count&&_34.count){
-_41=_34.count;
-}
-var _42=_40+_41;
-if(_42>_36.length){
-_42=_36.length;
-}
-_36=_36.slice(_40,_42);
-if(_34.onBegin){
-_34.onBegin.call(_35,_3f,_34);
-}
-if(_34.onItem){
-if(dojo.isArray(_36)){
-for(i=0;i<_36.length;i++){
-_34.onItem.call(_35,_36[i],_34);
-}
-if(_34.onComplete){
-_34.onComplete.call(_35,null,_34);
-}
-}
-}else{
-if(_34.onComplete){
-_34.onComplete.call(_35,_36,_34);
-}
-}
-return _34;
-},close:function(){
-this._cache={};
-this._allItems=null;
-},_assertIsItem:function(_43){
-if(!this.isItem(_43)){
-throw new Error(this._cName+": Invalid item argument.");
-}
-},_assertIsAttribute:function(_44){
-if(typeof _44!=="string"){
-throw new Error(this._cName+": Invalid attribute argument.");
-}
-},_containsValue:function(_45,_46,_47,_48){
-return dojo.some(this.getValues(_45,_46),function(_49){
-if(_49!==null&&!dojo.isObject(_49)&&_48){
-if(_49.toString().match(_48)){
-return true;
-}
-}else{
-if(_47===_49){
-return true;
-}
-}
-return false;
-});
-}});
-}

http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/CsvStore.js
----------------------------------------------------------------------
diff --git a/components/camel-web/src/main/webapp/js/dojox/data/CsvStore.js b/components/camel-web/src/main/webapp/js/dojox/data/CsvStore.js
deleted file mode 100644
index 5e8456b..0000000
--- a/components/camel-web/src/main/webapp/js/dojox/data/CsvStore.js
+++ /dev/null
@@ -1,424 +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.CsvStore"]){
-dojo._hasResource["dojox.data.CsvStore"]=true;
-dojo.provide("dojox.data.CsvStore");
-dojo.require("dojo.data.util.filter");
-dojo.require("dojo.data.util.simpleFetch");
-dojo.declare("dojox.data.CsvStore",null,{constructor:function(_1){
-this._attributes=[];
-this._attributeIndexes={};
-this._dataArray=[];
-this._arrayOfAllItems=[];
-this._loadFinished=false;
-if(_1.url){
-this.url=_1.url;
-}
-this._csvData=_1.data;
-if(_1.label){
-this.label=_1.label;
-}else{
-if(this.label===""){
-this.label=undefined;
-}
-}
-this._storeProp="_csvStore";
-this._idProp="_csvId";
-this._features={"dojo.data.api.Read":true,"dojo.data.api.Identity":true};
-this._loadInProgress=false;
-this._queuedFetches=[];
-this.identifier=_1.identifier;
-if(this.identifier===""){
-delete this.identifier;
-}else{
-this._idMap={};
-}
-},url:"",label:"",identifier:"",_assertIsItem:function(_2){
-if(!this.isItem(_2)){
-throw new Error(this.declaredClass+": a function was passed an item argument that was not an item");
-}
-},_assertIsAttribute:function(_3){
-if(!dojo.isString(_3)){
-throw new Error(this.declaredClass+": a function was passed an attribute argument that was not an attribute object nor an attribute name string");
-}
-},_getIndex:function(_4){
-var _5=this.getIdentity(_4);
-if(this.identifier){
-_5=this._idMap[_5];
-}
-return _5;
-},getValue:function(_6,_7,_8){
-this._assertIsItem(_6);
-this._assertIsAttribute(_7);
-var _9=_8;
-if(this.hasAttribute(_6,_7)){
-var _a=this._dataArray[this._getIndex(_6)];
-_9=_a[this._attributeIndexes[_7]];
-}
-return _9;
-},getValues:function(_b,_c){
-var _d=this.getValue(_b,_c);
-return (_d?[_d]:[]);
-},getAttributes:function(_e){
-this._assertIsItem(_e);
-var _f=[];
-var _10=this._dataArray[this._getIndex(_e)];
-for(var i=0;i<_10.length;i++){
-if(_10[i]!==""){
-_f.push(this._attributes[i]);
-}
-}
-return _f;
-},hasAttribute:function(_12,_13){
-this._assertIsItem(_12);
-this._assertIsAttribute(_13);
-var _14=this._attributeIndexes[_13];
-var _15=this._dataArray[this._getIndex(_12)];
-return (typeof _14!=="undefined"&&_14<_15.length&&_15[_14]!=="");
-},containsValue:function(_16,_17,_18){
-var _19=undefined;
-if(typeof _18==="string"){
-_19=dojo.data.util.filter.patternToRegExp(_18,false);
-}
-return this._containsValue(_16,_17,_18,_19);
-},_containsValue:function(_1a,_1b,_1c,_1d){
-var _1e=this.getValues(_1a,_1b);
-for(var i=0;i<_1e.length;++i){
-var _20=_1e[i];
-if(typeof _20==="string"&&_1d){
-return (_20.match(_1d)!==null);
-}else{
-if(_1c===_20){
-return true;
-}
-}
-}
-return false;
-},isItem:function(_21){
-if(_21&&_21[this._storeProp]===this){
-var _22=_21[this._idProp];
-if(this.identifier){
-var _23=this._dataArray[this._idMap[_22]];
-if(_23){
-return true;
-}
-}else{
-if(_22>=0&&_22<this._dataArray.length){
-return true;
-}
-}
-}
-return false;
-},isItemLoaded:function(_24){
-return this.isItem(_24);
-},loadItem:function(_25){
-},getFeatures:function(){
-return this._features;
-},getLabel:function(_26){
-if(this.label&&this.isItem(_26)){
-return this.getValue(_26,this.label);
-}
-return undefined;
-},getLabelAttributes:function(_27){
-if(this.label){
-return [this.label];
-}
-return null;
-},_fetchItems:function(_28,_29,_2a){
-var _2b=this;
-var _2c=function(_2d,_2e){
-var _2f=null;
-if(_2d.query){
-var key,_31;
-_2f=[];
-var _32=_2d.queryOptions?_2d.queryOptions.ignoreCase:false;
-var _33={};
-for(key in _2d.query){
-_31=_2d.query[key];
-if(typeof _31==="string"){
-_33[key]=dojo.data.util.filter.patternToRegExp(_31,_32);
-}
-}
-for(var i=0;i<_2e.length;++i){
-var _35=true;
-var _36=_2e[i];
-for(key in _2d.query){
-_31=_2d.query[key];
-if(!_2b._containsValue(_36,key,_31,_33[key])){
-_35=false;
-}
-}
-if(_35){
-_2f.push(_36);
-}
-}
-}else{
-if(_2e.length>0){
-_2f=_2e.slice(0,_2e.length);
-}
-}
-_29(_2f,_2d);
-};
-if(this._loadFinished){
-_2c(_28,this._arrayOfAllItems);
-}else{
-if(this.url!==""){
-if(this._loadInProgress){
-this._queuedFetches.push({args:_28,filter:_2c});
-}else{
-this._loadInProgress=true;
-var _37={url:_2b.url,handleAs:"text"};
-var _38=dojo.xhrGet(_37);
-_38.addCallback(function(_39){
-try{
-_2b._processData(_39);
-_2c(_28,_2b._arrayOfAllItems);
-_2b._handleQueuedFetches();
-}
-catch(e){
-_2a(e,_28);
-}
-});
-_38.addErrback(function(_3a){
-_2b._loadInProgress=false;
-if(_2a){
-_2a(_3a,_28);
-}else{
-throw _3a;
-}
-});
-}
-}else{
-if(this._csvData){
-try{
-this._processData(this._csvData);
-this._csvData=null;
-_2c(_28,this._arrayOfAllItems);
-}
-catch(e){
-_2a(e,_28);
-}
-}else{
-var _3b=new Error(this.declaredClass+": No CSV source data was provided as either URL or String data input.");
-if(_2a){
-_2a(_3b,_28);
-}else{
-throw _3b;
-}
-}
-}
-}
-},close:function(_3c){
-},_getArrayOfArraysFromCsvFileContents:function(_3d){
-if(dojo.isString(_3d)){
-var _3e=new RegExp("\r\n|\n|\r");
-var _3f=new RegExp("^\\s+","g");
-var _40=new RegExp("\\s+$","g");
-var _41=new RegExp("\"\"","g");
-var _42=[];
-var i;
-var _44=this._splitLines(_3d);
-for(i=0;i<_44.length;++i){
-var _45=_44[i];
-if(_45.length>0){
-var _46=_45.split(",");
-var j=0;
-while(j<_46.length){
-var _48=_46[j];
-var _49=_48.replace(_3f,"");
-var _4a=_49.replace(_40,"");
-var _4b=_4a.charAt(0);
-var _4c=_4a.charAt(_4a.length-1);
-var _4d=_4a.charAt(_4a.length-2);
-var _4e=_4a.charAt(_4a.length-3);
-if(_4a.length===2&&_4a=="\"\""){
-_46[j]="";
-}else{
-if((_4b=="\"")&&((_4c!="\"")||((_4c=="\"")&&(_4d=="\"")&&(_4e!="\"")))){
-if(j+1===_46.length){
-return null;
-}
-var _4f=_46[j+1];
-_46[j]=_49+","+_4f;
-_46.splice(j+1,1);
-}else{
-if((_4b=="\"")&&(_4c=="\"")){
-_4a=_4a.slice(1,(_4a.length-1));
-_4a=_4a.replace(_41,"\"");
-}
-_46[j]=_4a;
-j+=1;
-}
-}
-}
-_42.push(_46);
-}
-}
-this._attributes=_42.shift();
-for(i=0;i<this._attributes.length;i++){
-this._attributeIndexes[this._attributes[i]]=i;
-}
-this._dataArray=_42;
-}
-},_splitLines:function(_50){
-var _51=[];
-var i;
-var _53="";
-var _54=false;
-for(i=0;i<_50.length;i++){
-var c=_50.charAt(i);
-switch(c){
-case "\"":
-_54=!_54;
-_53+=c;
-break;
-case "\r":
-if(_54){
-_53+=c;
-}else{
-_51.push(_53);
-_53="";
-if(i<(_50.length-1)&&_50.charAt(i+1)=="\n"){
-i++;
-}
-}
-break;
-case "\n":
-if(_54){
-_53+=c;
-}else{
-_51.push(_53);
-_53="";
-}
-break;
-default:
-_53+=c;
-}
-}
-if(_53!==""){
-_51.push(_53);
-}
-return _51;
-},_processData:function(_56){
-this._getArrayOfArraysFromCsvFileContents(_56);
-this._arrayOfAllItems=[];
-if(this.identifier){
-if(this._attributeIndexes[this.identifier]===undefined){
-throw new Error(this.declaredClass+": Identity specified is not a column header in the data set.");
-}
-}
-for(var i=0;i<this._dataArray.length;i++){
-var id=i;
-if(this.identifier){
-var _59=this._dataArray[i];
-id=_59[this._attributeIndexes[this.identifier]];
-this._idMap[id]=i;
-}
-this._arrayOfAllItems.push(this._createItemFromIdentity(id));
-}
-this._loadFinished=true;
-this._loadInProgress=false;
-},_createItemFromIdentity:function(_5a){
-var _5b={};
-_5b[this._storeProp]=this;
-_5b[this._idProp]=_5a;
-return _5b;
-},getIdentity:function(_5c){
-if(this.isItem(_5c)){
-return _5c[this._idProp];
-}
-return null;
-},fetchItemByIdentity:function(_5d){
-var _5e;
-var _5f=_5d.scope?_5d.scope:dojo.global;
-if(!this._loadFinished){
-var _60=this;
-if(this.url!==""){
-if(this._loadInProgress){
-this._queuedFetches.push({args:_5d});
-}else{
-this._loadInProgress=true;
-var _61={url:_60.url,handleAs:"text"};
-var _62=dojo.xhrGet(_61);
-_62.addCallback(function(_63){
-try{
-_60._processData(_63);
-var _64=_60._createItemFromIdentity(_5d.identity);
-if(!_60.isItem(_64)){
-_64=null;
-}
-if(_5d.onItem){
-_5d.onItem.call(_5f,_64);
-}
-_60._handleQueuedFetches();
-}
-catch(error){
-if(_5d.onError){
-_5d.onError.call(_5f,error);
-}
-}
-});
-_62.addErrback(function(_65){
-this._loadInProgress=false;
-if(_5d.onError){
-_5d.onError.call(_5f,_65);
-}
-});
-}
-}else{
-if(this._csvData){
-try{
-_60._processData(_60._csvData);
-_60._csvData=null;
-_5e=_60._createItemFromIdentity(_5d.identity);
-if(!_60.isItem(_5e)){
-_5e=null;
-}
-if(_5d.onItem){
-_5d.onItem.call(_5f,_5e);
-}
-}
-catch(e){
-if(_5d.onError){
-_5d.onError.call(_5f,e);
-}
-}
-}
-}
-}else{
-_5e=this._createItemFromIdentity(_5d.identity);
-if(!this.isItem(_5e)){
-_5e=null;
-}
-if(_5d.onItem){
-_5d.onItem.call(_5f,_5e);
-}
-}
-},getIdentityAttributes:function(_66){
-if(this.identifier){
-return [this.identifier];
-}else{
-return null;
-}
-},_handleQueuedFetches:function(){
-if(this._queuedFetches.length>0){
-for(var i=0;i<this._queuedFetches.length;i++){
-var _68=this._queuedFetches[i];
-var _69=_68.filter;
-var _6a=_68.args;
-if(_69){
-_69(_6a,this._arrayOfAllItems);
-}else{
-this.fetchItemByIdentity(_68.args);
-}
-}
-this._queuedFetches=[];
-}
-}});
-dojo.extend(dojox.data.CsvStore,dojo.data.util.simpleFetch);
-}

http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/FileStore.js
----------------------------------------------------------------------
diff --git a/components/camel-web/src/main/webapp/js/dojox/data/FileStore.js b/components/camel-web/src/main/webapp/js/dojox/data/FileStore.js
deleted file mode 100644
index e2e1733..0000000
--- a/components/camel-web/src/main/webapp/js/dojox/data/FileStore.js
+++ /dev/null
@@ -1,239 +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.FileStore"]){
-dojo._hasResource["dojox.data.FileStore"]=true;
-dojo.provide("dojox.data.FileStore");
-dojo.declare("dojox.data.FileStore",null,{constructor:function(_1){
-if(_1&&_1.label){
-this.label=_1.label;
-}
-if(_1&&_1.url){
-this.url=_1.url;
-}
-if(_1&&_1.options){
-if(dojo.isArray(_1.options)){
-this.options=_1.options;
-}else{
-if(dojo.isString(_1.options)){
-this.options=_1.options.split(",");
-}
-}
-}
-if(_1&&_1.pathAsQueryParam){
-this.pathAsQueryParam=true;
-}
-},url:"",_storeRef:"_S",label:"name",_identifier:"path",_attributes:["children","directory","name","path","modified","size","parentDir"],pathSeparator:"/",options:[],_assertIsItem:function(_2){
-if(!this.isItem(_2)){
-throw new Error("dojox.data.FileStore: a function was passed an item argument that was not an item");
-}
-},_assertIsAttribute:function(_3){
-if(typeof _3!=="string"){
-throw new Error("dojox.data.FileStore: a function was passed an attribute argument that was not an attribute name string");
-}
-},pathAsQueryParam:false,getFeatures:function(){
-return {"dojo.data.api.Read":true,"dojo.data.api.Identity":true};
-},getValue:function(_4,_5,_6){
-var _7=this.getValues(_4,_5);
-var _8=_6;
-if(_7&&_7.length>0){
-_8=_7[0];
-}
-return _8;
-},getAttributes:function(_9){
-return this._attributes;
-},hasAttribute:function(_a,_b){
-if(this.getValue(_a,_b)){
-return true;
-}
-return false;
-},getIdentity:function(_c){
-return this.getValue(_c,this._identifier);
-},getIdentityAttributes:function(_d){
-return [this._identifier];
-},isItemLoaded:function(_e){
-var _f=this.isItem(_e);
-if(_f&&typeof _e._loaded=="boolean"&&!_e._loaded){
-_f=false;
-}
-return _f;
-},loadItem:function(_10){
-var _11=_10.item;
-var _12=this;
-var _13=_10.scope||dojo.global;
-var _14={};
-if(this.options.length>0){
-_14.options=dojo.toJson(this.options);
-}
-if(this.pathAsQueryParam){
-_14.path=_11.parentPath+this.pathSeparator+_11.name;
-}
-var _15={url:this.pathAsQueryParam?this.url:this.url+"/"+_11.parentPath+"/"+_11.name,handleAs:"json-comment-optional",content:_14,preventCache:true};
-var _16=dojo.xhrGet(_15);
-_16.addErrback(function(_17){
-if(_10.onError){
-_10.onError.call(_13,_17);
-}
-});
-_16.addCallback(function(_18){
-delete _11.parentPath;
-delete _11._loaded;
-dojo.mixin(_11,_18);
-_12._processItem(_11);
-if(_10.onItem){
-_10.onItem.call(_13,_11);
-}
-});
-},getLabel:function(_19){
-return this.getValue(_19,this.label);
-},getLabelAttributes:function(_1a){
-return [this.label];
-},containsValue:function(_1b,_1c,_1d){
-var _1e=this.getValues(_1b,_1c);
-for(var i=0;i<_1e.length;i++){
-if(_1e[i]==_1d){
-return true;
-}
-}
-return false;
-},getValues:function(_20,_21){
-this._assertIsItem(_20);
-this._assertIsAttribute(_21);
-var _22=_20[_21];
-if(typeof _22!=="undefined"&&!dojo.isArray(_22)){
-_22=[_22];
-}else{
-if(typeof _22==="undefined"){
-_22=[];
-}
-}
-return _22;
-},isItem:function(_23){
-if(_23&&_23[this._storeRef]===this){
-return true;
-}
-return false;
-},close:function(_24){
-},fetch:function(_25){
-_25=_25||{};
-if(!_25.store){
-_25.store=this;
-}
-var _26=this;
-var _27=_25.scope||dojo.global;
-var _28={};
-if(_25.query){
-_28.query=dojo.toJson(_25.query);
-}
-if(_25.sort){
-_28.sort=dojo.toJson(_25.sort);
-}
-if(_25.queryOptions){
-_28.queryOptions=dojo.toJson(_25.queryOptions);
-}
-if(typeof _25.start=="number"){
-_28.start=""+_25.start;
-}
-if(typeof _25.count=="number"){
-_28.count=""+_25.count;
-}
-if(this.options.length>0){
-_28.options=dojo.toJson(this.options);
-}
-var _29={url:this.url,preventCache:true,handleAs:"json-comment-optional",content:_28};
-var _2a=dojo.xhrGet(_29);
-_2a.addCallback(function(_2b){
-_26._processResult(_2b,_25);
-});
-_2a.addErrback(function(_2c){
-if(_25.onError){
-_25.onError.call(_27,_2c,_25);
-}
-});
-},fetchItemByIdentity:function(_2d){
-var _2e=_2d.identity;
-var _2f=this;
-var _30=_2d.scope||dojo.global;
-var _31={};
-if(this.options.length>0){
-_31.options=dojo.toJson(this.options);
-}
-if(this.pathAsQueryParam){
-_31.path=_2e;
-}
-var _32={url:this.pathAsQueryParam?this.url:this.url+"/"+_2e,handleAs:"json-comment-optional",content:_31,preventCache:true};
-var _33=dojo.xhrGet(_32);
-_33.addErrback(function(_34){
-if(_2d.onError){
-_2d.onError.call(_30,_34);
-}
-});
-_33.addCallback(function(_35){
-var _36=_2f._processItem(_35);
-if(_2d.onItem){
-_2d.onItem.call(_30,_36);
-}
-});
-},_processResult:function(_37,_38){
-var _39=_38.scope||dojo.global;
-try{
-if(_37.pathSeparator){
-this.pathSeparator=_37.pathSeparator;
-}
-if(_38.onBegin){
-_38.onBegin.call(_39,_37.total,_38);
-}
-var _3a=this._processItemArray(_37.items);
-if(_38.onItem){
-var i;
-for(i=0;i<_3a.length;i++){
-_38.onItem.call(_39,_3a[i],_38);
-}
-_3a=null;
-}
-if(_38.onComplete){
-_38.onComplete.call(_39,_3a,_38);
-}
-}
-catch(e){
-if(_38.onError){
-_38.onError.call(_39,e,_38);
-}else{
-
-}
-}
-},_processItemArray:function(_3c){
-var i;
-for(i=0;i<_3c.length;i++){
-this._processItem(_3c[i]);
-}
-return _3c;
-},_processItem:function(_3e){
-if(!_3e){
-return null;
-}
-_3e[this._storeRef]=this;
-if(_3e.children&&_3e.directory){
-if(dojo.isArray(_3e.children)){
-var _3f=_3e.children;
-var i;
-for(i=0;i<_3f.length;i++){
-var _41=_3f[i];
-if(dojo.isObject(_41)){
-_3f[i]=this._processItem(_41);
-}else{
-_3f[i]={name:_41,_loaded:false,parentPath:_3e.path};
-_3f[i][this._storeRef]=this;
-}
-}
-}else{
-delete _3e.children;
-}
-}
-return _3e;
-}});
-}

http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/FlickrRestStore.js
----------------------------------------------------------------------
diff --git a/components/camel-web/src/main/webapp/js/dojox/data/FlickrRestStore.js b/components/camel-web/src/main/webapp/js/dojox/data/FlickrRestStore.js
deleted file mode 100644
index c63aaa5..0000000
--- a/components/camel-web/src/main/webapp/js/dojox/data/FlickrRestStore.js
+++ /dev/null
@@ -1,289 +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.FlickrRestStore"]){
-dojo._hasResource["dojox.data.FlickrRestStore"]=true;
-dojo.provide("dojox.data.FlickrRestStore");
-dojo.require("dojox.data.FlickrStore");
-dojo.declare("dojox.data.FlickrRestStore",dojox.data.FlickrStore,{constructor:function(_1){
-if(_1){
-if(_1.label){
-this.label=_1.label;
-}
-if(_1.apikey){
-this._apikey=_1.apikey;
-}
-}
-this._cache=[];
-this._prevRequests={};
-this._handlers={};
-this._prevRequestRanges=[];
-this._maxPhotosPerUser={};
-this._id=dojox.data.FlickrRestStore.prototype._id++;
-},_id:0,_requestCount:0,_flickrRestUrl:"http://www.flickr.com/services/rest/",_apikey:null,_storeRef:"_S",_cache:null,_prevRequests:null,_handlers:null,_sortAttributes:{"date-posted":true,"date-taken":true,"interestingness":true},_fetchItems:function(_2,_3,_4){
-var _5={};
-if(!_2.query){
-_2.query=_5={};
-}else{
-dojo.mixin(_5,_2.query);
-}
-var _6=[];
-var _7=[];
-var _8={format:"json",method:"flickr.photos.search",api_key:this._apikey,extras:"owner_name,date_upload,date_taken"};
-var _9=false;
-if(_5.userid){
-_9=true;
-_8.user_id=_2.query.userid;
-_6.push("userid"+_2.query.userid);
-}
-if(_5.apikey){
-_9=true;
-_8.api_key=_2.query.apikey;
-_7.push("api"+_2.query.apikey);
-}else{
-if(_8.api_key){
-_9=true;
-_2.query.apikey=_8.api_key;
-_7.push("api"+_8.api_key);
-}else{
-throw Error("dojox.data.FlickrRestStore: An API key must be specified.");
-}
-}
-_2._curCount=_2.count;
-if(_5.page){
-_8.page=_2.query.page;
-_7.push("page"+_8.page);
-}else{
-if(typeof (_2.start)!="undefined"&&_2.start!=null){
-if(!_2.count){
-_2.count=20;
-}
-var _a=_2.start%_2.count;
-var _b=_2.start,_c=_2.count;
-if(_a!=0){
-if(_b<_c/2){
-_c=_b+_c;
-_b=0;
-}else{
-var _d=20,_e=2;
-for(var i=_d;i>0;i--){
-if(_b%i==0&&(_b/i)>=_c){
-_e=i;
-break;
-}
-}
-_c=_b/_e;
-}
-_2._realStart=_2.start;
-_2._realCount=_2.count;
-_2._curStart=_b;
-_2._curCount=_c;
-}else{
-_2._realStart=_2._realCount=null;
-_2._curStart=_2.start;
-_2._curCount=_2.count;
-}
-_8.page=(_b/_c)+1;
-_7.push("page"+_8.page);
-}
-}
-if(_2._curCount){
-_8.per_page=_2._curCount;
-_7.push("count"+_2._curCount);
-}
-if(_5.lang){
-_8.lang=_2.query.lang;
-_6.push("lang"+_2.lang);
-}
-var url=this._flickrRestUrl;
-if(_5.setid){
-_8.method="flickr.photosets.getPhotos";
-_8.photoset_id=_2.query.setid;
-_6.push("set"+_2.query.setid);
-}
-if(_5.tags){
-if(_5.tags instanceof Array){
-_8.tags=_5.tags.join(",");
-}else{
-_8.tags=_5.tags;
-}
-_6.push("tags"+_8.tags);
-if(_5["tag_mode"]&&(_5.tag_mode.toLowerCase()=="any"||_5.tag_mode.toLowerCase()=="all")){
-_8.tag_mode=_5.tag_mode;
-}
-}
-if(_5.text){
-_8.text=_5.text;
-_6.push("text:"+_5.text);
-}
-if(_5.sort&&_5.sort.length>0){
-if(!_5.sort[0].attribute){
-_5.sort[0].attribute="date-posted";
-}
-if(this._sortAttributes[_5.sort[0].attribute]){
-if(_5.sort[0].descending){
-_8.sort=_5.sort[0].attribute+"-desc";
-}else{
-_8.sort=_5.sort[0].attribute+"-asc";
-}
-}
-}else{
-_8.sort="date-posted-asc";
-}
-_6.push("sort:"+_8.sort);
-_6=_6.join(".");
-_7=_7.length>0?"."+_7.join("."):"";
-var _11=_6+_7;
-_2={query:_5,count:_2._curCount,start:_2._curStart,_realCount:_2._realCount,_realStart:_2._realStart,onBegin:_2.onBegin,onComplete:_2.onComplete,onItem:_2.onItem};
-var _12={request:_2,fetchHandler:_3,errorHandler:_4};
-if(this._handlers[_11]){
-this._handlers[_11].push(_12);
-return;
-}
-this._handlers[_11]=[_12];
-var _13=null;
-var _14={url:this._flickrRestUrl,preventCache:true,content:_8,callbackParamName:"jsoncallback"};
-var _15=dojo.hitch(this,function(_16,_17,_18){
-var _19=_18.request.onBegin;
-_18.request.onBegin=null;
-var _1a;
-var req=_18.request;
-if(typeof (req._realStart)!=undefined&&req._realStart!=null){
-req.start=req._realStart;
-req.count=req._realCount;
-req._realStart=req._realCount=null;
-}
-if(_19){
-var _1c=null;
-if(_17){
-_1c=(_17.photoset?_17.photoset:_17.photos);
-}
-if(_1c&&typeof (_1c.perpage)!="undefined"&&typeof (_1c.pages)!="undefined"){
-if(_1c.perpage*_1c.pages<=_18.request.start+_18.request.count){
-_1a=_18.request.start+_1c.photo.length;
-}else{
-_1a=_1c.perpage*_1c.pages;
-}
-this._maxPhotosPerUser[_6]=_1a;
-_19(_1a,_18.request);
-}else{
-if(this._maxPhotosPerUser[_6]){
-_19(this._maxPhotosPerUser[_6],_18.request);
-}
-}
-}
-_18.fetchHandler(_16,_18.request);
-if(_19){
-_18.request.onBegin=_19;
-}
-});
-var _1d=dojo.hitch(this,function(_1e){
-if(_1e.stat!="ok"){
-_4(null,_2);
-}else{
-var _1f=this._handlers[_11];
-if(!_1f){
-
-return;
-}
-this._handlers[_11]=null;
-this._prevRequests[_11]=_1e;
-var _20=this._processFlickrData(_1e,_2,_6);
-if(!this._prevRequestRanges[_6]){
-this._prevRequestRanges[_6]=[];
-}
-this._prevRequestRanges[_6].push({start:_2.start,end:_2.start+(_1e.photoset?_1e.photoset.photo.length:_1e.photos.photo.length)});
-dojo.forEach(_1f,function(i){
-_15(_20,_1e,i);
-});
-}
-});
-var _22=this._prevRequests[_11];
-if(_22){
-this._handlers[_11]=null;
-_15(this._cache[_6],_22,_12);
-return;
-}else{
-if(this._checkPrevRanges(_6,_2.start,_2.count)){
-this._handlers[_11]=null;
-_15(this._cache[_6],null,_12);
-return;
-}
-}
-var _23=dojo.io.script.get(_14);
-_23.addCallback(_1d);
-_23.addErrback(function(_24){
-dojo.disconnect(_13);
-_4(_24,_2);
-});
-},getAttributes:function(_25){
-return ["title","author","imageUrl","imageUrlSmall","imageUrlMedium","imageUrlThumb","link","dateTaken","datePublished"];
-},getValues:function(_26,_27){
-this._assertIsItem(_26);
-this._assertIsAttribute(_27);
-switch(_27){
-case "title":
-return [this._unescapeHtml(_26.title)];
-case "author":
-return [_26.ownername];
-case "imageUrlSmall":
-return [_26.media.s];
-case "imageUrl":
-return [_26.media.l];
-case "imageUrlMedium":
-return [_26.media.m];
-case "imageUrlThumb":
-return [_26.media.t];
-case "link":
-return ["http://www.flickr.com/photos/"+_26.owner+"/"+_26.id];
-case "dateTaken":
-return [_26.datetaken];
-case "datePublished":
-return [_26.datepublished];
-default:
-return undefined;
-}
-},_processFlickrData:function(_28,_29,_2a){
-if(_28.items){
-return dojox.data.FlickrStore.prototype._processFlickrData.apply(this,arguments);
-}
-var _2b=["http://farm",null,".static.flickr.com/",null,"/",null,"_",null];
-var _2c=[];
-var _2d=(_28.photoset?_28.photoset:_28.photos);
-if(_28.stat=="ok"&&_2d&&_2d.photo){
-_2c=_2d.photo;
-for(var i=0;i<_2c.length;i++){
-var _2f=_2c[i];
-_2f[this._storeRef]=this;
-_2b[1]=_2f.farm;
-_2b[3]=_2f.server;
-_2b[5]=_2f.id;
-_2b[7]=_2f.secret;
-var _30=_2b.join("");
-_2f.media={s:_30+"_s.jpg",m:_30+"_m.jpg",l:_30+".jpg",t:_30+"_t.jpg"};
-if(!_2f.owner&&_28.photoset){
-_2f.owner=_28.photoset.owner;
-}
-}
-}
-var _31=_29.start?_29.start:0;
-var arr=this._cache[_2a];
-if(!arr){
-this._cache[_2a]=arr=[];
-}
-dojo.forEach(_2c,function(i,idx){
-arr[idx+_31]=i;
-});
-return arr;
-},_checkPrevRanges:function(_35,_36,_37){
-var end=_36+_37;
-var arr=this._prevRequestRanges[_35];
-return (!!arr)&&dojo.some(arr,function(_3a){
-return ((_36>=_3a.start)&&(end<=_3a.end));
-});
-}});
-}

http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/FlickrStore.js
----------------------------------------------------------------------
diff --git a/components/camel-web/src/main/webapp/js/dojox/data/FlickrStore.js b/components/camel-web/src/main/webapp/js/dojox/data/FlickrStore.js
deleted file mode 100644
index 1b12537..0000000
--- a/components/camel-web/src/main/webapp/js/dojox/data/FlickrStore.js
+++ /dev/null
@@ -1,147 +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.FlickrStore"]){
-dojo._hasResource["dojox.data.FlickrStore"]=true;
-dojo.provide("dojox.data.FlickrStore");
-dojo.require("dojo.data.util.simpleFetch");
-dojo.require("dojo.io.script");
-dojo.require("dojo.date.stamp");
-dojo.require("dojo.AdapterRegistry");
-(function(){
-var d=dojo;
-dojo.declare("dojox.data.FlickrStore",null,{constructor:function(_2){
-if(_2&&_2.label){
-this.label=_2.label;
-}
-},_storeRef:"_S",label:"title",_assertIsItem:function(_3){
-if(!this.isItem(_3)){
-throw new Error("dojox.data.FlickrStore: a function was passed an item argument that was not an item");
-}
-},_assertIsAttribute:function(_4){
-if(typeof _4!=="string"){
-throw new Error("dojox.data.FlickrStore: a function was passed an attribute argument that was not an attribute name string");
-}
-},getFeatures:function(){
-return {"dojo.data.api.Read":true};
-},getValue:function(_5,_6,_7){
-var _8=this.getValues(_5,_6);
-if(_8&&_8.length>0){
-return _8[0];
-}
-return _7;
-},getAttributes:function(_9){
-return ["title","description","author","datePublished","dateTaken","imageUrl","imageUrlSmall","imageUrlMedium","tags","link"];
-},hasAttribute:function(_a,_b){
-if(this.getValue(_a,_b)){
-return true;
-}
-return false;
-},isItemLoaded:function(_c){
-return this.isItem(_c);
-},loadItem:function(_d){
-},getLabel:function(_e){
-return this.getValue(_e,this.label);
-},getLabelAttributes:function(_f){
-return [this.label];
-},containsValue:function(_10,_11,_12){
-var _13=this.getValues(_10,_11);
-for(var i=0;i<_13.length;i++){
-if(_13[i]===_12){
-return true;
-}
-}
-return false;
-},getValues:function(_15,_16){
-this._assertIsItem(_15);
-this._assertIsAttribute(_16);
-var u=d.hitch(this,"_unescapeHtml");
-var s=d.hitch(d.date.stamp,"fromISOString");
-switch(_16){
-case "title":
-return [u(_15.title)];
-case "author":
-return [u(_15.author)];
-case "datePublished":
-return [s(_15.published)];
-case "dateTaken":
-return [s(_15.date_taken)];
-case "imageUrlSmall":
-return [_15.media.m.replace(/_m\./,"_s.")];
-case "imageUrl":
-return [_15.media.m.replace(/_m\./,".")];
-case "imageUrlMedium":
-return [_15.media.m];
-case "link":
-return [_15.link];
-case "tags":
-return _15.tags.split(" ");
-case "description":
-return [u(_15.description)];
-default:
-return [];
-}
-},isItem:function(_19){
-if(_19&&_19[this._storeRef]===this){
-return true;
-}
-return false;
-},close:function(_1a){
-},_fetchItems:function(_1b,_1c,_1d){
-var rq=_1b.query=_1b.query||{};
-var _1f={format:"json",tagmode:"any"};
-d.forEach(["tags","tagmode","lang","id","ids"],function(i){
-if(rq[i]){
-_1f[i]=rq[i];
-}
-});
-_1f.id=rq.id||rq.userid||rq.groupid;
-if(rq.userids){
-_1f.ids=rq.userids;
-}
-var _21=null;
-var _22={url:dojox.data.FlickrStore.urlRegistry.match(_1b),preventCache:true,content:_1f};
-var _23=d.hitch(this,function(_24){
-if(!!_21){
-d.disconnect(_21);
-}
-_1c(this._processFlickrData(_24),_1b);
-});
-_21=d.connect("jsonFlickrFeed",_23);
-var _25=d.io.script.get(_22);
-_25.addErrback(function(_26){
-d.disconnect(_21);
-_1d(_26,_1b);
-});
-},_processFlickrData:function(_27){
-var _28=[];
-if(_27.items){
-_28=_27.items;
-for(var i=0;i<_27.items.length;i++){
-var _2a=_27.items[i];
-_2a[this._storeRef]=this;
-}
-}
-return _28;
-},_unescapeHtml:function(str){
-return str.replace(/&amp;/gm,"&").replace(/&lt;/gm,"<").replace(/&gt;/gm,">").replace(/&quot;/gm,"\"").replace(/&#39;/gm,"'");
-}});
-dojo.extend(dojox.data.FlickrStore,dojo.data.util.simpleFetch);
-var _2c="http://api.flickr.com/services/feeds/";
-var reg=dojox.data.FlickrStore.urlRegistry=new d.AdapterRegistry(true);
-reg.register("group pool",function(_2e){
-return !!_2e.query["groupid"];
-},_2c+"groups_pool.gne");
-reg.register("default",function(_2f){
-return true;
-},_2c+"photos_public.gne");
-})();
-if(!jsonFlickrFeed){
-var jsonFlickrFeed=function(_30){
-};
-}
-}

http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/GoogleFeedStore.js
----------------------------------------------------------------------
diff --git a/components/camel-web/src/main/webapp/js/dojox/data/GoogleFeedStore.js b/components/camel-web/src/main/webapp/js/dojox/data/GoogleFeedStore.js
deleted file mode 100644
index 38721d6..0000000
--- a/components/camel-web/src/main/webapp/js/dojox/data/GoogleFeedStore.js
+++ /dev/null
@@ -1,24 +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.GoogleFeedStore"]){
-dojo._hasResource["dojox.data.GoogleFeedStore"]=true;
-dojo.provide("dojox.data.GoogleFeedStore");
-dojo.experimental("dojox.data.GoogleFeedStore");
-dojo.require("dojox.data.GoogleSearchStore");
-dojo.declare("dojox.data.GoogleFeedStore",dojox.data.GoogleSearchStore,{_type:"",_googleUrl:"http://ajax.googleapis.com/ajax/services/feed/load",_attributes:["title","link","author","published","content","summary","categories"],_queryAttr:"url",_processItem:function(_1,_2){
-this.inherited(arguments);
-_1["summary"]=_1["contentSnippet"];
-_1["published"]=_1["publishedDate"];
-},_getItems:function(_3){
-return _3["feed"]&&_3.feed[["entries"]]?_3.feed[["entries"]]:null;
-},_createContent:function(_4,_5,_6){
-var cb=this.inherited(arguments);
-cb.num=(_6.count||10)+(_6.start||0);
-return cb;
-}});
-}

http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/GoogleSearchStore.js
----------------------------------------------------------------------
diff --git a/components/camel-web/src/main/webapp/js/dojox/data/GoogleSearchStore.js b/components/camel-web/src/main/webapp/js/dojox/data/GoogleSearchStore.js
deleted file mode 100644
index 67fb5a2..0000000
--- a/components/camel-web/src/main/webapp/js/dojox/data/GoogleSearchStore.js
+++ /dev/null
@@ -1,239 +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.GoogleSearchStore"]){
-dojo._hasResource["dojox.data.GoogleSearchStore"]=true;
-dojo.provide("dojox.data.GoogleSearchStore");
-dojo.provide("dojox.data.GoogleWebSearchStore");
-dojo.provide("dojox.data.GoogleBlogSearchStore");
-dojo.provide("dojox.data.GoogleLocalSearchStore");
-dojo.provide("dojox.data.GoogleVideoSearchStore");
-dojo.provide("dojox.data.GoogleNewsSearchStore");
-dojo.provide("dojox.data.GoogleBookSearchStore");
-dojo.provide("dojox.data.GoogleImageSearchStore");
-dojo.require("dojo.io.script");
-dojo.experimental("dojox.data.GoogleSearchStore");
-dojo.declare("dojox.data.GoogleSearchStore",null,{constructor:function(_1){
-if(_1){
-if(_1.label){
-this.label=_1.label;
-}
-if(_1.key){
-this._key=_1.key;
-}
-if(_1.lang){
-this._lang=_1.lang;
-}
-}
-this._id=dojox.data.GoogleSearchStore.prototype._id++;
-},_id:0,_requestCount:0,_googleUrl:"http://ajax.googleapis.com/ajax/services/search/",_storeRef:"_S",_attributes:["unescapedUrl","url","visibleUrl","cacheUrl","title","titleNoFormatting","content"],label:"titleNoFormatting",_type:"web",_queryAttr:"text",_assertIsItem:function(_2){
-if(!this.isItem(_2)){
-throw new Error("dojox.data.GoogleSearchStore: a function was passed an item argument that was not an item");
-}
-},_assertIsAttribute:function(_3){
-if(typeof _3!=="string"){
-throw new Error("dojox.data.GoogleSearchStore: a function was passed an attribute argument that was not an attribute name string");
-}
-},getFeatures:function(){
-return {"dojo.data.api.Read":true};
-},getValue:function(_4,_5,_6){
-var _7=this.getValues(_4,_5);
-if(_7&&_7.length>0){
-return _7[0];
-}
-return _6;
-},getAttributes:function(_8){
-return this._attributes;
-},hasAttribute:function(_9,_a){
-if(this.getValue(_9,_a)){
-return true;
-}
-return false;
-},isItemLoaded:function(_b){
-return this.isItem(_b);
-},loadItem:function(_c){
-},getLabel:function(_d){
-return this.getValue(_d,this.label);
-},getLabelAttributes:function(_e){
-return [this.label];
-},containsValue:function(_f,_10,_11){
-var _12=this.getValues(_f,_10);
-for(var i=0;i<_12.length;i++){
-if(_12[i]===_11){
-return true;
-}
-}
-return false;
-},getValues:function(_14,_15){
-this._assertIsItem(_14);
-this._assertIsAttribute(_15);
-var val=_14[_15];
-if(dojo.isArray(val)){
-return val;
-}else{
-if(val!==undefined){
-return [val];
-}else{
-return [];
-}
-}
-},isItem:function(_17){
-if(_17&&_17[this._storeRef]===this){
-return true;
-}
-return false;
-},close:function(_18){
-},_format:function(_19,_1a){
-return _19;
-},fetch:function(_1b){
-_1b=_1b||{};
-var _1c=_1b.scope||dojo.global;
-if(!_1b.query||!_1b.query[this._queryAttr]){
-if(_1b.onError){
-_1b.onError.call(_1c,new Error(this.declaredClass+": A query must be specified, with a '"+[this._queryAttr]+"' parameter."));
-return;
-}
-}
-var _1d=_1b.query[this._queryAttr];
-_1b={query:{},onComplete:_1b.onComplete,onError:_1b.onError,onItem:_1b.onItem,onBegin:_1b.onBegin,start:_1b.start,count:_1b.count};
-_1b.query[this._queryAttr]=_1d;
-var _1e=8;
-var _1f="GoogleSearchStoreCallback_"+this._id+"_"+(++this._requestCount);
-var _20=this._createContent(_1d,_1f,_1b);
-var _21;
-if(typeof (_1b.start)==="undefined"||_1b.start===null){
-_1b.start=0;
-}
-if(!_1b.count){
-_1b.count=_1e;
-}
-_21={start:_1b.start-_1b.start%_1e};
-var _22=this;
-var _23=null;
-var _24=this._googleUrl+this._type;
-var _25={url:_24,preventCache:true,content:_20};
-var _26=[];
-var _27=0;
-var _28=false;
-var _29=_1b.start-1;
-var _2a=0;
-function _2b(req){
-_2a++;
-_25.content.context=_25.content.start=req.start;
-var _2d=dojo.io.script.get(_25);
-_2d.addErrback(function(_2e){
-if(_1b.onError){
-_1b.onError.call(_1c,_2e,_1b);
-}
-});
-};
-var _2f=function(_30,_31){
-if(_28){
-return;
-}
-var _32=_22._getItems(_31);
-var _33=_31?_31["cursor"]:null;
-if(_32){
-for(var i=0;i<_32.length&&i+_30<_1b.count+_1b.start;i++){
-_22._processItem(_32[i],_31);
-_26[i+_30]=_32[i];
-}
-_27++;
-if(_27==1){
-var _35=_33?_33.pages:null;
-var _36=_35?Number(_35[_35.length-1].start):0;
-if(_1b.onBegin){
-var est=_33?_33.estimatedResultCount:_32.length;
-var _38=est?Math.min(est,_36+_32.length):_36+_32.length;
-_1b.onBegin.call(_1c,_38,_1b);
-}
-var _39=(_1b.start-_1b.start%_1e)+_1e;
-var _3a=1;
-while(_35){
-if(!_35[_3a]||Number(_35[_3a].start)>=_1b.start+_1b.count){
-break;
-}
-if(Number(_35[_3a].start)>=_39){
-_2b({start:_35[_3a].start});
-}
-_3a++;
-}
-}
-if(_1b.onItem&&_26[_29+1]){
-do{
-_29++;
-_1b.onItem.call(_1c,_26[_29],_1b);
-}while(_26[_29+1]&&_29<_1b.start+_1b.count);
-}
-if(_27==_2a){
-_28=true;
-dojo.global[_1f]=null;
-if(_1b.onItem){
-_1b.onComplete.call(_1c,null,_1b);
-}else{
-_26=_26.slice(_1b.start,_1b.start+_1b.count);
-_1b.onComplete.call(_1c,_26,_1b);
-}
-}
-}
-};
-var _3b=[];
-var _3c=_21.start-1;
-var _3d=function(a,b){
-if(a.start<b.start){
-return -1;
-}
-if(b.start<a.start){
-return 1;
-}
-return 0;
-};
-dojo.global[_1f]=function(_40,_41,_42,_43){
-try{
-if(_42!=200){
-if(_1b.onError){
-_1b.onError.call(_1c,new Error("Response from Google was: "+_42),_1b);
-}
-dojo.global[_1f]=function(){
-};
-return;
-}
-if(_40==_3c+1){
-_2f(Number(_40),_41);
-_3c+=_1e;
-if(_3b.length>0){
-_3b.sort(_3d);
-while(_3b.length>0&&_3b[0].start==_3c+1){
-_2f(Number(_3b[0].start),_3b[0].data);
-_3b.splice(0,1);
-_3c+=_1e;
-}
-}
-}else{
-_3b.push({start:_40,data:_41});
-}
-}
-catch(e){
-_1b.onError.call(_1c,e,_1b);
-}
-};
-_2b(_21);
-},_processItem:function(_44,_45){
-_44[this._storeRef]=this;
-},_getItems:function(_46){
-return _46["results"]||_46;
-},_createContent:function(_47,_48,_49){
-return {q:_47,v:"1.0",rsz:"large",callback:_48,key:this._key,hl:this._lang};
-}});
-dojo.declare("dojox.data.GoogleWebSearchStore",dojox.data.GoogleSearchStore,{});
-dojo.declare("dojox.data.GoogleBlogSearchStore",dojox.data.GoogleSearchStore,{_type:"blogs",_attributes:["blogUrl","postUrl","title","titleNoFormatting","content","author","publishedDate"]});
-dojo.declare("dojox.data.GoogleLocalSearchStore",dojox.data.GoogleSearchStore,{_type:"local",_attributes:["title","titleNoFormatting","url","lat","lng","streetAddress","city","region","country","phoneNumbers","ddUrl","ddUrlToHere","ddUrlFromHere","staticMapUrl"]});
-dojo.declare("dojox.data.GoogleVideoSearchStore",dojox.data.GoogleSearchStore,{_type:"video",_attributes:["title","titleNoFormatting","content","url","published","publisher","duration","tbWidth","tbHeight","tbUrl","playUrl"]});
-dojo.declare("dojox.data.GoogleNewsSearchStore",dojox.data.GoogleSearchStore,{_type:"news",_attributes:["title","titleNoFormatting","content","url","unescapedUrl","publisher","clusterUrl","location","publishedDate","relatedStories"]});
-dojo.declare("dojox.data.GoogleBookSearchStore",dojox.data.GoogleSearchStore,{_type:"books",_attributes:["title","titleNoFormatting","authors","url","unescapedUrl","bookId","pageCount","publishedYear"]});
-dojo.declare("dojox.data.GoogleImageSearchStore",dojox.data.GoogleSearchStore,{_type:"images",_attributes:["title","titleNoFormatting","visibleUrl","url","unescapedUrl","originalContextUrl","width","height","tbWidth","tbHeight","tbUrl","content","contentNoFormatting"]});
-}

http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/HtmlStore.js
----------------------------------------------------------------------
diff --git a/components/camel-web/src/main/webapp/js/dojox/data/HtmlStore.js b/components/camel-web/src/main/webapp/js/dojox/data/HtmlStore.js
deleted file mode 100644
index e2a1208..0000000
--- a/components/camel-web/src/main/webapp/js/dojox/data/HtmlStore.js
+++ /dev/null
@@ -1,313 +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.HtmlStore"]){
-dojo._hasResource["dojox.data.HtmlStore"]=true;
-dojo.provide("dojox.data.HtmlStore");
-dojo.require("dojox.xml.parser");
-dojo.require("dojo.data.util.simpleFetch");
-dojo.require("dojo.data.util.filter");
-dojo.declare("dojox.data.HtmlStore",null,{constructor:function(_1){
-if(_1.url){
-if(!_1.dataId){
-throw new Error("dojo.data.HtmlStore: Cannot instantiate using url without an id!");
-}
-this.url=_1.url;
-this.dataId=_1.dataId;
-}else{
-if(_1.dataId){
-this._rootNode=dojo.byId(_1.dataId);
-this.dataId=this._rootNode.id;
-}else{
-this._rootNode=dojo.byId(this.dataId);
-}
-this._indexItems();
-}
-},url:"",dataId:"",_indexItems:function(){
-this._getHeadings();
-if(this._rootNode.rows){
-if(this._rootNode.tBodies&&this._rootNode.tBodies.length>0){
-this._rootNode=this._rootNode.tBodies[0];
-}
-var i;
-for(i=0;i<this._rootNode.rows.length;i++){
-this._rootNode.rows[i].store=this;
-this._rootNode.rows[i]._ident=i+1;
-}
-}else{
-var c=1;
-for(i=0;i<this._rootNode.childNodes.length;i++){
-if(this._rootNode.childNodes[i].nodeType===1){
-this._rootNode.childNodes[i].store=this;
-this._rootNode.childNodes[i]._ident=c;
-c++;
-}
-}
-}
-},_getHeadings:function(){
-this._headings=[];
-if(this._rootNode.tHead){
-dojo.forEach(this._rootNode.tHead.rows[0].cells,dojo.hitch(this,function(th){
-this._headings.push(dojox.xml.parser.textContent(th));
-}));
-}else{
-this._headings=["name"];
-}
-},_getAllItems:function(){
-var _5=[];
-var i;
-if(this._rootNode.rows){
-for(i=0;i<this._rootNode.rows.length;i++){
-_5.push(this._rootNode.rows[i]);
-}
-}else{
-for(i=0;i<this._rootNode.childNodes.length;i++){
-if(this._rootNode.childNodes[i].nodeType===1){
-_5.push(this._rootNode.childNodes[i]);
-}
-}
-}
-return _5;
-},_assertIsItem:function(_7){
-if(!this.isItem(_7)){
-throw new Error("dojo.data.HtmlStore: a function was passed an item argument that was not an item");
-}
-},_assertIsAttribute:function(_8){
-if(typeof _8!=="string"){
-throw new Error("dojo.data.HtmlStore: a function was passed an attribute argument that was not an attribute name string");
-return -1;
-}
-return dojo.indexOf(this._headings,_8);
-},getValue:function(_9,_a,_b){
-var _c=this.getValues(_9,_a);
-return (_c.length>0)?_c[0]:_b;
-},getValues:function(_d,_e){
-this._assertIsItem(_d);
-var _f=this._assertIsAttribute(_e);
-if(_f>-1){
-if(_d.cells){
-return [dojox.xml.parser.textContent(_d.cells[_f])];
-}else{
-return [dojox.xml.parser.textContent(_d)];
-}
-}
-return [];
-},getAttributes:function(_10){
-this._assertIsItem(_10);
-var _11=[];
-for(var i=0;i<this._headings.length;i++){
-if(this.hasAttribute(_10,this._headings[i])){
-_11.push(this._headings[i]);
-}
-}
-return _11;
-},hasAttribute:function(_13,_14){
-return this.getValues(_13,_14).length>0;
-},containsValue:function(_15,_16,_17){
-var _18=undefined;
-if(typeof _17==="string"){
-_18=dojo.data.util.filter.patternToRegExp(_17,false);
-}
-return this._containsValue(_15,_16,_17,_18);
-},_containsValue:function(_19,_1a,_1b,_1c){
-var _1d=this.getValues(_19,_1a);
-for(var i=0;i<_1d.length;++i){
-var _1f=_1d[i];
-if(typeof _1f==="string"&&_1c){
-return (_1f.match(_1c)!==null);
-}else{
-if(_1b===_1f){
-return true;
-}
-}
-}
-return false;
-},isItem:function(_20){
-if(_20&&_20.store&&_20.store===this){
-return true;
-}
-return false;
-},isItemLoaded:function(_21){
-return this.isItem(_21);
-},loadItem:function(_22){
-this._assertIsItem(_22.item);
-},_fetchItems:function(_23,_24,_25){
-if(this._rootNode){
-this._finishFetchItems(_23,_24,_25);
-}else{
-if(!this.url){
-this._rootNode=dojo.byId(this.dataId);
-}else{
-var _26={url:this.url,handleAs:"text"};
-var _27=this;
-var _28=dojo.xhrGet(_26);
-_28.addCallback(function(_29){
-var _2a=function(_2b,id){
-if(_2b.id==id){
-return _2b;
-}
-if(_2b.childNodes){
-for(var i=0;i<_2b.childNodes.length;i++){
-var _2e=_2a(_2b.childNodes[i],id);
-if(_2e){
-return _2e;
-}
-}
-}
-return null;
-};
-var d=document.createElement("div");
-d.innerHTML=_29;
-_27._rootNode=_2a(d,_27.dataId);
-_27._indexItems();
-_27._finishFetchItems(_23,_24,_25);
-});
-_28.addErrback(function(_30){
-_25(_30,_23);
-});
-}
-}
-},_finishFetchItems:function(_31,_32,_33){
-var _34=null;
-var _35=this._getAllItems();
-if(_31.query){
-var _36=_31.queryOptions?_31.queryOptions.ignoreCase:false;
-_34=[];
-var _37={};
-var key;
-var _39;
-for(key in _31.query){
-_39=_31.query[key]+"";
-if(typeof _39==="string"){
-_37[key]=dojo.data.util.filter.patternToRegExp(_39,_36);
-}
-}
-for(var i=0;i<_35.length;++i){
-var _3b=true;
-var _3c=_35[i];
-for(key in _31.query){
-_39=_31.query[key]+"";
-if(!this._containsValue(_3c,key,_39,_37[key])){
-_3b=false;
-}
-}
-if(_3b){
-_34.push(_3c);
-}
-}
-_32(_34,_31);
-}else{
-if(_35.length>0){
-_34=_35.slice(0,_35.length);
-}
-_32(_34,_31);
-}
-},getFeatures:function(){
-return {"dojo.data.api.Read":true,"dojo.data.api.Identity":true};
-},close:function(_3d){
-},getLabel:function(_3e){
-if(this.isItem(_3e)){
-if(_3e.cells){
-return "Item #"+this.getIdentity(_3e);
-}else{
-return this.getValue(_3e,"name");
-}
-}
-return undefined;
-},getLabelAttributes:function(_3f){
-if(_3f.cells){
-return null;
-}else{
-return ["name"];
-}
-},getIdentity:function(_40){
-this._assertIsItem(_40);
-if(this.hasAttribute(_40,"name")){
-return this.getValue(_40,"name");
-}else{
-return _40._ident;
-}
-},getIdentityAttributes:function(_41){
-return null;
-},fetchItemByIdentity:function(_42){
-var _43=_42.identity;
-var _44=this;
-var _45=null;
-var _46=null;
-if(!this._rootNode){
-if(!this.url){
-this._rootNode=dojo.byId(this.dataId);
-this._indexItems();
-if(_44._rootNode.rows){
-_45=this._rootNode.rows[_43+1];
-}else{
-for(var i=0;i<_44._rootNode.childNodes.length;i++){
-if(_44._rootNode.childNodes[i].nodeType===1&&_43===dojox.xml.parser.textContent(_44._rootNode.childNodes[i])){
-_45=_44._rootNode.childNodes[i];
-}
-}
-}
-if(_42.onItem){
-_46=_42.scope?_42.scope:dojo.global;
-_42.onItem.call(_46,_45);
-}
-}else{
-var _48={url:this.url,handleAs:"text"};
-var _49=dojo.xhrGet(_48);
-_49.addCallback(function(_4a){
-var _4b=function(_4c,id){
-if(_4c.id==id){
-return _4c;
-}
-if(_4c.childNodes){
-for(var i=0;i<_4c.childNodes.length;i++){
-var _4f=_4b(_4c.childNodes[i],id);
-if(_4f){
-return _4f;
-}
-}
-}
-return null;
-};
-var d=document.createElement("div");
-d.innerHTML=_4a;
-_44._rootNode=_4b(d,_44.dataId);
-_44._indexItems();
-if(_44._rootNode.rows&&_43<=_44._rootNode.rows.length){
-_45=_44._rootNode.rows[_43-1];
-}else{
-for(var i=0;i<_44._rootNode.childNodes.length;i++){
-if(_44._rootNode.childNodes[i].nodeType===1&&_43===dojox.xml.parser.textContent(_44._rootNode.childNodes[i])){
-_45=_44._rootNode.childNodes[i];
-break;
-}
-}
-}
-if(_42.onItem){
-_46=_42.scope?_42.scope:dojo.global;
-_42.onItem.call(_46,_45);
-}
-});
-_49.addErrback(function(_52){
-if(_42.onError){
-_46=_42.scope?_42.scope:dojo.global;
-_42.onError.call(_46,_52);
-}
-});
-}
-}else{
-if(this._rootNode.rows[_43+1]){
-_45=this._rootNode.rows[_43+1];
-if(_42.onItem){
-_46=_42.scope?_42.scope:dojo.global;
-_42.onItem.call(_46,_45);
-}
-}
-}
-}});
-dojo.extend(dojox.data.HtmlStore,dojo.data.util.simpleFetch);
-}

http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/HtmlTableStore.js
----------------------------------------------------------------------
diff --git a/components/camel-web/src/main/webapp/js/dojox/data/HtmlTableStore.js b/components/camel-web/src/main/webapp/js/dojox/data/HtmlTableStore.js
deleted file mode 100644
index a3a38c8..0000000
--- a/components/camel-web/src/main/webapp/js/dojox/data/HtmlTableStore.js
+++ /dev/null
@@ -1,267 +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.HtmlTableStore"]){
-dojo._hasResource["dojox.data.HtmlTableStore"]=true;
-dojo.provide("dojox.data.HtmlTableStore");
-dojo.require("dojox.xml.parser");
-dojo.require("dojo.data.util.simpleFetch");
-dojo.require("dojo.data.util.filter");
-dojo.declare("dojox.data.HtmlTableStore",null,{constructor:function(_1){
-dojo.deprecated("dojox.data.HtmlTableStore","Please use dojox.data.HtmlStore");
-if(_1.url){
-if(!_1.tableId){
-throw new Error("dojo.data.HtmlTableStore: Cannot instantiate using url without an id!");
-}
-this.url=_1.url;
-this.tableId=_1.tableId;
-}else{
-if(_1.tableId){
-this._rootNode=dojo.byId(_1.tableId);
-this.tableId=this._rootNode.id;
-}else{
-this._rootNode=dojo.byId(this.tableId);
-}
-this._getHeadings();
-for(var i=0;i<this._rootNode.rows.length;i++){
-this._rootNode.rows[i].store=this;
-}
-}
-},url:"",tableId:"",_getHeadings:function(){
-this._headings=[];
-dojo.forEach(this._rootNode.tHead.rows[0].cells,dojo.hitch(this,function(th){
-this._headings.push(dojox.xml.parser.textContent(th));
-}));
-},_getAllItems:function(){
-var _4=[];
-for(var i=1;i<this._rootNode.rows.length;i++){
-_4.push(this._rootNode.rows[i]);
-}
-return _4;
-},_assertIsItem:function(_6){
-if(!this.isItem(_6)){
-throw new Error("dojo.data.HtmlTableStore: a function was passed an item argument that was not an item");
-}
-},_assertIsAttribute:function(_7){
-if(typeof _7!=="string"){
-throw new Error("dojo.data.HtmlTableStore: a function was passed an attribute argument that was not an attribute name string");
-return -1;
-}
-return dojo.indexOf(this._headings,_7);
-},getValue:function(_8,_9,_a){
-var _b=this.getValues(_8,_9);
-return (_b.length>0)?_b[0]:_a;
-},getValues:function(_c,_d){
-this._assertIsItem(_c);
-var _e=this._assertIsAttribute(_d);
-if(_e>-1){
-return [dojox.xml.parser.textContent(_c.cells[_e])];
-}
-return [];
-},getAttributes:function(_f){
-this._assertIsItem(_f);
-var _10=[];
-for(var i=0;i<this._headings.length;i++){
-if(this.hasAttribute(_f,this._headings[i])){
-_10.push(this._headings[i]);
-}
-}
-return _10;
-},hasAttribute:function(_12,_13){
-return this.getValues(_12,_13).length>0;
-},containsValue:function(_14,_15,_16){
-var _17=undefined;
-if(typeof _16==="string"){
-_17=dojo.data.util.filter.patternToRegExp(_16,false);
-}
-return this._containsValue(_14,_15,_16,_17);
-},_containsValue:function(_18,_19,_1a,_1b){
-var _1c=this.getValues(_18,_19);
-for(var i=0;i<_1c.length;++i){
-var _1e=_1c[i];
-if(typeof _1e==="string"&&_1b){
-return (_1e.match(_1b)!==null);
-}else{
-if(_1a===_1e){
-return true;
-}
-}
-}
-return false;
-},isItem:function(_1f){
-if(_1f&&_1f.store&&_1f.store===this){
-return true;
-}
-return false;
-},isItemLoaded:function(_20){
-return this.isItem(_20);
-},loadItem:function(_21){
-this._assertIsItem(_21.item);
-},_fetchItems:function(_22,_23,_24){
-if(this._rootNode){
-this._finishFetchItems(_22,_23,_24);
-}else{
-if(!this.url){
-this._rootNode=dojo.byId(this.tableId);
-this._getHeadings();
-for(var i=0;i<this._rootNode.rows.length;i++){
-this._rootNode.rows[i].store=this;
-}
-}else{
-var _26={url:this.url,handleAs:"text"};
-var _27=this;
-var _28=dojo.xhrGet(_26);
-_28.addCallback(function(_29){
-var _2a=function(_2b,id){
-if(_2b.id==id){
-return _2b;
-}
-if(_2b.childNodes){
-for(var i=0;i<_2b.childNodes.length;i++){
-var _2e=_2a(_2b.childNodes[i],id);
-if(_2e){
-return _2e;
-}
-}
-}
-return null;
-};
-var d=document.createElement("div");
-d.innerHTML=_29;
-_27._rootNode=_2a(d,_27.tableId);
-_27._getHeadings.call(_27);
-for(var i=0;i<_27._rootNode.rows.length;i++){
-_27._rootNode.rows[i].store=_27;
-}
-_27._finishFetchItems(_22,_23,_24);
-});
-_28.addErrback(function(_31){
-_24(_31,_22);
-});
-}
-}
-},_finishFetchItems:function(_32,_33,_34){
-var _35=null;
-var _36=this._getAllItems();
-if(_32.query){
-var _37=_32.queryOptions?_32.queryOptions.ignoreCase:false;
-_35=[];
-var _38={};
-var _39;
-var key;
-for(key in _32.query){
-_39=_32.query[key]+"";
-if(typeof _39==="string"){
-_38[key]=dojo.data.util.filter.patternToRegExp(_39,_37);
-}
-}
-for(var i=0;i<_36.length;++i){
-var _3c=true;
-var _3d=_36[i];
-for(key in _32.query){
-_39=_32.query[key]+"";
-if(!this._containsValue(_3d,key,_39,_38[key])){
-_3c=false;
-}
-}
-if(_3c){
-_35.push(_3d);
-}
-}
-_33(_35,_32);
-}else{
-if(_36.length>0){
-_35=_36.slice(0,_36.length);
-}
-_33(_35,_32);
-}
-},getFeatures:function(){
-return {"dojo.data.api.Read":true,"dojo.data.api.Identity":true};
-},close:function(_3e){
-},getLabel:function(_3f){
-if(this.isItem(_3f)){
-return "Table Row #"+this.getIdentity(_3f);
-}
-return undefined;
-},getLabelAttributes:function(_40){
-return null;
-},getIdentity:function(_41){
-this._assertIsItem(_41);
-if(!dojo.isOpera){
-return _41.sectionRowIndex;
-}else{
-return (dojo.indexOf(this._rootNode.rows,_41)-1);
-}
-},getIdentityAttributes:function(_42){
-return null;
-},fetchItemByIdentity:function(_43){
-var _44=_43.identity;
-var _45=this;
-var _46=null;
-var _47=null;
-if(!this._rootNode){
-if(!this.url){
-this._rootNode=dojo.byId(this.tableId);
-this._getHeadings();
-for(var i=0;i<this._rootNode.rows.length;i++){
-this._rootNode.rows[i].store=this;
-}
-_46=this._rootNode.rows[_44+1];
-if(_43.onItem){
-_47=_43.scope?_43.scope:dojo.global;
-_43.onItem.call(_47,_46);
-}
-}else{
-var _49={url:this.url,handleAs:"text"};
-var _4a=dojo.xhrGet(_49);
-_4a.addCallback(function(_4b){
-var _4c=function(_4d,id){
-if(_4d.id==id){
-return _4d;
-}
-if(_4d.childNodes){
-for(var i=0;i<_4d.childNodes.length;i++){
-var _50=_4c(_4d.childNodes[i],id);
-if(_50){
-return _50;
-}
-}
-}
-return null;
-};
-var d=document.createElement("div");
-d.innerHTML=_4b;
-_45._rootNode=_4c(d,_45.tableId);
-_45._getHeadings.call(_45);
-for(var i=0;i<_45._rootNode.rows.length;i++){
-_45._rootNode.rows[i].store=_45;
-}
-_46=_45._rootNode.rows[_44+1];
-if(_43.onItem){
-_47=_43.scope?_43.scope:dojo.global;
-_43.onItem.call(_47,_46);
-}
-});
-_4a.addErrback(function(_53){
-if(_43.onError){
-_47=_43.scope?_43.scope:dojo.global;
-_43.onError.call(_47,_53);
-}
-});
-}
-}else{
-if(this._rootNode.rows[_44+1]){
-_46=this._rootNode.rows[_44+1];
-if(_43.onItem){
-_47=_43.scope?_43.scope:dojo.global;
-_43.onItem.call(_47,_46);
-}
-}
-}
-}});
-dojo.extend(dojox.data.HtmlTableStore,dojo.data.util.simpleFetch);
-}

http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/ItemExplorer.js
----------------------------------------------------------------------
diff --git a/components/camel-web/src/main/webapp/js/dojox/data/ItemExplorer.js b/components/camel-web/src/main/webapp/js/dojox/data/ItemExplorer.js
deleted file mode 100644
index 1c90e32..0000000
--- a/components/camel-web/src/main/webapp/js/dojox/data/ItemExplorer.js
+++ /dev/null
@@ -1,461 +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.ItemExplorer"]){
-dojo._hasResource["dojox.data.ItemExplorer"]=true;
-dojo.provide("dojox.data.ItemExplorer");
-dojo.require("dijit.Tree");
-dojo.require("dijit.Dialog");
-dojo.require("dijit.Menu");
-dojo.require("dijit.form.ValidationTextBox");
-dojo.require("dijit.form.Textarea");
-dojo.require("dijit.form.Button");
-dojo.require("dijit.form.CheckBox");
-dojo.require("dijit.form.FilteringSelect");
-(function(){
-var _1=function(_2,_3,_4){
-var _5=_2.getValues(_3,_4);
-if(_5.length<2){
-_5=_2.getValue(_3,_4);
-}
-return _5;
-};
-dojo.declare("dojox.data.ItemExplorer",dijit.Tree,{useSelect:false,refSelectSearchAttr:null,constructor:function(_6){
-dojo.mixin(this,_6);
-var _7=this;
-var _8={};
-var _9=this.rootModelNode={value:_8,id:"root"};
-this._modelNodeIdMap={};
-this._modelNodePropMap={};
-var _a=1;
-this.model={getRoot:function(_b){
-_b(_9);
-},mayHaveChildren:function(_c){
-return _c.value&&typeof _c.value=="object"&&!(_c.value instanceof Date);
-},getChildren:function(_d,_e,_f){
-var _10,_11,_12=_d.value;
-var _13=[];
-if(_12==_8){
-_e([]);
-return;
-}
-var _14=_7.store&&_7.store.isItem(_12,true);
-if(_14&&!_7.store.isItemLoaded(_12)){
-_7.store.loadItem({item:_12,onItem:function(_15){
-_12=_15;
-_16();
-}});
-}else{
-_16();
-}
-function _16(){
-if(_14){
-_10=_7.store.getAttributes(_12);
-_11=_12;
-}else{
-if(_12&&typeof _12=="object"){
-_11=_d.value;
-_10=[];
-for(var i in _12){
-if(_12.hasOwnProperty(i)&&i!="__id"&&i!="__clientId"){
-_10.push(i);
-}
-}
-}
-}
-if(_10){
-for(var key,k=0;key=_10[k++];){
-_13.push({property:key,value:_14?_1(_7.store,_12,key):_12[key],parent:_11});
-}
-_13.push({addNew:true,parent:_11,parentNode:_d});
-}
-_e(_13);
-};
-},getIdentity:function(_1a){
-if(!_1a.id){
-if(_1a.addNew){
-_1a.property="--addNew";
-}
-_1a.id=_a++;
-if(_7.store){
-if(_7.store.isItem(_1a.value)){
-var _1b=_7.store.getIdentity(_1a.value);
-(_7._modelNodeIdMap[_1b]=_7._modelNodeIdMap[_1b]||[]).push(_1a);
-}
-if(_1a.parent){
-_1b=_7.store.getIdentity(_1a.parent)+"."+_1a.property;
-(_7._modelNodePropMap[_1b]=_7._modelNodePropMap[_1b]||[]).push(_1a);
-}
-}
-}
-return _1a.id;
-},getLabel:function(_1c){
-return _1c===_9?"Object Properties":_1c.addNew?(_1c.parent instanceof Array?"Add new value":"Add new property"):_1c.property+": "+(_1c.value instanceof Array?"("+_1c.value.length+" elements)":_1c.value);
-},onChildrenChange:function(_1d){
-},onChange:function(_1e){
-}};
-},postCreate:function(){
-this.inherited(arguments);
-dojo.connect(this,"onClick",function(_1f,_20){
-this.lastFocused=_20;
-if(_1f.addNew){
-this._addProperty();
-}else{
-this._editProperty();
-}
-});
-var _21=new dijit.Menu({targetNodeIds:[this.rootNode.domNode],id:"contextMenu"});
-dojo.connect(_21,"_openMyself",this,function(e){
-var _23=dijit.getEnclosingWidget(e.target);
-if(_23){
-var _24=_23.item;
-if(this.store.isItem(_24.value,true)&&!_24.parent){
-_21.getChildren().forEach(function(_25){
-_25.attr("disabled",(_25.label!="Add"));
-});
-this.lastFocused=_23;
-}else{
-if(_24.value&&typeof _24.value=="object"&&!(_24.value instanceof Date)){
-_21.getChildren().forEach(function(_26){
-_26.attr("disabled",(_26.label!="Add")&&(_26.label!="Delete"));
-});
-this.lastFocused=_23;
-}else{
-if(_24.property&&dojo.indexOf(this.store.getIdentityAttributes(),_24.property)>=0){
-this.focusNode(_23);
-alert("Cannot modify an Identifier node.");
-}else{
-if(_24.addNew){
-this.focusNode(_23);
-}else{
-_21.getChildren().forEach(function(_27){
-_27.attr("disabled",(_27.label!="Edit")&&(_27.label!="Delete"));
-});
-this.lastFocused=_23;
-}
-}
-}
-}
-}
-});
-_21.addChild(new dijit.MenuItem({label:"Add",onClick:dojo.hitch(this,"_addProperty")}));
-_21.addChild(new dijit.MenuItem({label:"Edit",onClick:dojo.hitch(this,"_editProperty")}));
-_21.addChild(new dijit.MenuItem({label:"Delete",onClick:dojo.hitch(this,"_destroyProperty")}));
-_21.startup();
-},store:null,setStore:function(_28){
-this.store=_28;
-var _29=this;
-if(this._editDialog){
-this._editDialog.destroyRecursive();
-delete this._editDialog;
-}
-dojo.connect(_28,"onSet",function(_2a,_2b,_2c,_2d){
-var _2e,i,_30=_29.store.getIdentity(_2a);
-_2e=_29._modelNodeIdMap[_30];
-if(_2e&&(_2c===undefined||_2d===undefined||_2c instanceof Array||_2d instanceof Array||typeof _2c=="object"||typeof _2d=="object")){
-for(i=0;i<_2e.length;i++){
-(function(_31){
-_29.model.getChildren(_31,function(_32){
-_29.model.onChildrenChange(_31,_32);
-});
-})(_2e[i]);
-}
-}
-_2e=_29._modelNodePropMap[_30+"."+_2b];
-if(_2e){
-for(i=0;i<_2e.length;i++){
-_2e[i].value=_2d;
-_29.model.onChange(_2e[i]);
-}
-}
-});
-this.rootNode.setChildItems([]);
-},setItem:function(_33){
-(this._modelNodeIdMap={})[this.store.getIdentity(_33)]=[this.rootModelNode];
-this._modelNodePropMap={};
-this.rootModelNode.value=_33;
-var _34=this;
-this.model.getChildren(this.rootModelNode,function(_35){
-_34.rootNode.setChildItems(_35);
-});
-},refreshItem:function(){
-this.setItem(this.rootModelNode.value);
-},_createEditDialog:function(){
-this._editDialog=new dijit.Dialog({title:"Edit Property",execute:dojo.hitch(this,"_updateItem"),preload:true});
-this._editDialog.placeAt(dojo.body());
-this._editDialog.startup();
-var _36=dojo.doc.createElement("div");
-var _37=dojo.doc.createElement("label");
-dojo.attr(_37,"for","property");
-dojo.style(_37,"fontWeight","bold");
-dojo.attr(_37,"innerHTML","Property:");
-_36.appendChild(_37);
-var _38=new dijit.form.ValidationTextBox({name:"property",value:"",required:true,disabled:true}).placeAt(_36);
-_36.appendChild(dojo.doc.createElement("br"));
-_36.appendChild(dojo.doc.createElement("br"));
-var _39=new dijit.form.RadioButton({name:"itemType",value:"value",onClick:dojo.hitch(this,function(){
-this._enableFields("value");
-})}).placeAt(_36);
-var _3a=dojo.doc.createElement("label");
-dojo.attr(_3a,"for","value");
-dojo.attr(_3a,"innerHTML","Value (JSON):");
-_36.appendChild(_3a);
-var _3b=dojo.doc.createElement("div");
-dojo.addClass(_3b,"value");
-var _3c=new dijit.form.Textarea({name:"jsonVal"}).placeAt(_3b);
-_36.appendChild(_3b);
-var _3d=new dijit.form.RadioButton({name:"itemType",value:"reference",onClick:dojo.hitch(this,function(){
-this._enableFields("reference");
-})}).placeAt(_36);
-var _3e=dojo.doc.createElement("label");
-dojo.attr(_3e,"for","_reference");
-dojo.attr(_3e,"innerHTML","Reference (ID):");
-_36.appendChild(_3e);
-_36.appendChild(dojo.doc.createElement("br"));
-var _3f=dojo.doc.createElement("div");
-dojo.addClass(_3f,"reference");
-if(this.useSelect){
-var _40=new dijit.form.FilteringSelect({name:"_reference",store:this.store,searchAttr:this.refSelectSearchAttr||this.store.getIdentityAttributes()[0],required:false,value:null,pageSize:10}).placeAt(_3f);
-}else{
-var _41=new dijit.form.ValidationTextBox({name:"_reference",value:"",promptMessage:"Enter the ID of the item to reference",isValid:dojo.hitch(this,function(_42){
-return true;
-})}).placeAt(_3f);
-}
-_36.appendChild(_3f);
-_36.appendChild(dojo.doc.createElement("br"));
-_36.appendChild(dojo.doc.createElement("br"));
-var _43=document.createElement("div");
-_43.setAttribute("dir","rtl");
-var _44=new dijit.form.Button({type:"reset",label:"Cancel"}).placeAt(_43);
-_44.onClick=dojo.hitch(this._editDialog,"onCancel");
-var _45=new dijit.form.Button({type:"submit",label:"OK"}).placeAt(_43);
-_36.appendChild(_43);
-this._editDialog.attr("content",_36);
-},_enableFields:function(_46){
-switch(_46){
-case "reference":
-dojo.query(".value [widgetId]",this._editDialog.containerNode).forEach(function(_47){
-dijit.getEnclosingWidget(_47).attr("disabled",true);
-});
-dojo.query(".reference [widgetId]",this._editDialog.containerNode).forEach(function(_48){
-dijit.getEnclosingWidget(_48).attr("disabled",false);
-});
-break;
-case "value":
-dojo.query(".value [widgetId]",this._editDialog.containerNode).forEach(function(_49){
-dijit.getEnclosingWidget(_49).attr("disabled",false);
-});
-dojo.query(".reference [widgetId]",this._editDialog.containerNode).forEach(function(_4a){
-dijit.getEnclosingWidget(_4a).attr("disabled",true);
-});
-break;
-}
-},_updateItem:function(_4b){
-var _4c,_4d,val,_4f,_50=this._editDialog.attr("title")=="Edit Property";
-var _51=this._editDialog;
-var _52=this.store;
-function _53(){
-try{
-var _54,_55=[];
-var _56=_4b.property;
-if(_50){
-while(!_52.isItem(_4d.parent,true)){
-_4c=_4c.getParent();
-_55.push(_4d.property);
-_4d=_4c.item;
-}
-if(_55.length==0){
-_52.setValue(_4d.parent,_4d.property,val);
-}else{
-_4f=_1(_52,_4d.parent,_4d.property);
-if(_4f instanceof Array){
-_4f=_4f.concat();
-}
-_54=_4f;
-while(_55.length>1){
-_54=_54[_55.pop()];
-}
-_54[_55]=val;
-_52.setValue(_4d.parent,_4d.property,_4f);
-}
-}else{
-if(_52.isItem(_57,true)){
-if(!_52.isItemLoaded(_57)){
-_52.loadItem({item:_57,onItem:function(_58){
-if(_58 instanceof Array){
-_56=_58.length;
-}
-_52.setValue(_58,_56,val);
-}});
-}else{
-if(_57 instanceof Array){
-_56=_57.length;
-}
-_52.setValue(_57,_56,val);
-}
-}else{
-if(_4d.value instanceof Array){
-_55.push(_4d.value.length);
-}else{
-_55.push(_4b.property);
-}
-while(!_52.isItem(_4d.parent,true)){
-_4c=_4c.getParent();
-_55.push(_4d.property);
-_4d=_4c.item;
-}
-_4f=_1(_52,_4d.parent,_4d.property);
-_54=_4f;
-while(_55.length>1){
-_54=_54[_55.pop()];
-}
-_54[_55]=val;
-_52.setValue(_4d.parent,_4d.property,_4f);
-}
-}
-}
-catch(e){
-alert(e);
-}
-};
-if(_51.validate()){
-_4c=this.lastFocused;
-_4d=_4c.item;
-var _57=_4d.value;
-if(_4d.addNew){
-_57=_4c.item.parent;
-_4c=_4c.getParent();
-_4d=_4c.item;
-}
-val=null;
-switch(_4b.itemType){
-case "reference":
-this.store.fetchItemByIdentity({identity:_4b._reference,onItem:function(_59){
-val=_59;
-_53();
-},onError:function(){
-alert("The id could not be found");
-}});
-break;
-case "value":
-var _5a=_4b.jsonVal;
-val=dojo.fromJson(_5a);
-if(typeof val=="function"){
-val.toString=function(){
-return _5a;
-};
-}
-_53();
-break;
-}
-}else{
-_51.show();
-}
-},_editProperty:function(){
-var _5b=dojo.mixin({},this.lastFocused.item);
-if(!this._editDialog){
-this._createEditDialog();
-}else{
-this._editDialog.reset();
-}
-if(dojo.indexOf(this.store.getIdentityAttributes(),_5b.property)>=0){
-alert("Cannot Edit an Identifier!");
-}else{
-this._editDialog.attr("title","Edit Property");
-dijit.getEnclosingWidget(dojo.query("input",this._editDialog.containerNode)[0]).attr("disabled",true);
-if(this.store.isItem(_5b.value,true)){
-if(_5b.parent){
-_5b.itemType="reference";
-this._enableFields(_5b.itemType);
-_5b._reference=this.store.getIdentity(_5b.value);
-this._editDialog.attr("value",_5b);
-this._editDialog.show();
-}
-}else{
-if(_5b.value&&typeof _5b.value=="object"&&!(_5b.value instanceof Date)){
-}else{
-_5b.itemType="value";
-this._enableFields(_5b.itemType);
-_5b.jsonVal=typeof _5b.value=="function"?_5b.value.toString():_5b.value instanceof Date?"new Date(\""+_5b.value+"\")":dojo.toJson(_5b.value);
-this._editDialog.attr("value",_5b);
-this._editDialog.show();
-}
-}
-}
-},_destroyProperty:function(){
-var _5c=this.lastFocused;
-var _5d=_5c.item;
-var _5e=[];
-while(!this.store.isItem(_5d.parent,true)||_5d.parent instanceof Array){
-_5c=_5c.getParent();
-_5e.push(_5d.property);
-_5d=_5c.item;
-}
-if(dojo.indexOf(this.store.getIdentityAttributes(),_5d.property)>=0){
-alert("Cannot Delete an Identifier!");
-}else{
-try{
-if(_5e.length>0){
-var _5f,_60=_1(this.store,_5d.parent,_5d.property);
-_5f=_60;
-while(_5e.length>1){
-_5f=_5f[_5e.pop()];
-}
-if(dojo.isArray(_5f)){
-_5f.splice(_5e,1);
-}else{
-delete _5f[_5e];
-}
-this.store.setValue(_5d.parent,_5d.property,_60);
-}else{
-this.store.unsetAttribute(_5d.parent,_5d.property);
-}
-}
-catch(e){
-alert(e);
-}
-}
-},_addProperty:function(){
-var _61=this.lastFocused.item;
-var _62=_61.value;
-var _63=dojo.hitch(this,function(){
-var _64=null;
-if(!this._editDialog){
-this._createEditDialog();
-}else{
-this._editDialog.reset();
-}
-if(_62 instanceof Array){
-_64=_62.length;
-dijit.getEnclosingWidget(dojo.query("input",this._editDialog.containerNode)[0]).attr("disabled",true);
-}else{
-dijit.getEnclosingWidget(dojo.query("input",this._editDialog.containerNode)[0]).attr("disabled",false);
-}
-this._editDialog.attr("title","Add Property");
-this._enableFields("value");
-this._editDialog.attr("value",{itemType:"value",property:_64});
-this._editDialog.show();
-});
-if(_61.addNew){
-_61=this.lastFocused.getParent().item;
-_62=this.lastFocused.item.parent;
-}
-if(_61.property&&dojo.indexOf(this.store.getIdentityAttributes(),_61.property)>=0){
-alert("Cannot add properties to an ID node!");
-}else{
-if(this.store.isItem(_62,true)&&!this.store.isItemLoaded(_62)){
-this.store.loadItem({item:_62,onItem:function(_65){
-_62=_65;
-_63();
-}});
-}else{
-_63();
-}
-}
-}});
-})();
-}

http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/JsonQueryRestStore.js
----------------------------------------------------------------------
diff --git a/components/camel-web/src/main/webapp/js/dojox/data/JsonQueryRestStore.js b/components/camel-web/src/main/webapp/js/dojox/data/JsonQueryRestStore.js
deleted file mode 100644
index 9a96ef1..0000000
--- a/components/camel-web/src/main/webapp/js/dojox/data/JsonQueryRestStore.js
+++ /dev/null
@@ -1,17 +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.JsonQueryRestStore"]){
-dojo._hasResource["dojox.data.JsonQueryRestStore"]=true;
-dojo.provide("dojox.data.JsonQueryRestStore");
-dojo.require("dojox.data.JsonRestStore");
-dojo.require("dojox.data.util.JsonQuery");
-dojo.requireIf(!!dojox.data.ClientFilter,"dojox.json.query");
-dojo.declare("dojox.data.JsonQueryRestStore",[dojox.data.JsonRestStore,dojox.data.util.JsonQuery],{matchesQuery:function(_1,_2){
-return _1.__id&&(_1.__id.indexOf("#")==-1)&&this.inherited(arguments);
-}});
-}

http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/JsonRestStore.js
----------------------------------------------------------------------
diff --git a/components/camel-web/src/main/webapp/js/dojox/data/JsonRestStore.js b/components/camel-web/src/main/webapp/js/dojox/data/JsonRestStore.js
deleted file mode 100644
index 48e509b..0000000
--- a/components/camel-web/src/main/webapp/js/dojox/data/JsonRestStore.js
+++ /dev/null
@@ -1,195 +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.JsonRestStore"]){
-dojo._hasResource["dojox.data.JsonRestStore"]=true;
-dojo.provide("dojox.data.JsonRestStore");
-dojo.require("dojox.data.ServiceStore");
-dojo.require("dojox.rpc.JsonRest");
-dojo.declare("dojox.data.JsonRestStore",dojox.data.ServiceStore,{constructor:function(_1){
-dojo.connect(dojox.rpc.Rest._index,"onUpdate",this,function(_2,_3,_4,_5){
-var _6=this.service.servicePath;
-if(!_2.__id){
-
-}else{
-if(_2.__id.substring(0,_6.length)==_6){
-this.onSet(_2,_3,_4,_5);
-}
-}
-});
-this.idAttribute=this.idAttribute||"id";
-if(typeof _1.target=="string"&&!this.service){
-this.service=dojox.rpc.Rest(this.target,true);
-}
-dojox.rpc.JsonRest.registerService(this.service,_1.target,this.schema);
-this.schema=this.service._schema=this.schema||this.service._schema||{};
-this.service._store=this;
-this.schema._idAttr=this.idAttribute;
-var _7=dojox.rpc.JsonRest.getConstructor(this.service);
-var _8=this;
-this._constructor=function(_9){
-_7.call(this,_9);
-_8.onNew(this);
-};
-this._constructor.prototype=_7.prototype;
-this._index=dojox.rpc.Rest._index;
-},referenceIntegrity:true,target:"",newItem:function(_a,_b){
-_a=new this._constructor(_a);
-if(_b){
-var _c=this.getValue(_b.parent,_b.attribute,[]);
-this.setValue(_b.parent,_b.attribute,_c.concat([_a]));
-}
-return _a;
-},deleteItem:function(_d){
-var _e=[];
-var _f=dojox.data._getStoreForItem(_d)||this;
-if(this.referenceIntegrity){
-dojox.rpc.JsonRest._saveNotNeeded=true;
-var _10=dojox.rpc.Rest._index;
-var _11=function(_12){
-var _13;
-_e.push(_12);
-_12.__checked=1;
-for(var i in _12){
-var _15=_12[i];
-if(_15==_d){
-if(_12!=_10){
-if(_12 instanceof Array){
-(_13=_13||[]).push(i);
-}else{
-(dojox.data._getStoreForItem(_12)||_f).unsetAttribute(_12,i);
-}
-}
-}else{
-if((typeof _15=="object")&&_15){
-if(!_15.__checked){
-_11(_15);
-}
-if(typeof _15.__checked=="object"&&_12!=_10){
-(dojox.data._getStoreForItem(_12)||_f).setValue(_12,i,_15.__checked);
-}
-}
-}
-}
-if(_13){
-i=_13.length;
-_12=_12.__checked=_12.concat();
-while(i--){
-_12.splice(_13[i],1);
-}
-return _12;
-}
-return null;
-};
-_11(_10);
-dojox.rpc.JsonRest._saveNotNeeded=false;
-var i=0;
-while(_e[i]){
-delete _e[i++].__checked;
-}
-}
-dojox.rpc.JsonRest.deleteObject(_d);
-_f.onDelete(_d);
-},changing:function(_17,_18){
-dojox.rpc.JsonRest.changing(_17,_18);
-},setValue:function(_19,_1a,_1b){
-var old=_19[_1a];
-var _1d=_19.__id?dojox.data._getStoreForItem(_19):this;
-if(dojox.json.schema&&_1d.schema&&_1d.schema.properties){
-dojox.json.schema.mustBeValid(dojox.json.schema.checkPropertyChange(_1b,_1d.schema.properties[_1a]));
-}
-if(_1a==_1d.idAttribute){
-throw new Error("Can not change the identity attribute for an item");
-}
-_1d.changing(_19);
-_19[_1a]=_1b;
-_1d.onSet(_19,_1a,old,_1b);
-},setValues:function(_1e,_1f,_20){
-if(!dojo.isArray(_20)){
-throw new Error("setValues expects to be passed an Array object as its value");
-}
-this.setValue(_1e,_1f,_20);
-},unsetAttribute:function(_21,_22){
-this.changing(_21);
-var old=_21[_22];
-delete _21[_22];
-this.onSet(_21,_22,old,undefined);
-},save:function(_24){
-if(!(_24&&_24.global)){
-(_24=_24||{}).service=this.service;
-}
-var _25=dojox.rpc.JsonRest.commit(_24);
-this.serverVersion=this._updates&&this._updates.length;
-return _25;
-},revert:function(_26){
-var _27=dojox.rpc.JsonRest.getDirtyObjects().concat([]);
-while(_27.length>0){
-var d=_27.pop();
-var _29=dojox.data._getStoreForItem(d.object||d.old);
-if(!d.object){
-_29.onNew(d.old);
-}else{
-if(!d.old){
-_29.onDelete(d.object);
-}else{
-for(var i in d.object){
-if(d.object[i]!=d.old[i]){
-_29.onSet(d.object,i,d.object[i],d.old[i]);
-}
-}
-}
-}
-}
-dojox.rpc.JsonRest.revert(_26&&_26.global&&this.service);
-},isDirty:function(_2b){
-return dojox.rpc.JsonRest.isDirty(_2b);
-},isItem:function(_2c,_2d){
-return _2c&&_2c.__id&&(_2d||this.service==dojox.rpc.JsonRest.getServiceAndId(_2c.__id).service);
-},_doQuery:function(_2e){
-var _2f=typeof _2e.queryStr=="string"?_2e.queryStr:_2e.query;
-return dojox.rpc.JsonRest.query(this.service,_2f,_2e);
-},_processResults:function(_30,_31){
-var _32=_30.length;
-return {totalCount:_31.fullLength||(_31.request.count==_32?(_31.request.start||0)+_32*2:_32),items:_30};
-},getConstructor:function(){
-return this._constructor;
-},getIdentity:function(_33){
-var id=_33.__clientId||_33.__id;
-if(!id){
-return id;
-}
-var _35=this.service.servicePath;
-return id.substring(0,_35.length)!=_35?id:id.substring(_35.length);
-},fetchItemByIdentity:function(_36){
-var id=_36.identity;
-var _38=this;
-if(id.match(/^(\w*:)?\//)){
-var _39=dojox.rpc.JsonRest.getServiceAndId(id);
-_38=_39.service._store;
-_36.identity=_39.id;
-}
-_36._prefix=_38.service.servicePath;
-return _38.inherited(arguments);
-},onSet:function(){
-},onNew:function(){
-},onDelete:function(){
-},getFeatures:function(){
-var _3a=this.inherited(arguments);
-_3a["dojo.data.api.Write"]=true;
-_3a["dojo.data.api.Notification"]=true;
-return _3a;
-}});
-dojox.data._getStoreForItem=function(_3b){
-if(_3b.__id){
-var _3c=_3b.__id.match(/.*\//)[0];
-var _3d=dojox.rpc.JsonRest.services[_3c];
-return _3d?_3d._store:new dojox.data.JsonRestStore({target:_3c});
-}
-return null;
-};
-dojox.json.ref._useRefs=true;
-}

http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/KeyValueStore.js
----------------------------------------------------------------------
diff --git a/components/camel-web/src/main/webapp/js/dojox/data/KeyValueStore.js b/components/camel-web/src/main/webapp/js/dojox/data/KeyValueStore.js
deleted file mode 100644
index dec80ab..0000000
--- a/components/camel-web/src/main/webapp/js/dojox/data/KeyValueStore.js
+++ /dev/null
@@ -1,222 +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.KeyValueStore"]){
-dojo._hasResource["dojox.data.KeyValueStore"]=true;
-dojo.provide("dojox.data.KeyValueStore");
-dojo.require("dojo.data.util.filter");
-dojo.require("dojo.data.util.simpleFetch");
-dojo.declare("dojox.data.KeyValueStore",null,{constructor:function(_1){
-if(_1.url){
-this.url=_1.url;
-}
-this._keyValueString=_1.data;
-this._keyValueVar=_1.dataVar;
-this._keyAttribute="key";
-this._valueAttribute="value";
-this._storeProp="_keyValueStore";
-this._features={"dojo.data.api.Read":true,"dojo.data.api.Identity":true};
-this._loadInProgress=false;
-this._queuedFetches=[];
-},url:"",data:"",_assertIsItem:function(_2){
-if(!this.isItem(_2)){
-throw new Error("dojox.data.KeyValueStore: a function was passed an item argument that was not an item");
-}
-},_assertIsAttribute:function(_3,_4){
-if(!dojo.isString(_4)){
-throw new Error("dojox.data.KeyValueStore: a function was passed an attribute argument that was not an attribute object nor an attribute name string");
-}
-},getValue:function(_5,_6,_7){
-this._assertIsItem(_5);
-this._assertIsAttribute(_5,_6);
-var _8;
-if(_6==this._keyAttribute){
-_8=_5[this._keyAttribute];
-}else{
-_8=_5[this._valueAttribute];
-}
-if(_8===undefined){
-_8=_7;
-}
-return _8;
-},getValues:function(_9,_a){
-var _b=this.getValue(_9,_a);
-return (_b?[_b]:[]);
-},getAttributes:function(_c){
-return [this._keyAttribute,this._valueAttribute,_c[this._keyAttribute]];
-},hasAttribute:function(_d,_e){
-this._assertIsItem(_d);
-this._assertIsAttribute(_d,_e);
-return (_e==this._keyAttribute||_e==this._valueAttribute||_e==_d[this._keyAttribute]);
-},containsValue:function(_f,_10,_11){
-var _12=undefined;
-if(typeof _11==="string"){
-_12=dojo.data.util.filter.patternToRegExp(_11,false);
-}
-return this._containsValue(_f,_10,_11,_12);
-},_containsValue:function(_13,_14,_15,_16){
-var _17=this.getValues(_13,_14);
-for(var i=0;i<_17.length;++i){
-var _19=_17[i];
-if(typeof _19==="string"&&_16){
-return (_19.match(_16)!==null);
-}else{
-if(_15===_19){
-return true;
-}
-}
-}
-return false;
-},isItem:function(_1a){
-if(_1a&&_1a[this._storeProp]===this){
-return true;
-}
-return false;
-},isItemLoaded:function(_1b){
-return this.isItem(_1b);
-},loadItem:function(_1c){
-},getFeatures:function(){
-return this._features;
-},close:function(_1d){
-},getLabel:function(_1e){
-return _1e[this._keyAttribute];
-},getLabelAttributes:function(_1f){
-return [this._keyAttribute];
-},_fetchItems:function(_20,_21,_22){
-var _23=this;
-var _24=function(_25,_26){
-var _27=null;
-if(_25.query){
-_27=[];
-var _28=_25.queryOptions?_25.queryOptions.ignoreCase:false;
-var _29={};
-for(var key in _25.query){
-var _2b=_25.query[key];
-if(typeof _2b==="string"){
-_29[key]=dojo.data.util.filter.patternToRegExp(_2b,_28);
-}
-}
-for(var i=0;i<_26.length;++i){
-var _2d=true;
-var _2e=_26[i];
-for(var key in _25.query){
-var _2b=_25.query[key];
-if(!_23._containsValue(_2e,key,_2b,_29[key])){
-_2d=false;
-}
-}
-if(_2d){
-_27.push(_2e);
-}
-}
-}else{
-if(_25.identity){
-_27=[];
-var _2f;
-for(var key in _26){
-_2f=_26[key];
-if(_2f[_23._keyAttribute]==_25.identity){
-_27.push(_2f);
-break;
-}
-}
-}else{
-if(_26.length>0){
-_27=_26.slice(0,_26.length);
-}
-}
-}
-_21(_27,_25);
-};
-if(this._loadFinished){
-_24(_20,this._arrayOfAllItems);
-}else{
-if(this.url!==""){
-if(this._loadInProgress){
-this._queuedFetches.push({args:_20,filter:_24});
-}else{
-this._loadInProgress=true;
-var _30={url:_23.url,handleAs:"json-comment-filtered"};
-var _31=dojo.xhrGet(_30);
-_31.addCallback(function(_32){
-_23._processData(_32);
-_24(_20,_23._arrayOfAllItems);
-_23._handleQueuedFetches();
-});
-_31.addErrback(function(_33){
-_23._loadInProgress=false;
-throw _33;
-});
-}
-}else{
-if(this._keyValueString){
-this._processData(eval(this._keyValueString));
-this._keyValueString=null;
-_24(_20,this._arrayOfAllItems);
-}else{
-if(this._keyValueVar){
-this._processData(this._keyValueVar);
-this._keyValueVar=null;
-_24(_20,this._arrayOfAllItems);
-}else{
-throw new Error("dojox.data.KeyValueStore: No source data was provided as either URL, String, or Javascript variable data input.");
-}
-}
-}
-}
-},_handleQueuedFetches:function(){
-if(this._queuedFetches.length>0){
-for(var i=0;i<this._queuedFetches.length;i++){
-var _35=this._queuedFetches[i];
-var _36=_35.filter;
-var _37=_35.args;
-if(_36){
-_36(_37,this._arrayOfAllItems);
-}else{
-this.fetchItemByIdentity(_35.args);
-}
-}
-this._queuedFetches=[];
-}
-},_processData:function(_38){
-this._arrayOfAllItems=[];
-for(var i=0;i<_38.length;i++){
-this._arrayOfAllItems.push(this._createItem(_38[i]));
-}
-this._loadFinished=true;
-this._loadInProgress=false;
-},_createItem:function(_3a){
-var _3b={};
-_3b[this._storeProp]=this;
-for(var i in _3a){
-_3b[this._keyAttribute]=i;
-_3b[this._valueAttribute]=_3a[i];
-break;
-}
-return _3b;
-},getIdentity:function(_3d){
-if(this.isItem(_3d)){
-return _3d[this._keyAttribute];
-}
-return null;
-},getIdentityAttributes:function(_3e){
-return [this._keyAttribute];
-},fetchItemByIdentity:function(_3f){
-_3f.oldOnItem=_3f.onItem;
-_3f.onItem=null;
-_3f.onComplete=this._finishFetchItemByIdentity;
-this.fetch(_3f);
-},_finishFetchItemByIdentity:function(_40,_41){
-var _42=_41.scope||dojo.global;
-if(_40.length){
-_41.oldOnItem.call(_42,_40[0]);
-}else{
-_41.oldOnItem.call(_42,null);
-}
-}});
-dojo.extend(dojox.data.KeyValueStore,dojo.data.util.simpleFetch);
-}