Ext.define("DefaultTestConfiguration.controller.IntermediateDefaultController",{extend:"Ext.app.Controller",refs:[{selector:"egvcconfig",ref:"egvcconfig"},{selector:"eghmcconfig",ref:"eghmcconfig"},{selector:"vmgusers",ref:"vmgusers"},{selector:"egruntimepattern",ref:"egruntimepattern"},{selector:"viewpolicy",ref:"viewpolicy"},{selector:"egpolicycreation",ref:"egpolicycreation"},{selector:"egxmsconfig",ref:"egxmsconfig"}],init:function(){testInterViews=this;
this.control({});},egnutconfiginter:function(b){var d=Ext.getCmp(b).getValue();if(d=="Other"){Ext.create("DefaultTestConfiguration.view.EgNutConfig").show();Ext.Ajax.request({url:"DefaultTestConfiguration/data/defaulttesthelpJson.jsp?mode=egvcconfig",method:"POST",async:false});}else{if(d=="None"){Ext.getCmp("Prism_user").setValue("$unconfigured");
Ext.getCmp("Prism_password").setValue("$unconfigured");Ext.getCmp("Prism_passwordconfirmpassword").setValue("$unconfigured");Ext.getCmp("webPort").setValue("9440");Ext.getCmp("Prism_password").backupValue="$unconfigured";Ext.getCmp("Prism_passwordconfirmpassword").backupValue="$unconfigured";}else{var c=publicJson["virtualComboObj"][d];
var e=c.split("#");Ext.getCmp("Prism_user").setValue(e[1]);var a=e[2];if(!Ext.isEmpty(a)&&a.indexOf("~HASH~")!=-1){a=a.replace(/~HASH~/g,"#");}Ext.getCmp("Prism_password").setValue(a);Ext.getCmp("Prism_passwordconfirmpassword").setValue(a);Ext.getCmp("webPort").setValue(e[4]);Ext.getCmp("Prism_password").backupValue=a;
Ext.getCmp("Prism_passwordconfirmpassword").backupValue=a;}}},clearNutInter:function(a){Ext.getCmp("vCenterIP").setValue("");Ext.getCmp("UsrVc").setValue("");Ext.getCmp("PwdVc").setValue("");Ext.getCmp("ConfPwdVc").setValue("");Ext.getCmp("PwdVc").backupValue="";Ext.getCmp("ConfPwdVc").backupValue="";
Ext.getCmp("SslVc").reset();Ext.getCmp("WebPort").reset();},updateNutInter:function(c){var a=this;var j=a.validateNutInter();if(j){var g=Ext.getCmp("vCenterIP").getValue();var m=Ext.getCmp("UsrVc").getValue();var l=Ext.getCmp("PwdVc").getValue();var h=Ext.getCmp("SslVc").getValue();var d=Ext.getCmp("WebPort").getValue();
var f=false;if(h=="true"){f=true;}var n=Ext.getCmp("DiscVc").getValue();var e="&uname="+encodeURIComponent(m)+"&pass="+encodeURIComponent(l)+"&ssl="+f+"&isDiscovery="+n+"&webport="+d+"&from=nutAdd";Ext.Ajax.request({url:"DefaultTestConfiguration/data/EgchangeportspJson.jsp?"+e,method:"POST",async:false,success:function(o){Ext.getCmp("Prism_IP").setValue(g);
Ext.getCmp("Prism_user").setValue(m);Ext.getCmp("Prism_password").setValue(l);Ext.getCmp("Prism_passwordconfirmpassword").setValue(l);Ext.getCmp("Prism_password").backupValue=l;Ext.getCmp("Prism_passwordconfirmpassword").backupValue=l;Ext.getCmp("webPort").setValue(d);if(f){Ext.getCmp("ssl1").setValue(true);
}else{Ext.getCmp("ssl2").setValue(true);}}});Ext.getCmp("nutconfig").destroy();}var k=Ext.getCmp("componentType").getValue();var b=publicJson["testName"];Ext.Ajax.request({url:"DefaultTestConfiguration/data/EgConfigureDefaultTestParamsJson.jsp?cType_HelpPage="+encodeURIComponent(k)+"&componentType="+encodeURIComponent(k)+"&tName_HelpPage="+b+"&testName="+b,method:"POST"});
},validateNutInter:function(b){var f=this;var h="abcdefghijklmnoprstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`~!@#$%^&*()-_+=[]{}|\\:;\"'<>.?/";var c=Ext.getCmp("vCenterIP").getValue();var k=Ext.getCmp("WebPort").getValue();var j=Ext.getCmp("UsrVc").getValue();var g=Ext.getCmp("PwdVc").getValue();var d=Ext.getCmp("ConfPwdVc").getValue();
for(var a=0;a<ex_nutStr.length;a++){var e=ex_nutStr[a].trim();if(c==e){Ext.Msg.show({title:alertNutTitle,msg:existNut,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("vCenterIP").focus(true);}});f.clearNutInter();return;}}if(!checkblank(c)||c=="None"||c=="none"||c=="other"||c=="Other"){Ext.Msg.show({title:alertNutTitle,msg:enterNut,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("vCenterIP").focus(true);
}});return;}if(!validateIpOrHName(c)){Ext.getCmp("vCenterIP").focus(true);return;}if(!checkblank(j)){Ext.Msg.show({title:alertNutTitle,msg:enterUsrId,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("UsrVc").focus(true);}});return;}else{if(!checkspecialExt(j,"*+=|:;\"'<>,/[]?")){Ext.Msg.show({title:alertNutTitle,msg:_checkspecial,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("UsrVc").focus(true,true);
}});return;}else{if(!checkHyphenText(j,j)){Ext.getCmp("UsrVc").focus();return;}else{if(trim(j)==""){Ext.getCmp("UsrVc").focus();return;}else{if(j.indexOf("..")>-1){Ext.Msg.show({title:alertNutTitle,msg:_checkdots,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("UsrVc").focus(true);
}});return;}else{if(j.indexOf("  ")>-1){Ext.Msg.show({title:alertNutTitle,msg:_checkSpaces,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("UsrVc").focus(true);}});return;}}}}}}if(g==""){Ext.Msg.show({title:alertNutTitle,msg:enterPwd,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("PwdVc").focus(true);
}});sub=false;return;}else{if(!checkForPassValidity(g)){Ext.getCmp("PwdVc").focus();sub=false;return;}else{if(d==""){Ext.Msg.show({title:alertNutTitle,msg:enterCnfPwd,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("ConfPwdVc").focus(true);}});sub=false;return;}else{if(g!=d){Ext.Msg.show({title:alertNutTitle,msg:matchPwd,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("ConfPwdVc").focus(true);
}});sub=false;return;}else{if(!checkblank(k)){Ext.Msg.show({title:alertNutTitle,msg:PortBlank,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("WebPort").focus(true);}});sub=false;return;}else{if(!checkspace(k)){Ext.getCmp("WebPort").focus();sub=false;return;}else{if(!checkcomma(k)){Ext.Msg.show({title:alertNutTitle,msg:CommaPrt,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("WebPort").focus(true);
}});sub=false;return;}else{if(((!checknumber("+",k)&&k.indexOf(",")==-1)||k==0||k.indexOf(".")>-1)&&(k=="NULL")||k.indexOf(",")>-1){Ext.Msg.show({title:alertNutTitle,msg:validPrt,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("WebPort").focus(true);}});sub=false;return;}else{if(!checkspecialnomess(k,h)&&(k!="NULL")){Ext.Msg.show({title:alertNutTitle,msg:specialCharacterPrt,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("WebPort").focus(true);
}});sub=false;return;}else{return true;}}}}}}}}}},callNutInterDestroy:function(){Ext.getCmp("Prism_IP").setValue("None");Ext.getCmp("Prism_user").setValue("$unconfigured");Ext.getCmp("Prism_password").setValue("$unconfigured");Ext.getCmp("Prism_passwordconfirmpassword").setValue("$unconfigured");Ext.getCmp("Prism_password").backupValue="$unconfigured";
Ext.getCmp("Prism_passwordconfirmpassword").backupValue="$unconfigured";Ext.getCmp("ssl1").setValue(true);Ext.getCmp("webPort").setValue("9440");},egxmsIPsconfig:function(b){var d=Ext.getCmp(b).getValue();if(d=="Other"){Ext.create("DefaultTestConfiguration.view.EgXMSConfig").show();Ext.Ajax.request({url:"DefaultTestConfiguration/data/defaulttesthelpJson.jsp?mode=egxmsipconfig",method:"POST",async:false});
}else{if(d=="None"){Ext.getCmp("XtremIO_user").setValue("$unconfigured");Ext.getCmp("XtremIO_password").setValue("$unconfigured");Ext.getCmp("XtremIO_passwordconfirmpassword").setValue("$unconfigured");Ext.getCmp("XtremIO_password").backupValue="$unconfigured";Ext.getCmp("XtremIO_passwordconfirmpassword").backupValue="$unconfigured";
Ext.getCmp("ssl2").setValue(true);}else{var c=publicJson["xmsIPComboObj"][d];var e=c.split("#");if(!Ext.isEmpty(e[0])&&(e[0].toLowerCase()=="false"||e[0].toLowerCase()=="no")){Ext.getCmp("ssl1").setValue(true);}else{Ext.getCmp("ssl2").setValue(true);}Ext.getCmp("XtremIO_user").setValue(e[1]);var a=e[2];
if(!Ext.isEmpty(a)&&a.indexOf("~HASH~")!=-1){a=a.replace(/~HASH~/g,"#");}Ext.getCmp("XtremIO_password").setValue(a);Ext.getCmp("XtremIO_passwordconfirmpassword").setValue(a);Ext.getCmp("XtremIO_password").backupValue=a;Ext.getCmp("XtremIO_passwordconfirmpassword").backupValue=a;}}},clearXMSIPs:function(a){Ext.getCmp("xmsIP").setValue("");
Ext.getCmp("UsrXMSIP").setValue("");Ext.getCmp("PwdXMSIP").setValue("");Ext.getCmp("ConfPwdXMSIP").setValue("");Ext.getCmp("PwdXMSIP").backupValue="";Ext.getCmp("ConfPwdXMSIP").backupValue="";},updateXMSIPs:function(b){var f=this;var l=f.validateXMSIP();if(l){var h=Ext.getCmp("xmsIP").getValue();var k=Ext.getCmp("UsrXMSIP").getValue();
var j=Ext.getCmp("PwdXMSIP").getValue();var e=Ext.getCmp("SslXMSIP").getValue();var d="";if(e.toLowerCase()=="yes"||e.toLowerCase()=="true"){d="Yes";}else{d="No";}var m=Ext.getCmp("DiscXMSIP").getValue();var c="&ipAdd="+h+"&uname="+encodeURIComponent(k)+"&pass="+encodeURIComponent(j)+"&ssl="+d+"&isDiscovery="+m+"&from=xmsadd";
Ext.Ajax.request({url:"DefaultTestConfiguration/data/EgchangeportspJson.jsp?"+c,method:"POST",async:false,success:function(n){Ext.getCmp("xms_ip").setValue(h);Ext.getCmp("XtremIO_user").setValue(k);Ext.getCmp("XtremIO_password").setValue(j);Ext.getCmp("XtremIO_passwordconfirmpassword").setValue(j);Ext.getCmp("XtremIO_password").backupValue=j;
Ext.getCmp("XtremIO_passwordconfirmpassword").backupValue=j;if(!Ext.isEmpty(e)&&(e.toLowerCase()=="false"||e.toLowerCase()=="no")){Ext.getCmp("ssl1").setValue(true);}else{Ext.getCmp("ssl2").setValue(true);}}});Ext.getCmp("egxmsconfig").destroy();}var g=Ext.getCmp("componentType").getValue();var a=publicJson["testName"];
Ext.Ajax.request({url:"DefaultTestConfiguration/data/EgConfigureDefaultTestParamsJson.jsp?cType_HelpPage="+encodeURIComponent(g)+"&componentType="+encodeURIComponent(g)+"&tName_HelpPage="+a+"&testName="+a,method:"POST"});},validateXMSIP:function(b){var e=this;var h="abcdefghijklmnoprstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`~!@#$%^&*()-_+=[]{}|\\:;\"'<>.?/";
var f=Ext.getCmp("xmsIP").getValue();var j=Ext.getCmp("UsrXMSIP").getValue();var g=Ext.getCmp("PwdXMSIP").getValue();var c=Ext.getCmp("ConfPwdXMSIP").getValue();for(var a=0;a<ex_xmsIPStr.length;a++){var d=ex_xmsIPStr[a].trim();if(f==d){Ext.Msg.show({title:alertXMSTitle,msg:existXMSIP,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("xmsIP").focus(true,true);
}});e.clearVcs();return;}}if(!checkblank(f)||f=="None"||f=="none"||f=="other"||f=="Other"){Ext.Msg.show({title:alertXMSTitle,msg:enterXMSIP,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("xmsIP").focus(true,true);}});return;}if(!validateIpOrHNameExt(alertXMSTitle,Ext.getCmp("xmsIP"))){return;
}if(!checkblank(j)){Ext.Msg.show({title:alertXMSTitle,msg:enterUsrId,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("UsrXMSIP").focus(true,true);}});return;}else{if(!checkspecialExt(j,"@*+=|:;\"'<>,/[]?")){Ext.Msg.show({title:alertXMSTitle,msg:_checkspecial,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("UsrXMSIP").focus(true,true);
}});return;}else{if(!checkHyphenText(j,j)){Ext.getCmp("UsrXMSIP").focus();return;}else{if(trim(j)==""){Ext.getCmp("UsrXMSIP").focus();return;}else{if(j.indexOf("..")>-1){Ext.Msg.show({title:alertXMSTitle,msg:_checkdots,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("UsrXMSIP").focus(true,true);
}});return;}else{if(j.indexOf("  ")>-1){Ext.Msg.show({title:alertXMSTitle,msg:_checkSpaces,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("UsrXMSIP").focus(true,true);}});return;}}}}}}if(g==""){Ext.Msg.show({title:alertXMSTitle,msg:enterPwd,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("PwdXMSIP").focus(true,true);
}});sub=false;return;}else{if(!checkForPassValidity(g)){Ext.getCmp("PwdXMSIP").focus();sub=false;return;}else{if(c==""){Ext.Msg.show({title:alertXMSTitle,msg:enterCnfPwd,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("ConfPwdXMSIP").focus(true,true);}});sub=false;return;}else{if(g!=c){Ext.Msg.show({title:alertXMSTitle,msg:matchPwd,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("ConfPwdXMSIP").focus(true,true);
}});sub=false;return;}else{return true;}}}}},callXMSIPsDestroy:function(){Ext.getCmp("XtremIO_user").setValue("none");Ext.getCmp("XtremIO_password").setValue("none");Ext.getCmp("XtremIO_passwordconfirmpassword").setValue("none");Ext.getCmp("XtremIO_password").backupValue="none";Ext.getCmp("XtremIO_passwordconfirmpassword").backupValue="none";
},egvcsconfig:function(b){var d=Ext.getCmp(b).getValue();if(d=="Other"){Ext.create("DefaultTestConfiguration.view.EgVcConfig").show();Ext.Ajax.request({url:"DefaultTestConfiguration/data/defaulttesthelpJson.jsp?mode=egvcconfig",method:"POST",async:false});}else{if(d=="None"){Ext.getCmp("Esx_user").setValue("$unconfigured");
Ext.getCmp("Esx_password").setValue("$unconfigured");Ext.getCmp("Esx_passwordconfirmpassword").setValue("$unconfigured");Ext.getCmp("Esx_password").backupValue="$unconfigured";Ext.getCmp("Esx_passwordconfirmpassword").backupValue="$unconfigured";Ext.getCmp("webPort").setValue("443");}else{var c=publicJson["virtualComboObj"][d];
var e=c.split("#");Ext.getCmp("Esx_user").setValue(e[1]);var a=e[2];if(!Ext.isEmpty(a)&&a.indexOf("~HASH~")!=-1){a=a.replace(/~HASH~/g,"#");}Ext.getCmp("Esx_password").setValue(a);Ext.getCmp("Esx_passwordconfirmpassword").setValue(a);Ext.getCmp("Esx_password").backupValue=a;Ext.getCmp("Esx_passwordconfirmpassword").backupValue=a;
Ext.getCmp("webPort").setValue(e[4]);}}},combosslVcs:function(){var a=Ext.getCmp("SslVc").getValue();if(a=="True"){Ext.getCmp("WebPort").setValue(443);}else{Ext.getCmp("WebPort").setValue(80);}},clearVcs:function(a){Ext.getCmp("vCenterIP").setValue("");Ext.getCmp("UsrVc").setValue("");Ext.getCmp("PwdVc").setValue("");
Ext.getCmp("ConfPwdVc").setValue("");Ext.getCmp("PwdVc").backupValue="";Ext.getCmp("ConfPwdVc").backupValue="";},updateVcs:function(c){var a=this;var j=a.validateVc();if(j){var g=Ext.getCmp("vCenterIP").getValue();var m=Ext.getCmp("UsrVc").getValue();var l=Ext.getCmp("PwdVc").getValue();var h=Ext.getCmp("SslVc").getValue();
var d=Ext.getCmp("WebPort").getValue();var f="";if(h=="Yes"){f="True";}else{f="False";}var n=Ext.getCmp("DiscVc").getValue();var e="&ipAdd="+g+"&uname="+encodeURIComponent(m)+"&pass="+encodeURIComponent(l)+"&ssl="+f+"&isDiscovery="+n+"&webport="+d+"&from=add";Ext.Ajax.request({url:"DefaultTestConfiguration/data/EgchangeportspJson.jsp?"+e,method:"POST",async:false,success:function(o){Ext.getCmp("virtual_center").setValue(g);
Ext.getCmp("Esx_user").setValue(m);Ext.getCmp("Esx_password").setValue(l);Ext.getCmp("Esx_passwordconfirmpassword").setValue(l);Ext.getCmp("Esx_password").backupValue=l;Ext.getCmp("Esx_passwordconfirmpassword").backupValue=l;}});Ext.getCmp("vcconfig").destroy();}var k=Ext.getCmp("componentType").getValue();
var b=publicJson["testName"];Ext.Ajax.request({url:"DefaultTestConfiguration/data/EgConfigureDefaultTestParamsJson.jsp?cType_HelpPage="+k+"&componentType="+k+"&tName_HelpPage="+b+"&testName="+b,method:"POST"});},validateVc:function(b){var f=this;var h="abcdefghijklmnoprstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`~!@#$%^&*()-_+=[]{}|\\:;\"'<>.?/";
var c=Ext.getCmp("vCenterIP").getValue();var k=Ext.getCmp("WebPort").getValue();var j=Ext.getCmp("UsrVc").getValue();var g=Ext.getCmp("PwdVc").getValue();var d=Ext.getCmp("ConfPwdVc").getValue();for(var a=0;a<ex_vcStr.length;a++){var e=ex_vcStr[a].trim();if(c==e){Ext.Msg.show({title:vcPageName,msg:existVc,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("vCenterIP").focus(true,true);
}});f.clearVcs();return;}}if(!checkblank(c)||c=="None"||c=="none"||c=="other"||c=="Other"){Ext.Msg.show({title:vcPageName,msg:enterVc,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("vCenterIP").focus(true,true);}});return;}if(!validateIpOrHNameExt(vcPageName,Ext.getCmp("vCenterIP"))){return;
}if(!checkblank(j)){Ext.Msg.show({title:vcPageName,msg:enterUsrId,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("UsrVc").focus(true,true);}});return;}else{if(!checkspecialExt(j,"*+=|:;\"'<>,/[]?")){Ext.Msg.show({title:vcPageName,msg:_checkspecial,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("UsrVc").focus(true,true);
}});return;}else{if(!checkHyphenText(j,j)){Ext.getCmp("UsrVc").focus();return;}else{if(trim(j)==""){Ext.getCmp("UsrVc").focus();return;}else{if(j.indexOf("..")>-1){Ext.Msg.show({title:vcPageName,msg:_checkdots,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("UsrVc").focus(true,true);
}});return;}else{if(j.indexOf("  ")>-1){Ext.Msg.show({title:vcPageName,msg:_checkSpaces,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("UsrVc").focus(true,true);}});return;}}}}}}if(g==""){Ext.Msg.show({title:vcPageName,msg:enterPwd,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("PwdVc").focus(true,true);
}});sub=false;return;}else{if(!checkForPassValidity(g)){Ext.getCmp("PwdVc").focus();sub=false;return;}else{if(d==""){Ext.Msg.show({title:vcPageName,msg:enterCnfPwd,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("ConfPwdVc").focus(true,true);}});sub=false;return;}else{if(g!=d){Ext.Msg.show({title:vcPageName,msg:matchPwd,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("ConfPwdVc").focus(true,true);
}});sub=false;return;}else{if(!checkblank(k)){Ext.Msg.show({title:vcPageName,msg:PortBlank,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("WebPort").focus(true,true);}});sub=false;return;}else{if(!checkspace(k)){Ext.getCmp("WebPort").focus();sub=false;return;}else{if(!checkcomma(k)){Ext.Msg.show({title:vcPageName,msg:CommaPrt,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("WebPort").focus(true,true);
}});sub=false;return;}else{if(((!checknumber("+",k)&&k.indexOf(",")==-1)||k==0||k.indexOf(".")>-1)&&(k=="NULL")||k.indexOf(",")>-1){Ext.Msg.show({title:vcPageName,msg:validPrt,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("WebPort").focus(true,true);}});sub=false;return;}else{if(!checkspecialnomess(k,h)&&(k!="NULL")){Ext.Msg.show({title:vcPageName,msg:specialCharacterPrt,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("WebPort").focus(true,true);
}});sub=false;return;}else{return true;}}}}}}}}}},callVcsDestroy:function(){Ext.getCmp("Esx_user").setValue("none");Ext.getCmp("Esx_password").setValue("none");Ext.getCmp("Esx_passwordconfirmpassword").setValue("none");Ext.getCmp("Esx_password").backupValue="none";Ext.getCmp("Esx_passwordconfirmpassword").backupValue="none";
},eghmcsconfig:function(c){var d=Ext.getCmp(c).getValue();if(d=="Other"){Ext.create("DefaultTestConfiguration.view.EgHMCConfig").show();Ext.Ajax.request({url:"DefaultTestConfiguration/data/defaulttesthelpJson.jsp?mode=eghmcconfig",method:"POST",async:false});}else{if(d=="none"){Ext.getCmp("management_user").setValue("$unconfigured");
Ext.getCmp("management_password").setValue("$unconfigured");Ext.getCmp("management_passwordconfirmpassword").setValue("$unconfigured");Ext.getCmp("management_password").backupValue="$unconfigured";Ext.getCmp("management_passwordconfirmpassword").backupValue="$unconfigured";}else{var e=publicJson["hmcComboObj"][d];
var b=e.split("#");Ext.getCmp("management_user").setValue(b[1]);var a=b[2];if(!Ext.isEmpty(a)&&a.indexOf("~HASH~")!=-1){a=a.replace(/~HASH~/g,"#");}Ext.getCmp("management_password").setValue(a);Ext.getCmp("management_passwordconfirmpassword").setValue(a);Ext.getCmp("management_password").backupValue=a;
Ext.getCmp("management_passwordconfirmpassword").backupValue=a;}}},clearHmcs:function(a){Ext.getCmp("hmcIP").setValue("");Ext.getCmp("hmcHostName").setValue("");Ext.getCmp("UsrHmc").setValue("");Ext.getCmp("PwdHmc").setValue("");Ext.getCmp("ConfPwdHmc").setValue("");Ext.getCmp("PwdHmc").backupValue="";
Ext.getCmp("ConfPwdHmc").backupValue="";},updateHmcs:function(b){var g=this;var h=g.validateHmc();if(h){var k=Ext.getCmp("hmcIP").getValue();var f=Ext.getCmp("hmcHostName").getValue();var m=Ext.getCmp("UsrHmc").getValue();var l=Ext.getCmp("PwdHmc").getValue();var e=Ext.getCmp("SslHmc").getValue();var d="";
if(e=="Yes"){d="True";}else{d="False";}var n=Ext.getCmp("DiscHmc").getValue();var c="&uname="+encodeURIComponent(m)+"&pass="+encodeURIComponent(l)+"&ssl="+d+"&isDiscovery="+n+"&ipAdd="+k+"&from=hmcAdd&hName="+f;Ext.Ajax.request({url:"DefaultTestConfiguration/data/EgchangeportspJson.jsp?"+c,method:"POST",async:false,success:function(o){Ext.getCmp("management_server").setValue(k);
Ext.getCmp("management_user").setValue(m);Ext.getCmp("management_password").setValue(l);Ext.getCmp("management_passwordconfirmpassword").setValue(l);Ext.getCmp("management_password").backupValue=l;Ext.getCmp("management_passwordconfirmpassword").backupValue=l;}});Ext.getCmp("hmcconfig").destroy();}var j=Ext.getCmp("componentType").getValue();
var a=publicJson["testName"];Ext.Ajax.request({url:"DefaultTestConfiguration/data/EgConfigureDefaultTestParamsJson.jsp?cType_HelpPage="+j+"&componentType="+j+"&tName_HelpPage="+a+"&testName="+a,method:"POST"});},validateHmc:function(c){var e=this;var k="abcdefghijklmnoprstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`~!@#$%^&*()-_+=[]{}|\\:;\"'<>.?/";
var h=Ext.getCmp("hmcIP").getValue().trim();var b=Ext.getCmp("hmcHostName").getValue().trim();var f=Ext.getCmp("UsrHmc").getValue().trim();var j=Ext.getCmp("PwdHmc").getValue();var g=Ext.getCmp("ConfPwdHmc").getValue();for(var a=0;a<ex_hmcStr.length;a++){var d=ex_hmcStr[a].trim();if(h==d){Ext.Msg.show({title:hmcPageName,msg:existHmc,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){e.clearHmcs();
Ext.getCmp("hmcIP").focus(true);}});return;}}if(h==""){Ext.Msg.show({title:hmcPageName,msg:enterHmcIP,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("hmcIP").focus(true);}});return;}else{if(!validateIp(h)){Ext.getCmp("hmcIP").focus();return;}else{if(b==""){Ext.Msg.show({title:hmcPageName,msg:enterHmcHstName,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("hmcHostName").focus(true);
}});return;}else{if(!validateIpOrHName(b)){Ext.getCmp("hmcHostName").focus();return;}else{if(f==""){Ext.Msg.show({title:hmcPageName,msg:enterHmcUsr,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("UsrHmc").focus(true);}});return;}else{if(!checkspecial(f,"@*+=|:;\"'<>,/[]?")){Ext.getCmp("UsrHmc").focus();
return;}else{if(f.indexOf("..")>-1){Ext.Msg.show({title:hmcPageName,msg:_checkdots,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("UsrHmc").focus(true);}});return;}else{if(f.indexOf("  ")>-1){Ext.Msg.show({title:hmcPageName,msg:_checkSpaces,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("UsrHmc").focus(true);
}});return;}else{if(j==""){Ext.Msg.show({title:hmcPageName,msg:enterPwd,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("PwdHmc").focus(true);}});sub=false;return;}else{if(!checkForPassValidity(j)){Ext.getCmp("PwdHmc").focus();sub=false;return;}else{if(g==""){Ext.Msg.show({title:hmcPageName,msg:enterCnfPwd,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("ConfPwdHmc").focus(true);
}});sub=false;return;}else{if(j!=g){Ext.Msg.show({title:hmcPageName,msg:matchPwd,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("ConfPwdHmc").focus(true);}});sub=false;return;}else{return true;}}}}}}}}}}}}},callHmcsDestroy:function(){Ext.getCmp("management_user").setValue("none");
Ext.getCmp("management_password").setValue("none");Ext.getCmp("management_passwordconfirmpassword").setValue("none");Ext.getCmp("management_password").backupValue="none";Ext.getCmp("management_passwordconfirmpassword").backupValue="none";},egrhevsconfig:function(e){var d=Ext.getCmp(e).getValue();if(d=="Other"){Ext.create("DefaultTestConfiguration.view.EgRhevConfig").show();
Ext.Ajax.request({url:"DefaultTestConfiguration/data/defaulttesthelpJson.jsp?mode=egrhevsconfig",method:"POST",async:false});}else{if(d=="None"){Ext.getCmp("Rhel_mgr_user").setValue("$unconfigured");Ext.getCmp("Rhel_mgr_password").setValue("$unconfigured");Ext.getCmp("Rhel_mgr_passwordconfirmpassword").setValue("$unconfigured");
Ext.getCmp("Rhel_mgr_password").backupValue="$unconfigured";Ext.getCmp("Rhel_mgr_passwordconfirmpassword").backupValue="$unconfigured";Ext.getCmp("Rhel_mgr_domain").setValue("internal");Ext.getCmp("Rhel_mgr_port").setValue("8443");if(Ext.getCmp("Hypervisor_user")!=null||Ext.getCmp("Hypervisor_user")!=undefined){Ext.getCmp("Hypervisor_user").setValue("$unconfigured");
Ext.getCmp("Hypervisor_password").setValue("$unconfigured");Ext.getCmp("Hypervisor_passwordconfirmpassword").setValue("$unconfigured");Ext.getCmp("Hypervisor_password").backupValue="$unconfigured";Ext.getCmp("Hypervisor_passwordconfirmpassword").backupValue="$unconfigured";}}else{var c=publicJson["rhevComboObj"][d];
var b=c.split("#");Ext.getCmp("Rhel_mgr_user").setValue(b[1]);var a=b[2];if(!Ext.isEmpty(a)&&a.indexOf("~HASH~")!=-1){a=a.replace(/~HASH~/g,"#");}Ext.getCmp("Rhel_mgr_password").setValue(a);Ext.getCmp("Rhel_mgr_passwordconfirmpassword").setValue(a);Ext.getCmp("Rhel_mgr_password").backupValue=a;Ext.getCmp("Rhel_mgr_passwordconfirmpassword").backupValue=a;
Ext.getCmp("Rhel_mgr_port").setValue(b[4]);Ext.getCmp("Rhel_mgr_domain").setValue(b[5]);}}},combosslrhevs:function(){var a=Ext.getCmp("SslRhev").getValue();if(a=="True"){Ext.getCmp("MgrPort").setValue(8443);}else{Ext.getCmp("MgrPort").setValue(8080);}},clearRhevs:function(a){Ext.getCmp("RhevMgrId").setValue("");
Ext.getCmp("UsrRhev").setValue("");Ext.getCmp("PwdRhev").setValue("");Ext.getCmp("ConfPwdRhev").setValue("");Ext.getCmp("PwdRhev").backupValue="";Ext.getCmp("ConfPwdRhev").backupValue="";Ext.getCmp("DomainRhev").setValue("");},updateRhevs:function(c){var d=this;var a=d.validateRhev();if(a){var k=Ext.getCmp("RhevMgrId").getValue();
var m=Ext.getCmp("UsrRhev").getValue();var l=Ext.getCmp("PwdRhev").getValue();var g=Ext.getCmp("SslRhev").getValue();var f="";if(g=="Yes"){f="True";}else{f="False";}var n=Ext.getCmp("DiscRhev").getValue();var h=Ext.getCmp("DomainRhev").getValue();var e="ipAdd="+k+"&uname="+m+"&pass="+l+"&ssl="+f+"&isDiscovery="+n+"&domain="+h+"&from=rhevadd";
Ext.Ajax.request({url:"DefaultTestConfiguration/data/EgRHEVdiscoverypJson.jsp?"+e,method:"POST",async:false,success:function(o){Ext.getCmp("Rhel_mgr_host").setValue(k);Ext.getCmp("Rhel_mgr_user").setValue(m);Ext.getCmp("Rhel_mgr_password").setValue(l);Ext.getCmp("Rhel_mgr_passwordconfirmpassword").setValue(l);
Ext.getCmp("Rhel_mgr_password").backupValue=l;Ext.getCmp("Rhel_mgr_passwordconfirmpassword").backupValue=l;Ext.getCmp("Rhel_mgr_domain").setValue(h);}});Ext.getCmp("rhevconfig").destroy();}var j=Ext.getCmp("componentType").getValue();var b=publicJson["testName"];Ext.Ajax.request({url:"DefaultTestConfiguration/data/EgConfigureDefaultTestParamsJson.jsp?cType_HelpPage="+j+"&componentType="+j+"&tName_HelpPage="+b+"&testName="+b,method:"POST"});
},validateRhev:function(c){var g=this;var j="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`~!@#$%^&*()-_+=[]{}|\\:;\"'<>.?/";var b=Ext.getCmp("MgrPort").getValue();var k=Ext.getCmp("UsrRhev").getValue();var h=Ext.getCmp("PwdRhev").getValue();var e=Ext.getCmp("ConfPwdRhev").getValue();var d=Ext.getCmp("RhevMgrId").getValue();
for(var a=0;a<ex_rhevStr.length;a++){var f=ex_rhevStr[a].trim();if(d==f){Ext.Msg.show({title:rhevPageName,msg:existRhev,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("RhevMgrId").focus(true);}});g.clearRhevs();return;}}if(!checkblank(d)||d=="None"||d=="none"||d=="other"||d=="Other"){Ext.Msg.show({title:rhevPageName,msg:enterRhev,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("RhevMgrId").focus(true);
}});return;}if(!validateIpOrHName(d)){Ext.getCmp("RhevMgrId").focus();return;}if(!checkblank(k)){Ext.Msg.show({title:rhevPageName,msg:enterUsrId,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("UsrRhev").focus(true);}});return;}else{if(!checkspecial(k,"@*+=|:;\"'<>,/[]?")){Ext.getCmp("UsrRhev").focus();
return;}else{if(!checkHyphenText(k,k)){Ext.getCmp("UsrRhev").focus();return;}else{if(trim(k)==""){Ext.getCmp("UsrRhev").focus();return;}else{if(k.indexOf("..")>-1){Ext.Msg.show({title:rhevPageName,msg:_checkdots,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("UsrRhev").focus(true);
}});return;}else{if(k.indexOf("  ")>-1){Ext.Msg.show({title:rhevPageName,msg:_checkSpaces,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("UsrRhev").focus(true);}});return;}}}}}}if(h==""){Ext.Msg.show({title:rhevPageName,msg:enterPwd,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("PwdRhev").focus(true);
}});sub=false;return;}else{if(!checkForPassValidity(h)){Ext.getCmp("PwdRhev").focus();sub=false;return;}else{if(e==""){Ext.Msg.show({title:rhevPageName,msg:enterCnfPwd,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("ConfPwdRhev").focus(true);}});sub=false;return;}else{if(h!=e){Ext.Msg.show({title:rhevPageName,msg:matchPwd,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("ConfPwdRhev").focus(true);
}});sub=false;return;}else{if(!checkblank(b)){Ext.Msg.show({title:rhevPageName,msg:PortBlank,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("MgrPort").focus(true);}});sub=false;return;}else{if(!checkspace(b)){Ext.getCmp("MgrPort").focus();sub=false;return;}else{if(!checkcomma(b)){Ext.Msg.show({title:rhevPageName,msg:CommaPrt,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("MgrPort").focus(true);
}});sub=false;return;}else{if(((!checknumber("+",b)&&b.indexOf(",")==-1)||b==0||b.indexOf(".")>-1)&&(b=="NULL")||b.indexOf(",")>-1){Ext.Msg.show({title:rhevPageName,msg:validPrt,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("MgrPort").focus(true);}});sub=false;return;}else{if(!checkspecialnomess(b,j)&&(b!="NULL")){Ext.Msg.show({title:rhevPageName,msg:specialCharacterPrt,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("MgrPort").focus(true);
}});sub=false;return;}else{return true;}}}}}}}}}},callRhevsDestroy:function(){Ext.getCmp("Rhel_mgr_user").setValue("none");Ext.getCmp("Rhel_mgr_password").setValue("none");Ext.getCmp("Rhel_mgr_passwordconfirmpassword").setValue("none");Ext.getCmp("Rhel_mgr_password").backupValue="none";Ext.getCmp("Rhel_mgr_passwordconfirmpassword").backupValue="none";
},interConfigMultiSource:function(d){Ext.create("DefaultTestConfiguration.view.EgConfigurePublishedResources").show();var c="";inputsmultisrc=2;ismultisrc="false";var m="";var r=Ext.getCmp("hiddenPublishedResource").getValue();var b=Ext.getCmp("Domain").getValue();var t=Ext.getCmp("Disclaimer").getValue();
var g=Ext.getCmp("Two_factor_auth_password").getValue();var e=Ext.getCmp("Username").getValue();var f=Ext.getCmp("Password").getValue();if(!Ext.isEmpty(r)){m=r;}var j=m.split("|");var h=g.split("#~#");var o=b.split(",");var s=t.split(",");var n=e.split(",");var q=f.split("#~#");if(b!=null||b!=undefined){for(var p=0;
p<o.length-1;p++){addMultiSourceContact();}for(c=1;c<o.length+1;c++){if(!Ext.isEmpty(j[c-1])&&j[c-1].indexOf("~#~")!=-1){j[c-1]=j[c-1].replace(/~#~/g,",");}var l=h[c-1];var a=s[c-1];if(!Ext.isEmpty(l)&&(l!="FF6EBC35F4F93E0C1057BBC2E53B1DF3"&&l.toLowerCase()!="none")){Ext.getCmp("twofactlabel"+c+"_1").setValue(true);
Ext.getCmp("twofacttoken"+c).setVisible(true);Ext.getCmp("twofacttoken"+c).setValue(l);Ext.getCmp("twofacttoken"+c).backupValue=l;}if(!Ext.isEmpty(a)){if(a.toLowerCase()=="true"){Ext.getCmp("disclaimermultiusr"+c+"_1").setValue(true);}else{Ext.getCmp("disclaimermultiusr"+c+"_2").setValue(true);}}Ext.getCmp("publisresource"+c).setValue(j[c-1]);
Ext.getCmp("domainmultiusr"+c).setValue(o[c-1]);Ext.getCmp("usermultiusr"+c).setValue(n[c-1]);Ext.getCmp("pwdmultiusr"+c).setValue(q[c-1]);Ext.getCmp("confpwdmultiusr"+c).setValue(q[c-1]);Ext.getCmp("pwdmultiusr"+c).backupValue=q[c-1];Ext.getCmp("confpwdmultiusr"+c).backupValue=q[c-1];}}Ext.Ajax.request({url:"DefaultTestConfiguration/data/defaulttesthelpJson.jsp?mode=egconfiguremultipleusers",method:"POST",async:false});
},interMultiSourceClr:function(a){var b=Ext.getCmp("backupmulticontainer");b.removeAll();Ext.getCmp("addMultiSrcbtn").setText("Add");Ext.getCmp("NoMultiUsrPattern").show();if(Ext.getCmp("conmulti_1")!=null||Ext.getCmp("conmulti_1")!=undefined){ismultisrc="true";Ext.getCmp("conmulti_1").removeAll();Ext.getCmp("conmulti_1").hide();
}Ext.getCmp("updateMultiConfSrc").disable();Ext.getCmp("clearMultiConfSrc").disable();},interMultiSourceUpdate:function(D){var I=inputsmultisrc;for(var d=1;d<I-1;d++){if(Ext.getCmp("domainmultiusr"+d)==undefined){continue;}var P=Ext.getCmp("publisresource"+d).getValue();var Q=Ext.getCmp("twofacttoken"+d).getValue();
var p=Ext.getCmp("domainmultiusr"+d).getValue();var m=Ext.getCmp("usermultiusr"+d).getValue();var b=Ext.getCmp("pwdmultiusr"+d).getValue();var W=Ext.getCmp("confpwdmultiusr"+d).getValue();var T=Ext.getCmp("twofact"+d).getChecked()[0];var R=T.getGroupValue();if(!checkblank(P)){Ext.Msg.show({title:alertMsgSrcTitle,msg:enterPubRsrc,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("publisresource"+d).focus(true,true);
}});return;}else{if(P.indexOf("$unconfigured")>-1){Ext.Msg.show({title:alertMsgSrcTitle,msg:donotSpecifyKey,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("publisresource"+d).focus(true,true);}});return;}else{if(!checkspecialExt(P,"`*=#.|;\"'<>/[]?")){Ext.Msg.show({title:alertMsgSrcTitle,msg:_checkspecial,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("publisresource"+d).focus(true,true);
}});return;}else{if(trim(P)==""){Ext.getCmp("publisresource"+d).focus();return;}else{if(P.indexOf("..")>-1){Ext.Msg.show({title:alertMsgSrcTitle,msg:_checkdots,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("publisresource"+d).focus(true,true);}});return;}else{if(P.indexOf("  ")>-1){Ext.Msg.show({title:alertMsgSrcTitle,msg:_checkSpaces,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("publisresource"+d).focus(true,true);
}});return;}else{if(P.indexOf(":")>-1){var y=P;if(y.indexOf(",")!=-1){var V=y.split(",");for(var J=0;J<V.length;J++){var l=V[J];if(l.charAt(0)==":"||l.charAt(l.length-1)==":"){Ext.Msg.show({title:pageName,msg:"Published resource should not start or end with a colon",buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("publisresource"+d).focus(true,true);
}});return;}else{var E=new Array();for(var N=0;N<l.length;N++){if(l.charAt(N)==":"){E.push(N);}if(l.charAt(N)==":"&&l.charAt(N+1)==":"){Ext.Msg.show({title:pageName,msg:"Cannot have ':' in consecutive positions",buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("publisresource"+d).focus(true,true);
}});E=new Array();return;}else{continue;}}if(E.length>1){Ext.Msg.show({title:pageName,msg:"Please enter the application/desktop name in this format ApplicationOrDesktop[:WindowTitle]",buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("publisresource"+d).focus(true,true);}});E=new Array();
return;}}}}else{if(y.charAt(0)==":"||y.charAt(y.length-1)==":"){Ext.Msg.show({title:pageName,msg:"Published resource should not start or end with a colon",buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("publisresource"+d).focus(true,true);}});return;}else{var E=new Array();for(var N=0;
N<y.length;N++){if(y.charAt(N)==":"){E.push(N);}if(y.charAt(N)==":"&&y.charAt(N+1)==":"){Ext.Msg.show({title:pageName,msg:"Cannot have ':' in consecutive positions",buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("publisresource"+d).focus(true,true);}});E=new Array();return;}else{continue;
}}if(E.length>1){Ext.Msg.show({title:pageName,msg:"Please enter the application/desktop name in this format ApplicationOrDesktop[:WindowTitle]",buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("publisresource"+d).focus(true,true);}});E=new Array();return;}}}}}}}}}}if(R=="true"){if(!checkblank(Q)){Ext.Msg.show({title:alertMsgSrcTitle,msg:enter2FAToken,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("twofacttoken"+d).focus(true,true);
}});return;}else{if(Q.indexOf(",")>-1){Ext.Msg.show({title:alertMsgSrcTitle,msg:_checkspecial,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("twofacttoken"+d).focus(true,true);}});return;}else{if(Q.indexOf("..")>-1){Ext.Msg.show({title:alertMsgSrcTitle,msg:_checkdots,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("twofacttoken"+d).focus(true,true);
}});return;}else{if(!checkspecialExt(Q,"|")){Ext.Msg.show({title:alertMsgSrcTitle,msg:_checkspecial,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("twofacttoken"+d).focus(true,true);}});return;}}}}}else{Q="none";}if(!checkblank(p)){Ext.Msg.show({title:alertMsgSrcTitle,msg:enterDomain,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("domainmultiusr"+d).focus(true,true);
}});return;}if(!checkDomain(p,"true")){Ext.getCmp("domainmultiusr"+d).focus(true,true);return;}else{if(p.indexOf(",")>-1){Ext.Msg.show({title:alertMsgSrcTitle,msg:_checkspecial,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("domainmultiusr"+d).focus(true,true);}});return;}else{if(!checkHyphenText(p,p)){Ext.getCmp("domainmultiusr"+d).focus();
return;}else{if(p.indexOf("..")>-1){Ext.Msg.show({title:alertMsgSrcTitle,msg:_checkdots,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("domainmultiusr"+d).focus(true,true);}});return;}}}}if(!checkblank(m)){Ext.Msg.show({title:alertMsgSrcTitle,msg:enterUsrId,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("usermultiusr"+d).focus(true,true);
}});return;}else{if(m.indexOf("$unconfigured")>-1){Ext.Msg.show({title:alertMsgSrcTitle,msg:donotSpecifyKey,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("usermultiusr"+d).focus(true,true);}});return;}else{if(!checkspecialExt(m,"*+=|:;\"'<>/[]?,")){Ext.Msg.show({title:alertMsgSrcTitle,msg:_checkspecial,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("usermultiusr"+d).focus(true,true);
}});return;}else{if(trim(m)==""){Ext.getCmp("usermultiusr"+d).focus();return;}else{if(!checkHyphenText(m,m)){Ext.getCmp("usermultiusr"+d).focus();return;}else{if(m.indexOf("..")>-1){Ext.Msg.show({title:alertMsgSrcTitle,msg:_checkdots,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("usermultiusr"+d).focus(true,true);
}});return;}else{if(m.indexOf("  ")>-1){Ext.Msg.show({title:alertMsgSrcTitle,msg:_checkSpaces,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("usermultiusr"+d).focus(true,true);}});return;}}}}}}}if(b==""){Ext.Msg.show({title:alertMsgSrcTitle,msg:enterPwd,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("pwdmultiusr"+d).focus(true,true);
}});sub=false;return;}else{if(b.indexOf("$unconfigured")>-1){Ext.Msg.show({title:alertMsgSrcTitle,msg:donotSpecifyKey,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("pwdmultiusr"+d).focus(true,true);}});return;}else{if(b.indexOf("#~#")>-1){Ext.Msg.show({title:alertMsgSrcTitle,msg:_checkHashTildeHash,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("pwdmultiusr"+d).focus(true,true);
}});sub=false;return;}else{if(!checkForPassValidity(b)){Ext.getCmp("pwdmultiusr"+d).focus();sub=false;return;}else{if(W==""){Ext.Msg.show({title:alertMsgSrcTitle,msg:enterCnfPwd,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("confpwdmultiusr"+d).focus(true,true);}});sub=false;return;
}else{if(W.indexOf("$unconfigured")>-1){Ext.Msg.show({title:alertMsgSrcTitle,msg:donotSpecifyKey,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("confpwdmultiusr"+d).focus(true,true);}});return;}else{if(b!=W){Ext.Msg.show({title:alertMsgSrcTitle,msg:matchPwd,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("confpwdmultiusr"+d).focus(true,true);
}});sub=false;return;}}}}}}}}var g="";var K="";var B="";var L="";var G="";var F="";var S="";for(var n=1;n<I;n++){if(Ext.getCmp("domainmultiusr"+n)==undefined){continue;}var h=Ext.getCmp("publisresource"+n).getValue();if(h!=null){if(!checkblank(h)){Ext.Msg.show({title:alertMsgSrcTitle,msg:enterPubRsrc,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("publisresource"+n).focus(true,true);
}});return;}else{if(h.indexOf("$unconfigured")>-1){Ext.Msg.show({title:alertMsgSrcTitle,msg:donotSpecifyKey,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("publisresource"+n).focus(true,true);}});return;}else{if(!checkspecialExt(h,"`*=#.|;\"'<>/[]?")){Ext.Msg.show({title:alertMsgSrcTitle,msg:_checkspecial,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("publisresource"+n).focus(true,true);
}});return;}else{if(trim(h)==""){Ext.getCmp("publisresource"+n).focus();return;}else{if(h.indexOf("..")>-1){Ext.Msg.show({title:alertMsgSrcTitle,msg:_checkdots,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("publisresource"+n).focus(true,true);}});return;}else{if(h.indexOf("  ")>-1){Ext.Msg.show({title:alertMsgSrcTitle,msg:_checkSpaces,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("publisresource"+n).focus(true,true);
}});return;}else{if(h.indexOf(":")>-1){var y=h;if(y.indexOf(",")!=-1){var V=y.split(",");for(var J=0;J<V.length;J++){var l=V[J];if(l.charAt(0)==":"||l.charAt(l.length-1)==":"){Ext.Msg.show({title:pageName,msg:"Published resource should not start or end with a colon",buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("publisresource"+n).focus(true,true);
}});return;}else{var E=new Array();for(var N=0;N<l.length;N++){if(l.charAt(N)==":"){E.push(N);}if(l.charAt(N)==":"&&l.charAt(N+1)==":"){Ext.Msg.show({title:pageName,msg:"Cannot have ':' in consecutive positions",buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("publisresource"+n).focus(true,true);
}});E=new Array();return;}else{continue;}}if(E.length>1){Ext.Msg.show({title:pageName,msg:"Please enter the application/desktop name in this format ApplicationOrDesktop[:WindowTitle]",buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("publisresource"+n).focus(true,true);}});E=new Array();
return;}}}}else{if(y.charAt(0)==":"||y.charAt(y.length-1)==":"){Ext.Msg.show({title:pageName,msg:"Published resource should not start or end with a colon",buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("publisresource"+n).focus(true,true);}});return;}else{var E=new Array();for(var N=0;
N<y.length;N++){if(y.charAt(N)==":"){E.push(N);}if(y.charAt(N)==":"&&y.charAt(N+1)==":"){Ext.Msg.show({title:pageName,msg:"Cannot have ':' in consecutive positions",buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("publisresource"+n).focus(true,true);}});E=new Array();return;}else{continue;
}}if(E.length>1){Ext.Msg.show({title:pageName,msg:"Please enter the application/desktop name in this format ApplicationOrDesktop[:WindowTitle]",buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("publisresource"+n).focus(true,true);}});E=new Array();return;}}}}}}}}}}}var e=Ext.getCmp("twofacttoken"+n).getValue();
var s=Ext.getCmp("twofact"+n).getChecked()[0];var r=s.getGroupValue();if(e==null){continue;}if(e!=null){if(r=="true"){if(!checkblank(e)){Ext.Msg.show({title:alertMsgSrcTitle,msg:enter2FAToken,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("twofacttoken"+n).focus(true,true);}});return;
}else{if(e.indexOf(",")>-1){Ext.Msg.show({title:alertMsgSrcTitle,msg:_checkspecial,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("twofacttoken"+n).focus(true,true);}});return;}else{if(e.indexOf("..")>-1){Ext.Msg.show({title:alertMsgSrcTitle,msg:_checkdots,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("twofacttoken"+n).focus(true,true);
}});return;}else{if(!checkspecialExt(e,"|")){Ext.Msg.show({title:alertMsgSrcTitle,msg:_checkspecial,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("twofacttoken"+n).focus(true,true);}});return;}}}}}else{e="none";}}var q=Ext.getCmp("disclaimermultiusr"+n+"_1").getValue();if(q==null){continue;
}var A=Ext.getCmp("domainmultiusr"+n).getValue();if(A==null){continue;}if(A!=null){if(!checkDomain(A,"true")){Ext.getCmp("domainmultiusr"+n).focus(true,true);return;}else{if(A.indexOf(",")>-1){Ext.Msg.show({title:alertMsgSrcTitle,msg:_checkspecial,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("domainmultiusr"+n).focus(true,true);
}});return;}else{if(A.indexOf("..")>-1){Ext.Msg.show({title:alertMsgSrcTitle,msg:_checkdots,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("domainmultiusr"+n).focus(true,true);}});return;}else{if(!checkHyphenText(A,A)){Ext.getCmp("domainmultiusr"+n).focus();return;}}}}}var w=Ext.getCmp("usermultiusr"+n).getValue();
if(w!=null){if(!checkblank(w)){Ext.Msg.show({title:alertMsgSrcTitle,msg:enterUsrId,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("usermultiusr"+n).focus(true,true);}});return;}else{if(w.indexOf("$unconfigured")>-1){Ext.Msg.show({title:alertMsgSrcTitle,msg:donotSpecifyKey,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("usermultiusr"+n).focus(true,true);
}});return;}else{if(!checkspecialExt(w,"*+=|:;\"'<>/[]?,")){Ext.Msg.show({title:alertMsgSrcTitle,msg:_checkspecial,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("usermultiusr"+n).focus(true,true);}});return;}else{if(trim(w)==""){Ext.getCmp("usermultiusr"+n).focus();return;}else{if(w.indexOf("..")>-1){Ext.Msg.show({title:alertMsgSrcTitle,msg:_checkdots,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("usermultiusr"+n).focus(true,true);
}});return;}else{if(w.indexOf("  ")>-1){Ext.Msg.show({title:alertMsgSrcTitle,msg:_checkSpaces,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("usermultiusr"+n).focus(true,true);}});return;}else{if(!checkHyphenText(w,w)){Ext.getCmp("usermultiusr"+n).focus();return;}}}}}}}}var a=Ext.getCmp("pwdmultiusr"+n).getValue();
var c=Ext.getCmp("confpwdmultiusr"+n).getValue();if(a!=null&&c!=null){if(a==""){Ext.Msg.show({title:alertMsgSrcTitle,msg:enterPwd,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("pwdmultiusr"+n).focus(true,true);}});return;}else{if(a.indexOf("$unconfigured")>-1){Ext.Msg.show({title:alertMsgSrcTitle,msg:donotSpecifyKey,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("pwdmultiusr"+n).focus(true,true);
}});return;}else{if(a.indexOf("#~#")>-1){Ext.Msg.show({title:alertMsgSrcTitle,msg:_checkHashTildeHash,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("pwdmultiusr"+n).focus(true,true);}});sub=false;return;}else{if(!checkForPassValidity(a)){Ext.getCmp("pwdmultiusr"+n).focus();sub=false;
return;}else{if(c==""){Ext.Msg.show({title:alertMsgSrcTitle,msg:enterCnfPwd,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("confpwdmultiusr"+n).focus(true,true);}});return;}else{if(c.indexOf("$unconfigured")>-1){Ext.Msg.show({title:alertMsgSrcTitle,msg:donotSpecifyKey,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("confpwdmultiusr"+n).focus(true,true);
}});return;}else{if(a!=c){Ext.Msg.show({title:alertMsgSrcTitle,msg:matchPwd,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("confpwdmultiusr"+n).focus(true,true);}});return;}}}}}}}}if(g!=null&&e!=null&&A!=null&&q!=null&&w!=null&&a!=null&&c!=null){var f=Ext.getCmp("domainmultiusr"+n).getValue();
B+=f+",";var U=Ext.getCmp("disclaimermultiusr"+n+"_1").getValue();var H="false";if(U){H="true";}L+=H+",";var z=Ext.getCmp("twofacttoken"+n).getValue();var C=Ext.getCmp("twofact"+n).getChecked()[0];var u=C.getGroupValue();if(u=="false"){z="none";}G+=z+"#~#";var O=Ext.getCmp("publisresource"+n).getValue();
var M=O;if(!Ext.isEmpty(M)&&M.indexOf(",")!=-1){M=M.replace(/,/g,"~#~");}g+=O+",";K+=M+"|";var o=Ext.getCmp("usermultiusr"+n).getValue();F+=o+",";var t=Ext.getCmp("pwdmultiusr"+n).getValue();S+=t+"#~#";}}g=g.substring(0,g.length-1);Ext.getCmp("Published_resources").setValue(g);K=K.substring(0,K.length-1);
Ext.getCmp("hiddenPublishedResource").setValue(K);G=G.substring(0,G.length-3);Ext.getCmp("Two_factor_auth_password").setValue(G);Ext.getCmp("Two_factor_auth_password").backupValue=G;B=B.substring(0,B.length-1);Ext.getCmp("Domain").setValue(B);L=L.substring(0,L.length-1);Ext.getCmp("Disclaimer").setValue(L);
F=F.substring(0,F.length-1);Ext.getCmp("Username").setValue(F);S=S.substring(0,S.length-3);Ext.getCmp("Password").setValue(S);Ext.getCmp("Password").backupValue=S;if(Ext.getCmp("cpwd")!=null&&Ext.getCmp("cpwd")!=undefined){Ext.getCmp("cpwd").setValue(S);Ext.getCmp("cpwd").backupValue=S;Ext.getCmp("cpwd").setReadOnly(true);
}if(Ext.getCmp("Passwordconfirmpassword")!=null&&Ext.getCmp("Passwordconfirmpassword")!=undefined){Ext.getCmp("Passwordconfirmpassword").setValue(S);Ext.getCmp("Passwordconfirmpassword").backupValue=S;Ext.getCmp("Passwordconfirmpassword").setReadOnly(true);}Ext.getCmp("Published_resources").setReadOnly(true);
Ext.getCmp("Two_factor_auth_password").setReadOnly(true);Ext.getCmp("Two_factor_auth_password").hide();Ext.getCmp("Domain").setReadOnly(true);Ext.getCmp("Domain").hide();Ext.getCmp("Disclaimer").setReadOnly(true);Ext.getCmp("Disclaimer").hide();Ext.getCmp("Username").setReadOnly(true);Ext.getCmp("Username").hide();
Ext.getCmp("Password").setReadOnly(true);Ext.getCmp("Password").hide();Ext.getCmp("egconfigurepublishedresources").destroy();var j=Ext.getCmp("componentType").getValue();var x=publicJson["testName"];Ext.Ajax.request({url:"DefaultTestConfiguration/data/EgConfigureDefaultTestParamsJson.jsp?cType_HelpPage="+encodeURIComponent(j)+"&componentType="+encodeURIComponent(j)+"&tName_HelpPage="+x+"&testName="+x,method:"POST"});
},vmgusers:function(){Ext.create("DefaultTestConfiguration.view.VmgUsers").show();inputs=0;inputsVmg=0;var e=publicJson["pwdParamSetList"];var a=false;var m="";var d="";if(!Ext.isEmpty(e)){for(var o in e){if(e.hasOwnProperty(o)){var l=e[o];if(l=="domain,admin_user,admin_password"){m=o;a=true;break;}}}if(a){d=Ext.getCmp(m);
}}var f=Ext.getCmp("domain").getValue();var p=Ext.getCmp("admin_user").getValue();var j=Ext.getCmp("admin_password").getValue();var c=f.split(",");var n=p.split(",");var b=j.split("#~#");if(f!=null||f!=undefined){for(var g=0;g<c.length;g++){addContact();}for(var h=0;h<c.length;h++){if(!Ext.isEmpty(d)&&d.getValue().toLowerCase()!="none"){Ext.getCmp("domainvmg"+h).setValue(c[h]).setReadOnly(true);
Ext.getCmp("admusrvmg"+h).setValue(n[h]).setReadOnly(true);Ext.getCmp("admpwdvmg"+h).setValue(b[h]).setReadOnly(true);Ext.getCmp("confpwdvmg"+h).setValue(b[h]).setReadOnly(true);Ext.getCmp("addVmgUsrbtn").hide();Ext.getCmp("updateConfUsr").hide();Ext.getCmp("clearConfUsr").hide();Ext.getCmp("removevmg"+h).hide();
}else{Ext.getCmp("domainvmg"+h).setValue(c[h]);Ext.getCmp("admusrvmg"+h).setValue(n[h]);Ext.getCmp("admpwdvmg"+h).setValue(b[h]);Ext.getCmp("confpwdvmg"+h).setValue(b[h]);Ext.getCmp("admpwdvmg"+h).backupValue=b[h];Ext.getCmp("confpwdvmg"+h).backupValue=b[h];}}}Ext.Ajax.request({url:"DefaultTestConfiguration/data/defaulttesthelpJson.jsp?mode=vmgusers",method:"POST",async:false});
},ClearConfigUsr:function(a){var b=Ext.getCmp("backupcontainer");b.removeAll();inputs=0;inputsVmg=0;addContact();var c="$unconfigured";if(insideView=="tcp"){c="none";}Ext.getCmp("domainvmg"+(inputs-1)).setValue(c);Ext.getCmp("admusrvmg"+(inputs-1)).setValue(c);Ext.getCmp("admpwdvmg"+(inputs-1)).setValue(c);
Ext.getCmp("confpwdvmg"+(inputs-1)).setValue(c);Ext.getCmp("admpwdvmg"+(inputs-1)).backupValue=c;Ext.getCmp("confpwdvmg"+(inputs-1)).backupValue=c;},UpdateConfigUsr:function(k){var d=inputs;var r=[];var f=[];for(var w=0;w<d;w++){if(Ext.getCmp("domainvmg"+w)==undefined){continue;}var B=Ext.getCmp("domainvmg"+w).getValue();
var e=Ext.getCmp("admusrvmg"+w).getValue();var b=Ext.getCmp("admpwdvmg"+w).getValue();var z=Ext.getCmp("confpwdvmg"+w).getValue();r.push(B);f.push(e);if(!checkblank(B)){Ext.Msg.show({title:configUserPageName,msg:enterDomain,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("domainvmg"+w).focus(true);
}});return;}if(!checkDomain(B,"true")){Ext.getCmp("domainvmg"+w).focus();return;}else{if(B.indexOf(",")>-1){Ext.Msg.show({title:configUserPageName,msg:_checkspecial,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("domainvmg"+w).focus(true);}});return;}else{if(!checkHyphenText(B,B)){Ext.getCmp("domainvmg"+w).focus();
return;}else{if(B.indexOf("..")>-1){Ext.Msg.show({title:configUserPageName,msg:_checkdots,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("domainvmg"+w).focus(true);}});return;}}}}if(!checkblank(e)){Ext.Msg.show({title:configUserPageName,msg:enterUsrId,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("admusrvmg"+w).focus(true);
}});return;}else{if(e.indexOf("$unconfigured")>-1){Ext.Msg.show({title:configUserPageName,msg:donotSpecifyKey,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("admusrvmg"+w).focus(true);}});return;}else{if(!checkspecialExt(e,'@*+=|:;"<>/[]?,')){Ext.Msg.show({title:configUserPageName,msg:_checkspecial,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("admusrvmg"+w).focus(true,true);
}});return;}else{if(trim(e)==""){Ext.getCmp("admusrvmg"+w).focus();return;}else{if(!checkHyphenText(e,e)){Ext.getCmp("admusrvmg"+w).focus();return;}else{if(e.indexOf("..")>-1){Ext.Msg.show({title:configUserPageName,msg:_checkdots,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("admusrvmg"+w).focus(true);
}});return;}else{if(e.indexOf("  ")>-1){Ext.Msg.show({title:configUserPageName,msg:_checkSpaces,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("admusrvmg"+w).focus(true);}});return;}}}}}}}if(b==""){Ext.Msg.show({title:configUserPageName,msg:enterPwd,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("admpwdvmg"+w).focus(true);
}});sub=false;return;}else{if(b.indexOf("$unconfigured")>-1){Ext.Msg.show({title:configUserPageName,msg:donotSpecifyKey,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("admpwdvmg"+w).focus(true);}});return;}else{if(b.indexOf("#~#")>-1){Ext.Msg.show({title:configUserPageName,msg:_checkHashTildeHash,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("admpwdvmg"+w).focus(true);
}});sub=false;return;}else{if(!checkForPassValidity(b)){Ext.getCmp("admpwdvmg"+w).focus();sub=false;return;}else{if(z==""){Ext.Msg.show({title:configUserPageName,msg:enterCnfPwd,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("confpwdvmg"+w).focus(true);}});sub=false;return;}else{if(z.indexOf("$unconfigured")>-1){Ext.Msg.show({title:configUserPageName,msg:donotSpecifyKey,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("confpwdvmg"+w).focus(true);
}});return;}else{if(b!=z){Ext.Msg.show({title:configUserPageName,msg:matchPwd,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("confpwdvmg"+w).focus(true);}});sub=false;return;}}}}}}}}var s="";var x="";var a="";for(var u=0;u<d;u++){if(Ext.getCmp("domainvmg"+u)==undefined){continue;}var y=Ext.getCmp("domainvmg"+u).getValue();
if(y==undefined){continue;}if(y!=null){if(!checkDomain(y,"true")){Ext.getCmp("domainvmg"+u).focus();return;}else{if(y.indexOf(",")>-1){Ext.Msg.show({title:configUserPageName,msg:_checkspecial,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("domainvmg"+w).focus(true);}});return;}else{if(y.indexOf("..")>-1){Ext.Msg.show({title:configUserPageName,msg:_checkdots,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("domainvmg"+w).focus(true);
}});return;}else{if(!checkHyphenText(y,y)){Ext.getCmp("domainvmg"+u).focus();return;}}}}}var t=Ext.getCmp("admusrvmg"+u).getValue();if(t!=null){if(!checkblank(t)){Ext.Msg.show({title:configUserPageName,msg:enterUsrId,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("admusrvmg"+w).focus(true);
}});return;}else{if(t.indexOf("$unconfigured")>-1){Ext.Msg.show({title:configUserPageName,msg:donotSpecifyKey,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("admusrvmg"+w).focus(true);}});return;}else{if(!checkspecialExt(t,'@*+=|:;"<>/[]?,')){Ext.Msg.show({title:configUserPageName,msg:_checkspecial,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("admusrvmg"+u).focus(true,true);
}});return;}else{if(trim(t)==""){Ext.getCmp("admusrvmg"+u).focus();return;}else{if(t.indexOf("..")>-1){Ext.Msg.show({title:configUserPageName,msg:_checkdots,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("admusrvmg"+w).focus(true);}});return;}else{if(t.indexOf("  ")>-1){Ext.Msg.show({title:configUserPageName,msg:_checkSpaces,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("admusrvmg"+w).focus(true);
}});return;}else{if(!checkHyphenText(t,t)){Ext.getCmp("admusrvmg"+u).focus();return;}}}}}}}}var A=Ext.getCmp("admpwdvmg"+u).getValue();var h=Ext.getCmp("confpwdvmg"+u).getValue();if(A!=null&&h!=null){if(A==""){Ext.Msg.show({title:configUserPageName,msg:enterPwd,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("admpwdvmg"+w).focus(true);
}});return;}else{if(A.indexOf("$unconfigured")>-1){Ext.Msg.show({title:configUserPageName,msg:donotSpecifyKey,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("admpwdvmg"+w).focus(true);}});return;}else{if(A.indexOf("#~#")>-1){Ext.Msg.show({title:configUserPageName,msg:_checkHashTildeHash,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("admpwdvmg"+w).focus(true);
}});sub=false;return;}else{if(!checkForPassValidity(A)){Ext.getCmp("admpwdvmg"+u).focus();sub=false;return;}else{if(h==""){Ext.Msg.show({title:configUserPageName,msg:enterCnfPwd,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("confpwdvmg"+w).focus(true);}});return;}else{if(h.indexOf("$unconfigured")>-1){Ext.Msg.show({title:configUserPageName,msg:donotSpecifyKey,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("confpwdvmg"+w).focus(true);
}});return;}else{if(A!=h){Ext.Msg.show({title:configUserPageName,msg:matchPwd,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("confpwdvmg"+w).focus(true);}});return;}}}}}}}}if(y!=null&&t!=null&&A!=null&&h!=null){var o=Ext.getCmp("domain").getValue();var j=Ext.getCmp("admin_user").getValue();
var c=Ext.getCmp("admin_password").getValue();var q=Ext.getCmp("domainvmg"+u).getValue();s+=q+",";var p=Ext.getCmp("admusrvmg"+u).getValue();x+=p+",";var l=Ext.getCmp("admpwdvmg"+u).getValue();a+=l+"#~#";}}s=s.substring(0,s.length-1);Ext.getCmp("domain").setValue(s);x=x.substring(0,x.length-1);Ext.getCmp("admin_user").setValue(x);
a=a.substring(0,a.length-3);Ext.getCmp("admin_password").setValue(a);Ext.getCmp("admin_password").backupValue=a;if(Ext.getCmp("Admincpwd")!=null&&Ext.getCmp("Admincpwd")!=undefined){Ext.getCmp("Admincpwd").setValue(a);Ext.getCmp("Admincpwd").backupValue=a;Ext.getCmp("Admincpwd").setReadOnly(true);}if(Ext.getCmp("admin_passwordconfirmpassword")!=null&&Ext.getCmp("admin_passwordconfirmpassword")!=undefined){Ext.getCmp("admin_passwordconfirmpassword").setValue(a);
Ext.getCmp("admin_passwordconfirmpassword").backupValue=a;Ext.getCmp("admin_passwordconfirmpassword").setReadOnly(true);}Ext.getCmp("domain").setReadOnly(true);Ext.getCmp("admin_user").setReadOnly(true);Ext.getCmp("admin_password").setReadOnly(true);Ext.getCmp("vmgusers").destroy();var g=Ext.getCmp("componentType").getValue();
var v=publicJson["testName"];Ext.Ajax.request({url:"DefaultTestConfiguration/data/EgConfigureDefaultTestParamsJson.jsp?cType_HelpPage="+g+"&componentType="+g+"&tName_HelpPage="+v+"&testName="+v,method:"POST"});},configMultiUser:function(a){Ext.create("DefaultTestConfiguration.view.EgConfigureMultipleUsers").show();
var j="";inputsmulti=2;ismulti="false";var h=Ext.getCmp("domain").getValue();var g=Ext.getCmp("user").getValue();var d=Ext.getCmp("password").getValue();var e=h.split(",");var f=g.split(",");var b=d.split("#~#");if(h!=null||h!=undefined){for(var c=0;c<e.length-1;c++){addMultiUsrContact();}for(j=1;j<e.length+1;
j++){Ext.getCmp("domainmultiusr"+j).setValue(e[j-1]);Ext.getCmp("usermultiusr"+j).setValue(f[j-1]);Ext.getCmp("pwdmultiusr"+j).setValue(b[j-1]);Ext.getCmp("confpwdmultiusr"+j).setValue(b[j-1]);Ext.getCmp("pwdmultiusr"+j).backupValue=b[j-1];Ext.getCmp("confpwdmultiusr"+j).backupValue=b[j-1];}}Ext.Ajax.request({url:"DefaultTestConfiguration/data/defaulttesthelpJson.jsp?mode=egconfiguremultipleusers",method:"POST",async:false});
},ClearMultiConfigUsr:function(a){var b=Ext.getCmp("backupmulticontainer");b.removeAll();Ext.getCmp("addMultiUsrbtn").setText("Add");Ext.getCmp("NoMultiUsrPattern").show();if(Ext.getCmp("conmulti_1")!=null||Ext.getCmp("conmulti_1")!=undefined){ismulti="true";Ext.getCmp("conmulti_1").removeAll();Ext.getCmp("conmulti_1").hide();
}Ext.getCmp("updateMultiConfUsr").disable();Ext.getCmp("clearMultiConfUsr").disable();},UpdateMultiConfigUsr:function(j){var a=inputsmulti;for(var n=1;n<a-1;n++){if(Ext.getCmp("domainmultiusr"+n)==undefined){continue;}var u=Ext.getCmp("domainmultiusr"+n).getValue();var d=Ext.getCmp("usermultiusr"+n).getValue();
var b=Ext.getCmp("pwdmultiusr"+n).getValue();var s=Ext.getCmp("confpwdmultiusr"+n).getValue();if(!checkblank(u)){Ext.Msg.show({title:alertMultiTitle,msg:enterDomain,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("domainmultiusr"+n).focus(true);}});return;}if(!checkDomain(u,"true")){Ext.getCmp("domainmultiusr"+n).focus();
return;}else{if(u.indexOf(",")>-1){Ext.Msg.show({title:alertMultiTitle,msg:_checkspecial,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("domainmultiusr"+n).focus(true);}});return;}else{if(!checkHyphenText(u,u)){Ext.getCmp("domainmultiusr"+n).focus();return;}else{if(u.indexOf("..")>-1){Ext.Msg.show({title:alertMultiTitle,msg:_checkdots,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("domainmultiusr"+n).focus(true);
}});return;}}}}if(!checkblank(d)){Ext.Msg.show({title:alertMultiTitle,msg:enterUsrId,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("usermultiusr"+n).focus(true);}});return;}else{if(d.indexOf("$unconfigured")>-1){Ext.Msg.show({title:alertMultiTitle,msg:donotSpecifyKey,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("usermultiusr"+n).focus(true);
}});return;}else{if(!checkspecial(d,"@*+=|:;\"'<>/[]?,")){Ext.getCmp("usermultiusr"+n).focus();return;}else{if(trim(d)==""){Ext.getCmp("usermultiusr"+n).focus();return;}else{if(!checkHyphenText(d,d)){Ext.getCmp("usermultiusr"+n).focus();return;}else{if(d.indexOf("..")>-1){Ext.Msg.show({title:alertMultiTitle,msg:_checkdots,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("usermultiusr"+n).focus(true);
}});return;}else{if(d.indexOf("  ")>-1){Ext.Msg.show({title:alertMultiTitle,msg:_checkSpaces,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("usermultiusr"+n).focus(true);}});return;}}}}}}}if(b==""){Ext.Msg.show({title:alertMultiTitle,msg:enterPwd,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("pwdmultiusr"+n).focus(true);
}});sub=false;return;}else{if(b.indexOf("$unconfigured")>-1){Ext.Msg.show({title:alertMultiTitle,msg:donotSpecifyKey,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("pwdmultiusr"+n).focus(true);}});return;}else{if(b.indexOf("#~#")>-1){Ext.Msg.show({title:alertMultiTitle,msg:_checkHashTildeHash,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("pwdmultiusr"+n).focus(true);
}});sub=false;return;}else{if(!checkForPassValidity(b)){Ext.getCmp("pwdmultiusr"+n).focus();sub=false;return;}else{if(s.indexOf("$unconfigured")>-1){Ext.Msg.show({title:alertMultiTitle,msg:donotSpecifyKey,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("confpwdmultiusr"+n).focus(true);
}});return;}else{if(s==""){Ext.Msg.show({title:alertMultiTitle,msg:enterCnfPwd,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("confpwdmultiusr"+n).focus(true);}});sub=false;return;}else{if(b!=s){Ext.Msg.show({title:alertMultiTitle,msg:matchPwd,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("confpwdmultiusr"+n).focus(true);
}});sub=false;return;}}}}}}}}var k="";var r="";var o="";for(var c=1;c<a;c++){if(Ext.getCmp("domainmultiusr"+c)==undefined){continue;}var p=Ext.getCmp("domainmultiusr"+c).getValue();if(p==null){continue;}if(p!=null){if(!checkDomain(p,"true")){Ext.getCmp("domainmultiusr"+c).focus();return;}else{if(p.indexOf(",")>-1){Ext.Msg.show({title:alertMultiTitle,msg:_checkspecial,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("domainmultiusr"+c).focus(true);
}});return;}else{if(p.indexOf("..")>-1){Ext.Msg.show({title:alertMultiTitle,msg:_checkdots,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("domainmultiusr"+c).focus(true);}});return;}else{if(!checkHyphenText(p,p)){Ext.getCmp("domainmultiusr"+c).focus();return;}}}}}var l=Ext.getCmp("usermultiusr"+c).getValue();
if(l!=null){if(!checkblank(l)){Ext.Msg.show({title:alertMultiTitle,msg:enterUsrId,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("usermultiusr"+c).focus(true);}});return;}else{if(l.indexOf("$unconfigured")>-1){Ext.Msg.show({title:alertMultiTitle,msg:donotSpecifyKey,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("usermultiusr"+c).focus(true);
}});return;}else{if(!checkspecial(l,"@*+=|:;\"'<>/[]?,")){Ext.getCmp("usermultiusr"+c).focus();return;}else{if(trim(l)==""){Ext.getCmp("usermultiusr"+c).focus();return;}else{if(l.indexOf("..")>-1){Ext.Msg.show({title:alertMultiTitle,msg:_checkdots,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("usermultiusr"+c).focus(true);
}});return;}else{if(l.indexOf("  ")>-1){Ext.Msg.show({title:alertMultiTitle,msg:_checkSpaces,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("usermultiusr"+c).focus(true);}});return;}else{if(!checkHyphenText(l,l)){Ext.getCmp("usermultiusr"+c).focus();return;}}}}}}}}var t=Ext.getCmp("pwdmultiusr"+c).getValue();
var g=Ext.getCmp("confpwdmultiusr"+c).getValue();if(t!=null&&g!=null){if(t==""){Ext.Msg.show({title:alertMultiTitle,msg:enterPwd,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("pwdmultiusr"+c).focus(true);}});return;}else{if(t.indexOf("$unconfigured")>-1){Ext.Msg.show({title:alertMultiTitle,msg:donotSpecifyKey,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("pwdmultiusr"+c).focus(true);
}});return;}else{if(t.indexOf("#~#")>-1){Ext.Msg.show({title:alertMultiTitle,msg:_checkHashTildeHash,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("pwdmultiusr"+c).focus(true);}});sub=false;return;}else{if(!checkForPassValidity(t)){Ext.getCmp("pwdmultiusr"+c).focus();sub=false;return;
}else{if(g==""){Ext.Msg.show({title:alertMultiTitle,msg:enterCnfPwd,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("confpwdmultiusr"+c).focus(true);}});return;}else{if(g.indexOf("$unconfigured")>-1){Ext.Msg.show({title:alertMultiTitle,msg:donotSpecifyKey,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("confpwdmultiusr"+c).focus(true);
}});return;}else{if(t!=g){Ext.Msg.show({title:alertMultiTitle,msg:matchPwd,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("confpwdmultiusr"+c).focus(true);}});return;}}}}}}}}if(p!=null&&l!=null&&t!=null&&g!=null){var h=Ext.getCmp("domainmultiusr"+c).getValue();k+=h+",";var q=Ext.getCmp("usermultiusr"+c).getValue();
r+=q+",";var e=Ext.getCmp("pwdmultiusr"+c).getValue();o+=e+"#~#";}}k=k.substring(0,k.length-1);Ext.getCmp("domain").setValue(k);r=r.substring(0,r.length-1);Ext.getCmp("user").setValue(r);o=o.substring(0,o.length-3);Ext.getCmp("password").setValue(o);Ext.getCmp("password").backupValue=o;if(Ext.getCmp("cpwd")!=null&&Ext.getCmp("cpwd")!=undefined){Ext.getCmp("cpwd").setValue(o);
Ext.getCmp("cpwd").backupValue=o;Ext.getCmp("cpwd").setReadOnly(true);}if(Ext.getCmp("passwordconfirmpassword")!=null&&Ext.getCmp("passwordconfirmpassword")!=undefined){Ext.getCmp("passwordconfirmpassword").setValue(o);Ext.getCmp("passwordconfirmpassword").backupValue=o;Ext.getCmp("passwordconfirmpassword").setReadOnly(true);
}Ext.getCmp("domain").setReadOnly(true);Ext.getCmp("user").setReadOnly(true);Ext.getCmp("password").setReadOnly(true);Ext.getCmp("egconfiguremultipleusers").destroy();var f=Ext.getCmp("componentType").getValue();var m=publicJson["testName"];Ext.Ajax.request({url:"DefaultTestConfiguration/data/EgConfigureDefaultTestParamsJson.jsp?cType_HelpPage="+f+"&componentType="+f+"&tName_HelpPage="+m+"&testName="+m,method:"POST"});
},configCerdentialurls:function(G){Ext.create("DefaultTestConfiguration.view.EgConfigureUrlAndCredentials").show();var B="";inputsCredUrl=2;BTNamingSegmentCount=2;iscred="false";var J=publicJson["isHiddenUrls"];var c=Ext.getCmp("url").getValue();var y=decodeURIComponent(Ext.getCmp("hiddenURLs").getValue());
var I=Ext.getCmp("credentials").getValue();var d=Ext.getCmp("content").getValue();var t=Ext.getCmp("encoding").getValue();var e="";var u="";var a="";if(!Ext.isEmpty(y)){J=true;}var E=publicJson["isPrivateKeyParamExist"];if(E==true){e=Ext.getCmp("privateKey").getValue();}var s=publicJson["isSystemPropKeyParamExist"];
if(s==true){u=Ext.getCmp("systempropertykey").getValue();a=Ext.getCmp("systempropertyvalue").getValue();}var K=c.split(",");var h="";if(J){h=y.split("|");}var q=I.split(",");var L=d.split(",");var j=t.split(",");var F="";var x="";var H="";if(e!="$unconfigured"){F=e.split(",");}if(u!="$unconfigured"){x=u.split(",");
}if(a!="$unconfigured"){H=a.split(",");}var o="";var A="";var g="";var z="";var r="";var p="";var w="";var m="";if(c!=null||c!=undefined){Ext.suspendLayouts();for(var M=0;M<K.length-1;M++){addCredUrlContact();}for(B=1;B<K.length+1;B++){if(J){o=K[B-1];var l=h[B-1].substring(0,h[B-1].indexOf(":"));if(l==o){A=h[B-1].substring(h[B-1].indexOf(":")+1);
}}else{o=K[B-1].substring(0,K[B-1].indexOf(":"));A=K[B-1].substring(K[B-1].indexOf(":")+1);}g=q[B-1].substring(0,q[B-1].indexOf(":"));z=q[B-1].substring(q[B-1].indexOf(":")+1);r=L[B-1].substring(0,L[B-1].indexOf(":"));p=L[B-1].substring(L[B-1].indexOf(":")+1);if(Ext.getCmp("nameCred"+B)==undefined){continue;
}Ext.getCmp("nameCred"+B).setValue(o);Ext.getCmp("urlCred"+B).setValue(A);Ext.getCmp("usrnameCred"+B).setValue(g);Ext.getCmp("pwdCred"+B).setValue(z);Ext.getCmp("pwdCred"+B).backupValue=z;if(r=="Inc"){Ext.getCmp("contentCred"+B).setValue("Inc");}else{if(r=="Exc"){Ext.getCmp("contentCred"+B).setValue("Exc");
}else{Ext.getCmp("contentCred"+B).setValue("none");}}Ext.getCmp("subcontentCred"+B).setValue(p);Ext.getCmp("encodeCred"+B).setValue(j[B-1]);if(E==true){Ext.getCmp("privateKey"+B).show();Ext.getCmp("passKey"+B).show();w=F[B-1].substring(0,F[B-1].indexOf("#~~#"));m=F[B-1].substring(F[B-1].indexOf("#~~#")+4);
Ext.getCmp("privateKey"+B).setValue(w);Ext.getCmp("passKey"+B).setValue(m);Ext.getCmp("passKey"+B).backupValue=m;}if(s==true){Ext.getCmp("syspropsfieldset"+B).show();var f=x[B-1];var n=H[B-1];var D=f.split("!@!");var b=n.split("!@!");if(D!=null&&D.length>0){for(var C=1;C<D.length;C++){addSysPropsContainerWithValue("sysPropsContainer_"+B+"_"+(C+1));
}for(var N=0;N<D.length;N++){Ext.getCmp("syspropkey_"+B+"_"+(N+1)).setValue(D[N]);var v=b[N];if(v.indexOf("~#~")!=-1){v=v.replace(/~#~/g,",");}Ext.getCmp("syspropval_"+B+"_"+(N+1)).setValue(v);}}}}Ext.resumeLayouts(true);}Ext.Ajax.request({url:"DefaultTestConfiguration/data/defaulttesthelpJson.jsp?mode=egconfigureurlandcredentials",method:"POST",async:false});
},clearCredUrl:function(a){var b=Ext.getCmp("credurlcontainer");b.removeAll();Ext.getCmp("addCredUrlbtn").setText("Add");Ext.getCmp("NoCredUrlPattern").show();if(Ext.getCmp("concred_1")!=null||Ext.getCmp("concred_1")!=undefined){iscred="true";Ext.getCmp("concred_1").removeAll();Ext.getCmp("concred_1").hide();
}Ext.getCmp("updateCredUrl").disable();Ext.getCmp("clearCredUrl").disable();},updateCredUrl:function(){var t=publicJson["isPrivateKeyParamExist"];var p=publicJson["isSystemPropKeyParamExist"];var L=publicJson["isHiddenUrls"];var O="";var I="";var r="";var S="";var F="";var P="";var R="";var k="";var w="";
var q=new Array();var c=false;var A=false;var T=false;var B=false;var n=false;var u=false;var D="";var g=BTNamingSegmentCount;var g=inputsCredUrl;for(var N=1;N<g;N++){if(Ext.getCmp("nameCred"+N)==undefined){continue;}var y=Ext.getCmp("nameCred"+N).getValue();var Q=Ext.getCmp("urlCred"+N).getValue();var H=Ext.getCmp("usrnameCred"+N).getValue();
var C=Ext.getCmp("pwdCred"+N).getValue();var J=Ext.getCmp("contentCred"+N).getValue();var x=Ext.getCmp("subcontentCred"+N).getValue();var M=Ext.getCmp("encodeCred"+N).getValue();var b="";var z="";var l="";var h="";if(t==true){b=Ext.getCmp("privateKey"+N).getValue();z=Ext.getCmp("passKey"+N).getValue();
}if(y==null||Q==null||H==null||C==null||J==null||x==null||M==null||b==null||z==null||h==null||l==null){continue;}var a=q.indexOf(y);if(a!=-1){Ext.Msg.show({title:credUrlPageName,msg:duplicateNtAlwd,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("nameCred"+N).focus(true);}});return;
}q[N]=y;if(y.indexOf("$unconfigured")>-1){Ext.Msg.show({title:credUrlPageName,msg:validName,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("nameCred"+N).focus(true,true);}});return;}else{if(!checkblank(y)){Ext.Msg.show({title:credUrlPageName,msg:entName,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("nameCred"+N).focus(true,true);
}});return;}else{if(!checkspecialExt(y,"@*+=|:;\"'<>[]?,")){Ext.Msg.show({title:credUrlPageName,msg:_checkspecial,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("nameCred"+N).focus(true,true);}});return;}else{if(y.indexOf("  ")>-1){Ext.Msg.show({title:credUrlPageName,msg:_checkSpaces,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("nameCred"+N).focus(true,true);
}});return;}else{if(!checkHyphenText(y,y)){Ext.getCmp("nameCred"+N).focus(true,true);return;}else{c=true;}}}}}if(Q.indexOf("$unconfigured")>-1){Ext.Msg.show({title:credUrlPageName,msg:validUrl,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("urlCred"+N).focus(true,true);}});return;
}else{if(!checkblank(Q)){Ext.Msg.show({title:credUrlPageName,msg:enterUrl,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("urlCred"+N).focus(true,true);}});return;}else{if(!checkspecialnomess(Q,"|\"'")){Ext.Msg.show({title:credUrlPageName,msg:validUrl,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("urlCred"+N).focus(true,true);
}});return;}else{if(!Q.startsWith("curl")){if(!checkHyphenText(Q,Q)){Ext.getCmp("urlCred"+N).focus(true,true);return;}}else{A=true;}}}}if(!checkblank(H)){Ext.Msg.show({title:credUrlPageName,msg:enterUsr,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("usrnameCred"+N).focus(true);}});
return;}else{if(!checkspecialExt(H,"*+=|:;\"'<>/[]?,")){Ext.Msg.show({title:credUrlPageName,msg:_checkspecial,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("usrnameCred"+N).focus(true,true);}});return;}else{if(H.indexOf("..")>-1){Ext.Msg.show({title:credUrlPageName,msg:_checkdots,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("usrnameCred"+N).focus(true);
}});return;}else{if(H.indexOf("  ")>-1){Ext.Msg.show({title:credUrlPageName,msg:_checkSpaces,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("usrnameCred"+N).focus(true);}});return;}else{if(!checkHyphenText(H,H)){Ext.getCmp("usrnameCred"+N).focus();return;}else{T=true;}}}}}if(!checkblank(C)){Ext.Msg.show({title:credUrlPageName,msg:enterPwd,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("pwdCred"+N).focus(true);
}});return;}else{if(!checkspecialnomess(C,",|")){Ext.Msg.show({title:credUrlPageName,msg:PwdNotPipe,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("pwdCred"+N).focus(true);}});return;}else{B=true;}}if(!checkblank(x)){Ext.Msg.show({title:credUrlPageName,msg:enterContent,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("subcontentCred"+N).focus(true);
}});return;}else{if(!checkspecialExt(x,",|:\"'<>")){Ext.Msg.show({title:credUrlPageName,msg:_checkspecial,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("subcontentCred"+N).focus(true,true);}});return;}else{if(x.indexOf(" ")>-1){Ext.Msg.show({title:credUrlPageName,msg:_spaceMessage,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("subcontentCred"+N).focus(true);
}});return;}else{if(!checkHyphenText(x,x)){Ext.getCmp("subcontentCred"+N).focus();return;}else{n=true;}}}}if(!checkblank(M)){Ext.Msg.show({title:credUrlPageName,msg:enterEncoding,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("encodeCred"+N).focus(true);}});return;}else{if(!checkspecialExt(M,"@*+=|:;\"'<>/[]?,")){Ext.Msg.show({title:credUrlPageName,msg:_checkspecial,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("encodeCred"+N).focus(true,true);
}});return;}else{if(M.indexOf("  ")>-1){Ext.Msg.show({title:credUrlPageName,msg:_checkSpaces,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("encodeCred"+N).focus(true);}});return;}else{if(!checkHyphenText(M,M)){Ext.getCmp("encodeCred"+N).focus();return;}else{u=true;}}}}if(p){var j=Ext.getCmp("sysPropsMainContainer"+N);
var e=j.items.getCount();if(e>0){for(var v=0;v<e;v++){h=Ext.getCmp("syspropkey_"+N+"_"+(v+1)).getValue();l=Ext.getCmp("syspropval_"+N+"_"+(v+1)).getValue();if(!checkblank(h)){Ext.Msg.show({title:credUrlPageName,msg:enterSystemPropKey,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("syspropkey_"+N+"_"+(v+1)).focus(true,true);
}});return;}else{if(!checkspecialExt(h,"@*+=|:;\"'<>/[]?,!")){Ext.Msg.show({title:credUrlPageName,msg:_checkspecial,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("syspropkey_"+N+"_"+(v+1)).focus(true,true);}});return;}else{if(h.indexOf("  ")>-1){Ext.Msg.show({title:credUrlPageName,msg:_checkSpaces,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("syspropkey_"+N+"_"+(v+1)).focus(true,true);
}});return;}}}if(!checkblank(l)){Ext.Msg.show({title:credUrlPageName,msg:enterSystemPropValue,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("syspropval_"+N+"_"+(v+1)).focus(true,true);}});return;}else{if(!checkspecialExt(l,"~#@*+=|:;\"'<>/[]?")){Ext.Msg.show({title:credUrlPageName,msg:_checkspecial,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("syspropval_"+N+"_"+(v+1)).focus(true,true);
}});return;}else{if(l.indexOf("  ")>-1){Ext.Msg.show({title:credUrlPageName,msg:_checkSpaces,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("syspropval_"+N+"_"+(v+1)).focus(true,true);}});return;}}}}}}if(t==true){if(b.indexOf("$unconfigured")>-1){Ext.Msg.show({title:credUrlPageName,msg:enterValidPath,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("privateKey"+N).focus(true);
}});return;}else{if(!checkblank(b)){Ext.Msg.show({title:credUrlPageName,msg:enterFilePath,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("privateKey"+N).focus(true);}});return;}else{if(b.indexOf("  ")>-1){Ext.Msg.show({title:credUrlPageName,msg:_checkSpaces,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("privateKey"+N).focus(true);
}});return;}}}if(!checkblank(z)){Ext.Msg.show({title:credUrlPageName,msg:enterPwd,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("passKey"+N).focus(true);}});return;}else{if(!checkspecialnomess(z,",|")){Ext.Msg.show({title:credUrlPageName,msg:PwdNotPipe,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("passKey"+N).focus(true);
}});return;}}}O=O+","+y;r=r+","+y+":"+Q;I=I+"|"+y+":"+Q;S=S+","+H+":"+C;F=F+","+J+":"+x;P=P+","+M;if(t==true){R=R+","+b+"#~~#"+z;}if(p==true){var G=Ext.getCmp("sysPropsMainContainer"+N);var E=G.items.getCount();var K="";var d="";if(E>0){for(var v=0;v<E;v++){K+=Ext.getCmp("syspropkey_"+N+"_"+(v+1)).getValue().trim()+"!@!";
d+=Ext.getCmp("syspropval_"+N+"_"+(v+1)).getValue().trim()+"!@!";}}if(!Ext.isEmpty(K)){K=K.substring(0,K.length-3);d=d.substring(0,d.length-3);}k=k+","+K;var o=d;if(o.indexOf(",")!=-1){o=o.replace(/,/g,"~#~");}w=w+","+o;}}O=O.substring(1);r=r.substring(1);I=I.substring(1);S=S.substring(1);F=F.substring(1);
P=P.substring(1);if(t==true){R=R.substring(1);Ext.getCmp("privateKey").setValue(R);}if(p==true){k=k.substring(1);w=w.substring(1);Ext.getCmp("systempropertykey").setValue(k);Ext.getCmp("systempropertyvalue").setValue(w);}if(L){Ext.getCmp("url").setValue(O);Ext.getCmp("hiddenURLs").setValue(I);}else{Ext.getCmp("url").setValue(r);
}Ext.getCmp("credentials").setValue(S);Ext.getCmp("content").setValue(F);Ext.getCmp("encoding").setValue(P);Ext.getCmp("egconfigureurlandcredentials").destroy();var f=Ext.getCmp("componentType").getValue();var s=publicJson["testName"];Ext.Ajax.request({url:"DefaultTestConfiguration/data/EgConfigureDefaultTestParamsJson.jsp?cType_HelpPage="+f+"&componentType="+f+"&tName_HelpPage="+s+"&testName="+s,method:"POST"});
},configurlnamepatterns:function(c){Ext.create("DefaultTestConfiguration.view.EgConfigureNamePattern").show();var e="";inputsUrlNme=2;isNamePtn="false";var j=Ext.getCmp("name").getValue();var a=Ext.getCmp("pattern").getValue();var b=Ext.getCmp("threshold_value").getValue();var h=j.split(",");var f=a.split(",");
var g=b.split(",");if(h!=null||h!=undefined){for(var d=0;d<h.length-1;d++){addUrlNameContact();}for(e=1;e<h.length+1;e++){if(Ext.getCmp("nameurl"+e)==undefined){continue;}Ext.getCmp("nameurl"+e).setValue(h[e-1]);Ext.getCmp("patternurl"+e).setValue(f[e-1]);Ext.getCmp("thresholdurl"+e).setValue(g[e-1]);
}}Ext.Ajax.request({url:"DefaultTestConfiguration/data/defaulttesthelpJson.jsp?mode=egconfigurenamepattern",method:"POST",async:false});},clearUrlName:function(b){var a=Ext.getCmp("urlpatterncontainer");a.removeAll();Ext.getCmp("addUrlNamebtn").setText("Add");Ext.getCmp("NoUrlPattern").show();if(Ext.getCmp("con_1")!=null||Ext.getCmp("con_1")!=undefined){isNamePtn="true";
Ext.getCmp("con_1").removeAll();Ext.getCmp("con_1").hide();}Ext.getCmp("updateUrlPattern").disable();Ext.getCmp("clearUrlPattern").disable();},updateUrlName:function(e){var q=/^([0-9]+\.|\.)?[0-9]+$/gi;var p=/\s/gi;var d=/(;)$/gi;var b="";var h="";var a="";var r="";var l="";var o="";var f=0;var g=inputsUrlNme;
for(var k=1;k<g;k++){if(Ext.getCmp("nameurl"+k)==undefined){continue;}r=Ext.getCmp("nameurl"+k).getValue();l=Ext.getCmp("patternurl"+k).getValue();o=Ext.getCmp("thresholdurl"+k).getValue();if(r==null){continue;}if(r!=null){f++;if(!checkblank(r)||(r=="$unconfigured")){Ext.Msg.show({title:namePatternPageName,msg:enterName,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("nameurl"+k).focus(true);
}});return;}else{if(!nonNumeric(r)){Ext.getCmp("nameurl"+k).focus();return;}else{if(!checkspace(r)){Ext.getCmp("nameurl"+k).focus();return;}else{if((r).indexOf(",")>-1){Ext.Msg.show({title:namePatternPageName,msg:_checkspecial,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("nameurl"+k).focus(true);
}});return;}else{if(!checkHyphenText(r,r)){Ext.getCmp("nameurl"+k).focus();return;}else{if(!checkspecial(r,"$@*.+=|:;\"'<>/[]?,\\&")){Ext.getCmp("nameurl"+k).focus();return;}}}}}}var m=b.substring(b.lastIndexOf((","+r)));if((m==(","+r))||(b.indexOf((","+r)+",")!=-1)){Ext.Msg.show({title:namePatternPageName,msg:_uniqueName,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("nameurl"+k).focus(true);
}});return;}}if(l!=null){if(!checkblank(l)||(l=="$unconfigured")){Ext.Msg.show({title:namePatternPageName,msg:enterPattern,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("patternurl"+k).focus(true);}});return;}else{if(!nonNumeric(l)){Ext.getCmp("patternurl"+k).focus();return;}else{if(!checkspecial(l,"$@+|:\"'<>[]-,")){Ext.getCmp("patternurl"+k).focus();
return;}else{if(!checkspace(l)){Ext.getCmp("patternurl"+k).focus();return;}else{if(trim(l)==""){Ext.getCmp("patternurl"+k).focus();return;}else{if(l.indexOf("..")>-1){Ext.Msg.show({title:namePatternPageName,msg:_checkdots,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("patternurl"+k).focus(true);
}});return;}else{if(l.indexOf(";;")>-1){Ext.Msg.show({title:namePatternPageName,msg:_checkSemicolons,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("patternurl"+k).focus(true);}});return;}else{if(l.indexOf("  ")>-1){Ext.Msg.show({title:namePatternPageName,msg:_checkSpaces,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("patternurl"+k).focus(true);
}});return;}else{if(l.match(d)!=null){Ext.Msg.show({title:namePatternPageName,msg:_invalidPattern,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("patternurl"+k).focus(true);}});return;}}}}}}}}}}if(o!=null){if(!checkblank(o)||(o=="$unconfigured")){Ext.Msg.show({title:namePatternPageName,msg:enterThresh,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("thresholdurl"+k).focus(true);
}});return;}else{if(!checkspace(o)){Ext.getCmp("thresholdurl"+k).focus();return;}else{if(o.match(q)==null){Ext.Msg.show({title:namePatternPageName,msg:_numeralsOnly,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("thresholdurl"+k).focus(true);}});return;}else{if(!checkspecial(o,"@$*+=|:;\"'<>/[]?,")){Ext.getCmp("thresholdurl"+k).focus();
return;}else{if(trim(o)==""){Ext.getCmp("thresholdurl"+k).focus();return;}else{if(!checkHyphenText(o,o)){Ext.getCmp("thresholdurl"+k).focus();return;}else{if(o.indexOf("..")>-1){Ext.Msg.show({title:namePatternPageName,msg:_checkdots,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("thresholdurl"+k).focus(true);
}});return;}}}}}}}}if(f>1){Ext.getCmp("name").setReadOnly(true);Ext.getCmp("pattern").setReadOnly(true);Ext.getCmp("threshold_value").setReadOnly(true);}b=b+","+r;h=h+","+l;a=a+","+o;}if(f<=1){Ext.getCmp("name").setReadOnly(false);Ext.getCmp("pattern").setReadOnly(false);Ext.getCmp("threshold_value").setReadOnly(false);
}b=b.replace(",","");h=h.replace(",","");a=a.replace(",","");Ext.getCmp("name").setValue(b);Ext.getCmp("pattern").setValue(h);Ext.getCmp("threshold_value").setValue(a);Ext.getCmp("egconfigurenamepattern").destroy();var n=Ext.getCmp("componentType").getValue();var c=publicJson["testName"];Ext.Ajax.request({url:"DefaultTestConfiguration/data/EgConfigureDefaultTestParamsJson.jsp?cType_HelpPage="+n+"&componentType="+n+"&tName_HelpPage="+c+"&testName="+c,method:"POST"});
},configWindowShareds:function(e){Ext.create("DefaultTestConfiguration.view.EgConfigureWinSharedFolders").show();var o="";inputWinShared=2;noWinConfig="false";var b=Ext.getCmp("sharename").getValue();var a=Ext.getCmp("domainname").getValue();var d=Ext.getCmp("shareusername").getValue();var q=Ext.getCmp("password").getValue();
var p=b.split(",");var m=a.split(",");var l=d.split(",");var j=q.split("#~#");var r="";var g="";var c="";var n="";var h="";if(p!=null||p!=undefined){for(var f=0;f<p.length-1;f++){addWinSharedContact();}for(o=1;o<p.length+1;o++){r=p[o-1].substring(0,p[o-1].indexOf("@"));g=p[o-1].substring(p[o-1].indexOf("@")+1);
c=m[o-1].substring(m[o-1].indexOf("@")+1);n=l[o-1].substring(l[o-1].indexOf("@")+1);h=j[o-1].substring(j[o-1].indexOf("@")+1);if(Ext.getCmp("displayNme"+o)==undefined){continue;}if(b=="$unconfigured"){Ext.getCmp("displayNme"+o).setValue("$unconfigured");}else{Ext.getCmp("displayNme"+o).setValue(r);}Ext.getCmp("shareNme"+o).setValue(g);
Ext.getCmp("domainNme"+o).setValue(c);Ext.getCmp("userNme"+o).setValue(n);Ext.getCmp("pwdNme"+o).setValue(h);Ext.getCmp("confPwdNme"+o).setValue(h);Ext.getCmp("pwdNme"+o).backupValue=h;Ext.getCmp("confPwdNme"+o).backupValue=h;}}Ext.Ajax.request({url:"DefaultTestConfiguration/data/defaulttesthelpJson.jsp?mode=egconfigurewinsharedfolders",method:"POST",async:false});
},clearWinShared:function(b){var a=Ext.getCmp("winsharedcontainer");a.removeAll();if(Ext.getCmp("con_win1")!=null||Ext.getCmp("con_win1")!=undefined){noWinConfig="true";Ext.getCmp("con_win1").removeAll();Ext.getCmp("con_win1").hide();}Ext.getCmp("addwinsharedbtn").setText("Add");Ext.getCmp("NoWinSharedPattern").show();
Ext.getCmp("updateWinShared").disable();Ext.getCmp("clearWinShared").disable();},updateWinShared:function(d){var l="";var q="";var b="";var j="";var m=new Array();var r=inputWinShared;for(var g=1;g<r;g++){if(Ext.getCmp("displayNme"+g)==undefined){continue;}var a=Ext.getCmp("displayNme"+g).getValue();
var s=Ext.getCmp("shareNme"+g).getValue();var p=Ext.getCmp("domainNme"+g).getValue();var f=Ext.getCmp("userNme"+g).getValue();var h=Ext.getCmp("pwdNme"+g).getValue();var e=Ext.getCmp("confPwdNme"+g).getValue();if(a==null||s==null||p==null||f==null||h==null||e==null){continue;}var o=m.indexOf(a);if(o!=-1){Ext.Msg.show({title:winsharePageName,msg:duplicateDisp,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("displayNme"+g).focus(true);
}});return;}m[g]=a;if(a.indexOf("$unconfigured")>-1){Ext.Msg.show({title:winsharePageName,msg:enterValidDisp,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("displayNme"+g).focus(true);}});return;}else{if(!checkblank(a)){Ext.Msg.show({title:winsharePageName,msg:enterDisp,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("displayNme"+g).focus(true);
}});return;}else{if(!checkspecial(a,"@*+=|:;\"'<>/[]?,")){Ext.getCmp("displayNme"+g).focus();return;}else{if(a.indexOf("  ")>-1){Ext.Msg.show({title:winsharePageName,msg:_checkSpaces,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("displayNme"+g).focus(true);}});return;}else{if(!checkHyphenText(a,a)){Ext.getCmp("displayNme"+g).focus();
return;}}}}}if(s.indexOf("$unconfigured")>-1){Ext.Msg.show({title:winsharePageName,msg:enterValidShare,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("shareNme"+g).focus(true);}});return;}else{if(!checkblank(s)){Ext.Msg.show({title:winsharePageName,msg:enterShare,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("shareNme"+g).focus(true);
}});return;}else{if(!checkspecial(s,"@*+=|:;\"'<>/[]?,")){Ext.getCmp("shareNme"+g).focus();return;}else{if(s.indexOf("  ")>-1){Ext.Msg.show({title:winsharePageName,msg:_checkSpaces,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("shareNme"+g).focus(true);}});return;}else{if(!checkHyphenText(s,s)){Ext.getCmp("shareNme"+g).focus();
return;}}}}}if(!checkblank(p)){Ext.Msg.show({title:winsharePageName,msg:enterDomain,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("domainNme"+g).focus(true);}});return;}else{if(!checkDomain(p,"true")){Ext.getCmp("domainNme"+g).focus();return;}else{if(p.indexOf(",")>-1){Ext.Msg.show({title:winsharePageName,msg:_checkspecial,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("domainNme"+g).focus(true);
}});return;}else{if(!checkHyphenText(p,p)){Ext.getCmp("domainNme"+g).focus();return;}else{if(p.indexOf("..")>-1){Ext.Msg.show({title:winsharePageName,msg:_checkdots,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("domainNme"+g).focus(true);}});return;}}}}}if(!checkblank(f)){Ext.Msg.show({title:winsharePageName,msg:enterUsr,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("userNme"+g).focus(true);
}});return;}else{if(f.indexOf("$unconfigured")>-1){Ext.Msg.show({title:winsharePageName,msg:donotSpecifyKey,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("userNme"+g).focus(true);}});return;}else{if(!checkspecial(f,"*+=|:;\"'<>/[]?,")){Ext.getCmp("userNme"+g).focus();return;}else{if(f.indexOf("..")>-1){Ext.Msg.show({title:winsharePageName,msg:_checkdots,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("userNme"+g).focus(true);
}});return;}else{if(f.indexOf("  ")>-1){Ext.Msg.show({title:winsharePageName,msg:_checkSpaces,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("userNme"+g).focus(true);}});return;}else{if(!checkHyphenText(f,f)){Ext.getCmp("userNme"+g).focus();return;}}}}}}if(!checkblank(h)){Ext.Msg.show({title:winsharePageName,msg:enterPwd,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("pwdNme"+g).focus(true);
}});return;}else{if(h.indexOf("$unconfigured")>-1){Ext.Msg.show({title:winsharePageName,msg:donotSpecifyKey,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("pwdNme"+g).focus(true);}});return;}else{if(!checkspecialnomess(h,",|")){Ext.Msg.show({title:winsharePageName,msg:PwdNotPipe,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("pwdNme"+g).focus(true);
}});return;}else{if(h.indexOf("#~#")>-1){Ext.Msg.show({title:winsharePageName,msg:_checkHashTildeHash,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("pwdNme"+g).focus(true);}});return;}}}}if(!checkblank(e)){Ext.Msg.show({title:winsharePageName,msg:enterCnfPwd,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("confPwdNme"+g).focus(true);
}});return;}else{if(e.indexOf("$unconfigured")>-1){Ext.Msg.show({title:winsharePageName,msg:donotSpecifyKey,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("confPwdNme"+g).focus(true);}});return;}else{if(h!=e){Ext.Msg.show({title:winsharePageName,msg:matchPwd,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("confPwdNme"+g).focus(true);
}});return;}}}l=l+","+a+"@"+s;q=q+","+a+"@"+p;b=b+","+a+"@"+f;j=j+"#~#"+a+"@"+h;}l=l.substring(1);q=q.substring(1);b=b.substring(1);j=j.substring(3);Ext.getCmp("sharename").setValue(l);Ext.getCmp("domainname").setValue(q);Ext.getCmp("shareusername").setValue(b);Ext.getCmp("password").setValue(j);Ext.getCmp("egconfigurewinsharedfolders").destroy();
var n=Ext.getCmp("componentType").getValue();var c=publicJson["testName"];Ext.Ajax.request({url:"DefaultTestConfiguration/data/EgConfigureDefaultTestParamsJson.jsp?cType_HelpPage="+n+"&componentType="+n+"&tName_HelpPage="+c+"&testName="+c,method:"POST"});},configureWsdlUrls:function(){Ext.create("DefaultTestConfiguration.view.EgConfigureWsdlUrlAndCredentials").show();
var f="";inputsWsdlUrl=2;noWsdl="false";var j=Ext.getCmp("WSDL_URL").getValue();var p=Ext.getCmp("credentials").getValue();var b=Ext.getCmp("content").getValue();var m=Ext.getCmp("encoding").getValue();var e=j.split(",");var q=p.split(",");var n=b.split(",");var a=m.split(",");var o="";var d="";var l="";
var c="";var h="";var r="";if(j!=null||j!=undefined){for(var g=0;g<e.length-1;g++){addWsdlUrlContact();}for(f=1;f<e.length+1;f++){o=e[f-1].substring(0,e[f-1].indexOf(":"));d=e[f-1].substring(e[f-1].indexOf(":")+1);l=q[f-1].substring(0,q[f-1].indexOf(":"));c=q[f-1].substring(q[f-1].indexOf(":")+1);h=n[f-1].substring(0,n[f-1].indexOf(":"));
r=n[f-1].substring(n[f-1].indexOf(":")+1);if(Ext.getCmp("nameWsdl"+f)==undefined){continue;}if(e=="$unconfigured"){Ext.getCmp("nameWsdl"+f).setValue("$unconfigured");}else{Ext.getCmp("nameWsdl"+f).setValue(o);}Ext.getCmp("urlWsdl"+f).setValue(d);Ext.getCmp("usrnameWsdl"+f).setValue(l);Ext.getCmp("pwdWsdl"+f).setValue(c);
Ext.getCmp("pwdWsdl"+f).backupValue=c;if(h=="Inc"){Ext.getCmp("contentWsdl"+f).setValue("Inc");}else{if(h=="Exc"){Ext.getCmp("contentWsdl"+f).setValue("Exc");}else{Ext.getCmp("contentWsdl"+f).setValue("none");}}Ext.getCmp("subcontentWsdl"+f).setValue(r);Ext.getCmp("encodeWsdl"+f).setValue(a[f-1]);}}Ext.Ajax.request({url:"DefaultTestConfiguration/data/defaulttesthelpJson.jsp?mode=egconfigurewsdlurlandcredentials",method:"POST",async:false});
},clearWsdlUrl:function(a){var b=Ext.getCmp("wsdlurlcontainer");b.removeAll();Ext.getCmp("addWsdlUrlbtn").setText("Add");Ext.getCmp("NoWsdlUrlPattern").show();if(Ext.getCmp("con_wsdl1")!=null||Ext.getCmp("con_wsdl1")!=undefined){noWsdl="true";Ext.getCmp("con_wsdl1").removeAll();Ext.getCmp("con_wsdl1").hide();
}Ext.getCmp("updateWsdlUrl").disable();Ext.getCmp("clearWsdlUrl").disable();},updateWsdlUrl:function(){var q="";var k="";var p="";var l="";var r=new Array();var b=inputsWsdlUrl;for(var f=1;f<b;f++){if(Ext.getCmp("nameWsdl"+f)==undefined){continue;}var c=Ext.getCmp("nameWsdl"+f).getValue();var g=Ext.getCmp("urlWsdl"+f).getValue();
var e=Ext.getCmp("usrnameWsdl"+f).getValue();var j=Ext.getCmp("pwdWsdl"+f).getValue();var h=Ext.getCmp("subcontentWsdl"+f).getValue();var a=Ext.getCmp("contentWsdl"+f).getValue();var s=Ext.getCmp("encodeWsdl"+f).getValue();if(c==null||g==null||e==null||j==null||h==null||a==null||s==null){continue;}var o=r.indexOf(c);
if(o!=-1){Ext.Msg.show({title:credUrlPageName,msg:duplicateNtAlwd,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("nameWsdl"+f).focus(true);}});return;}r[f]=c;if(c.indexOf("$unconfigured")>-1){Ext.Msg.show({title:credUrlPageName,msg:validName,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("nameWsdl"+f).focus(true);
}});return;}else{if(!checkblank(c)){Ext.Msg.show({title:credUrlPageName,msg:entName,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("nameWsdl"+f).focus(true);}});return;}else{if(!checkspecial(c,"@*+=|:;\"'<>/[]?,")){Ext.getCmp("nameWsdl"+f).focus();return;}else{if(c.indexOf("  ")>-1){Ext.Msg.show({title:credUrlPageName,msg:_checkSpaces,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("nameWsdl"+f).focus(true);
}});return;}else{if(!checkHyphenText(c,c)){Ext.getCmp("nameWsdl"+f).focus();return;}}}}}if(g.indexOf("$unconfigured")>-1){Ext.Msg.show({title:credUrlPageName,msg:validUrl,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("urlWsdl"+f).focus(true);}});return;}else{if(!checkblank(g)){Ext.Msg.show({title:credUrlPageName,msg:enterUrl,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("urlWsdl"+f).focus(true);
}});return;}else{if(!checkspecialnomess(g,",|\"'")){Ext.Msg.show({title:credUrlPageName,msg:validUrl,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("urlWsdl"+f).focus(true);}});return;}else{if(!checkHyphenText(g,g)){Ext.getCmp("urlWsdl"+f).focus();return;}}}}if(!checkblank(e)){Ext.Msg.show({title:credUrlPageName,msg:enterUsr,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("usrnameWsdl"+f).focus(true);
}});return;}else{if(e.indexOf("..")>-1){Ext.Msg.show({title:credUrlPageName,msg:_checkdots,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("usrnameWsdl"+f).focus(true);}});return;}else{if(e.indexOf("  ")>-1){Ext.Msg.show({title:credUrlPageName,msg:_checkSpaces,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("usrnameWsdl"+f).focus(true);
}});return;}else{if(!checkHyphenText(e,e)){Ext.getCmp("usrnameWsdl"+f).focus();return;}}}}if(!checkblank(j)){Ext.Msg.show({title:credUrlPageName,msg:enterPwd,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("pwdWsdl"+f).focus(true);}});return;}else{if(!checkspecialnomess(j,",|")){Ext.Msg.show({title:credUrlPageName,msg:PwdNotPipe,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("pwdWsdl"+f).focus(true);
}});return;}}if(!checkblank(a)){Ext.Msg.show({title:credUrlPageName,msg:enterContent,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("contentWsdl"+f).focus(true);}});return;}else{if(!checkspecial(a,",|:\"'<>")){Ext.getCmp("contentWsdl"+f).focus();return;}else{if(a.indexOf(" ")>-1){Ext.Msg.show({title:credUrlPageName,msg:_spaceMessage,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("contentWsdl"+f).focus(true);
}});return;}else{if(!checkHyphenText(a,a)){Ext.getCmp("contentWsdl"+f).focus();return;}}}}if(!checkblank(s)){Ext.Msg.show({title:credUrlPageName,msg:enterEncoding,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("encodeWsdl"+f).focus(true);}});return;}else{if(!checkspecial(s,"@*+=|:;\"'<>/[]?,")){Ext.getCmp("encodeWsdl"+f).focus();
return;}else{if(s.indexOf("  ")>-1){Ext.Msg.show({title:credUrlPageName,msg:_checkSpaces,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("encodeWsdl"+f).focus(true);}});return;}else{if(!checkHyphenText(s,s)){Ext.getCmp("encodeWsdl"+f).focus();return;}}}}q=q+","+c+":"+g;k=k+","+e+":"+j;
p=p+","+h+":"+a;l=l+","+s;}q=q.substring(1);k=k.substring(1);p=p.substring(1);l=l.substring(1);Ext.getCmp("WSDL_URL").setValue(q).setReadOnly(true);Ext.getCmp("credentials").setValue(k);Ext.getCmp("content").setValue(p);Ext.getCmp("encoding").setValue(l);Ext.getCmp("egconfigurewsdlurlandcredentials").destroy();
var n=Ext.getCmp("componentType").getValue();var d=publicJson["testName"];Ext.Ajax.request({url:"DefaultTestConfiguration/data/EgConfigureDefaultTestParamsJson.jsp?cType_HelpPage="+n+"&componentType="+n+"&tName_HelpPage="+d+"&testName="+d,method:"POST"});},checkspecialnomess:function(c,b){if(typeof(c)=="object"){obj_val=c.value;
}else{obj_val=c;}for(var a=0;a<obj_val.length;a++){check_char=b.indexOf(obj_val.charAt(a));if(check_char>=0){return false;}}return true;},checkHyphenText:function(c,b){var a=true;if(b=="recordpattern"||b=="process"||b=="exclude"||b=="content"||b=="servicename"){return a;}if(c.charAt(0)=="-"||c.charAt(c.length-1)=="-"){Ext.Msg.show({title:pageName,msg:_checkhyphen,buttons:Ext.MessageBox.OK,icon:"iconExclamation",});
a=false;}else{for(i=0;i<c.length;i++){if(c.charAt(i)=="-"){if(c.charAt(i+1)==" "||c.charAt(i-1)==" "){Ext.Msg.show({title:pageName,msg:_valhyphen,buttons:Ext.MessageBox.OK,icon:"iconExclamation",});a=false;break;}}}}return a;},configRunTimePatrn:function(c){Ext.create("DefaultTestConfiguration.view.EgRuntimePattern").show();
runinputs=0;var a=Ext.getCmp("componentType").getValue();var b=Ext.getCmp("testName").getValue();Ext.Ajax.request({url:"DefaultTestConfiguration/data/EgRuntimePatternJson.jsp?testParam="+c+"&servername="+a+"&testname="+b,method:"POST",async:false,success:function(d){var f=d.responseText;publicJSON=Ext.decode(f);
var g=publicJSON["noOfOS"];if(g!="undefined"&&g>=1){for(var e=0;e<g;e++){addRunTimeContact();Ext.getCmp("osSpecification"+e).setValue(publicJSON["pattern"+e]);Ext.getCmp("osSpecification"+e).setFieldLabel(publicJSON["agentOS"+e]);}}}});},updateRuntimePatern:function(){var c=publicJSON["testParam"];if(c=="process"){this.checkProcessPattern();
}else{if(c=="serviceName"){this.checkServicePattern();}}var b=Ext.getCmp("componentType").getValue();var a=publicJson["testName"];Ext.Ajax.request({url:"DefaultTestConfiguration/data/EgConfigureDefaultTestParamsJson.jsp?cType_HelpPage="+b+"&componentType="+b+"&tName_HelpPage="+a+"&testName="+a,method:"POST"});
},checkServicePattern:function(){var f=publicJSON["noOfOS"];var m="";var h=true;var l="`~!@#%^*={}|:;\"'<>?";var d="";for(var c=0;c<f;c++){var g=Ext.getCmp("osSpecification"+c).getValue();var b=Ext.getCmp("osSpecification"+c).getFieldLabel();var a=publicJSON["strVariable"+c];if(g.length==0){if(b=="Windows2000"){Ext.Msg.show({title:runtimePageName,msg:servFor2000,buttons:Ext.Msg.OK,icon:"iconExclamation"});
h=false;}else{if(b=="Windows2003"){Ext.Msg.show({title:runtimePageName,msg:servFor2003,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;}else{if(b=="WindowsNT"){Ext.Msg.show({title:runtimePageName,msg:servForNT,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;}else{if(b=="Windows2008"){Ext.Msg.show({title:runtimePageName,msg:servFor2008,buttons:Ext.Msg.OK,icon:"iconExclamation"});
h=false;}else{if(b=="Linux"){Ext.Msg.show({title:runtimePageName,msg:servForLinux,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;}else{if(b=="Solaris"){Ext.Msg.show({title:runtimePageName,msg:servForSolaris,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;}else{if(b=="AIX"){Ext.Msg.show({title:runtimePageName,msg:servForAIX,buttons:Ext.Msg.OK,icon:"iconExclamation"});
h=false;}else{if(b=="HPUX"){Ext.Msg.show({title:runtimePageName,msg:servForHPUX,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;}else{Ext.Msg.show({title:runtimePageName,msg:serv,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;}}}}}}}}}else{if(g.indexOf(",")==0||g.charAt(g.length-1)==","){if(b=="Windows2000"){Ext.Msg.show({title:runtimePageName,msg:validservFor2000,buttons:Ext.Msg.OK,icon:"iconExclamation"});
h=false;}else{if(b=="Windows2003"){Ext.Msg.show({title:runtimePageName,msg:validservFor2003,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;}else{if(b=="WindowsNT"){Ext.Msg.show({title:runtimePageName,msg:validservForNT,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;}else{if(b=="Windows2008"){Ext.Msg.show({title:runtimePageName,msg:validservFor2008,buttons:Ext.Msg.OK,icon:"iconExclamation"});
h=false;}else{if(b=="Linux"){Ext.Msg.show({title:runtimePageName,msg:validservForLinux,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;}else{if(b=="Solaris"){Ext.Msg.show({title:runtimePageName,msg:validservForSolaris,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;}else{if(b=="AIX"){Ext.Msg.show({title:runtimePageName,msg:validservForAIX,buttons:Ext.Msg.OK,icon:"iconExclamation"});
h=false;}else{if(b=="HPUX"){Ext.Msg.show({title:runtimePageName,msg:validservForHPUX,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;}else{Ext.Msg.show({title:runtimePageName,msg:validserv,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;}}}}}}}}}else{for(var j=0;j<g.length;j++){if((g.charAt(j)==","&&g.charAt(j+1)==",")){if(b=="Windows2000"){Ext.Msg.show({title:runtimePageName,msg:validservFor2000,buttons:Ext.Msg.OK,icon:"iconExclamation"});
h=false;break;}else{if(b=="Windows2003"){Ext.Msg.show({title:runtimePageName,msg:validservFor2003,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;break;}else{if(b=="WindowsNT"){Ext.Msg.show({title:runtimePageName,msg:validservForNT,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;break;}else{if(b=="Windows2008"){Ext.Msg.show({title:runtimePageName,msg:validservFor2008,buttons:Ext.Msg.OK,icon:"iconExclamation"});
h=false;break;}else{if(b=="Linux"){Ext.Msg.show({title:runtimePageName,msg:validservForLinux,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;break;}else{if(b=="Solaris"){Ext.Msg.show({title:runtimePageName,msg:validservForSolaris,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;break;}else{if(b=="AIX"){Ext.Msg.show({title:runtimePageName,msg:validservForAIX,buttons:Ext.Msg.OK,icon:"iconExclamation"});
h=false;break;}else{if(b=="HPUX"){Ext.Msg.show({title:runtimePageName,msg:validservForHPUX,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;break;}else{Ext.Msg.show({title:runtimePageName,msg:validserv,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;break;}}}}}}}}}else{check_char=l.indexOf(g.charAt(j));
if(check_char>=0){if(b=="Windows2000"){Ext.Msg.show({title:runtimePageName,msg:specialchrserv2000,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;break;}else{if(b=="Windows2003"){Ext.Msg.show({title:runtimePageName,msg:specialchrserv2003,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;break;}else{if(b=="WindowsNT"){Ext.Msg.show({title:runtimePageName,msg:specialchrservNT,buttons:Ext.Msg.OK,icon:"iconExclamation"});
h=false;break;}else{if(b=="Windows2008"){Ext.Msg.show({title:runtimePageName,msg:specialchrserv2008,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;break;}else{if(b=="Linux"){Ext.Msg.show({title:runtimePageName,msg:specialchrservLinux,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;break;}else{if(b=="Solaris"){Ext.Msg.show({title:runtimePageName,msg:specialchrservSolaris,buttons:Ext.Msg.OK,icon:"iconExclamation"});
h=false;break;}else{if(b=="AIX"){Ext.Msg.show({title:runtimePageName,msg:specialchrservAIX,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;break;}else{if(b=="HPUX"){Ext.Msg.show({title:runtimePageName,msg:specialchrservHPUX,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;break;}else{Ext.Msg.show({title:runtimePageName,msg:specialchrserv,buttons:Ext.Msg.OK,icon:"iconExclamation"});
h=false;break;}}}}}}}}}}}}}d+=a+"~|~"+g+"~#~";}if(d!=null&&d.indexOf("~#~")>-1){d=d.substring(0,d.lastIndexOf("~#~"));}if(h){var e="DefaultTestConfiguration/data/EgRuntimePatternpJson.jsp?";var k="&urlLinkRunTime="+encodeURIComponent(d,"UTF-8");Ext.Ajax.request({url:e,params:k,method:"POST",async:false,success:function(n){var o=n.responseText;
publicJSON=Ext.decode(o);}});Ext.getCmp("egruntimepattern").destroy();}},checkProcessPattern:function(){var f=publicJSON["noOfOS"];var h=true;var l="`+{}[]=|<>?!@#%^&()\"';";var d="";for(var c=0;c<f;c++){var g=Ext.getCmp("osSpecification"+c).getValue();var b=Ext.getCmp("osSpecification"+c).getFieldLabel();
var a=publicJSON["strVariable"+c];if(g.length==0){if(b=="Windows2000"){Ext.Msg.show({title:runtimePageName,msg:patrnFor2000,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;}else{if(b=="Windows2003"){Ext.Msg.show({title:runtimePageName,msg:patrnFor2003,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;
}else{if(b=="WindowsNT"){Ext.Msg.show({title:runtimePageName,msg:patrnForNT,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;}else{if(b=="Windows2008"){Ext.Msg.show({title:runtimePageName,msg:patrnFor2008,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;}else{if(b=="Linux"){Ext.Msg.show({title:runtimePageName,msg:patrnForLinux,buttons:Ext.Msg.OK,icon:"iconExclamation"});
h=false;}else{if(b=="Solaris"){Ext.Msg.show({title:runtimePageName,msg:patrnForSolaris,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;}else{if(b=="AIX"){Ext.Msg.show({title:runtimePageName,msg:patrnForAIX,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;}else{if(b=="HPUX"){Ext.Msg.show({title:runtimePageName,msg:patrnForHPUX,buttons:Ext.Msg.OK,icon:"iconExclamation"});
h=false;}else{Ext.Msg.show({title:runtimePageName,msg:patrn,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;}}}}}}}}}else{if(g.indexOf(":")==0||g.indexOf(":")==-1||g.indexOf(",")==0||g.charAt(g.length-1)==","||g.charAt(g.length-1)==":"){if(b=="Windows2000"){Ext.Msg.show({title:runtimePageName,msg:validpatrnFor2000,buttons:Ext.Msg.OK,icon:"iconExclamation"});
h=false;}else{if(b=="Windows2003"){Ext.Msg.show({title:runtimePageName,msg:validpatrnFor2003,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;}else{if(b=="WindowsNT"){Ext.Msg.show({title:runtimePageName,msg:validpatrnForNT,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;}else{if(b=="Windows2008"){Ext.Msg.show({title:runtimePageName,msg:validpatrnFor2008,buttons:Ext.Msg.OK,icon:"iconExclamation"});
h=false;}else{if(b=="Linux"){Ext.Msg.show({title:runtimePageName,msg:validpatrnForLinux,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;}else{if(b=="Solaris"){Ext.Msg.show({title:runtimePageName,msg:validpatrnForSolaris,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;}else{if(b=="AIX"){Ext.Msg.show({title:runtimePageName,msg:validpatrnForAIX,buttons:Ext.Msg.OK,icon:"iconExclamation"});
h=false;}else{if(b=="HPUX"){Ext.Msg.show({title:runtimePageName,msg:validpatrnForHPUX,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;}else{Ext.Msg.show({title:runtimePageName,msg:validpatrn,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;}}}}}}}}}else{for(var j=0;j<g.length;j++){if(g.charAt(j)==" "){if(b=="Windows2000"){Ext.Msg.show({title:runtimePageName,msg:emptyspacespatrn2000,buttons:Ext.Msg.OK,icon:"iconExclamation"});
h=false;break;}else{if(b=="Windows2003"){Ext.Msg.show({title:runtimePageName,msg:emptyspacespatrn2003,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;break;}else{if(b=="WindowsNT"){Ext.Msg.show({title:runtimePageName,msg:emptyspacespatrnNT,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;break;
}else{if(b=="Windows2008"){Ext.Msg.show({title:runtimePageName,msg:emptyspacespatrn2008,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;break;}else{if(b=="Linux"){Ext.Msg.show({title:runtimePageName,msg:emptyspacespatrnLinux,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;break;}else{if(b=="Solaris"){Ext.Msg.show({title:runtimePageName,msg:emptyspacespatrnSolaris,buttons:Ext.Msg.OK,icon:"iconExclamation"});
h=false;break;}else{if(b=="AIX"){Ext.Msg.show({title:runtimePageName,msg:emptyspacespatrnAIX,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;break;}else{if(b=="HPUX"){Ext.Msg.show({title:runtimePageName,msg:emptyspacespatrnHPUX,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;break;}else{Ext.Msg.show({title:runtimePageName,msg:emptyspacespatrn,buttons:Ext.Msg.OK,icon:"iconExclamation"});
h=false;break;}}}}}}}}}else{if((g.charAt(j)=="*"&&g.charAt(j+1)=="*")||(g.charAt(j)==":"&&g.charAt(j+1)==":")||(g.charAt(j)==","&&g.charAt(j+1)==",")){if(b=="Windows2000"){Ext.Msg.show({title:runtimePageName,msg:validpatrnFor2000,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;break;}else{if(b=="Windows2003"){Ext.Msg.show({title:runtimePageName,msg:validpatrnFor2003,buttons:Ext.Msg.OK,icon:"iconExclamation"});
h=false;break;}else{if(b=="WindowsNT"){Ext.Msg.show({title:runtimePageName,msg:validpatrnForNT,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;break;}else{if(b=="Windows2008"){Ext.Msg.show({title:runtimePageName,msg:validpatrnFor2008,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;break;}else{if(b=="Linux"){Ext.Msg.show({title:runtimePageName,msg:validpatrnForLinux,buttons:Ext.Msg.OK,icon:"iconExclamation"});
h=false;break;}else{if(b=="Solaris"){Ext.Msg.show({title:runtimePageName,msg:validpatrnForSolaris,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;break;}else{if(b=="AIX"){Ext.Msg.show({title:runtimePageName,msg:validpatrnForAIX,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;break;}else{if(b=="HPUX"){Ext.Msg.show({title:runtimePageName,msg:validpatrnForHPUX,buttons:Ext.Msg.OK,icon:"iconExclamation"});
h=false;break;}else{Ext.Msg.show({title:runtimePageName,msg:validpatrn,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;break;}}}}}}}}}else{check_char=l.indexOf(g.charAt(j));if(check_char>=0){if(b=="Windows2000"){Ext.Msg.show({title:runtimePageName,msg:specialchrpatrn2000,buttons:Ext.Msg.OK,icon:"iconExclamation"});
h=false;break;}else{if(b=="Windows2003"){Ext.Msg.show({title:runtimePageName,msg:specialchrpatrn2003,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;break;}else{if(b=="WindowsNT"){Ext.Msg.show({title:runtimePageName,msg:specialchrpatrnNT,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;break;}else{if(b=="Windows2008"){Ext.Msg.show({title:runtimePageName,msg:specialchrpatrn2008,buttons:Ext.Msg.OK,icon:"iconExclamation"});
h=false;break;}else{if(b=="Linux"){Ext.Msg.show({title:runtimePageName,msg:specialchrpatrnLinux,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;break;}else{if(b=="Solaris"){Ext.Msg.show({title:runtimePageName,msg:specialchrpatrnSolaris,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;break;}else{if(b=="AIX"){Ext.Msg.show({title:runtimePageName,msg:specialchrpatrnAIX,buttons:Ext.Msg.OK,icon:"iconExclamation"});
h=false;break;}else{if(b=="HPUX"){Ext.Msg.show({title:runtimePageName,msg:specialchrpatrnHPUX,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;break;}else{Ext.Msg.show({title:runtimePageName,msg:specialchrpatrn,buttons:Ext.Msg.OK,icon:"iconExclamation"});h=false;break;}}}}}}}}}}}}}}d+=a+"~|~"+g+"~#~";
}if(d!=null&&d.indexOf("~#~")>-1){d=d.substring(0,d.lastIndexOf("~#~"));}if(h){var e="DefaultTestConfiguration/data/EgRuntimePatternpJson.jsp?";var k="&urlLinkRunTime="+encodeURIComponent(d,"UTF-8");Ext.Ajax.request({url:e,params:k,method:"POST",async:false,success:function(m){var n=m.responseText;publicJSON=Ext.decode(n);
}});Ext.getCmp("egruntimepattern").destroy();}},policyCreationPage:function(){Ext.create("DefaultTestConfiguration.view.EgPolicyCreation").show();Ext.getCmp("egpolicycreation").setTitle(polCreationPageName);var b=publicJson["testName"];if(b=="SecurityLogTest"){Ext.getCmp("evtdescriptors").setFieldLabel("EVENT USERS");
Ext.getCmp("evtdescriptors_SL").show();Ext.getCmp("mainContainer").setAutoScroll(true);Ext.getCmp("mainContainer").setHeight(430);}var a=Ext.getCmp("logType").getValue();var c="server="+jsonVal["server"]+"&test="+jsonVal["parmTestName"]+"&change=add&showAll="+jsonVal["showAll"]+"&q="+jsonVal["q"]+"&logtype="+a+"&requestFrom="+jsonVal["requestFrom"];
var d="DefaultTestConfiguration/data/EgPolicyCreationJson.jsp?"+c;Ext.Ajax.request({url:d,method:"POST",success:function(e){if(e.status==200&&!Ext.isEmpty(e.responseText)){polCreationJson=Ext.decode(e.responseText);}}});},configViewPolicy:function(){var d=publicJson["externalPageLink"];var b=Ext.getCmp("logType").getValue();
if(!Ext.isEmpty(b)){d+="&currentLogType="+encodeURIComponent(b);}if(Ext.create("DefaultTestConfiguration.view.ViewPolicy").isHidden()){var a=Ext.create("Ext.selection.CheckboxModel",{selType:"checkboxmodel",mode:"MULTI",checkOnly:true,renderer:function(f,p,j,k,o,m,l){var h=j.get("Events");var g=j.get("Delete");
var n=j.get("isDisabled");if(!Ext.isEmpty(h)&&h!=undefined&&h=="all"){g="yes";}if(n&&g){p.tdCls=Ext.baseCSSPrefix+"grid-cell-special";return'<img src="/final/images/spacer.gif" class="iconLock"  style="margin-left:-5px;width:16px;height:16px;"/>';}else{p.tdCls=Ext.baseCSSPrefix+"grid-cell-special "+Ext.baseCSSPrefix+"grid-cell-row-checker";
return'<img src="/final/images/spacer.gif" class="'+Ext.baseCSSPrefix+'grid-row-checker"/>';}},selectAll:function(){var l=0;while(typeof(Ext.getCmp("EventsViewGrid").getStore().getAt(l))!="undefined"){var g=Ext.getCmp("EventsViewGrid").getStore().getAt(l);if(g.get("isDisabled")){Ext.getCmp("EventsViewGrid").getSelectionModel().deselect(l,true);
}else{Ext.getCmp("EventsViewGrid").getSelectionModel().select(l,true);}l++;}var f=Ext.getCmp("EventsViewGrid").getView();var k=f.headerCt;var j=this.selected.getCount()===this.store.getCount();var h=k.child("gridcolumn[isCheckerHd]");if(h){h.el.addCls(Ext.baseCSSPrefix+"grid-hd-checker-on");}},deselectAll:function(){var l=0;
while(typeof(Ext.getCmp("EventsViewGrid").getStore().getAt(l))!="undefined"){var g=Ext.getCmp("EventsViewGrid").getStore().getAt(l);Ext.getCmp("EventsViewGrid").getSelectionModel().deselect(l,true);l++;}var f=Ext.getCmp("EventsViewGrid").getView();var k=f.headerCt;var j=this.selected.getCount()===this.store.getCount();
var h=k.child("gridcolumn[isCheckerHd]");if(h){h.el.removeCls(Ext.baseCSSPrefix+"grid-hd-checker-on");}}});Ext.create("DefaultTestConfiguration.view.ViewPolicy").show();var c={xtype:"grid",ui:"newGridPanel whiteHeader",id:"EventsViewGrid",name:"EventsViewGrid",store:new Ext.data.Store({fields:["Events","View","Modify","Delete","isDisabled"],data:[]}),selModel:a,listeners:{beforeselect:function(g,f,h){if(f.get("isDisabled")){return false;
}},rowclick:function(f,j,h){var g=f.getStore().getAt(j);if(g.get("isDisabled")){f.getSelectionModel().deselectRow(j);}}},viewConfig:{deferEmptyText:true},emptyText:'<table align="center"><tr><td align="center" height="220"><table><tr><td align="center"><img src="/final/images/spacer.gif" class="iconInformation"></td></tr><tr><td align="center" class="commonErrorMsgText">'+noPolicyFound+".</td></tr></table></td></tr></table>",scroll:true,autoScroll:true,flex:1,columns:{defaults:{sortable:true,hideable:false,menuDisabled:true,draggable:false,resizable:false,isCheckerHd:false},items:[{text:label15,dataIndex:"Events",id:"events",flex:1},{xtype:"actioncolumn",width:36,id:"ViewOver",sortable:false,renderer:function(k,g,f,m,j,h,l){var n=f.get("View");
g.tdAttr="data-qtip='"+label8+"' data-qclass='yellowTip'";if(!Ext.isEmpty(n)){return"<div style='cursor:pointer' onclick=\"javascript:me.handleViewIconClick('"+l+"','"+m+"','"+j+"')\" class='iconShowAssociates'></div>";}else{return'<div class="iconShowAssociates"></div>';}}},{xtype:"actioncolumn",width:36,id:"EditOver",sortable:false,renderer:function(l,g,f,n,j,h,m){var k=f.get("Modify");
g.tdAttr="data-qtip='"+label6+"' data-qclass='yellowTip'";if(!Ext.isEmpty(k)){return"<div style='cursor:pointer' onclick=\"javascript:me.handleEditIconClick('"+m+"','"+n+"','"+j+"')\" class='iconModify'></div>";}else{return'<div class="iconModify"></div>';}}},{header:'<div class="iconDeleteAll" data-qtip="Delete Selected" data-qclass="yellowTip"></div>',xtype:"actioncolumn",width:36,id:"DeleteOver",sortable:false,listeners:{headerclick:function(j,f,h){me.handleDeleteSelected();
}},renderer:function(l,g,j,o,h,m,f){var k=j.get("Delete");var n=j.get("isDisabled");g.tdAttr="data-qtip='"+label9+"' data-qclass='yellowTip'";if(n){return'<div class="iconDeleteDisabled"></div>';}else{return"<div style='cursor:pointer' onclick=\"javascript:"+k+"\" class='iconDelete'></div>";}}}]},margin:10,tbar:[{xtype:"tbfill",},{xtype:"trigger",id:"searchTrigger",trigger1Cls:"x-form-clear-trigger",trigger2Cls:"x-form-search-trigger",cls:"whitedropdown_search",emptyText:"Search",getTriggerMarkup:function(){var k=this,h=0,n=(k.readOnly||k.hideTrigger),f,l=k.triggerBaseCls,m=[],j=Ext.dom.Element.unselectableCls,g="width:"+k.triggerWidth+"px;"+(n?"display:none;":""),o=k.extraTriggerCls+" "+Ext.baseCSSPrefix+"trigger-cell "+j;
if(!k.trigger1Cls){k.trigger1Cls=k.triggerCls;}for(h=0;(f=k["trigger"+(h+1)+"Cls"])||h<1;h++){if(h==0){m.push({tag:"td",role:"presentation",valign:"top",cls:o,id:"MyTrigger_"+h,style:g+"display:none;",cn:{cls:[Ext.baseCSSPrefix+"trigger-index-"+h,l,f].join(" "),role:"presentation"}});}else{m.push({tag:"td",role:"presentation",valign:"top",cls:o,id:"MyTrigger_"+h,style:g,cn:{cls:[Ext.baseCSSPrefix+"trigger-index-"+h,l,f].join(" "),role:"presentation"}});
}}m[0].cn.cls+=" "+l+"-first";return Ext.DomHelper.markup(m);},onTrigger1Click:function(){this.reset();me.policyMainSearch();},onTrigger2Click:function(){me.policyMainSearch();}},{xtype:"toolbar",ui:"footer",items:[{xtype:"button",ui:"newButtonSmall",text:label14,name:"addPolicy",id:"addPolicy"}]}]};
var e=Ext.getCmp("tempPolicy");Ext.suspendLayouts();e.removeAll();e.add(c);Ext.resumeLayouts(true);}Ext.Ajax.request({url:d,method:"POST",success:function(f){if(f.status==200&&!Ext.isEmpty(f.responseText)){jsonVal=Ext.decode(f.responseText);var g=jsonVal["gridDataArr"];Ext.getCmp("EventsViewGrid").getStore().removeAll();
Ext.getCmp("EventsViewGrid").getStore().loadRawData(g);}}});},policySearch:function(){searchStr=Ext.getCmp("searchTrigger").getValue();if(searchStr==""||searchStr.length==0){Ext.get("MyTrigger_0").setStyle("display","none");Ext.get("MyTrigger_1").setStyle("display","block");}else{Ext.get("MyTrigger_1").setStyle("display","none");
Ext.get("MyTrigger_0").setStyle("display","block");}var a=Ext.getCmp("logType").getValue();var b="server="+jsonVal["server"]+"&test="+jsonVal["polTestName"]+"&port=true&showAll="+jsonVal["showAll"]+"&logtype="+a+"&requestFrom="+jsonVal["requestFrom"]+"&testType="+jsonVal["polTestType"]+"&currentLogType="+encodeURIComponent(a);
if(searchStr==null||searchStr==""){urlVal="DefaultTestConfiguration/data/ViewPolicyJson.jsp?"+b;}else{if(searchStr!=null){urlVal="DefaultTestConfiguration/data/ViewPolicyJson.jsp?egTitleSearchStr="+encodeURI(searchStr)+"&"+b;}}Ext.Ajax.request({url:urlVal,method:"POST",scope:this,async:false,success:function(c){if(c.status==200&&!Ext.isEmpty(c.responseText)){var e=c.responseText;
var f=Ext.decode(e);var d=f["no_search_item"];if(d!=null&&d!="undefined"){Ext.getCmp("EventsViewGrid").store.loadData("");Ext.getCmp("EventsViewGrid").getView().emptyText='<table align="center"><tr><td align="center" height="320"><table><tr><td align="center"><img src="/final/images/spacer.gif" class="iconInformation"></td></tr><tr><td align="center" class="commonErrorMsgText">'+noPolicyFound+".</td></tr></table></td></tr></table>";
Ext.getCmp("EventsViewGrid").getView().refresh();}else{Ext.getCmp("EventsViewGrid").show();Ext.getCmp("EventsViewGrid").getStore().loadRawData(f["gridDataArr"]);}}}});},policyValidate:function(){var d=polCreationJson["hiddenPolicyObj"]["change"];policyName=Ext.getCmp("pol_name").getValue();if(Ext.isEmpty(policyName)||policyName==undefined){Ext.Msg.show({title:polCreationPageName,msg:alertMsg15,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(S){Ext.getCmp("pol_name").focus(true);
}});sucFlag=false;return;}var s=/[`~!@#$%^&()|{}/+=.?\\\"\'><,\:\;]/;if(!Ext.isEmpty(policyName)&&policyName!=undefined){var F=s.test(policyName);var I="-";var R=",";var m=policyName.length;if(F&&F!=undefined){Ext.Msg.show({title:polCreationPageName,msg:alertMsg16,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(S){Ext.getCmp("pol_name").focus(true);
}});sucFlag=false;return;}if(policyName.charAt(0)==I||policyName.charAt(m-1)==I){Ext.Msg.show({title:polCreationPageName,msg:alertMsg17,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(S){Ext.getCmp("pol_name").focus(true);}});sucFlag=false;return;}}sucFlag=true;var u=Ext.getCmp("Source").getValue();
var P=Ext.getCmp("Id").getValue();var o=Ext.getCmp("Desc").getValue();var N=Ext.getCmp("EvScIn").getValue();var h=Ext.getCmp("EvScEx").getValue();var C=Ext.getCmp("EvIdIn").getValue();var L=Ext.getCmp("EvIdEx").getValue();var M=Ext.getCmp("EvDescIn").getValue();var g=Ext.getCmp("EvDescEx").getValue();
var Q=publicJson["testName"];var l="";var r="";var w="";if(Q=="SecurityLogTest"){w=Ext.getCmp("Desc_SL").getValue();l=Ext.getCmp("EvDescIn_SL").getValue();r=Ext.getCmp("EvDescEx_SL").getValue();if(w=="Included"){l=Ext.getCmp("EVENT_DESCRIPTIONS_SL").getValue();}else{r=Ext.getCmp("EVENT_DESCRIPTIONS_SL").getValue();
}}if(u=="Included"){N=Ext.getCmp("EVENT_SOURCES").getValue();}else{h=Ext.getCmp("EVENT_SOURCES").getValue();}if(P=="Included"){C=Ext.getCmp("EVENT_IDS").getValue();}else{L=Ext.getCmp("EVENT_IDS").getValue();}if(o=="Included"){M=Ext.getCmp("EVENT_DESCRIPTIONS").getValue();}else{g=Ext.getCmp("EVENT_DESCRIPTIONS").getValue();
}var O=N;var j=h;var E=u;if(E=="Included"){var z=this.checkEventSource(O,"Included");if(!z){sucFlag=false;return;}var c=this.checkForAllKeyword(O,"EvtSrc","Included");if(!c){Ext.getCmp("EVENT_SOURCES").focus(true);sucFlag=false;return;}var b=this.checkForNoneKeyword(O,"EvtSrc","Included");if(!b){Ext.getCmp("EVENT_SOURCES").focus(true);
sucFlag=false;return;}if(O=="all"){if(h==""){h="none";}}else{h="none";}}else{var z=this.checkEventSource(j,"Excluded");if(!z){sucFlag=false;return;}var c=this.checkForNoneKeyword(j,"EvtSrc","Excluded");if(!c){Ext.getCmp("EVENT_SOURCES").focus(true);sucFlag=false;return;}var b=this.checkForAllKeyword(j,"EvtSrc","Excluded");
if(!b){Ext.getCmp("EVENT_SOURCES").focus(true);sucFlag=false;return;}if(j=="none"){if(N==""){N="all";}}else{N="all";}}var v=C;var B=L;E=P;if(E=="Included"){var z=this.checkEventID(v,"Included");if(!z){sucFlag=false;return;}if(v=="all"){if(L==""){L="none";}}else{L="none";}}else{var z=this.checkEventID(B,"Excluded");
if(!z){sucFlag=false;return;}if(B=="none"){if(C==""){C="all";}}else{C="all";}}var x=M;var G=g;E=o;if(E=="Included"){var z=this.checkEventDescription(x,"Included");if(!z){sucFlag=false;return;}var c=this.checkForAllKeyword(x,"EvtDesc","Included");if(!c){Ext.getCmp("EVENT_DESCRIPTIONS").focus(true);sucFlag=false;
return;}var b=this.checkForNoneKeyword(x,"EvtDesc","Included");if(!b){Ext.getCmp("EVENT_DESCRIPTIONS").focus(true);sucFlag=false;return;}if(x=="all"){if(g==""){g="none";}}else{g="none";}}else{var z=this.checkEventDescription(G,"Excluded");if(!z){sucFlag=false;return;}var c=this.checkForNoneKeyword(G,"EvtDesc","Excluded");
if(!c){Ext.getCmp("EVENT_DESCRIPTIONS").focus(true);sucFlag=false;return;}var b=this.checkForAllKeyword(G,"EvtDesc","Excluded");if(!b){Ext.getCmp("EVENT_DESCRIPTIONS").focus(true);sucFlag=false;return;}if(G=="none"){if(M==""){M="all";}}else{M="all";}}if(Q=="SecurityLogTest"){var x=l;var G=r;E=w;if(E=="Included"){var z=this.checkEventDescriptionSL(x,"Included");
if(!z){sucFlag=false;return;}var c=this.checkForAllKeywordSL(x,"Included");if(!c){Ext.getCmp("EVENT_DESCRIPTIONS_SL").focus(true);sucFlag=false;return;}var b=this.checkForNoneKeywordSL(x,"Included");if(!b){Ext.getCmp("EVENT_DESCRIPTIONS_SL").focus(true);sucFlag=false;return;}if(x=="all"){if(r==""){r="none";
}}else{r="none";}}else{var z=this.checkEventDescriptionSL(G,"Excluded");if(!z){sucFlag=false;return;}var c=this.checkForNoneKeywordSL(G,"Excluded");if(!c){Ext.getCmp("EVENT_DESCRIPTIONS_SL").focus(true);sucFlag=false;return;}var b=this.checkForAllKeywordSL(G,"Excluded");if(!b){Ext.getCmp("EVENT_DESCRIPTIONS_SL").focus(true);
sucFlag=false;return;}if(G=="none"){if(l==""){l="all";}}else{l="all";}}}var t=alertMsg73;if(d=="add"&&sucFlag){t=alertMsg72;var n=polCreationJson["strDescriptors"];var p=n.split(",");for(var K=0;K<p.length;K++){var k=p[K].toLowerCase();if(k==policyName.toLowerCase()){Ext.Msg.show({title:polCreationPageName,msg:alertMsg68,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(S){Ext.getCmp("pol_name").focus(true);
}});sucFlag=false;}}}if(sucFlag){var D="DefaultTestConfiguration/data/EgPolicyUpdateJson.jsp?";var a=polCreationJson["hiddenPolicyObj"]["change"];var f=polCreationJson["hiddenPolicyObj"]["testName"];var q=polCreationJson["hiddenPolicyObj"]["logtype"];var A=polCreationJson["hiddenPolicyObj"]["server"];
var e=polCreationJson["hiddenPolicyObj"]["requestFrom"];var J=polCreationJson["hiddenPolicyObj"]["field_Name"];var y=polCreationJson["hiddenPolicyObj"]["q1"];var H="pol_name="+policyName+"&EvScIn="+N+"&EvScEx="+h+"&EvIdIn="+C+"&EvIdEx="+L+"&EvDescIn="+M+"&EvDescEx="+g+"&field_Name="+J+"&change="+a+"&testName="+f+"&logtype="+q+"&server="+A+"&requestFrom="+e+"&q1="+y;
if(Q=="SecurityLogTest"){H+="&EvDescIn_SL="+l+"&EvDescEx_SL="+r;}Ext.Ajax.request({url:D+H,method:"POST",success:function(U){if(U.status==200&&!Ext.isEmpty(U.responseText)){var T=Ext.decode(U.responseText);var V=T.dispTestName;var S=T.dispLogType;Ext.Msg.show({title:polCreationPageName,msg:t,buttons:Ext.Msg.OK,icon:"iconInformation",fn:function(aa){Ext.getCmp("egpolicycreation").destroy();
Ext.getCmp("viewpolicy").destroy();me.configViewMainPolicy();var ae=Ext.getCmp("filter_combo");if(!Ext.isEmpty(deletedRecords)&&deletedRecords!=undefined){var X=new Array();if(deletedRecords.indexOf(",")!=-1){var ag=new Array();ag=deletedRecords.split(",");for(var ab=0;ab<ag.length;ab++){var ad=ae.getStore().find("valueField",ag[ab].toString(),0,false,true,true);
ae.getStore().removeAt(ad);}}else{var ad=ae.getStore().find("valueField",deletedRecords.toString(),0,false,true,true);ae.getStore().removeAt(ad);}deletedRecords="";}if(!Ext.isEmpty(a)&&a=="add"){ae.getStore().add({displayField:policyName,valueField:policyName});}var Y=Ext.getCmp("filter_combo").getValue();
var ai=Ext.getCmp("filter_combo").getStore().getCount();if(!Ext.isEmpty(ai)&&ai>0){for(var ab=0;ab<ai;ab++){var Z=Ext.getCmp("filter_combo").getStore().getAt(ab);if(!Ext.isEmpty(Z)){var af=Ext.getCmp("filter_combo").getStore().getAt(ab).get("valueField");if(!Ext.isEmpty(af)&&af=="all"){Ext.getCmp("filter_combo").getStore().removeAt(ab);
}}}}ai=Ext.getCmp("filter_combo").getStore().getCount();var ac=new Ext.data.Store({fields:["displayField","valueField"],data:[]});var ah=false;if(!Ext.isEmpty(ai)&&ai>0){availPolicies=new Array();for(var ab=0;ab<ai;ab++){availPolicies[ab]=ae.getStore().getAt(ab).get("valueField");ah=true;ac.add({"displayField":availPolicies[ab],"valueField":availPolicies[ab]});
}}if(availPolicies.indexOf("all")==-1){availPolicies.push("all");}ae.getStore().removeAll();if(ah){for(var ab=0;ab<ac.getCount();ab++){var W=ac.getAt(ab);ae.getStore().add(W);}}Ext.getCmp("filter_combo").getStore().sort([{property:"displayField",direction:"ASC"},{property:"valueField",direction:"ASC"}]);
ae.getStore().insert(0,{displayField:"all",valueField:"all"});Ext.getCmp("filter_combo").setValue(Y);}});}}});}},openWindow:function(c){var b="";var e="No";var d="";var a="";if(c.id=="viewsource"){d=Ext.getCmp("EVENT_SOURCES").getValue();b="EVENT SOURCES";objField=Ext.getCmp("EVENT_SOURCES");}else{if(c.id=="viewid"){d=Ext.getCmp("EVENT_IDS").getValue();
b="EVENT IDS";objField=Ext.getCmp("EVENT_IDS");}else{d=Ext.getCmp("EVENT_DESCRIPTIONS").getValue();b="EVENT DESCRIPTIONS";objField=Ext.getCmp("EVENT_DESCRIPTIONS");}}Ext.widget("window",{width:450,height:250,resizable:"false",title:"Data Entry Window",id:"dataFullViewForm",name:"dataFullViewForm",autoScroll:true,modal:true,items:[{xtype:"container",layout:{type:"vbox",align:"center",pack:"center"},defaults:{labelAlign:"top",labelSeparator:" ",width:250,margin:10},items:[{xtype:"textareafield",cls:"text-area",name:"viewTextArea",id:"viewTextArea",fieldLabel:b,height:150,width:350,value:d},{xtype:"button",ui:"newButtonSmall",text:label1,id:"ApplyBtn",width:80,handler:function(){objField.setValue(Ext.getCmp("viewTextArea").getValue());
Ext.getCmp("dataFullViewForm").destroy();}}]}]}).show();},checkEventDescription:function(a,c){var d="";var b=polCreationJson["fieldName"];if(Ext.isEmpty(a)||a==undefined){if(c=="Included"){if(b=="EVENT DESCRIPTIONS"){d=alertMsg32;}else{d=alertMsg33;}}else{if(b=="EVENT DESCRIPTIONS"){d=alertMsg34;}else{d=alertMsg35;
}}Ext.Msg.show({title:polCreationPageName,msg:d,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(e){Ext.getCmp("EVENT_DESCRIPTIONS").focus(true);}});return false;}if(a!=null&&a!=""){if(a.indexOf(",")==0||a.lastIndexOf(",")==(a.length-1)){if(c=="Included"){if(b=="EVENT DESCRIPTIONS"){d=alertMsg36;
}else{d=alertMsg38;}}else{if(b=="EVENT DESCRIPTIONS"){d=alertMsg37;}else{d=alertMsg39;}}Ext.Msg.show({title:polCreationPageName,msg:d,buttons:Ext.Msg.OK,fn:function(e){Ext.getCmp("EVENT_DESCRIPTIONS").focus(true);}});return false;}if(a.indexOf(",,")>0){if(c=="Included"){if(b=="EVENT DESCRIPTIONS"){d=alertMsg40;
}else{d=alertMsg41;}}else{if(b=="EVENT DESCRIPTIONS"){d=alertMsg42;}else{d=alertMsg43;}}Ext.Msg.show({title:polCreationPageName,msg:d,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(e){Ext.getCmp("EVENT_DESCRIPTIONS").focus(true);}});return false;}}return true;},checkEventID:function(b,a){var e=/^[0-9,]+$/;
var c="";if(Ext.isEmpty(b)||b==undefined){if(a=="Included"){c=alertMsg24;}else{c=alertMsg25;}Ext.Msg.show({title:polCreationPageName,msg:c,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(f){Ext.getCmp("EVENT_IDS").focus(true);}});return false;}if(b!=null&&b!=""){var d=e.test(b);if(a=="Included"&&b!="all"&&!d){Ext.Msg.show({title:polCreationPageName,msg:alertMsg29,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(f){Ext.getCmp("EVENT_IDS").focus(true);
}});return false;}else{if(a=="Excluded"&&b!="none"&&!d){Ext.Msg.show({title:polCreationPageName,msg:alertMsg28,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(f){Ext.getCmp("EVENT_IDS").focus(true);}});return false;}}if(b.indexOf(",")==0||b.lastIndexOf(",")==(b.length-1)){if(a=="Included"){c=alertMsg26;
}else{c=alertMsg27;}Ext.Msg.show({title:polCreationPageName,msg:c,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(f){Ext.getCmp("EVENT_IDS").focus(true);}});return false;}if(b.indexOf(",,")>0){if(a=="Included"){c=alertMsg30;}else{c=alertMsg31;}Ext.Msg.show({title:polCreationPageName,msg:c,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(f){Ext.getCmp("EVENT_IDS").focus(true);
}});return false;}}return true;},checkEventSource:function(c,a){var b="";if(Ext.isEmpty(c)||c==undefined){if(a=="Included"){b=alertMsg18;}else{b=alertMsg19;}Ext.Msg.show({title:polCreationPageName,msg:b,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(d){Ext.getCmp("EVENT_SOURCES").focus(true);}});
return false;}if(c!=null&&c!=""){if(c.indexOf(",")==0||c.lastIndexOf(",")==(c.length-1)){if(a=="Included"){b=alertMsg20;}else{b=alertMsg21;}Ext.Msg.show({title:polCreationPageName,msg:b,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(d){Ext.getCmp("EVENT_SOURCES").focus(true);}});return false;}if(c.indexOf(",,")>0){if(a=="Included"){b=alertMsg22;
}else{b=alertMsg23;}Ext.Msg.show({title:polCreationPageName,msg:b,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(d){Ext.getCmp("EVENT_SOURCES").focus(true);}});return false;}}return true;},checkForNoneKeyword:function(h,j,d){var g=polCreationJson["fieldName"];var c="";if(h.indexOf(",")>-1){var f=new Array();
f=h.split(",");for(var e=0;e<f.length;e++){var a=trim(f[e]);if(a.toLowerCase()=="none"){if(j=="EvtSrc"){if(d=="Included"){c=alertMsg56;}else{c=alertMsg57;}Ext.Msg.show({title:polCreationPageName,msg:c,buttons:Ext.Msg.OK,icon:"iconExclamation"});}else{if(d=="Included"){if(g=="EVENT DESCRIPTIONS"){c=alertMsg58;
}else{c=alertMsg59;}}else{if(g=="EVENT DESCRIPTIONS"){c=alertMsg60;}else{c=alertMsg61;}}Ext.Msg.show({title:polCreationPageName,msg:c,buttons:Ext.Msg.OK,icon:"iconExclamation"});}return false;}}}else{if(trim(h.toLowerCase())=="none"){if(d=="Included"){if(j=="EvtSrc"){Ext.Msg.show({title:polCreationPageName,msg:alertMsg62,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(k){Ext.getCmp("EVENT_SOURCES").focus(true);
}});return false;}else{if(g=="EVENT DESCRIPTIONS"){c=alertMsg63;}else{c=alertMsg64;}Ext.Msg.show({title:polCreationPageName,msg:c,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(k){Ext.getCmp("EVENT_DESCRIPTIONS").focus(true);}});return false;}}else{var b=trim(h);for(var e=0;e<4;e++){if(b.charAt(e)=="N"||b.charAt(e)=="O"||b.charAt(e)=="E"){if(j=="EvtSrc"){Ext.Msg.show({title:polCreationPageName,msg:alertMsg65,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(k){Ext.getCmp("EVENT_SOURCES").focus(true);
}});return false;}else{if(g=="EVENT DESCRIPTIONS"){c=alertMsg66;}else{c=alertMsg67;}Ext.Msg.show({title:polCreationPageName,msg:c,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(k){Ext.getCmp("EVENT_DESCRIPTIONS").focus(true);}});return false;}}}}}}return true;},checkForAllKeyword:function(g,j,c){var f=polCreationJson["fieldName"];
var h="";if(g.indexOf(",")>-1){var e=new Array();e=g.split(",");for(var d=0;d<e.length;d++){var a=trim(e[d]);if(a.toLowerCase()=="all"){if(j=="EvtSrc"){if(c=="Included"){h=alertMsg44;}else{h=alertMsg45;}Ext.Msg.show({title:polCreationPageName,msg:h,buttons:Ext.Msg.OK,icon:"iconExclamation"});}else{if(c=="Included"){if(f=="EVENT DESCRIPTIONS"){h=alertMsg46;
}else{h=alertMsg47;}}else{if(f=="EVENT DESCRIPTIONS"){h=alertMsg48;}else{h=alertMsg49;}}Ext.Msg.show({title:polCreationPageName,msg:h,buttons:Ext.Msg.OK,icon:"iconExclamation"});}return false;}}}else{if(trim(g.toLowerCase())=="all"){if(c=="Included"){var b=trim(g);for(var d=0;d<3;d++){if(b.charAt(d)=="A"||b.charAt(d)=="L"){if(j=="EvtSrc"){Ext.Msg.show({title:polCreationPageName,msg:evtSrcMsg,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(k){Ext.getCmp("EVENT_SOURCES").focus(true);
}});}else{if(f=="EVENT DESCRIPTIONS"){h=alertMsg51;}else{h=alertMsg52;}Ext.Msg.show({title:polCreationPageName,msg:h,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(k){Ext.getCmp("EVENT_DESCRIPTIONS").focus(true);}});}return false;}}}else{if(j=="EvtSrc"){Ext.Msg.show({title:polCreationPageName,msg:alertMsg53,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(k){Ext.getCmp("EVENT_SOURCES").focus(true);
}});}else{if(f=="EVENT DESCRIPTIONS"){h=alertMsg54;}else{h=alertMsg55;}Ext.Msg.show({title:polCreationPageName,msg:h,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(k){Ext.getCmp("EVENT_DESCRIPTIONS").focus(true);}});}return false;}}}return true;},checkForAllKeywordSL:function(g,e){var f="";if(g.indexOf(",")>-1){var b=new Array();
b=g.split(",");for(var d=0;d<b.length;d++){var a=trim(b[d]);if(a.toLowerCase()=="all"){if(e=="Included"){f=alertMsg46;}else{f=alertMsg48;}Ext.Msg.show({title:polCreationPageName,msg:f,buttons:Ext.Msg.OK,icon:"iconExclamation"});return false;}}}else{if(trim(g.toLowerCase())=="all"){if(e=="Included"){var c=trim(g);
for(var d=0;d<3;d++){if(c.charAt(d)=="A"||c.charAt(d)=="L"){Ext.Msg.show({title:polCreationPageName,msg:alertMsg51,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(h){Ext.getCmp("EVENT_DESCRIPTIONS_SL").focus(true);}});return false;}}}else{Ext.Msg.show({title:polCreationPageName,msg:alertMsg54,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(h){Ext.getCmp("EVENT_DESCRIPTIONS_SL").focus(true);
}});return false;}}}return true;},checkForNoneKeywordSL:function(g,e){var f="";if(g.indexOf(",")>-1){var b=new Array();b=g.split(",");for(var d=0;d<b.length;d++){var a=trim(b[d]);if(a.toLowerCase()=="none"){if(e=="Included"){f=alertMsg58;}else{f=alertMsg60;}Ext.Msg.show({title:polCreationPageName,msg:f,buttons:Ext.Msg.OK,icon:"iconExclamation"});
return false;}}}else{if(trim(g.toLowerCase())=="none"){if(e=="Included"){Ext.Msg.show({title:polCreationPageName,msg:alertMsg63,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(h){Ext.getCmp("EVENT_DESCRIPTIONS_SL").focus(true);}});return false;}else{var c=trim(g);for(var d=0;d<4;d++){if(c.charAt(d)=="N"||c.charAt(d)=="O"||c.charAt(d)=="E"){Ext.Msg.show({title:polCreationPageName,msg:alertMsg66,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(h){Ext.getCmp("EVENT_DESCRIPTIONS_SL").focus(true);
}});return false;}}}}}return true;},checkEventDescriptionSL:function(a,b){var c="";if(Ext.isEmpty(a)||a==undefined){if(b=="Included"){c=alertMsg32;}else{c=alertMsg34;}Ext.Msg.show({title:polCreationPageName,msg:c,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(d){Ext.getCmp("EVENT_DESCRIPTIONS_SL").focus(true);
}});return false;}else{if(a.indexOf(",")==0||a.lastIndexOf(",")==(a.length-1)){if(b=="Included"){c=alertMsg36;}else{c=alertMsg37;}Ext.Msg.show({title:polCreationPageName,msg:c,buttons:Ext.Msg.OK,fn:function(d){Ext.getCmp("EVENT_DESCRIPTIONS_SL").focus(true);}});return false;}if(a.indexOf(",,")>0){if(b=="Included"){c=alertMsg40;
}else{c=alertMsg42;}Ext.Msg.show({title:polCreationPageName,msg:c,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(d){Ext.getCmp("EVENT_DESCRIPTIONS_SL").focus(true);}});return false;}}return true;},checkInter:function(n){var l=polCreationJson["hiddenPolicyObj"]["change"];var e=Ext.getCmp("EvScIn").getValue();
var r=Ext.getCmp("EvScEx").getValue();var h=Ext.getCmp("EvIdIn").getValue();var u=Ext.getCmp("EvIdEx").getValue();var d=Ext.getCmp("EvDescIn").getValue();var q=Ext.getCmp("EvDescEx").getValue();var f=Ext.getCmp("EvDescIn_SL").getValue();var g=Ext.getCmp("EvDescEx_SL").getValue();if(l=="add"||l=="modify"){if(n=="Source"){var o=Ext.getCmp("Source").getValue();
if(!Ext.isEmpty(o)&&o=="Included"){var x=trim(Ext.getCmp("EVENT_SOURCES").getValue());var v=this.checkEventSource(x,"Excluded");if(!v){Ext.getCmp("Source").setValue("Excluded");return;}var t=this.checkForNoneKeyword(x,"EvtSrc","Excluded");if(!t){Ext.getCmp("Source").setValue("Excluded");return;}var s=this.checkForAllKeyword(x,"EvtSrc","Excluded");
if(!s){Ext.getCmp("Source").setValue("Excluded");return;}if(x=="none"){if(e==""||e==undefined){Ext.getCmp("EvScIn").setValue("all");}}else{Ext.getCmp("EvScIn").setValue("all");}Ext.getCmp("EvScEx").setValue(x);Ext.getCmp("EVENT_SOURCES").setValue(Ext.getCmp("EvScIn").getValue());}else{var m=trim(Ext.getCmp("EVENT_SOURCES").getValue());
var v=this.checkEventSource(m,"Included");if(!v){Ext.getCmp("Source").setValue("Included");return;}var t=this.checkForAllKeyword(m,"EvtSrc","Included");if(!t){Ext.getCmp("Source").setValue("Included");return;}var s=this.checkForNoneKeyword(m,"EvtSrc","Included");if(!s){Ext.getCmp("Source").setValue("Included");
return;}if(m=="all"){if(r==""||r==undefined){Ext.getCmp("EvScEx").setValue("none");}}else{Ext.getCmp("EvScEx").setValue("none");}Ext.getCmp("EvScIn").setValue(m);Ext.getCmp("EVENT_SOURCES").setValue(Ext.getCmp("EvScEx").getValue());}}else{if(n=="Id"){var j=Ext.getCmp("Id").getValue();if(!Ext.isEmpty(j)&&j=="Included"){var p=trim(Ext.getCmp("EVENT_IDS").getValue());
var v=this.checkEventID(p,"Excluded");if(!v){Ext.getCmp("Id").setValue("Excluded");Ext.getCmp("EVENT_IDS").focus(true);return false;}if(p=="none"){if(h.value==""){Ext.getCmp("EvIdIn").setValue("all");}}else{Ext.getCmp("EvIdIn").setValue("all");}Ext.getCmp("EvIdEx").setValue(p);Ext.getCmp("EVENT_IDS").setValue(Ext.getCmp("EvIdIn").getValue());
}else{var c=trim(Ext.getCmp("EVENT_IDS").getValue());var v=this.checkEventID(c,"Included");if(!v){Ext.getCmp("Id").setValue("Included");Ext.getCmp("EVENT_IDS").focus(true);return false;}if(c=="all"){if(u==""){Ext.getCmp("EvIdEx").setValue("none");}}else{xt.getCmp("EvIdEx").setValue("none");}Ext.getCmp("EvIdIn").setValue(c);
Ext.getCmp("EVENT_IDS").setValue(Ext.getCmp("EvIdEx").getValue());}}else{if(n=="Desc_SL"){var b=Ext.getCmp("Desc_SL").getValue();if(!Ext.isEmpty(b)&&b=="Included"){var k=trim(Ext.getCmp("EVENT_DESCRIPTIONS_SL").getValue());var v=this.checkEventDescriptionSL(k,"Excluded");if(!v){Ext.getCmp("Desc_SL").setValue("Excluded");
}var t=this.checkForNoneKeywordSL(k,"Excluded");if(!t){Ext.getCmp("Desc_SL").setValue("Excluded");}var s=this.checkForAllKeywordSL(k,"Excluded");if(!s){Ext.getCmp("Desc_SL").setValue("Excluded");}if(k=="none"){if(f==""||f==undefined){Ext.getCmp("EvDescIn_SL").setValue("all");}}else{Ext.getCmp("EvDescIn_SL").setValue("all");
}Ext.getCmp("EvDescEx_SL").setValue(k);Ext.getCmp("EVENT_DESCRIPTIONS_SL").setValue(Ext.getCmp("EvDescIn_SL").getValue());}else{var a=trim(Ext.getCmp("EVENT_DESCRIPTIONS_SL").getValue());var v=this.checkEventDescriptionSL(a,"Included");if(!v){Ext.getCmp("Desc_SL").setValue("Included");return;}var t=this.checkForAllKeywordSL(a,"Included");
if(!t){Ext.getCmp("Desc_SL").setValue("Included");}var s=this.checkForNoneKeywordSL(a,"Included");if(!s){Ext.getCmp("Desc_SL").setValue("Included");}if(a=="all"){if(q==""||q==undefined){Ext.getCmp("EvDescEx_SL").setValue("none");}}else{Ext.getCmp("EvDescEx_SL").setValue("none");}Ext.getCmp("EvDescIn_SL").setValue(a);
Ext.getCmp("EVENT_DESCRIPTIONS_SL").setValue(Ext.getCmp("EvDescEx_SL").getValue());}}else{var b=Ext.getCmp("Desc").getValue();if(!Ext.isEmpty(b)&&b=="Included"){var k=trim(Ext.getCmp("EVENT_DESCRIPTIONS").getValue());var v=this.checkEventDescription(k,"Excluded");if(!v){Ext.getCmp("Desc").setValue("Excluded");
}var t=this.checkForNoneKeyword(k,"EvtDesc","Excluded");if(!t){Ext.getCmp("Desc").setValue("Excluded");}var s=this.checkForAllKeyword(k,"EvtDesc","Excluded");if(!s){Ext.getCmp("Desc").setValue("Excluded");}if(k=="none"){if(d==""||d==undefined){Ext.getCmp("EvDescIn").setValue("all");}}else{Ext.getCmp("EvDescIn").setValue("all");
}Ext.getCmp("EvDescEx").setValue(k);Ext.getCmp("EVENT_DESCRIPTIONS").setValue(Ext.getCmp("EvDescIn").getValue());}else{var a=trim(Ext.getCmp("EVENT_DESCRIPTIONS").getValue());var v=this.checkEventDescription(a,"Included");if(!v){Ext.getCmp("Desc").setValue("Included");return;}var t=this.checkForAllKeyword(a,"EvtDesc","Included");
if(!t){Ext.getCmp("Desc").setValue("Included");}var s=this.checkForNoneKeyword(a,"EvtDesc","Included");if(!s){Ext.getCmp("Desc").setValue("Included");}if(a=="all"){if(q==""||q==undefined){Ext.getCmp("EvDescEx").setValue("none");}}else{Ext.getCmp("EvDescEx").setValue("none");}Ext.getCmp("EvDescIn").setValue(a);
Ext.getCmp("EVENT_DESCRIPTIONS").setValue(Ext.getCmp("EvDescEx").getValue());}}}}}else{if(l=="view"){if(n=="Source"){var o=Ext.getCmp("Source").getValue();if(!Ext.isEmpty(o)&&o=="Included"){Ext.getCmp("EVENT_SOURCES").setValue(Ext.getCmp("EvScIn").getValue());}else{Ext.getCmp("EVENT_SOURCES").setValue(Ext.getCmp("EvScEx").getValue());
}}else{if(n=="Id"){var w=Ext.getCmp("Id").getValue();if(!Ext.isEmpty(w)&&w=="Included"){Ext.getCmp("EVENT_IDS").setValue(Ext.getCmp("EvIdIn").getValue());}else{Ext.getCmp("EVENT_IDS").setValue(Ext.getCmp("EvIdEx").getValue());}}else{if(n=="Desc_SL"){var b=Ext.getCmp("Desc_SL").getValue();if(!Ext.isEmpty(b)&&b=="Included"){Ext.getCmp("EVENT_DESCRIPTIONS_SL").setValue(Ext.getCmp("EvDescIn_SL").getValue());
}else{Ext.getCmp("EVENT_DESCRIPTIONS_SL").setValue(Ext.getCmp("EvDescEx_SL").getValue());}}else{var b=Ext.getCmp("Desc").getValue();if(!Ext.isEmpty(b)&&b=="Included"){Ext.getCmp("EVENT_DESCRIPTIONS").setValue(Ext.getCmp("EvDescIn").getValue());}else{Ext.getCmp("EVENT_DESCRIPTIONS").setValue(Ext.getCmp("EvDescEx").getValue());
}}}}}}},windowCloseEvent:function(){if(!Ext.isEmpty(deletedRecords)&&deletedRecords!=undefined){var a=new Array();var m=Ext.getCmp("filter_combo");if(deletedRecords.indexOf(",")!=-1){var q=new Array();q=deletedRecords.split(",");for(var f=0;f<q.length;f++){if(Ext.isEmpty(q[f].toString().trim())||q[f].toString().trim()==undefined){continue;
}var j=m.getStore().find("valueField",q[f].toString(),0,false,true,true);m.getStore().removeAt(j);}}else{var j=m.getStore().find("valueField",deletedRecords.toString(),0,false,true,true);m.getStore().removeAt(j);}deletedRecords="";var d=Ext.getCmp("filter_combo").getValue();var r=Ext.getCmp("filter_combo").getStore().getCount();
if(!Ext.isEmpty(r)&&r>0){for(var f=0;f<r;f++){var e=Ext.getCmp("filter_combo").getStore().getAt(f);if(!Ext.isEmpty(e)){var p=Ext.getCmp("filter_combo").getStore().getAt(f).get("valueField");if(!Ext.isEmpty(p)&&p=="all"){Ext.getCmp("filter_combo").getStore().removeAt(f);}}}}m.getStore().sort("displayField","ASC");
m.getStore().insert(0,{displayField:"all",valueField:"all"});Ext.getCmp("filter_combo").setValue(d);r=Ext.getCmp("filter_combo").getStore().getCount();if(!Ext.isEmpty(r)&&r>0){availPolicies=new Array();for(var f=0;f<r;f++){availPolicies[f]=m.getStore().getAt(f).get("valueField");}}}else{var o=Ext.getCmp("EventsViewGrid");
var n=o.getStore();var m=Ext.getCmp("filter_combo");var s=m.getStore();if(!Ext.isEmpty(o)){var h=n.getCount();for(var l=0;l<h;l++){var g=n.getAt(l).get("Events");var j=m.getStore().find("valueField",g.toString(),0,false,true,true);if(j==-1){m.getStore().add({displayField:g,valueField:g});}}}}var k=Ext.getCmp("componentType").getValue();
var b=publicJson["testName"];Ext.Ajax.request({url:"DefaultTestConfiguration/data/EgConfigureDefaultTestParamsJson.jsp?cType_HelpPage="+k+"&componentType="+k+"&tName_HelpPage="+b+"&testName="+b,method:"POST"});},handleDeleteSelectedInter:function(){var f=Ext.getCmp("EventsViewGrid").getSelectionModel().getSelection();
var b="";var d="";var g=new Array();var a="";if(f==""){Ext.Msg.show({title:pageName,msg:alertMsg71,icon:"iconExclamation",buttons:Ext.Msg.OK});return false;}for(var e=0;e<f.length;e++){b=f[e];id=b.get("Events");if(id!=null){g.push(id);}}for(var c=0;c<g.length;c++){d+=g[c]+",";}Ext.Msg.show({title:pageName,msg:alertMsg70,buttons:Ext.Msg.YESNO,icon:"iconConfirmation",fn:function(k){if(k=="yes"){if(Ext.isEmpty(deletedRecords)||deletedRecords==""){deletedRecords=d;
}else{deletedRecords+=","+d;}var o=jsonVal["server"];var p=jsonVal["parmTestName"];var m=jsonVal["logtype"];var h=jsonVal["showAll"];var l=jsonVal["requestFrom"];var n=jsonVal["q"];var j=Ext.getCmp("logType").getValue();urlVal="DefaultTestConfiguration/data/ViewPolicyJson.jsp?server="+o+"&test="+p+"&policy="+encodeURI(d)+"&delpolicy=yes&log_type="+j+"&showAll="+h+"&q="+n+"&logtype="+j+"&requestFrom="+l+"&currentLogType="+j;
Ext.Ajax.request({url:urlVal,method:"post",scope:this,success:function(q){if(q.status==200&&!Ext.isEmpty(q.responseText)){var r=q.responseText;var s=Ext.decode(r);Ext.getCmp("EventsViewGrid").getStore().removeAll();Ext.getCmp("EventsViewGrid").getStore().loadRawData(s["gridDataArr"]);Ext.getCmp("EventsViewGrid").getSelectionModel().deselectAll(true);
}}});}}});},handleEditIconClickInter:function(a,g,c,d,f){var b=Ext.getCmp("EventsViewGrid").getStore().getAt(g);this.showEditWindow(b);},showEditWindow:function(b){var f=b.get("Events");var d=this;var c=Ext.create("DefaultTestConfiguration.view.EgPolicyCreation");var a=Ext.getCmp("logType").getValue();
var e="change=modify&policy="+f+"&server="+jsonVal["server"]+"&test="+jsonVal["parmTestName"]+"&showAll="+jsonVal["showAll"]+"&q="+jsonVal["q"]+"&logtype="+a+"&requestFrom="+jsonVal["requestFrom"];Ext.Ajax.request({url:"DefaultTestConfiguration/data/EgPolicyCreationJson.jsp?"+e,method:"post",scope:this,async:false,success:function(g){if(g.status==200&&!Ext.isEmpty(g.responseText)){var y=g.responseText;
polCreationJson=Ext.decode(y);c.setTitle(modifyPolicyTitle);c.show();var l=polCreationJson["pol_name"];var s=polCreationJson["selectedEvtId"];var p=polCreationJson["EvtidText"];var A=polCreationJson["selectedEvtSource"];var m=polCreationJson["EvtsourceText"];var u=polCreationJson["selectedEvtDesc"];var h=polCreationJson["EvtdescText"];
var q=polCreationJson["isReadOnly"];var r=polCreationJson["isReadOnlyText"];Ext.getCmp("pol_name").setValue(l);if(!Ext.isEmpty(q)&&q!=undefined){Ext.getCmp("pol_name").setReadOnly(true);}Ext.getCmp("Source").setValue(A);Ext.getCmp("EVENT_SOURCES").setValue(m);Ext.getCmp("Id").setValue(s);Ext.getCmp("EVENT_IDS").setValue(p);
Ext.getCmp("Desc").setValue(u);Ext.getCmp("EVENT_DESCRIPTIONS").setValue(h);if(!Ext.isEmpty(r)&&r!=undefined){Ext.getCmp("EVENT_SOURCES").setReadOnly(true);Ext.getCmp("EVENT_IDS").setReadOnly(true);Ext.getCmp("EVENT_DESCRIPTIONS").setReadOnly(true);}var k=Ext.getCmp("EvScIn").setValue(polCreationJson["hiddenPolicyObj"]["EvScIn"]);
var v=Ext.getCmp("EvScEx").setValue(polCreationJson["hiddenPolicyObj"]["EvScEx"]);var n=Ext.getCmp("EvIdIn").setValue(polCreationJson["hiddenPolicyObj"]["EvIdIn"]);var z=Ext.getCmp("EvIdEx").setValue(polCreationJson["hiddenPolicyObj"]["EvIdEx"]);var j=Ext.getCmp("EvDescIn").setValue(polCreationJson["hiddenPolicyObj"]["EvDescIn"]);
var t=Ext.getCmp("EvDescEx").setValue(polCreationJson["hiddenPolicyObj"]["EvDescEx"]);Ext.getCmp("EvtLogDescriptors").setValue(polCreationJson["hiddenPolicyObj"]["EvtLogDescriptors"]);var o=polCreationJson["hiddenPolicyObj"]["testName"];if(!Ext.isEmpty(o)&&o=="SecurityLogTest"){Ext.getCmp("evtdescriptors").setFieldLabel("EVENT USERS");
Ext.getCmp("evtdescriptors_SL").show();Ext.getCmp("mainContainer").setAutoScroll(true);Ext.getCmp("mainContainer").setHeight(430);var x=polCreationJson["selectedEvtDesc_SL"];var w=polCreationJson["EvtdescText_SL"];Ext.getCmp("Desc_SL").setValue(x);Ext.getCmp("EVENT_DESCRIPTIONS_SL").setValue(w);if(!Ext.isEmpty(r)&&r!=undefined){Ext.getCmp("EVENT_DESCRIPTIONS_SL").setReadOnly(true);
}Ext.getCmp("EvDescIn_SL").setValue(polCreationJson["hiddenPolicyObj"]["EvDescIn_SL"]);Ext.getCmp("EvDescEx_SL").setValue(polCreationJson["hiddenPolicyObj"]["EvDescEx_SL"]);}}}});},handleViewIconClickInter:function(a,d,c){var b=Ext.getCmp("EventsViewGrid").getStore().getAt(d);this.viewPolicyTask(b);},viewPolicyTask:function(b){var f=b.get("Events");
var d=this;var c=Ext.create("DefaultTestConfiguration.view.EgPolicyCreation");var a=Ext.getCmp("logType").getValue();var e="change=view&policy="+f+"&server="+jsonVal["server"]+"&test="+jsonVal["parmTestName"]+"&showAll="+jsonVal["showAll"]+"&q="+jsonVal["q"]+"&logtype="+a+"&requestFrom="+jsonVal["requestFrom"];
Ext.Ajax.request({url:"DefaultTestConfiguration/data/EgPolicyCreationJson.jsp?"+e,method:"post",scope:this,async:false,success:function(g){if(g.status==200&&!Ext.isEmpty(g.responseText)){var y=g.responseText;polCreationJson=Ext.decode(y);c.setTitle(viewPolicyTitle);c.show();Ext.getCmp("egpolicycreation").removeDocked(Ext.getCmp("dockedToolBarBtn"));
var l=polCreationJson["pol_name"];var s=polCreationJson["selectedEvtId"];var p=polCreationJson["EvtidText"];var A=polCreationJson["selectedEvtSource"];var m=polCreationJson["EvtsourceText"];var u=polCreationJson["selectedEvtDesc"];var h=polCreationJson["EvtdescText"];var q=polCreationJson["isReadOnly"];
var r=polCreationJson["isReadOnlyText"];Ext.getCmp("pol_name").setValue(f);if(!Ext.isEmpty(q)&&q!=undefined){Ext.getCmp("pol_name").setReadOnly(true);}Ext.getCmp("Source").setValue(A);Ext.getCmp("EVENT_SOURCES").setValue(m);Ext.getCmp("Id").setValue(s);Ext.getCmp("EVENT_IDS").setValue(p);Ext.getCmp("Desc").setValue(u);
Ext.getCmp("EVENT_DESCRIPTIONS").setValue(h);if(!Ext.isEmpty(r)&&r!=undefined){Ext.getCmp("EVENT_SOURCES").setReadOnly(true);Ext.getCmp("EVENT_IDS").setReadOnly(true);Ext.getCmp("EVENT_DESCRIPTIONS").setReadOnly(true);}var k=Ext.getCmp("EvScIn").setValue(polCreationJson["hiddenPolicyObj"]["EvScIn"]);
var v=Ext.getCmp("EvScEx").setValue(polCreationJson["hiddenPolicyObj"]["EvScEx"]);var n=Ext.getCmp("EvIdIn").setValue(polCreationJson["hiddenPolicyObj"]["EvIdIn"]);var z=Ext.getCmp("EvIdEx").setValue(polCreationJson["hiddenPolicyObj"]["EvIdEx"]);var j=Ext.getCmp("EvDescIn").setValue(polCreationJson["hiddenPolicyObj"]["EvDescIn"]);
var t=Ext.getCmp("EvDescEx").setValue(polCreationJson["hiddenPolicyObj"]["EvDescEx"]);Ext.getCmp("EvtLogDescriptors").setValue(polCreationJson["hiddenPolicyObj"]["EvtLogDescriptors"]);var o=polCreationJson["hiddenPolicyObj"]["testName"];if(!Ext.isEmpty(o)&&o=="SecurityLogTest"){Ext.getCmp("evtdescriptors").setFieldLabel("EVENT USERS");
Ext.getCmp("evtdescriptors_SL").show();Ext.getCmp("mainContainer").setAutoScroll(true);Ext.getCmp("mainContainer").setHeight(430);var x=polCreationJson["selectedEvtDesc_SL"];var w=polCreationJson["EvtdescText_SL"];Ext.getCmp("Desc_SL").setValue(x);Ext.getCmp("EVENT_DESCRIPTIONS_SL").setValue(w);if(!Ext.isEmpty(r)&&r!=undefined){Ext.getCmp("EVENT_DESCRIPTIONS_SL").setReadOnly(true);
}Ext.getCmp("EvDescIn_SL").setValue(polCreationJson["hiddenPolicyObj"]["EvDescIn_SL"]);Ext.getCmp("EvDescEx_SL").setValue(polCreationJson["hiddenPolicyObj"]["EvDescEx_SL"]);}}}});},getPopUpView:function(e){if(Ext.getCmp("egconfigureresource")!=undefined){Ext.getCmp("egconfigureresource").removeAll();
Ext.getCmp("backupmultirescontainer").removeAll();Ext.getCmp("backupmultirescontainer").doLayout();}var h=Ext.getCmp(e).getValue();inputResource=1;popUpWin=Ext.create("Ext.Window",{layout:"fit",border:false,title:multiResourceTitle,id:"egconfigureresource",width:700,height:335,padding:"5 10 10 10",autoScroll:true,modal:true,layout:{type:"vbox",pack:"start",align:"stretch"},dockedItems:[{xtype:"toolbar",dock:"bottom",layout:{type:"hbox",align:"stretch",pack:"center"},padding:10,ui:"toolbarBgWithTopBorder",items:[{xtype:"button",ui:"newButtonSmall",id:"addMultiresbtn",width:80,text:"Add More",listeners:{"click":function(){addMultiResourceContact();
}}},{xtype:"button",ui:"newButtonSmall",text:"Update",width:80,id:"updateMultires",name:"updateMultires",margin:"0 0 0 20",listeners:{"click":function(){testInterViews.updateMultiResourceContact(e);}}},{xtype:"button",ui:"newButtonSmall",text:"Clear",width:80,id:"clearMultires",name:"clearMultires",margin:"0 0 0 20",listeners:{"click":function(){testInterViews.clearMultiResourceContact();
}}}]}],items:[{xtype:"container",id:"backupmultirescontainer",layout:{type:"vbox",pack:"center",align:"stretch"}},{xtype:"container",id:"NoMultiResPattern",hidden:true,border:true,flex:1,items:[{xtype:"label",html:'<div class="egFlexCenterByColumnWise" style="height:100%"><div class="iconInformation"></div><div class="commonErrorMsgText">'+NoPublishedResource+".</div></div>"}]}]});
popUpWin.show();var c="";var d=h.split(",");if(h!=null||h!=undefined){var g=d.length-1;for(var b=0;b<=d.length-1;b++){addMultiResourceContact();}for(c=1;c<d.length+1;c++){if(d[c-1].indexOf("\\")!=-1){var f=d[c-1].split("\\");Ext.getCmp("folderName"+c).setValue(d[c-1].split("\\")[0]);if(d[c-1].split("\\")[1].indexOf(":")!=-1){var a=d[c-1].split("\\")[1];
Ext.getCmp("resourceName"+c).setValue(a.split(":")[0]);Ext.getCmp("winTitle"+c).setValue(a.split(":")[1]);}else{Ext.getCmp("resourceName"+c).setValue(d[c-1].split("\\")[1]);Ext.getCmp("winTitle"+c).setValue("none");}}else{if(d[c-1].indexOf(":")!=-1){Ext.getCmp("folderName"+c).setValue("none");Ext.getCmp("resourceName"+c).setValue(d[c-1].split(":")[0]);
Ext.getCmp("winTitle"+c).setValue(d[c-1].split(":")[1]);}else{Ext.getCmp("folderName"+c).setValue("none");Ext.getCmp("resourceName"+c).setValue(d[c-1]);Ext.getCmp("winTitle"+c).setValue("none");}}}}},clearMultiResourceContact:function(){var a=Ext.getCmp("backupmultirescontainer");a.removeAll();inputResource=1;
addMultiResourceContact();},updateMultiResourceContact:function(g){var a=inputResource;var d="";for(var e=1;e<=a-1;e++){if(Ext.getCmp("folderName"+e)==undefined){continue;}var f=Ext.getCmp("folderName"+e).getValue();var b=Ext.getCmp("resourceName"+e).getValue();var c=Ext.getCmp("winTitle"+e).getValue();
if(!checkblank(f)){Ext.Msg.show({title:multiResourceTitle,msg:enterFolderName,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("folderName"+e).focus(true,true);}});return;}else{if(f.indexOf("$unconfigured")>-1){Ext.Msg.show({title:multiResourceTitle,msg:donotSpecifyKey,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("folderName"+e).focus(true,true);
}});return;}else{if(!checkspecialExt(f,"`*=#.|;:\"'<>,/[]{}()?\\")){Ext.Msg.show({title:multiResourceTitle,msg:_checkspecial,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("folderName"+e).focus(true,true);}});return;}else{if(trim(f)==""){Ext.getCmp("folderName"+e).focus();return;}else{if(f.indexOf("..")>-1){Ext.Msg.show({title:multiResourceTitle,msg:_checkdots,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("folderName"+e).focus(true,true);
}});return;}else{if(f.indexOf("  ")>-1){Ext.Msg.show({title:multiResourceTitle,msg:_checkSpaces,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("folderName"+e).focus(true,true);}});return;}}}}}}if(!checkblank(b)){Ext.Msg.show({title:multiResourceTitle,msg:enterResourceName,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("resourceName"+e).focus(true,true);
}});return;}else{if(b.indexOf("$unconfigured")>-1){Ext.Msg.show({title:multiResourceTitle,msg:donotSpecifyKey,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("resourceName"+e).focus(true,true);}});return;}else{if(b.indexOf("none")>-1){Ext.Msg.show({title:multiResourceTitle,msg:validResourceName,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("resourceName"+e).focus(true,true);
}});return;}else{if(!checkspecialExt(b,"`*=#.|;:\"'<>,/[]?\\")){Ext.Msg.show({title:multiResourceTitle,msg:_checkspecial,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("resourceName"+e).focus(true,true);}});return;}else{if(trim(b)==""){Ext.getCmp("resourceName"+e).focus();return;}else{if(b.indexOf("..")>-1){Ext.Msg.show({title:multiResourceTitle,msg:_checkdots,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("resourceName"+e).focus(true,true);
}});return;}else{if(b.indexOf("  ")>-1){Ext.Msg.show({title:multiResourceTitle,msg:_checkSpaces,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("resourceName"+e).focus(true,true);}});return;}}}}}}}if(!checkblank(c)){Ext.Msg.show({title:multiResourceTitle,msg:enterwinTitle,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("winTitle"+e).focus(true,true);
}});return;}else{if(c.indexOf("$unconfigured")>-1){Ext.Msg.show({title:multiResourceTitle,msg:donotSpecifyKey,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("winTitle"+e).focus(true,true);}});return;}else{if(!checkspecialExt(c,"`*=#.|;:\"'<>,/[]{}()?\\")){Ext.Msg.show({title:multiResourceTitle,msg:_checkspecial,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("winTitle"+e).focus(true,true);
}});return;}else{if(trim(c)==""){Ext.getCmp("winTitle"+e).focus();return;}else{if(c.indexOf("..")>-1){Ext.Msg.show({title:multiResourceTitle,msg:_checkdots,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("winTitle"+e).focus(true,true);}});return;}else{if(c.indexOf("  ")>-1){Ext.Msg.show({title:multiResourceTitle,msg:_checkSpaces,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){Ext.getCmp("winTitle"+e).focus(true,true);
}});return;}}}}}}if(f!="none"&&c!="none"){d+=f+"\\"+b+":"+c;}else{if(f=="none"&&c!="none"){d+=b+":"+c;}else{if(f!="none"&&c=="none"){d+=f+"\\"+b;}else{if(f=="none"&&c=="none"){d+=b;}}}}d+=",";}d=d.substring(0,d.lastIndexOf(","));Ext.getCmp(g).setValue(d);Ext.getCmp("egconfigureresource").close();},winServiceConfigs_pr:function(){firstClick=true;
Ext.create("DefaultTestConfiguration.view.MinMaxValues").show();noServiceConfig="false";var c=publicJson.prMeasureArray;if(c!=null&&c!=undefined&&c.length>0){inputsService=2;var b=Ext.getCmp("ratingMeasuresContr");Ext.suspendLayouts();for(var o=0;o<c.length;o++){var r=publicJson["prMeasureObject"][c[o]];
addServiceConf_pr(c[o],r,publicJson.prMeasureDispnameArray[o]);}Ext.resumeLayouts(true);b.doLayout();}var m=Ext.getCmp("min_max_values").getValue();if(m.indexOf("~")>0){var t=new Ext.util.HashMap();var s=m.split("~~");for(var o=0;o<s.length;o++){var g=s[o].split("~");if(g.length==5){var a=g[0]+":"+g[1]+":"+g[2];
var e=g[3]+":"+g[4];t.add(a,e);}}for(var o=0;o<c.length;o++){var j=c[o];var h=Ext.getCmp(j).getStore();for(var p=0;p<h.getCount();p++){var l=h.getAt(p).get("pr_measure_name");var n=h.getAt(p).get("associated_test_name");var f=h.getAt(p).get("associated_measure_name");var d=h.getAt(p).get("associated_measure_min_threshold");
var q=h.getAt(p).get("associated_measure_max_threshold");var a=Ext.util.Format.trim(l)+":"+Ext.util.Format.trim(n)+":"+Ext.util.Format.trim(f);if(t.containsKey(a)){var e=t.get(a);min_min_values=e.substring(0,e.indexOf(":"));if(min_min_values=="-1"){min_min_values="None";}max_max_values=e.substring(e.indexOf(":")+1);
if(max_max_values=="-1"){max_max_values="None";}h.getAt(p).set("associated_measure_min_threshold",min_min_values);h.getAt(p).set("associated_measure_max_threshold",max_max_values);}}}}Ext.Ajax.request({url:"DefaultTestConfiguration/data/defaulttesthelpJson.jsp?mode=winservicesconfiguration",method:"POST",async:false});
},updateServices_pr:function(g){firstClick=true;var j="";var t=this.checkBeforeAdding_pr();if(t){var d=publicJson.prMeasureArray;if(d!=null&&d!=undefined&&d.length>0){for(var q=0;q<d.length;q++){var m=d[q];var f=Ext.getCmp(m);var a=f.getPlugin(m);Ext.getCmp(m).getSelectionModel().selectAll();var b=Ext.getCmp(m).getSelectionModel();
var l=Ext.getCmp(m).getStore();for(var r=0;r<l.getCount();r++){var n=l.getAt(r).get("pr_measure_name");var o=l.getAt(r).get("associated_test_name");var h=l.getAt(r).get("associated_measure_name");var e=l.getAt(r).get("associated_measure_min_threshold");var s=l.getAt(r).get("associated_measure_max_threshold");
if(e.toLowerCase()=="none"){e="-1";}if(s.toLowerCase()=="none"){s="-1";}j+="~~"+Ext.util.Format.trim(n)+"~"+Ext.util.Format.trim(o)+"~"+Ext.util.Format.trim(h)+"~"+Ext.util.Format.trim(e)+"~"+Ext.util.Format.trim(s);}}}if(j.length>0){j=j.substring(2);}Ext.getCmp("minmaxvalues").destroy();firstgetService=true;
if(!Ext.isEmpty(j)&&j!=undefined){Ext.getCmp("min_max_values").setValue(j);}else{Ext.getCmp("min_max_values").setValue("none");}}var c=Ext.getCmp("componentType").getValue();var p=publicJson["testName"];Ext.Ajax.request({url:"SpecificTestConfiguration/data/EgConfigureComponentTestsJson.jsp?cType_HelpPage="+encodeURIComponent(c)+"&componentType="+encodeURIComponent(c)+"&tName_HelpPage="+p+"&testName="+p,method:"POST"});
},checkBeforeAdding_pr:function(){var h=publicJson.prMeasureArray;if(h!=null&&h!=undefined&&h.length>0){for(var e=0;e<h.length;e++){var a=h[e];var c=Ext.getCmp(a);var j=c.getPlugin(a);var d=c.getStore();for(var g=0;g<d.getCount();g++){var b=d.getAt(g).get("associated_measure_min_threshold");var f=d.getAt(g).get("associated_measure_max_threshold");
if(b.indexOf(" ")>-1){Ext.Msg.show({title:alertTitle,msg:alert28,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){j.startEditByPosition({row:g,column:5});}});return false;}if(f.indexOf(" ")>-1){Ext.Msg.show({title:alertTitle,msg:alert29,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){j.startEditByPosition({row:g,column:6});
}});return false;}if(b=="-1"){Ext.Msg.show({title:alertTitle,msg:alert30,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){j.startEditByPosition({row:g,column:5});}});allowUpdate=false;return false;}if(f=="-1"){Ext.Msg.show({title:alertTitle,msg:alert31,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){j.startEditByPosition({row:g,column:6});
}});allowUpdate=false;return false;}if(b.trim().toLowerCase()=="none"){b="-1";}if(f.trim().toLowerCase()=="none"){f="-1";}if(b=="-1"&&f=="-1"){Ext.Msg.show({title:alertTitle,msg:alert27,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){j.startEditByPosition({row:g,column:5});}});allowUpdate=false;
return false;}if(b=="-/-/-"||!correctFormat(b)){Ext.Msg.show({title:alertTitle,msg:alert32,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){j.startEditByPosition({row:g,column:5});}});return false;}else{if(!checkValidValue_rx(b)){Ext.Msg.show({title:alertTitle,msg:minimumValuesAlert,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){j.startEditByPosition({row:g,column:5});
}});return false;}else{if(!checkAscendingOrder(b)){Ext.Msg.show({title:alertTitle,msg:minThreshAlert,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){j.startEditByPosition({row:g,column:5});}});return false;}else{if((returnCode=validateTargetValues(b,true))!="0"){Ext.Msg.show({title:alertTitle,msg:returnCode,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){j.startEditByPosition({row:g,column:5});
}});return false;}}}}if(f=="-/-/-"||!correctFormat(f)){Ext.Msg.show({title:alertTitle,msg:alert33,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){j.startEditByPosition({row:g,column:6});}});return false;}else{if(!checkValidValue_rx(f)){Ext.Msg.show({title:alertTitle,msg:maximumValuesAlert,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){j.startEditByPosition({row:g,column:6});
}});return false;}else{if(!checkDescendingOrder(f)){Ext.Msg.show({title:alertTitle,msg:maxThreshAlert,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){j.startEditByPosition({row:g,column:6});}});return false;}else{if((returnCode=validateTargetValues(f,false))!="0"){Ext.Msg.show({title:alertTitle,msg:returnCode,buttons:Ext.Msg.OK,icon:"iconExclamation",fn:function(){j.startEditByPosition({row:g,column:6});
}});return false;}}}}}}}return true;}});function addContact(){if(inputsVmg==totalInputs){Ext.Msg.show({title:configUserPageName,msg:limitedLevel,buttons:Ext.Msg.OK,icon:"iconExclamation"});return;}var a=Ext.getCmp("vmgusers");var b=Ext.getCmp("backupcontainer");var c="con_"+inputs;var d={xtype:"fieldset",id:c,width:800,layout:{type:"vbox",pack:"center",align:"stretch"},margin:"5 5 5 5",items:[{xtype:"container",layout:{type:"hbox",pack:"end"},margin:"0 10 0 0",items:[{xtype:"button",iconCls:"img_removeShift",id:"removevmg"+inputs,tooltip:"<b>Remove</b>",style:{background:"none",border:"0px"},handler:function(){removeContact(c);
}}]},{xtype:"container",layout:"column",defaults:{margin:10,labelSeparator:" ",labelWidth:120},items:[{xtype:"textfield",cls:"textbox",fieldLabel:Domain,id:"domainvmg"+inputs,value:"$unconfigured",columnWidth:0.5},{xtype:"textfield",cls:"textbox",fieldLabel:AdminUser,id:"admusrvmg"+inputs,value:"$unconfigured",columnWidth:0.5},{xtype:"textfield",cls:"textbox",fieldLabel:AdminPwd,id:"admpwdvmg"+inputs,inputType:"password",columnWidth:0.5,backupValue:"$unconfigured",listeners:{afterrender:function(){this.setValue(this.backupValue);
},change:function(){var e=this.getValue();if(!Ext.isEmpty(e)){this.backupValue=e;}},blur:function(){var f=this;if(f.getValue()!==undefined||f.getValue()!=""){var e=this.backupValue;f.setValue(e);}},focus:function(){this.setValue("");}}},{xtype:"textfield",cls:"textbox",fieldLabel:AdminConfPwd,id:"confpwdvmg"+inputs,inputType:"password",columnWidth:0.5,backupValue:"$unconfigured",listeners:{afterrender:function(){this.setValue(this.backupValue);
},change:function(){var e=this.getValue();if(!Ext.isEmpty(e)){this.backupValue=e;}},blur:function(){var f=this;if(f.getValue()!==undefined||f.getValue()!=""){var e=this.backupValue;f.setValue(e);}},focus:function(){this.setValue("");}}}]}]};b.add(d);a.doLayout();inputs++;inputsVmg++;Ext.getCmp("addVmgUsrbtn").setText("Add More");
Ext.getCmp("updateConfUsr").enable();Ext.getCmp("clearConfUsr").enable();Ext.getCmp("NoVmgPattern").hide();}function removeContact(b){var c=Ext.getCmp("backupcontainer");c.remove(b);inputsVmg--;var a=c.items.length;if(a==0){Ext.getCmp("addVmgUsrbtn").setText("Add");Ext.getCmp("NoVmgPattern").show();Ext.getCmp("updateConfUsr").disable();
Ext.getCmp("clearConfUsr").disable();}}function addMultiSourceContact(){var a=Ext.getCmp("egconfigurepublishedresources");var c=Ext.getCmp("backupmulticontainer");var d="con_"+inputsmultisrc;var b={xtype:"fieldset",id:d,width:800,layout:{type:"vbox",pack:"center",align:"stretch"},margin:"5 5 5 5",items:[{xtype:"container",layout:{type:"hbox",pack:"end"},margin:"0 10 0 0",items:[{xtype:"button",iconCls:"img_removeShift",tooltip:"<b>Remove</b>",style:{background:"none",border:"0px"},handler:function(){removeMultiSrc(d);
}}]},{xtype:"container",layout:"column",defaults:{margin:10,labelSeparator:" ",labelWidth:150},items:[{xtype:"fieldcontainer",layout:"column",defaults:{labelSeparator:" ",labelWidth:150},columnWidth:1,items:[{xtype:"textfield",cls:"textbox",fieldLabel:"Published resources",style:{"white-space":"nowrap"},id:"publisresource"+inputsmultisrc,value:"$unconfigured",columnWidth:0.97,readOnly:true},{xtype:"button",columnWidth:0.03,tooltip:pubResourceToolTip,id:"button"+inputsmultisrc,iconCls:"iconConfigure",style:{background:"none",border:"0px"},margin:"0 0 0 2",listeners:{click:function(){var e=this.getId().replace("button","publisresource");
testInterViews.getPopUpView(e);}}}]},{xtype:"textfield",cls:"textbox",fieldLabel:Domain,style:{"white-space":"nowrap"},id:"domainmultiusr"+inputsmultisrc,value:"$unconfigured",columnWidth:0.5},{xtype:"textfield",cls:"textbox",fieldLabel:User,style:{"white-space":"nowrap"},id:"usermultiusr"+inputsmultisrc,value:"$unconfigured",columnWidth:0.5},{xtype:"textfield",cls:"textbox",fieldLabel:PasswordLbl,style:{"white-space":"nowrap"},id:"pwdmultiusr"+inputsmultisrc,inputType:"password",columnWidth:0.5,backupValue:"$unconfigured",listeners:{afterrender:function(){this.setValue(this.backupValue);
},change:function(){var e=this.getValue();if(!Ext.isEmpty(e)){this.backupValue=e;}},blur:function(){var f=this;if(f.getValue()!==undefined||f.getValue()!=""){var e=this.backupValue;f.setValue(e);}},focus:function(){this.setValue("");}}},{xtype:"textfield",cls:"textbox",fieldLabel:CnfPassLbl,style:{"white-space":"nowrap"},id:"confpwdmultiusr"+inputsmultisrc,inputType:"password",columnWidth:0.5,backupValue:"$unconfigured",listeners:{afterrender:function(){this.setValue(this.backupValue);
},change:function(){var e=this.getValue();if(!Ext.isEmpty(e)){this.backupValue=e;}},blur:function(){var f=this;if(f.getValue()!==undefined||f.getValue()!=""){var e=this.backupValue;f.setValue(e);}},focus:function(){this.setValue("");}}},{xtype:"fieldcontainer",id:"twofaCont"+inputsmultisrc,fieldLabel:"Is 2FA enabled?",columnWidth:0.5,layout:"column",items:[{xtype:"radiogroup",columnWidth:0.6,cls:"radiobt",id:"twofact"+inputsmultisrc,vertical:false,columns:2,items:[{boxLabel:"Yes",name:"twofactlabel"+inputsmultisrc,id:"twofactlabel"+inputsmultisrc+"_1",inputValue:"true"},{boxLabel:"No",name:"twofactlabel"+inputsmultisrc,id:"twofactlabel"+inputsmultisrc+"_2",inputValue:"false",checked:true}],listeners:{"change":function(g,f){var f=this.getChecked()[0];
var e=this.getId().replace("twofact","twofacttoken");if(f.getGroupValue()=="false"){Ext.getCmp(e).setVisible(false);}else{Ext.getCmp(e).setVisible(true);}}}},{xtype:"textfield",cls:"textbox",style:{"white-space":"nowrap"},id:"twofacttoken"+inputsmultisrc,inputType:"password",emptyText:"2FA code",columnWidth:0.4,margin:"0 0 0 5",hidden:true,backupValue:"",listeners:{afterrender:function(){this.setValue(this.backupValue);
},change:function(){var e=this.getValue();if(!Ext.isEmpty(e)){this.backupValue=e;}},blur:function(){var f=this;if(f.getValue()!==undefined||f.getValue()!=""){var e=this.backupValue;f.setValue(e);}},focus:function(){this.setValue("");}}}]},{xtype:"radiogroup",columnWidth:0.5,cls:"radiobt",id:"disclaimer_radioGrp"+inputsmultisrc,fieldLabel:"Is disclaimer enabled?",vertical:false,columns:2,items:[{boxLabel:"Yes",name:"disclaimermultiusr"+inputsmultisrc,id:"disclaimermultiusr"+inputsmultisrc+"_1",inputValue:"true"},{boxLabel:"No",name:"disclaimermultiusr"+inputsmultisrc,id:"disclaimermultiusr"+inputsmultisrc+"_2",inputValue:"false",checked:true}]}]}]};
c.add(b);a.doLayout();Ext.getCmp("publisresource"+inputsmultisrc).focus(true);Ext.getCmp("addMultiSrcbtn").setText("Add More");Ext.getCmp("updateMultiConfSrc").enable();Ext.getCmp("clearMultiConfSrc").enable();Ext.getCmp("NoMultiUsrPattern").hide();inputsmultisrc++;}function removeMultiSrc(b){var c=Ext.getCmp("backupmulticontainer");
c.remove(b);if(b=="conmulti_1"){ismultisrc="true";Ext.getCmp("conmulti_1").removeAll();Ext.getCmp("conmulti_1").hide();}var a=c.items.length;if(a==0){Ext.getCmp("addMultiSrcbtn").setText("Add");if(ismultisrc=="true"){Ext.getCmp("NoMultiUsrPattern").show();Ext.getCmp("updateMultiConfSrc").disable();Ext.getCmp("clearMultiConfSrc").disable();
}}}function addMultiUsrContact(){if(inputs==totalInputs){Ext.Msg.show({title:alertMultiTitle,msg:limitedLevel,buttons:Ext.Msg.OK,icon:"iconExclamation"});return;}var a=Ext.getCmp("egconfiguremultipleusers");var c=Ext.getCmp("backupmulticontainer");var d="conmulti_"+inputsmulti;var b={xtype:"fieldset",id:d,width:800,layout:{type:"vbox",pack:"center",align:"stretch"},margin:"5 5 5 5",items:[{xtype:"container",layout:{type:"hbox",pack:"end"},margin:"0 10 0 0",items:[{xtype:"button",iconCls:"img_removeShift",tooltip:"<b>Remove</b>",style:{background:"none",border:"0px"},handler:function(){removeMultiContact(d);
}}]},{xtype:"container",layout:"column",defaults:{margin:10,labelSeparator:" ",labelWidth:120},items:[{xtype:"textfield",cls:"textbox",fieldLabel:Domain,id:"domainmultiusr"+inputsmulti,value:"$unconfigured",columnWidth:0.5},{xtype:"textfield",cls:"textbox",fieldLabel:User,id:"usermultiusr"+inputsmulti,value:"$unconfigured",columnWidth:0.5},{xtype:"textfield",cls:"textbox",fieldLabel:PasswordLbl,id:"pwdmultiusr"+inputsmulti,inputType:"password",columnWidth:0.5,backupValue:"$unconfigured",listeners:{afterrender:function(){this.setValue(this.backupValue);
},change:function(){var e=this.getValue();if(!Ext.isEmpty(e)){this.backupValue=e;}},blur:function(){var f=this;if(f.getValue()!==undefined||f.getValue()!=""){var e=this.backupValue;f.setValue(e);}},focus:function(){this.setValue("");}}},{xtype:"textfield",cls:"textbox",fieldLabel:CnfPassLbl,id:"confpwdmultiusr"+inputsmulti,inputType:"password",columnWidth:0.5,backupValue:"$unconfigured",listeners:{afterrender:function(){this.setValue(this.backupValue);
},change:function(){var e=this.getValue();if(!Ext.isEmpty(e)){this.backupValue=e;}},blur:function(){var f=this;if(f.getValue()!==undefined||f.getValue()!=""){var e=this.backupValue;f.setValue(e);}},focus:function(){this.setValue("");}}}]}]};c.add(b);a.doLayout();inputsmulti++;Ext.getCmp("addMultiUsrbtn").setText("Add More");
Ext.getCmp("updateMultiConfUsr").enable();Ext.getCmp("clearMultiConfUsr").enable();Ext.getCmp("NoMultiUsrPattern").hide();}function removeMultiContact(b){var c=Ext.getCmp("backupmulticontainer");c.remove(b);if(b=="conmulti_1"){ismulti="true";Ext.getCmp("conmulti_1").removeAll();Ext.getCmp("conmulti_1").hide();
}var a=c.items.length;if(a==0){Ext.getCmp("addMultiUsrbtn").setText("Add");if(ismulti=="true"){Ext.getCmp("NoMultiUsrPattern").show();Ext.getCmp("updateMultiConfUsr").disable();Ext.getCmp("clearMultiConfUsr").disable();}}}function addUrlPropsContainer(c,h,d,e,j){h=(h==undefined)?"1stFew":h;d=!Ext.isDefined(d)?3:d;
e=!Ext.isDefined(e)?"":e;j=!Ext.isDefined(j)?"":j;var k=Ext.get(c).id;var a=Ext.getCmp("businesstransactionrule");var m=Ext.getCmp(c);var l=7;if(Ext.isEmpty(k)){k=c;}if((m.items.getCount())==l){Ext.Msg.show({title:" Configure URL rules",msg:"You have reached the maximum number of rules",buttons:Ext.Msg.OK,icon:"iconInformation"});
return;}var b=BTNamingSegmentCount;var g="urlProperty_1_"+b;var f={xtype:"container",margin:"10 0 10 0",id:g,layout:{type:"column",align:"stretch"},items:[{xtype:"label",textAlign:"center",margin:"5 0 15 0",style:{"text-align":"center"},columnWidth:1.3,text:" And ",},{xtype:"container",columnWidth:1,layout:"hbox",items:[{xtype:"combo",cls:"dropdown",labelWidth:"auto",fieldLabel:"Use",margin:"3 0",displayField:"displayField",valueField:"valueField",value:h,editable:false,id:"urlsegment_1_"+b,labelSeparator:" ",store:new Ext.data.Store({fields:["displayField","valueField"],data:[{"displayField":"first few URI segment(s)","valueField":"1stFew"},{"displayField":"specific URL segment(s)","valueField":"specific"},{"displayField":"a parameter value","valueField":"param"}]}),listeners:{change:function(){var n=this.getValue();
if(n=="param"){Ext.getCmp("urlsegmentContainer_1_"+b).hide();Ext.getCmp("urlspecificsegmentContainer_1_"+b).hide();Ext.getCmp("urlparamContainer_1_"+b).hide();Ext.getCmp("urlparamContainer_1_"+b).show();Ext.getCmp("urlParam_1_"+b).focus(true,true);}else{if(n=="specific"){Ext.getCmp("urlsegmentContainer_1_"+b).hide();
Ext.getCmp("urlspecificsegmentContainer_1_"+b).hide();Ext.getCmp("urlparamContainer_1_"+b).hide();Ext.getCmp("urlspecificsegmentContainer_1_"+b).show();Ext.getCmp("urlspecificsegmentNo_1_"+b).focus(true,true);}else{Ext.getCmp("urlsegmentContainer_1_"+b).hide();Ext.getCmp("urlspecificsegmentContainer_1_"+b).hide();
Ext.getCmp("urlparamContainer_1_"+b).hide();Ext.getCmp("urlsegmentContainer_1_"+b).show();Ext.getCmp("urlsegmentNo_1_"+b).focus(true,true);}}},afterrender:function(){var n=this.getValue();if(n=="param"){Ext.getCmp("urlsegmentContainer_1_"+b).hide();Ext.getCmp("urlspecificsegmentContainer_1_"+b).hide();
Ext.getCmp("urlparamContainer_1_"+b).hide();Ext.getCmp("urlparamContainer_1_"+b).show();Ext.getCmp("urlParam_1_"+b).focus(true,true);}else{if(n=="specific"){Ext.getCmp("urlsegmentContainer_1_"+b).hide();Ext.getCmp("urlspecificsegmentContainer_1_"+b).hide();Ext.getCmp("urlparamContainer_1_"+b).hide();
Ext.getCmp("urlspecificsegmentContainer_1_"+b).show();Ext.getCmp("urlspecificsegmentNo_1_"+b).focus(true,true);}else{Ext.getCmp("urlsegmentContainer_1_"+b).hide();Ext.getCmp("urlspecificsegmentContainer_1_"+b).hide();Ext.getCmp("urlparamContainer_1_"+b).hide();Ext.getCmp("urlsegmentContainer_1_"+b).show();
Ext.getCmp("urlsegmentNo_1_"+b).focus(true,true);}}}}},{xtype:"fieldcontainer",columnWidth:1,layout:"hbox",id:"urlsegmentContainer_1_"+b,items:[{xtype:"textfield",cls:"textbox",labelWidth:60,value:d,id:"urlsegmentNo_1_"+b,labelSeparator:" ",margin:"0 5",fieldLabel:": Use first",},{xtype:"label",width:200,forId:"segementsURL",margin:"0 5",text:"Segements of the URL",},{xtype:"component",flex:1},{xtype:"button",id:"removebutton1_"+b,margin:"0 100 0 0",iconCls:"iconMinus",tooltip:"<b>remove URL Property</b>",style:{background:"none",border:"0px"},handler:function(){BTNamingSegmentCount--;
removeUrlPropsContainer(this.getId());}},]},{xtype:"fieldcontainer",hidden:true,columnWidth:1,layout:"hbox",id:"urlspecificsegmentContainer_1_"+b,items:[{xtype:"textfield",cls:"textbox",labelWidth:60,value:d,id:"urlspecificsegmentNo_1_"+b,labelSeparator:" ",margin:"0 5",fieldLabel:": Use",},{xtype:"label",forId:"segementsURL",width:200,margin:"0 5",text:"Segement of the URL",},{xtype:"component",flex:1},{xtype:"button",id:"removebutton3_"+b,margin:"0 100 0 0",iconCls:"iconMinus",tooltip:"<b>remove URL Property</b>",style:{background:"none",border:"0px"},handler:function(){removeUrlPropsContainer(this.getId());
}},]},{xtype:"fieldcontainer",layout:"hbox",id:"urlparamContainer_1_"+b,hidden:true,columnWidth:1,items:[{xtype:"textfield",value:e,cls:"textbox",labelSeparator:" ",id:"urlParam_1_"+b,margin:"0 5",labelWidth:"auto",fieldLabel:": Use value of request parameter key 	",},{xtype:"textfield",cls:"textbox",id:"urlRegEx_1_"+b,labelWidth:"auto",margin:"0 0",value:j,labelSeparator:" ",fieldLabel:" and apply regex",},{xtype:"component",flex:1},{xtype:"button",id:"removebutton2_"+b,margin:"0 100 0 0",iconCls:"iconMinus",tooltip:"<b>remove URL Property</b>",style:{background:"none",border:"0px"},handler:function(){BTNamingSegmentCount--;
removeUrlPropsContainer(this.getId());}}]}]}]};m.add(f);BTNamingSegmentCount++;a.doLayout();}function removeUrlPropsContainer(c){var a=c.substring(c.lastIndexOf("_")+1);var b=Ext.getCmp("urlProperty_1_"+a);Ext.getCmp("urlPropsfieldset1").remove(b);}function addCredUrlContact(){var c=Ext.getCmp("egconfigureurlandcredentials");
var g=Ext.getCmp("credurlcontainer");var d=true;var e=true;var b=publicJson["isPrivateKeyParamExist"];var f=publicJson["isSystemPropKeyParamExist"];if(b==true){e=false;}if(f==true){d=false;}var h="con_"+inputsCredUrl;var a={xtype:"fieldset",id:h,width:800,layout:{type:"vbox",pack:"center",align:"stretch"},style:{background:"none",border:"1px solid lightGrey"},margin:"5 5 5 5",items:[{xtype:"container",layout:{type:"hbox",pack:"end"},margin:"0 10 0 0",items:[{xtype:"button",iconCls:"img_removeShift",tooltip:"<b>Remove</b>",style:{background:"none",border:"0px"},handler:function(){removeCredUrlContact(h);
}}]},{xtype:"container",layout:"column",defaults:{margin:10,labelSeparator:" ",labelAlign:"top"},items:[{xtype:"textfield",cls:"textbox",fieldLabel:Name,id:"nameCred"+inputsCredUrl,name:"nameCred"+inputsCredUrl,value:"$unconfigured",columnWidth:0.25},{xtype:"textfield",cls:"textbox",fieldLabel:urlLbl,id:"urlCred"+inputsCredUrl,name:"urlCred"+inputsCredUrl,value:"$unconfigured",columnWidth:0.75},{xtype:"textfield",cls:"textbox",fieldLabel:urlUnmeLbl,id:"usrnameCred"+inputsCredUrl,name:"usrnameCred"+inputsCredUrl,value:"none",columnWidth:0.25},{xtype:"textfield",cls:"textbox",fieldLabel:urlPwdLbl,id:"pwdCred"+inputsCredUrl,name:"pwdCred"+inputsCredUrl,inputType:"password",columnWidth:0.25,backupValue:"none",listeners:{afterrender:function(){this.setValue(this.backupValue);
},change:function(){var j=this.getValue();if(!Ext.isEmpty(j)){this.backupValue=j;}},blur:function(){var k=this;if(k.getValue()!==undefined||k.getValue()!=""){var j=this.backupValue;k.setValue(j);}},focus:function(){this.setValue("");}}},{xtype:"fieldcontainer",layout:"column",columnWidth:0.3,fieldLabel:urlContentLbl,items:[{xtype:"scrollcombo",cls:"dropdown",id:"contentCred"+inputsCredUrl,name:"contentCred"+inputsCredUrl,displayField:"displayField",columnWidth:0.4,valueField:"valueField",queryMode:"local",value:"none",editable:false,parent:this,store:new Ext.data.Store({fields:["displayField","valueField"],data:[{"displayField":"None","valueField":"none"},{"displayField":"Include","valueField":"Inc"},{"displayField":"Exclude","valueField":"Exc"}]})},{xtype:"textfield",cls:"textbox",id:"subcontentCred"+inputsCredUrl,name:"subcontentCred"+inputsCredUrl,columnWidth:0.6,margin:"0 0 0 5",value:"none"}]},{xtype:"textfield",cls:"textbox",fieldLabel:urlEncodeLbl,id:"encodeCred"+inputsCredUrl,name:"encodeCred"+inputsCredUrl,value:"none",columnWidth:0.2},{xtype:"textfield",cls:"textbox",fieldLabel:urlPrivateLbl,id:"privateKey"+inputsCredUrl,name:"privateKey"+inputsCredUrl,value:"none",columnWidth:0.75,hidden:e},{xtype:"textfield",cls:"textbox",fieldLabel:urlPwdLbl,id:"passKey"+inputsCredUrl,name:"passKey"+inputsCredUrl,inputType:"password",columnWidth:0.25,hidden:e,backupValue:"none",listeners:{afterrender:function(){this.setValue(this.backupValue);
},change:function(){var j=this.getValue();if(!Ext.isEmpty(j)){this.backupValue=j;}},blur:function(){var k=this;if(k.getValue()!==undefined||k.getValue()!=""){var j=this.backupValue;k.setValue(j);}},focus:function(){this.setValue("");}}},{xtype:"fieldset",id:"syspropsfieldset"+inputsCredUrl,name:"syspropsfieldset"+inputsCredUrl,columnWidth:1,hidden:d,title:urlSystemPropsTitleLbl,style:{background:"none",border:"1px solid lightGrey"},layout:{type:"vbox",pack:"start",align:"stretch"},margin:"10 10 0 10",items:[{xtype:"container",id:"sysPropsMainContainer"+inputsCredUrl,layout:"column",columnWidth:1,defaults:{labelSeparator:"",margin:"0 5 5 5"},items:[{xtype:"container",id:"sysPropsContainer_"+inputsCredUrl+"_1",name:"sysPropsContainer_"+inputsCredUrl+"_1",layout:"column",columnWidth:1,items:[{xtype:"textfield",cls:"textbox",fieldLabel:urlSystemKeyLbl,id:"syspropkey_"+inputsCredUrl+"_1",name:"syspropkey_"+inputsCredUrl+"_1",value:"jsse.enableSNIExtension",margin:5,columnWidth:0.48,labelSeparator:" ",labelAlign:"top"},{xtype:"textfield",cls:"textbox",fieldLabel:urlSystemValLbl,id:"syspropval_"+inputsCredUrl+"_1",name:"syspropval_"+inputsCredUrl+"_1",value:"false",columnWidth:0.48,margin:5,labelSeparator:" ",labelAlign:"top"},{xtype:"component",html:'<center><div class="iconPlus" style="cursor:pointer;" data-qtip="<b>Add System Property</b>" onclick="javascript:addSysPropsContainer(sysPropsContainer_'+inputsCredUrl+'_1)"></center>',columnWidth:0.04,margin:"25 0 0 2"}]}]}]}]}]};
g.add(a);Ext.getCmp("nameCred"+inputsCredUrl).focus();c.doLayout();inputsCredUrl++;Ext.getCmp("addCredUrlbtn").setText("Add More");Ext.getCmp("updateCredUrl").enable();Ext.getCmp("clearCredUrl").enable();Ext.getCmp("NoCredUrlPattern").hide();}function removeCredUrlContact(c){var b=Ext.getCmp("credurlcontainer");
var d=Ext.getCmp("credurlcontainer");d.remove(c);if(c=="concred_1"){iscred="true";Ext.getCmp("concred_1").removeAll();Ext.getCmp("concred_1").hide();}var a=d.items.length;if(a==0){if(iscred=="true"){Ext.getCmp("addCredUrlbtn").setText("Add");Ext.getCmp("NoCredUrlPattern").show();Ext.getCmp("updateCredUrl").disable();
Ext.getCmp("clearCredUrl").disable();}}}function addUrlNameContact(){var d=Ext.getCmp("egconfigurenamepattern");var a=Ext.getCmp("urlpatterncontainer");var b="con_"+inputsUrlNme;var c={xtype:"fieldset",id:b,width:800,layout:{type:"vbox",pack:"center",align:"stretch"},margin:"5 5 5 5",items:[{xtype:"container",layout:{type:"hbox",pack:"end"},margin:"0 10 0 0",items:[{xtype:"button",iconCls:"img_removeShift",tooltip:"<b>Remove</b>",style:{background:"none",border:"0px"},handler:function(){removeUrlNameContact(b);
}}]},{xtype:"container",layout:"column",defaults:{margin:10,labelSeparator:" ",labelAlign:"top"},items:[{xtype:"textfield",cls:"textbox",fieldLabel:Name,id:"nameurl"+inputsUrlNme,name:"nameurl"+inputsUrlNme,value:"$unconfigured",columnWidth:0.4},{xtype:"textfield",cls:"textbox",fieldLabel:Pattern,id:"patternurl"+inputsUrlNme,name:"patternurl"+inputsUrlNme,value:"$unconfigured",columnWidth:0.4},{xtype:"textfield",cls:"textbox",fieldLabel:Threshold_Value,id:"thresholdurl"+inputsUrlNme,name:"thresholdurl"+inputsUrlNme,value:"$unconfigured",columnWidth:0.2}]}]};
a.add(c);Ext.getCmp("nameurl"+inputsUrlNme).focus();d.doLayout();inputsUrlNme++;Ext.getCmp("addUrlNamebtn").setText("Add More");Ext.getCmp("updateUrlPattern").enable();Ext.getCmp("clearUrlPattern").enable();Ext.getCmp("NoUrlPattern").hide();}function removeUrlNameContact(c){var a=Ext.getCmp("urlpatterncontainer");
a.remove(c);if(c=="con_1"){isNamePtn="true";Ext.getCmp("con_1").removeAll();Ext.getCmp("con_1").hide();}var b=a.items.length;if(b==0){Ext.getCmp("addUrlNamebtn").setText("Add");if(isNamePtn=="true"){Ext.getCmp("NoUrlPattern").show();Ext.getCmp("updateUrlPattern").disable();Ext.getCmp("clearUrlPattern").disable();
}}}function addWinSharedContact(){var d=Ext.getCmp("egconfigurewinsharedfolders");var b=Ext.getCmp("winsharedcontainer");var a="con_"+inputWinShared;var c={xtype:"fieldset",id:a,width:800,layout:{type:"vbox",pack:"center",align:"stretch"},margin:"5 5 5 5",items:[{xtype:"container",layout:{type:"hbox",pack:"end"},margin:"0 10 0 0",items:[{xtype:"button",iconCls:"img_removeShift",tooltip:"<b>Remove</b>",style:{background:"none",border:"0px"},handler:function(){removeWinSharedContact(a);
}}]},{xtype:"container",layout:"column",defaults:{margin:10,labelSeparator:" ",labelAlign:"top"},items:[{xtype:"textfield",cls:"textbox",fieldLabel:dispWinLbl,id:"displayNme"+inputWinShared,name:"displayNme"+inputWinShared,value:"$unconfigured",columnWidth:0.25},{xtype:"textfield",cls:"textbox",fieldLabel:shrWinLbl,id:"shareNme"+inputWinShared,name:"shareNme"+inputWinShared,value:"$unconfigured",columnWidth:0.75},{xtype:"textfield",cls:"textbox",fieldLabel:dmnWinLbl,id:"domainNme"+inputWinShared,name:"domainNme"+inputWinShared,value:"$unconfigured",columnWidth:0.25},{xtype:"textfield",cls:"textbox",fieldLabel:unmeWinLbl,id:"userNme"+inputWinShared,name:"userNme"+inputWinShared,value:"$unconfigured",columnWidth:0.25},{xtype:"textfield",cls:"textbox",fieldLabel:PasswordLbl,id:"pwdNme"+inputWinShared,name:"pwdNme"+inputWinShared,inputType:"password",columnWidth:0.25,backupValue:"$unconfigured",listeners:{afterrender:function(){this.setValue(this.backupValue);
},change:function(){var e=this.getValue();if(!Ext.isEmpty(e)){this.backupValue=e;}},blur:function(){var f=this;if(f.getValue()!==undefined||f.getValue()!=""){var e=this.backupValue;f.setValue(e);}},focus:function(){this.setValue("");}}},{xtype:"textfield",cls:"textbox",fieldLabel:CnfPassLbl,id:"confPwdNme"+inputWinShared,name:"confPwdNme"+inputWinShared,inputType:"password",columnWidth:0.25,backupValue:"$unconfigured",listeners:{afterrender:function(){this.setValue(this.backupValue);
},change:function(){var e=this.getValue();if(!Ext.isEmpty(e)){this.backupValue=e;}},blur:function(){var f=this;if(f.getValue()!==undefined||f.getValue()!=""){var e=this.backupValue;f.setValue(e);}},focus:function(){this.setValue("");}}}]}]};b.add(c);Ext.getCmp("displayNme"+inputWinShared).focus();d.doLayout();
inputWinShared++;Ext.getCmp("addwinsharedbtn").setText("Add More");Ext.getCmp("updateWinShared").enable();Ext.getCmp("clearWinShared").enable();Ext.getCmp("NoWinSharedPattern").hide();}function removeWinSharedContact(b){var a=Ext.getCmp("winsharedcontainer");a.remove(b);if(b=="con_win1"){noWinConfig="true";
Ext.getCmp("con_win1").removeAll();Ext.getCmp("con_win1").hide();}var c=a.items.length;if(c==0){Ext.getCmp("addwinsharedbtn").setText("Add");if(noWinConfig=="true"){Ext.getCmp("NoWinSharedPattern").show();Ext.getCmp("updateWinShared").disable();Ext.getCmp("clearWinShared").disable();}}}function addWsdlUrlContact(){var d=Ext.getCmp("egconfigurewsdlurlandcredentials");
var c=Ext.getCmp("wsdlurlcontainer");var b="con_"+inputsWsdlUrl;var a={xtype:"fieldset",id:b,width:750,layout:{type:"vbox",pack:"center",align:"stretch"},margin:"10 20 10 20",items:[{xtype:"container",layout:{type:"hbox",pack:"end"},margin:"0 10 0 0",items:[{xtype:"button",iconCls:"img_removeShift",tooltip:"<b>Remove</b>",style:{background:"none",border:"0px"},handler:function(){removeWsdlUrlContact(b);
}}]},{xtype:"container",layout:"column",defaults:{margin:10,labelSeparator:" ",labelAlign:"top"},width:720,items:[{xtype:"textfield",cls:"textbox",fieldLabel:Name,id:"nameWsdl"+inputsWsdlUrl,name:"nameWsdl"+inputsWsdlUrl,value:"$unconfigured",columnWidth:0.25},{xtype:"textfield",cls:"textbox",fieldLabel:urlLbl,id:"urlWsdl"+inputsWsdlUrl,name:"urlWsdl"+inputsWsdlUrl,value:"$unconfigured",columnWidth:0.75},{xtype:"textfield",cls:"textbox",fieldLabel:urlUnmeLbl,id:"usrnameWsdl"+inputsWsdlUrl,name:"usrnameWsdl"+inputsWsdlUrl,value:"none",columnWidth:0.25},{xtype:"textfield",cls:"textbox",fieldLabel:urlPwdLbl,id:"pwdWsdl"+inputsWsdlUrl,name:"pwdWsdl"+inputsWsdlUrl,inputType:"password",columnWidth:0.25,backupValue:"none",listeners:{afterrender:function(){this.setValue(this.backupValue);
},change:function(){var e=this.getValue();if(!Ext.isEmpty(e)){this.backupValue=e;}},blur:function(){var f=this;if(f.getValue()!==undefined||f.getValue()!=""){var e=this.backupValue;f.setValue(e);}},focus:function(){this.setValue("");}}},{xtype:"fieldcontainer",layout:"column",columnWidth:0.3,fieldLabel:urlContentLbl,items:[{xtype:"scrollcombo",cls:"dropdown",id:"contentWsdl"+inputsWsdlUrl,name:"contentWsdl"+inputsWsdlUrl,displayField:"displayField",columnWidth:0.4,valueField:"valueField",queryMode:"local",value:"none",editable:false,parent:this,store:new Ext.data.Store({fields:["displayField","valueField"],data:[{"displayField":"None","valueField":"none"},{"displayField":"Include","valueField":"Inc"},{"displayField":"Exclude","valueField":"Exc"}]})},{xtype:"textfield",cls:"textbox",id:"subcontentWsdl"+inputsWsdlUrl,name:"subcontentWsdl"+inputsWsdlUrl,columnWidth:0.6,margin:"0 0 0 5",value:"none"}]},{xtype:"textfield",cls:"textbox",fieldLabel:urlEncodeLbl,id:"encodeWsdl"+inputsWsdlUrl,name:"encodeWsdl"+inputsWsdlUrl,value:"none",columnWidth:0.2}]}]};
c.add(a);Ext.getCmp("nameWsdl"+inputsWsdlUrl).focus();d.doLayout();inputsWsdlUrl++;Ext.getCmp("NoWsdlUrlPattern").hide();Ext.getCmp("addWsdlUrlbtn").setText("Add More");Ext.getCmp("updateWsdlUrl").enable();Ext.getCmp("clearWsdlUrl").enable();}function removeWsdlUrlContact(c){var b=Ext.getCmp("wsdlurlcontainer");
b.remove(c);if(c=="con_wsdl1"){noWsdl="true";Ext.getCmp("con_wsdl1").removeAll();Ext.getCmp("con_wsdl1").hide();}var a=b.items.length;if(a==0){Ext.getCmp("addWsdlUrlbtn").setText("Add");if(noWsdl=="true"){Ext.getCmp("NoWsdlUrlPattern").show();Ext.getCmp("updateWsdlUrl").disable();Ext.getCmp("clearWsdlUrl").disable();
}}}function addRunTimeContact(){var a=Ext.getCmp("egruntimepattern");var d=Ext.getCmp("runtimecontainer");var c="run_"+runinputs;var b={xtype:"container",id:c,items:[{xtype:"textareafield",cls:"text-area",id:"osSpecification"+runinputs,fieldLabel:"",labelSeparator:"",labelAlign:"top",rows:5,width:450,value:"",margin:"0 7 10 0"}]};
d.add(b);a.doLayout();runinputs++;}function addMultiResourceContact(){var a=Ext.getCmp("egconfigureresource");var c=Ext.getCmp("backupmultirescontainer");var d="conRes_"+inputResource;var b={xtype:"fieldset",id:d,padding:"10 0 10 10",margin:"10 10 0 10",items:[{xtype:"container",layout:"column",defaults:{labelSeparator:" ",labelWidth:150},items:[{xtype:"fieldcontainer",layout:"column",columnWidth:1,defaults:{margin:5,labelSeparator:" ",labelAlign:"top",},items:[{xtype:"textfield",cls:"textbox",style:{"white-space":"nowrap"},id:"folderName"+inputResource,fieldLabel:"Tab Name",value:"none",columnWidth:0.33},{xtype:"textfield",cls:"textbox",style:{"white-space":"nowrap"},fieldLabel:"Application/Desktop Name",id:"resourceName"+inputResource,columnWidth:0.34},{xtype:"textfield",cls:"textbox",style:{"white-space":"nowrap"},fieldLabel:"Window Title",id:"winTitle"+inputResource,value:"none",columnWidth:0.33}]},{xtype:"container",style:{"position":"absolute","top":"2px","right":"2px","width":"20px","height":"20px"},margin:"0 0 0 0",items:[{xtype:"button",iconCls:"img_removeShift",tooltip:"<b>Remove</b>",style:{background:"none",border:"0px"},handler:function(){removeMultiResource(d);
}}]}]}]};c.add(b);a.doLayout();Ext.getCmp("addMultiresbtn").setText("Add More");Ext.getCmp("updateMultires").enable();Ext.getCmp("clearMultires").enable();Ext.getCmp("NoMultiResPattern").hide();inputResource++;}function removeMultiResource(b){var c=Ext.getCmp("backupmultirescontainer");c.remove(b);var a=c.items.length;
if(a==0){inputResource=1;Ext.getCmp("NoMultiResPattern").show();Ext.getCmp("updateMultires").disable();Ext.getCmp("clearMultires").disable();Ext.getCmp("addMultiresbtn").setText("Add");}}function checkspecialExt(c,b){if(typeof(c)=="object"){obj_val=c.value;}else{obj_val=c;}for(var a=0;a<obj_val.length;
a++){check_char=b.indexOf(obj_val.charAt(a));if(check_char>=0){return false;}}return true;}function addSysPropsContainer(d){var b=Ext.get(d).id;if(Ext.isEmpty(b)){b=d;}var c=b.substring(b.indexOf("_")+1);c=c.substring(0,c.indexOf("_"));b=b.substring(b.lastIndexOf("_")+1);var a=Ext.getCmp("egconfigureurlandcredentials");
var e=Ext.getCmp("sysPropsMainContainer"+c);if((e.items.getCount())==totalSystemProperties){Ext.Msg.show({title:credUrlPageName,msg:limitedSysPropsMsg,buttons:Ext.Msg.OK,icon:"iconInformation"});return;}var h=(e.items.getCount()+1);var f="sysPropsContainer_"+c+"_"+(e.items.getCount()+1);var g={xtype:"container",id:f,layout:"column",columnWidth:1,items:[{xtype:"textfield",cls:"textbox",fieldLabel:urlSystemKeyLbl,id:"syspropkey_"+c+"_"+h,name:"syspropkey_"+c+"_"+h,value:"none",margin:5,columnWidth:0.48,labelSeparator:" ",labelAlign:"top"},{xtype:"textfield",cls:"textbox",fieldLabel:urlSystemValLbl,id:"syspropval_"+c+"_"+h,name:"syspropval_"+c+"_"+h,value:"none",columnWidth:0.48,margin:5,labelSeparator:" ",labelAlign:"top"},{xtype:"component",html:'<center><div class="iconMinus" data-qtip="<b>Remove System Property</b>" style="cursor:pointer;" onclick="javascript:removeSysPropsContainer('+f+')"></center>',columnWidth:0.04,margin:"25 0 0 2"}]};
e.add(g);a.doLayout();}function addSysPropsContainerWithValue(g,c){var l=g;var h=c;var k="none";var j="none";if(!Ext.isEmpty(h)&&h.indexOf("~!~")!=-1){k=h.substring(0,h.indexOf("~"));j=h.substring(h.lastIndexOf("~")+1);}var b=l.substring(l.indexOf("_")+1);b=b.substring(0,b.indexOf("_"));l=l.substring(l.lastIndexOf("_")+1);
var a=Ext.getCmp("egconfigureurlandcredentials");var m=Ext.getCmp("sysPropsMainContainer"+b);if(!Ext.isEmpty(m.items)){if((m.items.getCount())==totalSystemProperties){Ext.Msg.show({title:credUrlPageName,msg:limitedSysPropsMsg,buttons:Ext.Msg.OK,icon:"iconInformation"});return;}}var d=(m.items.getCount()+1);
var f="sysPropsContainer_"+b+"_"+(m.items.getCount()+1);var e={xtype:"container",id:f,layout:"column",columnWidth:1,items:[{xtype:"textfield",cls:"textbox",fieldLabel:urlSystemKeyLbl,id:"syspropkey_"+b+"_"+d,name:"syspropkey_"+b+"_"+d,value:k,margin:5,columnWidth:0.48,labelSeparator:" ",labelAlign:"top"},{xtype:"textfield",cls:"textbox",fieldLabel:urlSystemValLbl,id:"syspropval_"+b+"_"+d,name:"syspropval_"+b+"_"+d,value:j,columnWidth:0.48,margin:5,labelSeparator:" ",labelAlign:"top"},{xtype:"component",html:'<center><div class="iconMinus" data-qtip="<b>Remove System Property</b>" style="cursor:pointer;" onclick="javascript:removeSysPropsContainer('+f+')"></center>',columnWidth:0.04,margin:"25 0 0 2"}]};
m.add(e);a.doLayout();}function removeSysPropsContainer(m){var o=m.id;var j=o;j=j.substring(j.indexOf("_")+1);j=j.substring(0,j.indexOf("_"));var a=Ext.getCmp("sysPropsMainContainer"+j);var p=Ext.getCmp(o);a.remove(p);var n=a.items.length;if(n>0){inputsIncPatt=0;var g=new Array();for(var c=1;c<=n;c++){var h=Ext.getCmp("sysPropsContainer_"+j+"_"+(c+1));
if(h==null||h==undefined){continue;}var d=h.getId();var l=Ext.getCmp("syspropkey_"+j+"_"+(c+1)).getValue();var k=Ext.getCmp("syspropval_"+j+"_"+(c+1)).getValue();g[inputsIncPatt]=l+"~!~"+k;inputsIncPatt++;a.remove(h);}if(g!=null&&g.length>0){for(var f=0;f<g.length;f++){var b=g[f];addSysPropsContainerWithValue("sysPropsContainer_"+j+"_"+(f+2),b);
}}}}function validateIpOrHNameExt(s,r){var n=r.getValue();var q=n;var a=0;var b=false;var c=false;var h="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";if(q.indexOf(":")>-1){c=true;}if(c){result=checkIPv6Ext(s,r);return result;}else{for(var d=0;d<q.length;d++){check_char=h.indexOf(q.charAt(d));
if(check_char>=0){b=true;}}if(!b){for(var g=0;g<q.length;g++){if(q.charAt(g)=="."&&q.charAt(g+1)=="."){Ext.Msg.show({title:s,msg:_checkIp,buttons:Ext.Msg.OK,icon:"iconInformation",fn:function(){r.focus(true,true);}});return false;}else{continue;}}for(var p=0;p<q.length;p++){if(q.charAt(p)=="."){a=a+1;
}else{continue;}}if(a!=3){Ext.Msg.show({title:s,msg:_valIp,buttons:Ext.Msg.OK,icon:"iconInformation",fn:function(){r.focus(true,true);}});return false;}if(q.charAt(0)=="."||q.charAt(q.length-1)=="."){Ext.Msg.show({title:s,msg:_validateIp,buttons:Ext.Msg.OK,icon:"iconInformation",fn:function(){r.focus(true,true);
}});return false;}}for(var o=0;o<q.length;o++){if(q.charAt(o)==" "){Ext.Msg.show({title:s,msg:_checkspaceIp,buttons:Ext.Msg.OK,icon:"iconInformation",fn:function(){r.focus(true,true);}});return false;}}var t="`~!@#$%^&*()_+={}[]|\\:;\"'<>,?/";for(var g=0;g<q.length;g++){check_char=t.indexOf(q.charAt(g));
if(check_char>=1){Ext.Msg.show({title:s,msg:_checkspecial,buttons:Ext.Msg.OK,icon:"iconInformation",fn:function(){r.focus(true,true);}});return false;}}if(q.indexOf(".")>-1&&a>2){var f=q.split(".");for(var e=0;e<f.length;e++){if(f[e]<0||f[e]>255){Ext.Msg.show({title:s,msg:_checknum,buttons:Ext.Msg.OK,icon:"iconInformation",fn:function(){r.focus(true,true);
}});return false;}}}return true;}}function checkspaceExt(b){var a;if(typeof(b)=="object"){a=b.value;}else{a=b;}for(count=0;count<a.length;count++){if(a.charAt(count)==" "){return false;}}return true;}function checkIPv6Ext(f,c){var d=c.getValue();if(!checkspecialnomess(d,"`~!@#%^&*()+={}[]|\\;\"'<>,?")){Ext.Msg.show({title:f,msg:_checkspecial,buttons:Ext.Msg.OK,icon:"iconInformation",fn:function(){c.focus(true,true);
}});return false;}if(!checkspaceExt(d)){Ext.Msg.show({title:f,msg:_checkblank,buttons:Ext.Msg.OK,icon:"iconInformation",fn:function(){c.focus(true,true);}});return false;}var n=/[\.]{2,}/;var k=/(^(\.){1,})|((\.){1,}$)/gi;var h=/(\.\:){1,}|(\:\.){1,}/;if(d.match(n)!=null||d.match(h)!=null){Ext.Msg.show({title:f,msg:_chkIpv6,buttons:Ext.Msg.OK,icon:"iconInformation",fn:function(){c.focus(true,true);
}});return false;}if(d.match(k)!=null){Ext.Msg.show({title:f,msg:_validateIp,buttons:Ext.Msg.OK,icon:"iconInformation",fn:function(){c.focus(true,true);}});return false;}var x=/[\:]{2,}/g;var t=d.match(x);if(t!=null&&t!="::"){Ext.Msg.show({title:f,msg:_doubleColon,buttons:Ext.Msg.OK,icon:"iconInformation",fn:function(){c.focus(true,true);
}});return false;}var q=d.split(":");var u=q.length;u--;var o,j;j=d;if(q.length<=7&&d.indexOf(".")!=-1){var m=d.split(".");var g=m.length;g--;o=d.substring((d.lastIndexOf(":")+1));j=d.substring(0,(d.lastIndexOf(":")));var b=/[0-9]{1,3}(\.){1}[0-9]{1,3}(\.){1}[0-9]{1,3}(\.){1}[0-9]{1,3}((\/){1}[0-9]{1,3})*$/gi;
regIp4Res=d.match(b);if(regIp4Res==null||regIp4Res!=o){Ext.Msg.show({title:f,msg:_valIp,buttons:Ext.Msg.OK,icon:"iconInformation",fn:function(){c.focus(true,true);}});return false;}if(j.indexOf(".")!=-1){Ext.Msg.show({title:f,msg:_checkIp,buttons:Ext.Msg.OK,icon:"iconInformation",fn:function(){c.focus(true,true);
}});return false;}if((g>3)||(g!=3)){Ext.Msg.show({title:f,msg:_valIp,buttons:Ext.Msg.OK,icon:"iconInformation",fn:function(){c.focus(true,true);}});return false;}var a=o.split("/");o=a[0];var w=o.split(".");for(var v=0;v<w.length;v++){if(w[v]<0||w[v]>255){Ext.Msg.show({title:f,msg:_checknum,buttons:Ext.Msg.OK,icon:"iconInformation",fn:function(){c.focus(true,true);
}});return false;}}}else{if((u>7)||(t!="::")&&(u<7)){Ext.Msg.show({title:f,msg:_grpIpv6,buttons:Ext.Msg.OK,icon:"iconInformation",fn:function(){c.focus(true,true);}});return false;}}var a=j.split("/");j=a[0];var r="";var y=/^(([a-z0-9(::)]{0,4}(\:){1,2}[a-z0-9]{0,4}){1}((\:){1,2}[a-z0-9]{0,4}){1,})|(([a-z0-9(::)]{0,4}(\:){1,2}[a-z0-9]{0,4}){1})$/gi;
var s=j.match(y);y=/^[a-f0-9]{0,4}$/gi;if(j.indexOf(":")==-1){r=j.match(y);}if(((s==null)||(s!=j))&&(r!=j)){Ext.Msg.show({title:f,msg:_digitIpv6,buttons:Ext.Msg.OK,icon:"iconInformation",fn:function(){c.focus(true,true);}});return false;}var p=/(::){0,1}([a-f0-9(::)(\.)]*[\:]{1})+[a-f(::)(\.)0-9]*((\/){0,1}[0-9]{1,3})*/ig;
var e=d.match(p);if(e==null||e!=d){Ext.Msg.show({title:f,msg:_validateIpv6,buttons:Ext.Msg.OK,icon:"iconInformation",fn:function(){c.focus(true,true);}});return false;}return true;}function addServiceConf_pr(e,d,c){var a=Ext.getCmp("minmaxvalues");var f=Ext.getCmp("ratingMeasuresContr");var b={xtype:"grid",ui:"newGridPanel whiteHeader",title:"Measure : "+c,id:e,hidden:false,flex:1,autoScroll:true,scroll:true,margin:"10 10 0 10",columnLines:true,sortableColumns:false,plugins:Ext.create("Ext.grid.plugin.CellEditing",{pluginId:e,clicksToEdit:1}),store:Ext.create("Ext.data.Store",{fields:["pr_measure_name","associated_test_name","associated_test_description","associated_measure_name","associated_measure_description","associated_measure_min_threshold","associated_measure_max_threshold"],data:d}),columns:{defaults:{sortable:true,hideable:false,menuDisabled:true,draggable:false,resizable:true,isCheckerHd:false},items:[{dataIndex:"pr_measure_name",hidden:true},{dataIndex:"associated_test_name",hidden:true},{header:"Test Name",dataIndex:"associated_test_description",flex:2},{dataIndex:"associated_measure_name",hidden:true},{header:"Measure Name",dataIndex:"associated_measure_description",flex:2},{header:"Mininum Values",dataIndex:"associated_measure_min_threshold",flex:1,field:{cls:"textbox",allowBlank:false},cellEditing:true,renderer:function(h,g){g.tdAttr='data-qtip="Critical/Major/Minor in ascending order"';
g.tdCls="grid_editable_cell";return h;}},{header:"Maximum Values",dataIndex:"associated_measure_max_threshold",flex:1,field:{cls:"textbox",allowBlank:false},cellEditing:true,renderer:function(h,g){g.tdAttr='data-qtip="Critical/Major/Minor in descending order"';g.tdCls="grid_editable_cell";return h;}}]}};
f.add(b);a.doLayout();}function checkAscendingOrder(e){e=e.trim();if(e.toLowerCase()=="-1"){return true;}var b=e.split("/");if(b.length!=3){return false;}var d,f,a;d=b[0];f=b[1];a=b[2];var c=true;if(d!="-"&&f!="-"){if(parseFloat(d)>=parseFloat(f)){c=false;}}if(f!="-"&&a!="-"){if(parseFloat(f)>=parseFloat(a)){c=false;
}}if(d!="-"&&a!="-"){if(parseFloat(d)>=parseFloat(a)){c=false;}}return c;}function checkDescendingOrder(e){e=e.trim();if(e.toLowerCase()=="-1"){return true;}var b=e.split("/");if(b.length!=3){return false;}var d,f,a;d=b[0];f=b[1];a=b[2];var c=true;if(d!="-"&&f!="-"){if(parseFloat(d)<=parseFloat(f)){c=false;
}}if(f!="-"&&a!="-"){if(parseFloat(f)<=parseFloat(a)){c=false;}}if(d!="-"&&a!="-"){if(parseFloat(d)<=parseFloat(a)){c=false;}}return c;}function checkValidValue_rx(f){f=f.trim();if(f.toLowerCase()=="-1"){return true;}var b=f.split("/");if(b.length!=3){return false;}var d,g,a;d=b[0];g=b[1];a=b[2];var e=/^(\-)$|^(\-|\-?(([0-9]+\.|\.)?[0-9]+))$/i;
var c=e.test(d);if(!c){c=e.test(g);}if(!c){c=e.test(a);}return c;}function validateTargetValues(g,d){g=g.trim();if(g.toLowerCase()=="-1"){return"0";}var b=g.split("/");if(b.length!=3){if(d){return alert25;}else{return alert26;}}var c=b[0].trim();var f=b[1].trim();var e=b[2].trim();var a=null;if(c!="-"){a=privatemethod(c,d,"critical");
if(a!="0"){return a;}}if(f!="-"){a=privatemethod(f,d,"major");if(a!="0"){return a;}}if(e!="-"){a=privatemethod(e,d,"minor");if(a!="0"){return a;}}return"0";}function privatemethod(h,c,d){var g="0";var f=/^[0-9]{0,10}(\.[0-9]{1,4})?$/;if((h.indexOf("-")!=h.lastIndexOf("-"))||(h.indexOf(".")!=h.lastIndexOf("."))){if(c){if(d=="critical"){g=alert1;
}else{if(d=="major"){g=alert2;}else{if(d=="minor"){g=alert3;}}}}else{if(d=="critical"){g=alert4;}else{if(d=="major"){g=alert5;}else{if(d=="minor"){g=alert6;}}}}}else{if(parseFloat(h)<0){if(c){if(d=="critical"){g=alert19;}else{if(d=="major"){g=alert20;}else{if(d=="minor"){g=alert21;}}}}else{if(d=="critical"){g=alert22;
}else{if(d=="major"){g=alert23;}else{if(d=="minor"){g=alert24;}}}}}else{if(!f.test(h)){var e=h;var b="";var a=h.indexOf(".");if(a>-1){e=h.substring(0,a);b=h.substring(a+1);}if(e.length>10){if(c){if(d=="critical"){g=alert7;}else{if(d=="major"){g=alert8;}else{if(d=="minor"){g=alert9;}}}}else{if(d=="critical"){g=alert10;
}else{if(d=="major"){g=alert11;}else{if(d=="minor"){g=alert12;}}}}}else{if(b.length>4){if(c){if(d=="critical"){g=alert13;}else{if(d=="major"){g=alert14;}else{if(d=="minor"){g=alert15;}}}}else{if(d=="critical"){g=alert16;}else{if(d=="major"){g=alert17;}else{if(d=="minor"){g=alert18;}}}}}}}}}return g;}function correctFormat(d){d=d.trim();
if(d.toLowerCase()=="-1"){return true;}if(d.toLowerCase().indexOf("none")>-1){return false;}var b=d.split("/");if(b.length!=3){return false;}var c,e,a;c=b[0];e=b[1];a=b[2];if(Ext.isEmpty(c)||Ext.isEmpty(e)||Ext.isEmpty(a)){return false;}if(c.length==0||e.length==0||a.length==0){return false;}return true;
}