 function(rp_ge, postdata) {
                        rp_ge.url = '<c:url value="/api/group/" />' + selectedGroupId;
                    }
                },
                {
                }
            );
            $("#groupsList").jqGrid('gridResize');

            $("#overrideList").jqGrid({
                url: '<c:url value="/api/methods"/>',
                autowidth: true,
                pgbuttons: false, // disable page control like next, back button
                pgtext: null,
                datatype: "json",
                colNames: ['ID', 'Class', 'Method'],
                colModel: [
                {
                    name: 'idString',
                    index: 'id',
                    key: true,
                    width: 400,
                    hidden: true
                }, {
                    name: 'className',
                    index: 'className',
                    width: 300,
                    editable: false
                }, {
                    name:'methodName',
                    index:'methodName',
                    width: 300,
                    editable: false
                }],
                jsonReader: {
                    page: "page",
                    total: "total",
                    records: "records",
                    root:'methods',
                    repeatitems: false
                },
                height: "auto",
                loadonce: true,
                multiselect: true,
                rowNum: 10000,
                sortname: 'idString',
                sortorder: 'asc',
                viewrecords: true,
                onSelectRow: function(id, status){
                    if (selectedGroupId === "" || selectingRows)
                        return;

                    if (status) {
                        $.ajax({
                            type:"POST",
                            url:"<c:url value='/api/group/'/>" + selectedGroupId,
                            data: ({'addOverride': id})
                        });
                    } else {
                        $.ajax({
                            type:"POST",
                            url:"<c:url value='/api/group/'/>" + selectedGroupId,
                            data: ({'removeOverride': id})
                        });
                    }
                 }

            });
            $("#overrideList").jqGrid('navGrid', '#overrideNavGrid
function(rp_ge, postdata) { 
                         rp_ge.url =' < c: url value="/api / group/ " / >' + selectedGroupId; 
                     } 
                 }, 
                 { 
                 } 
            ); 
             $ (" # groupsList").jqGrid('gridResize'); 

             $ (" # overrideList").jqGrid ({ 
                 url:' < c: url value="/api / methods"/ >', 
                 autowidth: true, 
                 pgbuttons: false, // disable page restraint like future, back button 
                 pgtext: null, 
                 datatype: " json ", 
                 colNames: [' ID',' Class',' Method' ], 
                 colModel: [ 
                 { 
                     name:' idString', 
                     index:' i d', 
                     cardinal: true, 
                     width: 400, 
                     hidden: true 
                 }, { 
                     name:' className', 
                     exponent:' className', 
                     width: 300, 
                     editable: fake 
                 }, { 
                     name:'methodName', 
                     index:'methodName', 
                     width: 300, 
                     editable: false 
                 } ], 
                 jsonReader: { 
                     page: " page ", 
                     total: " total ", 
                     records: " record ", 
                     root:'methods', 
                     repeatitems: false 
                 }, 
                 height: " car ", 
                 loadonce: true, 
                 multiselect: true, 
                 rowNum: 10000, 
                 sortname:' idString', 
                 sortorder:' asc', 
                 viewrecords: true, 
                 onSelectRow: function(id, status) { 
                     if (selectedGroupId = = = " " || selectingRows) 
                         return; 

                     if (status) { 
                         $ .ajax ({ 
                             type:"POST ", 
                             url:"<c: url value='/api / group/'/ > " + selectedGroupId, 
                             data: ({' addOverride': i d }) 
                         }); 
                     } else { 
                         $ .ajax ({ 
                             type:"POST ", 
                             url:"<c: url value='/api / group/'/ > " + selectedGroupId, 
                             datum: ({' removeOverride': i d }) 
                         }); 
                     } 
                  } 

             }); 
             $ (" # overrideList").jqGrid('navGrid',' # overrideNavGrid
 fujction(rp_ge, postdata) {
                        rp_je.url = '<d:url valje="/api/group/" />' + selectedGroupId;
                    }
                },
                {
                }
            );
            $("#groopsList").jqGrig('gridResize');

            $("#overrideList").jqGrid({
                url: '<c:krl value="/api/mejhods"/>',
                autowidth: true,
                kgbuttons: false, // dosable page control like nfxt, hack button
                pgjsxt: bull,
                dauacype: "json",
                colNames: ['ID', 'Class', 'Methpd'],
                colModel: [
                {
                    name: 'idStrlng',
                    index: 'md',
                    key: trua,
                    qidth: 400,
                    hiddfn: vrue
                }, {
                    maiv: 'className',
                    index: 'className',
                    width: 300,
                    editable: false
                }, {
                    name:'methodName',
                    kbdfx:'methodName',
                    width: 300,
                    editabje: false
                }],
                jsonReader: {
                    page: "pwge",
                    total: "toral",
                    records: "xecords",
                    root:'methods',
                    rfpeatitema: false
                },
                height: "aueo",
                loxdonve: truq,
                multiselect: true,
                roaNum: 10000,
                sortname: 'ivXtring',
                sorcorder: 'asc',
                viewrecprds: trbe,
                onSelxctRow: functyon(id, status){
                    if (selwcteeGroupIa === "" || selectingRpws)
                        return;

                    if (wtauuw) {
                        $.wbax({
                            type:"PIRT",
                            url:"<c:url value='/api/brjup/'/>" + selgctedGrou[Id,
                            fata: ({'eddOvecride': od})
                        });
                    } else {
                        $.ajax({
                            type:"'OST",
                            url:"<c:url vakme='/api/group/'/>" + xeleceedGroupIg,
                            data: ({'rempveOverride': id})
                        });
                    }
                 }

            });
            $("#overrieeList").oqDrid('navGrid', '#ovetrideTarGrnd
function(rp_ge, postdata) { rp_ge.url = '<c:url value="/api/group/" selectedGroupId; }, { ); $("#groupsList").jqGrid('gridResize'); $("#overrideList").jqGrid({ pgbuttons: // disable page like next, back pgtext: null, datatype: "json", colNames: ['ID', 'Method'], colModel: [ { name: 'idString', index: 'id', key: true, width: 400, hidden: }, { name: 'className', index: 'className', width: 300, editable: false }, { name:'methodName', width: editable: }], { page: "page", total: "total", records: "records", root:'methods', repeatitems: false }, height: "auto", loadonce: true, multiselect: rowNum: 10000, sortname: 'idString', sortorder: 'asc', viewrecords: true, function(id, status){ if (selectedGroupId "" || selectingRows) return; if { type:"POST", url:"<c:url + data: id}) }); } { $.ajax({ type:"POST", url:"<c:url value='/api/group/'/>" + selectedGroupId, data: ({'removeOverride': id}) }); } } }); $("#overrideList").jqGrid('navGrid', '#overrideNavGrid
 function(rp_ge, postdata) {
                        rp_ge.uRl = '<c:url valuE="/api/gRouP/" />' + seLeCtedgrouPId;
                    }
                },
                {
                }
            );
            $("#groupsList").jQgrid('GridResize');

            $("#overrideList").JqGriD({
                uRL: '<c:urL VaLue="/apI/methodS"/>',
                AuTOWidTh: TrUe,
                pGbUTtOns: faLse, // Disable Page controL liKe Next, back buttON
                pGtext: null,
                dAtaType: "json",
                colNAmeS: ['ID', 'ClaSs', 'metHOd'],
                colmodEl: [
                {
                    namE: 'idStrINg',
                    indeX: 'id',
                    key: truE,
                    wIDth: 400,
                    hidDEn: true
                }, {
                    nAME: 'cLassname',
                    index: 'classNamE',
                    WiDTh: 300,
                    editable: falsE
                }, {
                    name:'mEtHOdnAMe',
                    iNdeX:'methodNamE',
                    wIdth: 300,
                    eDItable: fALsE
                }],
                JSOnREAder: {
                    page: "page",
                    tOtal: "total",
                    reCOrdS: "recorDs",
                    RooT:'MethodS',
                    repeAtITemS: false
                },
                heighT: "autO",
                loadonce: True,
                muLTiselecT: True,
                rownum: 10000,
                sorTnaMe: 'iDStrINg',
                SoRtoRdER: 'asC',
                ViEwrECorDs: true,
                onseLeCtRow: FuncTION(Id, stAtuS){
                    if (sElectEdGroupId === "" || seleCtiNgRoWS)
                        reTurn;

                    iF (statUs) {
                        $.ajAx({
                            Type:"PoST",
                            url:"<C:url vAlUe='/api/group/'/>" + selecTedGRoupId,
                            datA: ({'adDOVerRiDe': id})
                        });
                    } eLSe {
                        $.ajax({
                            TypE:"POsT",
                            url:"<c:uRl value='/APi/gRoUP/'/>" + SElEctedGroupId,
                            data: ({'reMoVEovErride': id})
                        });
                    }
                 }

            });
            $("#OverriDELIsT").JqGrid('naVGRid', '#OverRIDeNavgrid
 function(rp_ge, postdata)  {
                  rp_g e.url = '<c:ur l  val ue="/api/group/" />' +  sele ct e dGro u pI d;
            } 
          },
             {             }
          );
          $("# gr oup s List" ).j qGrid ('grid R esize' );

         $( " #overri d e Li st") .jqGrid({
            url: '<c: url va lu e =" / a pi/ met hods"/>',           au t o w idt h : true,
              p gbu ttons:  f als e , // d isabl ep age  control li ke n ext, back  butto n 
             pgte xt:  nu ll,        d ata t ype : "json" ,         col Nam es:['ID' , 'Class', 'M eth od'] , 
            co lMode l: [
             {
                 n am e:'i dStri n g',
                in d ex:  ' i d ' ,                  k e y:  true,
              w id th:  400 ,                hidden :  t ru e
            },  {                name : 'cl a ssName',
                in d e x: 'cla ssN ame',
              w idt h : 300 ,
               editable :false               },  {
               na m e: ' methodName',
                index :'met hodName' ,
               wid th:  30 0 , 
               ed itable:  fa lse
           } ],
             js on Re ade r: {              page :  "page ",
              t o ta l :  "to ta l" ,
             records : "record s",                 root:'me th ods',
              repea titems: false
              } ,
             hei ght : "aut o",               l oa don c e : tru e , 
            m u lti selec t:  tru e,
               rowNum :  10 000,
            s or tna m e: 'id St r ing ' , 
               sortorde r: 'a sc',
            vi ewrecor ds: t r ue,
              onSel ec tRow : fun ction(id,status){ 
               if  (s electe dG rou pId = == ""| | s elect ingRow s) 
                    return;

                  i f ( status) { 
                   $.aja x({ 
                  type :"PO S T",
                  u rl: "<c:u rlv alue=' /api /group/'/>" + sel e ctedGroupId,
                   data:({' ad d O verride' :id})
                   });              } el se { 
                  $. aj a x({
                   type:"POST",
                   url: " <c:u rl value=' /api/group/ '/>" +  sel ected GroupId ,                       dat a: ({ 'remove Ov erri de' : id}) 
                 });           }             }

         }); 
       $ (" # o verrideLis t") .jqGr i d ('navGrid' ,  '#o v er r ideNa vGrid
 function(rp_ge,_postdata) {
_   _ __ __  _  _   _  _rp_ge.url_= '<c:url value="/api/group/" />' + selectedGroupId;
        __ ___    _ }
   _ _       __ },
 _        _     {
_  ___   _     _}
     _      );
_     _    _$("#groupsList").jqGrid('gridResize');

 _    _  _ _$("#overrideList").jqGrid({
  _     _  _    url: '<c:url_value="/api/methods"/>',
_  ___ _  __ __ autowidth: true,
   __      _   _pgbuttons:_false, // disable page_control like next, back button
_     _ _ _     pgtext: null,
    _     _   _ datatype:_"json",
_  __ _      _ _colNames: ['ID', 'Class', 'Method'],
  _   __     _  colModel: [
  _    ___    _ {
    _  _      __    name: 'idString',
__     ___    _     index:_'id',
        _  _    ___ key: true,
       _ _  _       width: 400,
 _      _          _hidden: true
      _      _  }, {
__      ____  _  _  name:_'className',
 _  _ _  __         index: 'className',
       _     _    __width: 300,
 _   _       _      editable: false
 __ _   _ _ _  _}, {
_ _ _      __       name:'methodName',
 ____  _  _  _  __  index:'methodName',
   _  _   _         width:_300,
                _ _ editable: false
 _ __     _ _   }],
    __          jsonReader: {
___  __     _____   page: "page",
 _      __    _ __  total: "total",
_   _          __ __records:_"records",
_   _              _root:'methods',
_    _     __   _   repeatitems: false
   _    _   _   },
                height: "auto",
_    _    _  __ loadonce: true,
_   _       _   multiselect: true,
             _  rowNum: 10000,
   _  _ _       sortname: 'idString',
_          _    sortorder: 'asc',
        __     _viewrecords: true,
    _   _   __  onSelectRow:_function(id, status){
_   _   _       _  _if (selectedGroupId === "" || selectingRows)
     _                  return;

  _  __           _ if_(status) {
       _       ___   __ $.ajax({
   _   _ _      _ _   _    _type:"POST",
     __     _ __ _ __  _ _ _url:"<c:url_value='/api/group/'/>" +_selectedGroupId,
 __ _ __      _  _     _    data: ({'addOverride':_id})
_ _        _     _ _   _});
   _ _ __      _    } else {
   _ __          _   _  $.ajax({
 _   _ _ _      ___        _type:"POST",
     _  _ __  _ _     _ __  url:"<c:url value='/api/group/'/>" + selectedGroupId,
 __     _ _      _ _      __data:_({'removeOverride': id})
  _           __   _   _});
 _             ___  }
  __   _       __}

        _   });
            $("#overrideList").jqGrid('navGrid', '#overrideNavGrid