datamodel.itop-config-mgmt.xml 186 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <itop_design xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0">
  3. <classes>
  4. <class id="Organization" _delta="define">
  5. <parent>cmdbAbstractObject</parent>
  6. <properties>
  7. <comment><![CDATA[/**
  8. * Persistent classes for a CMDB
  9. *
  10. * @copyright Copyright (C) 2010-2012 Combodo SARL
  11. * @license http://opensource.org/licenses/AGPL-3.0
  12. */]]></comment>
  13. <category>bizmodel,searchable,structure</category>
  14. <abstract>false</abstract>
  15. <key_type>autoincrement</key_type>
  16. <db_table>organization</db_table>
  17. <db_key_field>id</db_key_field>
  18. <db_final_class_field/>
  19. <naming>
  20. <format>%1$s</format>
  21. <attributes>
  22. <attribute id="name"/>
  23. </attributes>
  24. </naming>
  25. <display_template/>
  26. <icon/>
  27. <reconciliation>
  28. <attributes>
  29. <attribute id="name"/>
  30. </attributes>
  31. </reconciliation>
  32. </properties>
  33. <fields>
  34. <field id="name" xsi:type="AttributeString">
  35. <sql>name</sql>
  36. <default_value/>
  37. <is_null_allowed>false</is_null_allowed>
  38. </field>
  39. <field id="code" xsi:type="AttributeString">
  40. <sql>code</sql>
  41. <default_value/>
  42. <is_null_allowed>true</is_null_allowed>
  43. </field>
  44. <field id="status" xsi:type="AttributeEnum">
  45. <values>
  46. <value>active</value>
  47. <value>inactive</value>
  48. </values>
  49. <sql>status</sql>
  50. <default_value>active</default_value>
  51. <is_null_allowed>true</is_null_allowed>
  52. </field>
  53. <field id="parent_id" xsi:type="AttributeHierarchicalKey">
  54. <sql>parent_id</sql>
  55. <is_null_allowed>true</is_null_allowed>
  56. <on_target_delete>DEL_MANUAL</on_target_delete>
  57. </field>
  58. <field id="parent_name" xsi:type="AttributeExternalField">
  59. <extkey_attcode>parent_id</extkey_attcode>
  60. <target_attcode>name</target_attcode>
  61. </field>
  62. </fields>
  63. <methods/>
  64. <presentation>
  65. <details>
  66. <items>
  67. <item id="name">
  68. <rank>10</rank>
  69. </item>
  70. <item id="code">
  71. <rank>20</rank>
  72. </item>
  73. <item id="status">
  74. <rank>30</rank>
  75. </item>
  76. <item id="parent_id">
  77. <rank>40</rank>
  78. </item>
  79. </items>
  80. </details>
  81. <search>
  82. <items>
  83. <item id="name">
  84. <rank>10</rank>
  85. </item>
  86. <item id="code">
  87. <rank>20</rank>
  88. </item>
  89. <item id="status">
  90. <rank>30</rank>
  91. </item>
  92. <item id="parent_id">
  93. <rank>40</rank>
  94. </item>
  95. </items>
  96. </search>
  97. <list>
  98. <items>
  99. <item id="status">
  100. <rank>10</rank>
  101. </item>
  102. <item id="parent_id">
  103. <rank>20</rank>
  104. </item>
  105. </items>
  106. </list>
  107. </presentation>
  108. </class>
  109. <class id="Location" _delta="define">
  110. <parent>cmdbAbstractObject</parent>
  111. <properties>
  112. <category>bizmodel,searchable,structure</category>
  113. <abstract>false</abstract>
  114. <key_type>autoincrement</key_type>
  115. <db_table>location</db_table>
  116. <db_key_field>id</db_key_field>
  117. <db_final_class_field/>
  118. <naming>
  119. <format>%1$s</format>
  120. <attributes>
  121. <attribute id="name"/>
  122. </attributes>
  123. </naming>
  124. <display_template/>
  125. <icon>images/location.png</icon>
  126. <reconciliation>
  127. <attributes>
  128. <attribute id="name"/>
  129. <attribute id="org_id"/>
  130. <attribute id="org_name"/>
  131. </attributes>
  132. </reconciliation>
  133. </properties>
  134. <fields>
  135. <field id="name" xsi:type="AttributeString">
  136. <sql>name</sql>
  137. <default_value/>
  138. <is_null_allowed>false</is_null_allowed>
  139. </field>
  140. <field id="status" xsi:type="AttributeEnum">
  141. <values>
  142. <value>active</value>
  143. <value>inactive</value>
  144. </values>
  145. <sql>status</sql>
  146. <default_value>active</default_value>
  147. <is_null_allowed>true</is_null_allowed>
  148. </field>
  149. <field id="org_id" xsi:type="AttributeExternalKey">
  150. <sql>org_id</sql>
  151. <target_class>Organization</target_class>
  152. <is_null_allowed>false</is_null_allowed>
  153. <on_target_delete>DEL_MANUAL</on_target_delete>
  154. <jointype/>
  155. </field>
  156. <field id="org_name" xsi:type="AttributeExternalField">
  157. <extkey_attcode>org_id</extkey_attcode>
  158. <target_attcode>name</target_attcode>
  159. </field>
  160. <field id="address" xsi:type="AttributeText">
  161. <sql>address</sql>
  162. <default_value/>
  163. <is_null_allowed>true</is_null_allowed>
  164. </field>
  165. <field id="postal_code" xsi:type="AttributeString">
  166. <sql>postal_code</sql>
  167. <default_value/>
  168. <is_null_allowed>true</is_null_allowed>
  169. </field>
  170. <field id="city" xsi:type="AttributeString">
  171. <sql>city</sql>
  172. <default_value/>
  173. <is_null_allowed>true</is_null_allowed>
  174. </field>
  175. <field id="country" xsi:type="AttributeString">
  176. <sql>country</sql>
  177. <default_value/>
  178. <is_null_allowed>true</is_null_allowed>
  179. </field>
  180. <field id="parent_id" xsi:type="AttributeHierarchicalKey">
  181. <dependencies>
  182. <attribute id="org_id"/>
  183. </dependencies>
  184. <sql>parent_id</sql>
  185. <is_null_allowed>true</is_null_allowed>
  186. <on_target_delete>DEL_MANUAL</on_target_delete>
  187. <filter><![CDATA[SELECT Location AS L WHERE L.org_id = :this->org_id]]></filter>
  188. </field>
  189. <field id="parent_name" xsi:type="AttributeExternalField">
  190. <extkey_attcode>parent_id</extkey_attcode>
  191. <target_attcode>name</target_attcode>
  192. </field>
  193. <field id="contact_list" xsi:type="AttributeLinkedSet">
  194. <linked_class>Contact</linked_class>
  195. <ext_key_to_me>location_id</ext_key_to_me>
  196. <count_min>0</count_min>
  197. <count_max>0</count_max>
  198. </field>
  199. <field id="infra_list" xsi:type="AttributeLinkedSet">
  200. <linked_class>InfrastructureCI</linked_class>
  201. <ext_key_to_me>location_id</ext_key_to_me>
  202. <count_min>0</count_min>
  203. <count_max>0</count_max>
  204. </field>
  205. </fields>
  206. <methods/>
  207. <presentation>
  208. <details>
  209. <items>
  210. <item id="name">
  211. <rank>10</rank>
  212. </item>
  213. <item id="status">
  214. <rank>20</rank>
  215. </item>
  216. <item id="org_id">
  217. <rank>30</rank>
  218. </item>
  219. <item id="address">
  220. <rank>40</rank>
  221. </item>
  222. <item id="postal_code">
  223. <rank>50</rank>
  224. </item>
  225. <item id="city">
  226. <rank>60</rank>
  227. </item>
  228. <item id="country">
  229. <rank>70</rank>
  230. </item>
  231. <item id="parent_id">
  232. <rank>80</rank>
  233. </item>
  234. <item id="contact_list">
  235. <rank>90</rank>
  236. </item>
  237. <item id="infra_list">
  238. <rank>100</rank>
  239. </item>
  240. </items>
  241. </details>
  242. <search>
  243. <items>
  244. <item id="name">
  245. <rank>10</rank>
  246. </item>
  247. <item id="status">
  248. <rank>20</rank>
  249. </item>
  250. <item id="org_id">
  251. <rank>30</rank>
  252. </item>
  253. <item id="city">
  254. <rank>40</rank>
  255. </item>
  256. <item id="country">
  257. <rank>50</rank>
  258. </item>
  259. <item id="parent_id">
  260. <rank>60</rank>
  261. </item>
  262. </items>
  263. </search>
  264. <list>
  265. <items>
  266. <item id="status">
  267. <rank>10</rank>
  268. </item>
  269. <item id="org_id">
  270. <rank>20</rank>
  271. </item>
  272. <item id="city">
  273. <rank>30</rank>
  274. </item>
  275. <item id="country">
  276. <rank>40</rank>
  277. </item>
  278. </items>
  279. </list>
  280. </presentation>
  281. </class>
  282. <class id="Contact" _delta="define">
  283. <parent>cmdbAbstractObject</parent>
  284. <properties>
  285. <category>bizmodel,searchable,structure</category>
  286. <abstract>true</abstract>
  287. <key_type>autoincrement</key_type>
  288. <db_table>contact</db_table>
  289. <db_key_field>id</db_key_field>
  290. <db_final_class_field>finalclass</db_final_class_field>
  291. <naming>
  292. <format>%1$s</format>
  293. <attributes>
  294. <attribute id="name"/>
  295. </attributes>
  296. </naming>
  297. <display_template/>
  298. <icon>images/team.png</icon>
  299. <reconciliation>
  300. <attributes>
  301. <attribute id="name"/>
  302. <attribute id="org_id"/>
  303. <attribute id="org_name"/>
  304. <attribute id="email"/>
  305. </attributes>
  306. </reconciliation>
  307. </properties>
  308. <fields>
  309. <field id="name" xsi:type="AttributeString">
  310. <sql>name</sql>
  311. <default_value/>
  312. <is_null_allowed>false</is_null_allowed>
  313. </field>
  314. <field id="status" xsi:type="AttributeEnum">
  315. <values>
  316. <value>active</value>
  317. <value>inactive</value>
  318. </values>
  319. <sql>status</sql>
  320. <default_value>active</default_value>
  321. <is_null_allowed>false</is_null_allowed>
  322. </field>
  323. <field id="org_id" xsi:type="AttributeExternalKey">
  324. <sql>org_id</sql>
  325. <target_class>Organization</target_class>
  326. <is_null_allowed>false</is_null_allowed>
  327. <on_target_delete>DEL_MANUAL</on_target_delete>
  328. <jointype/>
  329. </field>
  330. <field id="org_name" xsi:type="AttributeExternalField">
  331. <extkey_attcode>org_id</extkey_attcode>
  332. <target_attcode>name</target_attcode>
  333. </field>
  334. <field id="email" xsi:type="AttributeEmailAddress">
  335. <sql>email</sql>
  336. <default_value/>
  337. <is_null_allowed>false</is_null_allowed>
  338. </field>
  339. <field id="phone" xsi:type="AttributeString">
  340. <sql>phone</sql>
  341. <default_value/>
  342. <is_null_allowed>true</is_null_allowed>
  343. </field>
  344. <field id="location_id" xsi:type="AttributeExternalKey">
  345. <filter><![CDATA[SELECT Location AS L WHERE L.org_id = :this->org_id]]></filter>
  346. <dependencies>
  347. <attribute id="org_id"/>
  348. </dependencies>
  349. <sql>location_id</sql>
  350. <target_class>Location</target_class>
  351. <is_null_allowed>true</is_null_allowed>
  352. <on_target_delete>DEL_MANUAL</on_target_delete>
  353. <jointype/>
  354. </field>
  355. <field id="location_name" xsi:type="AttributeExternalField">
  356. <extkey_attcode>location_id</extkey_attcode>
  357. <target_attcode>name</target_attcode>
  358. </field>
  359. <field id="contract_list" xsi:type="AttributeLinkedSetIndirect">
  360. <linked_class>lnkContractToContact</linked_class>
  361. <ext_key_to_me>contact_id</ext_key_to_me>
  362. <count_min>0</count_min>
  363. <count_max>0</count_max>
  364. <ext_key_to_remote>contract_id</ext_key_to_remote>
  365. </field>
  366. <field id="service_list" xsi:type="AttributeLinkedSetIndirect">
  367. <linked_class>lnkServiceToContact</linked_class>
  368. <ext_key_to_me>contact_id</ext_key_to_me>
  369. <count_min>0</count_min>
  370. <count_max>0</count_max>
  371. <ext_key_to_remote>service_id</ext_key_to_remote>
  372. </field>
  373. <field id="ticket_list" xsi:type="AttributeLinkedSetIndirect">
  374. <linked_class>lnkTicketToContact</linked_class>
  375. <ext_key_to_me>contact_id</ext_key_to_me>
  376. <count_min>0</count_min>
  377. <count_max>0</count_max>
  378. <ext_key_to_remote>ticket_id</ext_key_to_remote>
  379. </field>
  380. <field id="ci_list" xsi:type="AttributeLinkedSetIndirect">
  381. <linked_class>lnkCIToContact</linked_class>
  382. <ext_key_to_me>contact_id</ext_key_to_me>
  383. <count_min>0</count_min>
  384. <count_max>0</count_max>
  385. <ext_key_to_remote>ci_id</ext_key_to_remote>
  386. </field>
  387. <field id="team_list" xsi:type="AttributeLinkedSetIndirect">
  388. <linked_class>lnkTeamToContact</linked_class>
  389. <ext_key_to_me>contact_id</ext_key_to_me>
  390. <count_min>0</count_min>
  391. <count_max>0</count_max>
  392. <ext_key_to_remote>team_id</ext_key_to_remote>
  393. </field>
  394. </fields>
  395. <methods/>
  396. <presentation>
  397. <details>
  398. <items>
  399. <item id="name">
  400. <rank>10</rank>
  401. </item>
  402. <item id="status">
  403. <rank>20</rank>
  404. </item>
  405. <item id="org_id">
  406. <rank>30</rank>
  407. </item>
  408. <item id="email">
  409. <rank>40</rank>
  410. </item>
  411. <item id="phone">
  412. <rank>50</rank>
  413. </item>
  414. <item id="location_id">
  415. <rank>60</rank>
  416. </item>
  417. <item id="contract_list">
  418. <rank>70</rank>
  419. </item>
  420. <item id="service_list">
  421. <rank>80</rank>
  422. </item>
  423. <item id="ticket_list">
  424. <rank>90</rank>
  425. </item>
  426. <item id="ci_list">
  427. <rank>100</rank>
  428. </item>
  429. <item id="team_list">
  430. <rank>110</rank>
  431. </item>
  432. </items>
  433. </details>
  434. <search>
  435. <items>
  436. <item id="name">
  437. <rank>10</rank>
  438. </item>
  439. <item id="status">
  440. <rank>20</rank>
  441. </item>
  442. <item id="org_id">
  443. <rank>30</rank>
  444. </item>
  445. <item id="email">
  446. <rank>40</rank>
  447. </item>
  448. <item id="phone">
  449. <rank>50</rank>
  450. </item>
  451. <item id="location_id">
  452. <rank>60</rank>
  453. </item>
  454. </items>
  455. </search>
  456. <list>
  457. <items>
  458. <item id="finalclass">
  459. <rank>10</rank>
  460. </item>
  461. <item id="status">
  462. <rank>20</rank>
  463. </item>
  464. <item id="org_id">
  465. <rank>30</rank>
  466. </item>
  467. <item id="email">
  468. <rank>40</rank>
  469. </item>
  470. <item id="phone">
  471. <rank>50</rank>
  472. </item>
  473. <item id="location_id">
  474. <rank>60</rank>
  475. </item>
  476. </items>
  477. </list>
  478. </presentation>
  479. </class>
  480. <class id="Person" _delta="define">
  481. <parent>Contact</parent>
  482. <properties>
  483. <category>bizmodel,searchable,structure</category>
  484. <abstract>false</abstract>
  485. <key_type>autoincrement</key_type>
  486. <db_table>person</db_table>
  487. <db_key_field>id</db_key_field>
  488. <db_final_class_field/>
  489. <naming>
  490. <format>%1$s %2$s</format>
  491. <attributes>
  492. <attribute id="first_name"/>
  493. <attribute id="name"/>
  494. </attributes>
  495. </naming>
  496. <display_template/>
  497. <icon>images/person.png</icon>
  498. <reconciliation>
  499. <attributes>
  500. <attribute id="name"/>
  501. <attribute id="first_name"/>
  502. <attribute id="org_id"/>
  503. <attribute id="email"/>
  504. </attributes>
  505. </reconciliation>
  506. </properties>
  507. <fields>
  508. <field id="first_name" xsi:type="AttributeString">
  509. <sql>first_name</sql>
  510. <default_value/>
  511. <is_null_allowed>false</is_null_allowed>
  512. </field>
  513. <field id="employee_id" xsi:type="AttributeString">
  514. <sql>employee_id</sql>
  515. <default_value/>
  516. <is_null_allowed>true</is_null_allowed>
  517. </field>
  518. </fields>
  519. <methods/>
  520. <presentation>
  521. <details>
  522. <items>
  523. <item id="name">
  524. <rank>10</rank>
  525. </item>
  526. <item id="first_name">
  527. <rank>20</rank>
  528. </item>
  529. <item id="org_id">
  530. <rank>30</rank>
  531. </item>
  532. <item id="status">
  533. <rank>40</rank>
  534. </item>
  535. <item id="location_id">
  536. <rank>50</rank>
  537. </item>
  538. <item id="email">
  539. <rank>60</rank>
  540. </item>
  541. <item id="phone">
  542. <rank>70</rank>
  543. </item>
  544. <item id="employee_id">
  545. <rank>80</rank>
  546. </item>
  547. <item id="team_list">
  548. <rank>90</rank>
  549. </item>
  550. <item id="contract_list">
  551. <rank>100</rank>
  552. </item>
  553. <item id="service_list">
  554. <rank>110</rank>
  555. </item>
  556. <item id="ticket_list">
  557. <rank>120</rank>
  558. </item>
  559. <item id="ci_list">
  560. <rank>130</rank>
  561. </item>
  562. </items>
  563. </details>
  564. <search>
  565. <items>
  566. <item id="name">
  567. <rank>10</rank>
  568. </item>
  569. <item id="status">
  570. <rank>20</rank>
  571. </item>
  572. <item id="org_id">
  573. <rank>30</rank>
  574. </item>
  575. <item id="email">
  576. <rank>40</rank>
  577. </item>
  578. <item id="phone">
  579. <rank>50</rank>
  580. </item>
  581. <item id="location_id">
  582. <rank>60</rank>
  583. </item>
  584. <item id="first_name">
  585. <rank>70</rank>
  586. </item>
  587. <item id="employee_id">
  588. <rank>80</rank>
  589. </item>
  590. </items>
  591. </search>
  592. <list>
  593. <items>
  594. <item id="name">
  595. <rank>10</rank>
  596. </item>
  597. <item id="first_name">
  598. <rank>20</rank>
  599. </item>
  600. <item id="status">
  601. <rank>30</rank>
  602. </item>
  603. <item id="org_id">
  604. <rank>40</rank>
  605. </item>
  606. <item id="email">
  607. <rank>50</rank>
  608. </item>
  609. <item id="phone">
  610. <rank>60</rank>
  611. </item>
  612. <item id="location_id">
  613. <rank>70</rank>
  614. </item>
  615. </items>
  616. </list>
  617. </presentation>
  618. </class>
  619. <class id="Team" _delta="define">
  620. <parent>Contact</parent>
  621. <properties>
  622. <category>bizmodel,searchable,structure</category>
  623. <abstract>false</abstract>
  624. <key_type>autoincrement</key_type>
  625. <db_table>team</db_table>
  626. <db_key_field>id</db_key_field>
  627. <db_final_class_field/>
  628. <naming>
  629. <format>%1$s</format>
  630. <attributes>
  631. <attribute id="name"/>
  632. </attributes>
  633. </naming>
  634. <display_template/>
  635. <icon>images/team.png</icon>
  636. <reconciliation>
  637. <attributes>
  638. <attribute id="name"/>
  639. <attribute id="org_id"/>
  640. </attributes>
  641. </reconciliation>
  642. </properties>
  643. <fields>
  644. <field id="member_list" xsi:type="AttributeLinkedSetIndirect">
  645. <linked_class>lnkTeamToContact</linked_class>
  646. <ext_key_to_me>team_id</ext_key_to_me>
  647. <count_min>0</count_min>
  648. <count_max>0</count_max>
  649. <ext_key_to_remote>contact_id</ext_key_to_remote>
  650. </field>
  651. </fields>
  652. <methods/>
  653. <presentation>
  654. <details>
  655. <items>
  656. <item id="name">
  657. <rank>10</rank>
  658. </item>
  659. <item id="status">
  660. <rank>20</rank>
  661. </item>
  662. <item id="org_id">
  663. <rank>30</rank>
  664. </item>
  665. <item id="location_id">
  666. <rank>40</rank>
  667. </item>
  668. <item id="email">
  669. <rank>50</rank>
  670. </item>
  671. <item id="phone">
  672. <rank>60</rank>
  673. </item>
  674. <item id="member_list">
  675. <rank>70</rank>
  676. </item>
  677. <item id="contract_list">
  678. <rank>80</rank>
  679. </item>
  680. <item id="service_list">
  681. <rank>90</rank>
  682. </item>
  683. <item id="ticket_list">
  684. <rank>100</rank>
  685. </item>
  686. <item id="ci_list">
  687. <rank>110</rank>
  688. </item>
  689. <item id="team_list">
  690. <rank>120</rank>
  691. </item>
  692. </items>
  693. </details>
  694. <search>
  695. <items>
  696. <item id="name">
  697. <rank>10</rank>
  698. </item>
  699. <item id="status">
  700. <rank>20</rank>
  701. </item>
  702. <item id="org_id">
  703. <rank>30</rank>
  704. </item>
  705. <item id="email">
  706. <rank>40</rank>
  707. </item>
  708. <item id="phone">
  709. <rank>50</rank>
  710. </item>
  711. <item id="location_id">
  712. <rank>60</rank>
  713. </item>
  714. </items>
  715. </search>
  716. <list>
  717. <items>
  718. <item id="status">
  719. <rank>10</rank>
  720. </item>
  721. <item id="org_id">
  722. <rank>20</rank>
  723. </item>
  724. <item id="email">
  725. <rank>30</rank>
  726. </item>
  727. <item id="phone">
  728. <rank>40</rank>
  729. </item>
  730. <item id="location_id">
  731. <rank>50</rank>
  732. </item>
  733. </items>
  734. </list>
  735. </presentation>
  736. </class>
  737. <class id="lnkTeamToContact" _delta="define">
  738. <parent>cmdbAbstractObject</parent>
  739. <properties>
  740. <is_link>1</is_link>
  741. <category>bizmodel,searchable,structure</category>
  742. <abstract>false</abstract>
  743. <key_type>autoincrement</key_type>
  744. <db_table>lnkteamtocontact</db_table>
  745. <db_key_field>id</db_key_field>
  746. <db_final_class_field/>
  747. <naming>
  748. <format>%1$s</format>
  749. <attributes>
  750. <attribute id="team_id"/>
  751. </attributes>
  752. </naming>
  753. <display_template/>
  754. <icon/>
  755. <reconciliation>
  756. <attributes>
  757. <attribute id=""/>
  758. </attributes>
  759. </reconciliation>
  760. </properties>
  761. <fields>
  762. <field id="team_id" xsi:type="AttributeExternalKey">
  763. <sql>team_id</sql>
  764. <target_class>Team</target_class>
  765. <is_null_allowed>false</is_null_allowed>
  766. <on_target_delete>DEL_AUTO</on_target_delete>
  767. <jointype/>
  768. </field>
  769. <field id="team_name" xsi:type="AttributeExternalField">
  770. <extkey_attcode>team_id</extkey_attcode>
  771. <target_attcode>name</target_attcode>
  772. </field>
  773. <field id="contact_id" xsi:type="AttributeExternalKey">
  774. <sql>contact_id</sql>
  775. <target_class>Contact</target_class>
  776. <is_null_allowed>false</is_null_allowed>
  777. <on_target_delete>DEL_AUTO</on_target_delete>
  778. <jointype/>
  779. </field>
  780. <field id="contact_name" xsi:type="AttributeExternalField">
  781. <extkey_attcode>contact_id</extkey_attcode>
  782. <target_attcode>name</target_attcode>
  783. </field>
  784. <field id="contact_location_id" xsi:type="AttributeExternalField">
  785. <extkey_attcode>contact_id</extkey_attcode>
  786. <target_attcode>location_id</target_attcode>
  787. </field>
  788. <field id="contact_location_name" xsi:type="AttributeExternalField">
  789. <extkey_attcode>contact_id</extkey_attcode>
  790. <target_attcode>location_name</target_attcode>
  791. </field>
  792. <field id="contact_email" xsi:type="AttributeExternalField">
  793. <extkey_attcode>contact_id</extkey_attcode>
  794. <target_attcode>email</target_attcode>
  795. </field>
  796. <field id="contact_phone" xsi:type="AttributeExternalField">
  797. <extkey_attcode>contact_id</extkey_attcode>
  798. <target_attcode>phone</target_attcode>
  799. </field>
  800. <field id="role" xsi:type="AttributeString">
  801. <sql>role</sql>
  802. <default_value/>
  803. <is_null_allowed>true</is_null_allowed>
  804. </field>
  805. </fields>
  806. <methods/>
  807. <presentation>
  808. <details>
  809. <items>
  810. <item id="team_id">
  811. <rank>10</rank>
  812. </item>
  813. <item id="contact_id">
  814. <rank>20</rank>
  815. </item>
  816. <item id="role">
  817. <rank>30</rank>
  818. </item>
  819. </items>
  820. </details>
  821. <search>
  822. <items>
  823. <item id="team_id">
  824. <rank>10</rank>
  825. </item>
  826. <item id="contact_id">
  827. <rank>20</rank>
  828. </item>
  829. <item id="role">
  830. <rank>30</rank>
  831. </item>
  832. </items>
  833. </search>
  834. <list>
  835. <items>
  836. <item id="team_id">
  837. <rank>10</rank>
  838. </item>
  839. <item id="contact_id">
  840. <rank>20</rank>
  841. </item>
  842. <item id="contact_location_id">
  843. <rank>30</rank>
  844. </item>
  845. <item id="contact_email">
  846. <rank>40</rank>
  847. </item>
  848. <item id="contact_phone">
  849. <rank>50</rank>
  850. </item>
  851. <item id="role">
  852. <rank>60</rank>
  853. </item>
  854. </items>
  855. </list>
  856. </presentation>
  857. </class>
  858. <class id="Document" _delta="define">
  859. <parent>cmdbAbstractObject</parent>
  860. <properties>
  861. <category>bizmodel,searchable,documentation</category>
  862. <abstract>true</abstract>
  863. <key_type>autoincrement</key_type>
  864. <db_table>document</db_table>
  865. <db_key_field>id</db_key_field>
  866. <db_final_class_field>finalclass</db_final_class_field>
  867. <naming>
  868. <format>%1$s</format>
  869. <attributes>
  870. <attribute id="name"/>
  871. </attributes>
  872. </naming>
  873. <display_template/>
  874. <icon>images/document.png</icon>
  875. <reconciliation>
  876. <attributes>
  877. <attribute id="name"/>
  878. <attribute id="org_id"/>
  879. <attribute id="org_name"/>
  880. </attributes>
  881. </reconciliation>
  882. </properties>
  883. <fields>
  884. <field id="name" xsi:type="AttributeString">
  885. <sql>name</sql>
  886. <default_value/>
  887. <is_null_allowed>false</is_null_allowed>
  888. </field>
  889. <field id="org_id" xsi:type="AttributeExternalKey">
  890. <sql>org_id</sql>
  891. <target_class>Organization</target_class>
  892. <is_null_allowed>false</is_null_allowed>
  893. <on_target_delete>DEL_MANUAL</on_target_delete>
  894. <jointype/>
  895. </field>
  896. <field id="org_name" xsi:type="AttributeExternalField">
  897. <extkey_attcode>org_id</extkey_attcode>
  898. <target_attcode>name</target_attcode>
  899. </field>
  900. <field id="description" xsi:type="AttributeText">
  901. <sql>description</sql>
  902. <default_value/>
  903. <is_null_allowed>true</is_null_allowed>
  904. </field>
  905. <field id="type" xsi:type="AttributeEnum">
  906. <values>
  907. <value>contract</value>
  908. <value>networkmap</value>
  909. <value>presentation</value>
  910. <value>training</value>
  911. <value>whitePaper</value>
  912. <value>workinginstructions</value>
  913. </values>
  914. <sql>type</sql>
  915. <default_value>presentation</default_value>
  916. <is_null_allowed>true</is_null_allowed>
  917. </field>
  918. <field id="status" xsi:type="AttributeEnum">
  919. <values>
  920. <value>draft</value>
  921. <value>published</value>
  922. <value>obsolete</value>
  923. </values>
  924. <sql>status</sql>
  925. <default_value>draft</default_value>
  926. <is_null_allowed>false</is_null_allowed>
  927. </field>
  928. <field id="contract_list" xsi:type="AttributeLinkedSetIndirect">
  929. <linked_class>lnkContractToDoc</linked_class>
  930. <ext_key_to_me>document_id</ext_key_to_me>
  931. <count_min>0</count_min>
  932. <count_max>0</count_max>
  933. <ext_key_to_remote>contract_id</ext_key_to_remote>
  934. </field>
  935. <field id="service_list" xsi:type="AttributeLinkedSetIndirect">
  936. <linked_class>lnkServiceToDoc</linked_class>
  937. <ext_key_to_me>document_id</ext_key_to_me>
  938. <count_min>0</count_min>
  939. <count_max>0</count_max>
  940. <ext_key_to_remote>service_id</ext_key_to_remote>
  941. </field>
  942. <field id="ticket_list" xsi:type="AttributeLinkedSetIndirect">
  943. <linked_class>lnkTicketToDoc</linked_class>
  944. <ext_key_to_me>document_id</ext_key_to_me>
  945. <count_min>0</count_min>
  946. <count_max>0</count_max>
  947. <ext_key_to_remote>ticket_id</ext_key_to_remote>
  948. </field>
  949. <field id="ci_list" xsi:type="AttributeLinkedSetIndirect">
  950. <linked_class>lnkCIToDoc</linked_class>
  951. <ext_key_to_me>document_id</ext_key_to_me>
  952. <count_min>0</count_min>
  953. <count_max>0</count_max>
  954. <ext_key_to_remote>ci_id</ext_key_to_remote>
  955. </field>
  956. </fields>
  957. <methods/>
  958. <presentation>
  959. <details>
  960. <items>
  961. <item id="name">
  962. <rank>10</rank>
  963. </item>
  964. <item id="org_id">
  965. <rank>20</rank>
  966. </item>
  967. <item id="description">
  968. <rank>30</rank>
  969. </item>
  970. <item id="type">
  971. <rank>40</rank>
  972. </item>
  973. <item id="status">
  974. <rank>50</rank>
  975. </item>
  976. <item id="contract_list">
  977. <rank>60</rank>
  978. </item>
  979. <item id="service_list">
  980. <rank>70</rank>
  981. </item>
  982. <item id="ticket_list">
  983. <rank>80</rank>
  984. </item>
  985. <item id="ci_list">
  986. <rank>90</rank>
  987. </item>
  988. </items>
  989. </details>
  990. <search>
  991. <items>
  992. <item id="name">
  993. <rank>10</rank>
  994. </item>
  995. <item id="org_id">
  996. <rank>20</rank>
  997. </item>
  998. <item id="description">
  999. <rank>30</rank>
  1000. </item>
  1001. <item id="type">
  1002. <rank>40</rank>
  1003. </item>
  1004. <item id="status">
  1005. <rank>50</rank>
  1006. </item>
  1007. </items>
  1008. </search>
  1009. <list>
  1010. <items>
  1011. <item id="org_id">
  1012. <rank>10</rank>
  1013. </item>
  1014. <item id="type">
  1015. <rank>20</rank>
  1016. </item>
  1017. <item id="status">
  1018. <rank>30</rank>
  1019. </item>
  1020. </items>
  1021. </list>
  1022. </presentation>
  1023. </class>
  1024. <class id="WebDoc" _delta="define">
  1025. <parent>Document</parent>
  1026. <properties>
  1027. <category>bizmodel,searchable,documentation</category>
  1028. <abstract>false</abstract>
  1029. <key_type>autoincrement</key_type>
  1030. <db_table>externaldoc</db_table>
  1031. <db_key_field>id</db_key_field>
  1032. <db_final_class_field/>
  1033. <naming>
  1034. <format>%1$s</format>
  1035. <attributes>
  1036. <attribute id="name"/>
  1037. </attributes>
  1038. </naming>
  1039. <display_template/>
  1040. <icon>images/document.png</icon>
  1041. <reconciliation>
  1042. <attributes>
  1043. <attribute id="name"/>
  1044. <attribute id="org_id"/>
  1045. <attribute id="org_name"/>
  1046. </attributes>
  1047. </reconciliation>
  1048. </properties>
  1049. <fields>
  1050. <field id="url" xsi:type="AttributeURL">
  1051. <sql>url</sql>
  1052. <default_value/>
  1053. <is_null_allowed>false</is_null_allowed>
  1054. <target>_blank</target>
  1055. </field>
  1056. </fields>
  1057. <methods/>
  1058. <presentation>
  1059. <details>
  1060. <items>
  1061. <item id="name">
  1062. <rank>10</rank>
  1063. </item>
  1064. <item id="org_id">
  1065. <rank>20</rank>
  1066. </item>
  1067. <item id="description">
  1068. <rank>30</rank>
  1069. </item>
  1070. <item id="type">
  1071. <rank>40</rank>
  1072. </item>
  1073. <item id="status">
  1074. <rank>50</rank>
  1075. </item>
  1076. <item id="contract_list">
  1077. <rank>60</rank>
  1078. </item>
  1079. <item id="service_list">
  1080. <rank>70</rank>
  1081. </item>
  1082. <item id="ticket_list">
  1083. <rank>80</rank>
  1084. </item>
  1085. <item id="ci_list">
  1086. <rank>90</rank>
  1087. </item>
  1088. <item id="url">
  1089. <rank>100</rank>
  1090. </item>
  1091. </items>
  1092. </details>
  1093. <search>
  1094. <items>
  1095. <item id="name">
  1096. <rank>10</rank>
  1097. </item>
  1098. <item id="org_id">
  1099. <rank>20</rank>
  1100. </item>
  1101. <item id="description">
  1102. <rank>30</rank>
  1103. </item>
  1104. <item id="type">
  1105. <rank>40</rank>
  1106. </item>
  1107. <item id="status">
  1108. <rank>50</rank>
  1109. </item>
  1110. <item id="url">
  1111. <rank>60</rank>
  1112. </item>
  1113. </items>
  1114. </search>
  1115. <list>
  1116. <items>
  1117. <item id="org_id">
  1118. <rank>10</rank>
  1119. </item>
  1120. <item id="type">
  1121. <rank>20</rank>
  1122. </item>
  1123. <item id="status">
  1124. <rank>30</rank>
  1125. </item>
  1126. <item id="url">
  1127. <rank>40</rank>
  1128. </item>
  1129. </items>
  1130. </list>
  1131. </presentation>
  1132. </class>
  1133. <class id="Note" _delta="define">
  1134. <parent>Document</parent>
  1135. <properties>
  1136. <category>bizmodel,searchable,documentation</category>
  1137. <abstract>false</abstract>
  1138. <key_type>autoincrement</key_type>
  1139. <db_table>note</db_table>
  1140. <db_key_field>id</db_key_field>
  1141. <db_final_class_field/>
  1142. <naming>
  1143. <format>%1$s</format>
  1144. <attributes>
  1145. <attribute id="name"/>
  1146. </attributes>
  1147. </naming>
  1148. <display_template/>
  1149. <icon>images/document.png</icon>
  1150. <reconciliation>
  1151. <attributes>
  1152. <attribute id="name"/>
  1153. <attribute id="org_id"/>
  1154. <attribute id="org_name"/>
  1155. </attributes>
  1156. </reconciliation>
  1157. </properties>
  1158. <fields>
  1159. <field id="note" xsi:type="AttributeText">
  1160. <sql>note</sql>
  1161. <default_value/>
  1162. <is_null_allowed>true</is_null_allowed>
  1163. </field>
  1164. </fields>
  1165. <methods/>
  1166. <presentation>
  1167. <details>
  1168. <items>
  1169. <item id="name">
  1170. <rank>10</rank>
  1171. </item>
  1172. <item id="org_id">
  1173. <rank>20</rank>
  1174. </item>
  1175. <item id="description">
  1176. <rank>30</rank>
  1177. </item>
  1178. <item id="type">
  1179. <rank>40</rank>
  1180. </item>
  1181. <item id="status">
  1182. <rank>50</rank>
  1183. </item>
  1184. <item id="contract_list">
  1185. <rank>60</rank>
  1186. </item>
  1187. <item id="service_list">
  1188. <rank>70</rank>
  1189. </item>
  1190. <item id="ticket_list">
  1191. <rank>80</rank>
  1192. </item>
  1193. <item id="ci_list">
  1194. <rank>90</rank>
  1195. </item>
  1196. <item id="note">
  1197. <rank>100</rank>
  1198. </item>
  1199. </items>
  1200. </details>
  1201. <search>
  1202. <items>
  1203. <item id="name">
  1204. <rank>10</rank>
  1205. </item>
  1206. <item id="org_id">
  1207. <rank>20</rank>
  1208. </item>
  1209. <item id="description">
  1210. <rank>30</rank>
  1211. </item>
  1212. <item id="type">
  1213. <rank>40</rank>
  1214. </item>
  1215. <item id="status">
  1216. <rank>50</rank>
  1217. </item>
  1218. <item id="note">
  1219. <rank>60</rank>
  1220. </item>
  1221. </items>
  1222. </search>
  1223. <list>
  1224. <items>
  1225. <item id="org_id">
  1226. <rank>10</rank>
  1227. </item>
  1228. <item id="type">
  1229. <rank>20</rank>
  1230. </item>
  1231. <item id="status">
  1232. <rank>30</rank>
  1233. </item>
  1234. <item id="note">
  1235. <rank>40</rank>
  1236. </item>
  1237. </items>
  1238. </list>
  1239. </presentation>
  1240. </class>
  1241. <class id="FileDoc" _delta="define">
  1242. <parent>Document</parent>
  1243. <properties>
  1244. <category>bizmodel,searchable,documentation</category>
  1245. <abstract>false</abstract>
  1246. <key_type>autoincrement</key_type>
  1247. <db_table>filedoc</db_table>
  1248. <db_key_field>id</db_key_field>
  1249. <db_final_class_field/>
  1250. <naming>
  1251. <format>%1$s</format>
  1252. <attributes>
  1253. <attribute id="name"/>
  1254. </attributes>
  1255. </naming>
  1256. <display_template/>
  1257. <icon>images/document.png</icon>
  1258. <reconciliation>
  1259. <attributes>
  1260. <attribute id="name"/>
  1261. <attribute id="org_id"/>
  1262. <attribute id="org_name"/>
  1263. </attributes>
  1264. </reconciliation>
  1265. </properties>
  1266. <fields>
  1267. <field id="contents" xsi:type="AttributeBlob"/>
  1268. </fields>
  1269. <methods>
  1270. <method id="DisplayBareProperties">
  1271. <comment>/**
  1272. * Overload the display of the properties to add a tab (the first one)
  1273. * with the preview of the document
  1274. */</comment>
  1275. <static>false</static>
  1276. <access>public</access>
  1277. <type>Overload-cmdbAbstractObject</type>
  1278. <code><![CDATA[ public function DisplayBareProperties(WebPage $oPage, $bEditMode = false, $sPrefix = '', $aExtraParams = array())
  1279. {
  1280. $aFieldsMap = parent::DisplayBareProperties($oPage, $bEditMode, $sPrefix, $aExtraParams);
  1281. if (!$bEditMode)
  1282. {
  1283. $oPage->add('<fieldset>');
  1284. $oPage->add('<legend>'.Dict::S('Class:Document:PreviewTab').'</legend>');
  1285. $oPage->add($this->DisplayDocumentInline($oPage, 'contents'));
  1286. $oPage->add('</fieldset>');
  1287. }
  1288. return $aFieldsMap;
  1289. }]]></code>
  1290. </method>
  1291. </methods>
  1292. <presentation>
  1293. <details>
  1294. <items>
  1295. <item id="name">
  1296. <rank>10</rank>
  1297. </item>
  1298. <item id="org_id">
  1299. <rank>20</rank>
  1300. </item>
  1301. <item id="description">
  1302. <rank>30</rank>
  1303. </item>
  1304. <item id="type">
  1305. <rank>40</rank>
  1306. </item>
  1307. <item id="status">
  1308. <rank>50</rank>
  1309. </item>
  1310. <item id="contract_list">
  1311. <rank>60</rank>
  1312. </item>
  1313. <item id="service_list">
  1314. <rank>70</rank>
  1315. </item>
  1316. <item id="ticket_list">
  1317. <rank>80</rank>
  1318. </item>
  1319. <item id="ci_list">
  1320. <rank>90</rank>
  1321. </item>
  1322. <item id="contents">
  1323. <rank>100</rank>
  1324. </item>
  1325. </items>
  1326. </details>
  1327. <search>
  1328. <items>
  1329. <item id="name">
  1330. <rank>10</rank>
  1331. </item>
  1332. <item id="org_id">
  1333. <rank>20</rank>
  1334. </item>
  1335. <item id="description">
  1336. <rank>30</rank>
  1337. </item>
  1338. <item id="type">
  1339. <rank>40</rank>
  1340. </item>
  1341. <item id="status">
  1342. <rank>50</rank>
  1343. </item>
  1344. </items>
  1345. </search>
  1346. <list>
  1347. <items>
  1348. <item id="org_id">
  1349. <rank>10</rank>
  1350. </item>
  1351. <item id="type">
  1352. <rank>20</rank>
  1353. </item>
  1354. <item id="status">
  1355. <rank>30</rank>
  1356. </item>
  1357. <item id="contents">
  1358. <rank>40</rank>
  1359. </item>
  1360. </items>
  1361. </list>
  1362. </presentation>
  1363. </class>
  1364. <class id="Licence" _delta="define">
  1365. <parent>cmdbAbstractObject</parent>
  1366. <properties>
  1367. <category>bizmodel,searchable,configmgmt</category>
  1368. <abstract>false</abstract>
  1369. <key_type>autoincrement</key_type>
  1370. <db_table>licence</db_table>
  1371. <db_key_field>id</db_key_field>
  1372. <db_final_class_field/>
  1373. <naming>
  1374. <format>%1$s</format>
  1375. <attributes>
  1376. <attribute id="name"/>
  1377. </attributes>
  1378. </naming>
  1379. <display_template/>
  1380. <icon>images/licence.png</icon>
  1381. <reconciliation>
  1382. <attributes>
  1383. <attribute id="name"/>
  1384. <attribute id="org_id"/>
  1385. <attribute id="org_name"/>
  1386. </attributes>
  1387. </reconciliation>
  1388. </properties>
  1389. <fields>
  1390. <field id="provider" xsi:type="AttributeString">
  1391. <sql>provider</sql>
  1392. <default_value/>
  1393. <is_null_allowed>false</is_null_allowed>
  1394. </field>
  1395. <field id="org_id" xsi:type="AttributeExternalKey">
  1396. <sql>org_id</sql>
  1397. <target_class>Organization</target_class>
  1398. <is_null_allowed>false</is_null_allowed>
  1399. <on_target_delete>DEL_MANUAL</on_target_delete>
  1400. <jointype/>
  1401. </field>
  1402. <field id="org_name" xsi:type="AttributeExternalField">
  1403. <extkey_attcode>org_id</extkey_attcode>
  1404. <target_attcode>name</target_attcode>
  1405. </field>
  1406. <field id="product" xsi:type="AttributeString">
  1407. <sql>product</sql>
  1408. <default_value/>
  1409. <is_null_allowed>false</is_null_allowed>
  1410. </field>
  1411. <field id="name" xsi:type="AttributeString">
  1412. <sql>name</sql>
  1413. <default_value/>
  1414. <is_null_allowed>false</is_null_allowed>
  1415. </field>
  1416. <field id="start" xsi:type="AttributeDate">
  1417. <sql>start</sql>
  1418. <default_value/>
  1419. <is_null_allowed>true</is_null_allowed>
  1420. </field>
  1421. <field id="end" xsi:type="AttributeDate">
  1422. <sql>end</sql>
  1423. <default_value/>
  1424. <is_null_allowed>true</is_null_allowed>
  1425. </field>
  1426. <field id="licence_key" xsi:type="AttributeString">
  1427. <sql>licence_key</sql>
  1428. <default_value/>
  1429. <is_null_allowed>true</is_null_allowed>
  1430. </field>
  1431. <field id="scope" xsi:type="AttributeText">
  1432. <sql>scope</sql>
  1433. <default_value/>
  1434. <is_null_allowed>true</is_null_allowed>
  1435. </field>
  1436. <field id="usage_limit" xsi:type="AttributeInteger">
  1437. <sql>usage_limit</sql>
  1438. <default_value/>
  1439. <is_null_allowed>true</is_null_allowed>
  1440. </field>
  1441. <field id="usage_list" xsi:type="AttributeLinkedSet">
  1442. <linked_class>SoftwareInstance</linked_class>
  1443. <ext_key_to_me>licence_id</ext_key_to_me>
  1444. <count_min>0</count_min>
  1445. <count_max>0</count_max>
  1446. </field>
  1447. </fields>
  1448. <methods/>
  1449. <presentation>
  1450. <details>
  1451. <items>
  1452. <item id="name">
  1453. <rank>10</rank>
  1454. </item>
  1455. <item id="org_id">
  1456. <rank>20</rank>
  1457. </item>
  1458. <item id="provider">
  1459. <rank>30</rank>
  1460. </item>
  1461. <item id="product">
  1462. <rank>40</rank>
  1463. </item>
  1464. <item id="start">
  1465. <rank>50</rank>
  1466. </item>
  1467. <item id="end">
  1468. <rank>60</rank>
  1469. </item>
  1470. <item id="licence_key">
  1471. <rank>70</rank>
  1472. </item>
  1473. <item id="scope">
  1474. <rank>80</rank>
  1475. </item>
  1476. <item id="usage_limit">
  1477. <rank>90</rank>
  1478. </item>
  1479. <item id="usage_list">
  1480. <rank>100</rank>
  1481. </item>
  1482. </items>
  1483. </details>
  1484. <search>
  1485. <items>
  1486. <item id="org_id">
  1487. <rank>10</rank>
  1488. </item>
  1489. <item id="provider">
  1490. <rank>20</rank>
  1491. </item>
  1492. <item id="product">
  1493. <rank>30</rank>
  1494. </item>
  1495. <item id="name">
  1496. <rank>40</rank>
  1497. </item>
  1498. <item id="start">
  1499. <rank>50</rank>
  1500. </item>
  1501. <item id="end">
  1502. <rank>60</rank>
  1503. </item>
  1504. <item id="licence_key">
  1505. <rank>70</rank>
  1506. </item>
  1507. <item id="scope">
  1508. <rank>80</rank>
  1509. </item>
  1510. </items>
  1511. </search>
  1512. <list>
  1513. <items>
  1514. <item id="org_id">
  1515. <rank>10</rank>
  1516. </item>
  1517. <item id="provider">
  1518. <rank>20</rank>
  1519. </item>
  1520. <item id="product">
  1521. <rank>30</rank>
  1522. </item>
  1523. <item id="start">
  1524. <rank>40</rank>
  1525. </item>
  1526. <item id="end">
  1527. <rank>50</rank>
  1528. </item>
  1529. </items>
  1530. </list>
  1531. </presentation>
  1532. </class>
  1533. <class id="Subnet" _delta="define">
  1534. <parent>cmdbAbstractObject</parent>
  1535. <properties>
  1536. <category>bizmodel,searchable,configmgmt</category>
  1537. <abstract>false</abstract>
  1538. <key_type>autoincrement</key_type>
  1539. <db_table>subnet</db_table>
  1540. <db_key_field>id</db_key_field>
  1541. <db_final_class_field/>
  1542. <naming>
  1543. <format>%1$s / %2$s</format>
  1544. <attributes>
  1545. <attribute id="ip"/>
  1546. <attribute id="ip_mask"/>
  1547. </attributes>
  1548. </naming>
  1549. <display_template/>
  1550. <icon>images/subnet.png</icon>
  1551. <reconciliation>
  1552. <attributes>
  1553. <attribute id="ip"/>
  1554. <attribute id="ip_mask"/>
  1555. <attribute id="org_id"/>
  1556. <attribute id="org_name"/>
  1557. </attributes>
  1558. </reconciliation>
  1559. </properties>
  1560. <fields>
  1561. <field id="description" xsi:type="AttributeText">
  1562. <sql>description</sql>
  1563. <default_value/>
  1564. <is_null_allowed>true</is_null_allowed>
  1565. </field>
  1566. <field id="org_id" xsi:type="AttributeExternalKey">
  1567. <sql>org_id</sql>
  1568. <target_class>Organization</target_class>
  1569. <is_null_allowed>false</is_null_allowed>
  1570. <on_target_delete>DEL_MANUAL</on_target_delete>
  1571. <jointype/>
  1572. </field>
  1573. <field id="org_name" xsi:type="AttributeExternalField">
  1574. <extkey_attcode>org_id</extkey_attcode>
  1575. <target_attcode>name</target_attcode>
  1576. </field>
  1577. <field id="ip" xsi:type="AttributeIPAddress">
  1578. <sql>ip</sql>
  1579. <default_value/>
  1580. <is_null_allowed>false</is_null_allowed>
  1581. </field>
  1582. <field id="ip_mask" xsi:type="AttributeIPAddress">
  1583. <sql>ip_mask</sql>
  1584. <default_value/>
  1585. <is_null_allowed>false</is_null_allowed>
  1586. </field>
  1587. </fields>
  1588. <methods>
  1589. <method id="DisplayBareRelations">
  1590. <static>false</static>
  1591. <access>public</access>
  1592. <type>Overload-cmdbAbstractObject</type>
  1593. <code><![CDATA[ function DisplayBareRelations(WebPage $oPage, $bEditMode = false)
  1594. {
  1595. parent::DisplayBareRelations($oPage, $bEditMode);
  1596. if (!$bEditMode)
  1597. {
  1598. $oPage->SetCurrentTab(Dict::S('Class:Subnet/Tab:IPUsage'));
  1599. $bit_ip = ip2long($this->Get('ip'));
  1600. $bit_mask = ip2long($this->Get('ip_mask'));
  1601. $iIPMin = sprintf('%u', ($bit_ip & $bit_mask) | 1); // exclude the first one: identifies the subnet itself
  1602. $iIPMax = sprintf('%u', (($bit_ip | (~$bit_mask))) & 0xfffffffe); // exclude the last one : broadcast address
  1603. $sIPMin = long2ip($iIPMin);
  1604. $sIPMax = long2ip($iIPMax);
  1605. $oPage->p(Dict::Format('Class:Subnet/Tab:IPUsage-explain', $sIPMin, $sIPMax));
  1606. $oIfFilter = DBObjectSearch::FromOQL("SELECT NetworkInterface AS if WHERE INET_ATON(if.ip_address) >= INET_ATON('$sIPMin') AND INET_ATON(if.ip_address) <= INET_ATON('$sIPMax')");
  1607. $oIfSet = new CMDBObjectSet($oIfFilter);
  1608. $oBlock = new DisplayBlock($oIfFilter, 'list', false);
  1609. $oBlock->Display($oPage, 'nwif', array('menu' => false));
  1610. $iCountUsed = $oIfSet->Count();
  1611. $iCountRange = $iIPMax - $iIPMin; // On 32-bit systems the substraction will be computed using floats for values greater than PHP_MAX_INT;
  1612. $iFreeCount = $iCountRange - $iCountUsed;
  1613. $oPage->SetCurrentTab(Dict::S('Class:Subnet/Tab:FreeIPs'));
  1614. $oPage->p(Dict::Format('Class:Subnet/Tab:FreeIPs-count', $iFreeCount));
  1615. $oPage->p(Dict::S('Class:Subnet/Tab:FreeIPs-explain'));
  1616. $aUsedIPs = $oIfSet->GetColumnAsArray('ip_address', false);
  1617. $iAnIP = $iIPMin;
  1618. $iFound = 0;
  1619. while (($iFound < min($iFreeCount, 10)) && ($iAnIP <= $iIPMax))
  1620. {
  1621. $sAnIP = long2ip($iAnIP);
  1622. if (!in_array($sAnIP, $aUsedIPs))
  1623. {
  1624. $iFound++;
  1625. $oPage->p($sAnIP);
  1626. }
  1627. else
  1628. {
  1629. }
  1630. $iAnIP++;
  1631. }
  1632. }
  1633. }]]></code>
  1634. </method>
  1635. </methods>
  1636. <presentation>
  1637. <details>
  1638. <items>
  1639. <item id="ip">
  1640. <rank>10</rank>
  1641. </item>
  1642. <item id="ip_mask">
  1643. <rank>20</rank>
  1644. </item>
  1645. <item id="org_id">
  1646. <rank>30</rank>
  1647. </item>
  1648. <item id="description">
  1649. <rank>40</rank>
  1650. </item>
  1651. </items>
  1652. </details>
  1653. <search>
  1654. <items>
  1655. <item id="ip">
  1656. <rank>10</rank>
  1657. </item>
  1658. <item id="ip_mask">
  1659. <rank>20</rank>
  1660. </item>
  1661. <item id="org_id">
  1662. <rank>30</rank>
  1663. </item>
  1664. <item id="description">
  1665. <rank>40</rank>
  1666. </item>
  1667. </items>
  1668. </search>
  1669. <list>
  1670. <items>
  1671. <item id="ip">
  1672. <rank>10</rank>
  1673. </item>
  1674. <item id="ip_mask">
  1675. <rank>20</rank>
  1676. </item>
  1677. <item id="org_id">
  1678. <rank>30</rank>
  1679. </item>
  1680. </items>
  1681. </list>
  1682. </presentation>
  1683. </class>
  1684. <class id="Patch" _delta="define">
  1685. <parent>cmdbAbstractObject</parent>
  1686. <properties>
  1687. <category>bizmodel,searchable,configmgmt</category>
  1688. <abstract>false</abstract>
  1689. <key_type>autoincrement</key_type>
  1690. <db_table>patch</db_table>
  1691. <db_key_field>id</db_key_field>
  1692. <db_final_class_field/>
  1693. <naming>
  1694. <format>%1$s</format>
  1695. <attributes>
  1696. <attribute id="name"/>
  1697. </attributes>
  1698. </naming>
  1699. <display_template/>
  1700. <icon>images/patch.png</icon>
  1701. <reconciliation>
  1702. <attributes>
  1703. <attribute id="name"/>
  1704. </attributes>
  1705. </reconciliation>
  1706. </properties>
  1707. <fields>
  1708. <field id="name" xsi:type="AttributeString">
  1709. <sql>name</sql>
  1710. <default_value/>
  1711. <is_null_allowed>false</is_null_allowed>
  1712. </field>
  1713. <field id="description" xsi:type="AttributeText">
  1714. <sql>description</sql>
  1715. <default_value/>
  1716. <is_null_allowed>true</is_null_allowed>
  1717. </field>
  1718. <field id="target_sw" xsi:type="AttributeString">
  1719. <sql>target_sw</sql>
  1720. <default_value/>
  1721. <is_null_allowed>true</is_null_allowed>
  1722. </field>
  1723. <field id="version" xsi:type="AttributeString">
  1724. <sql>version</sql>
  1725. <default_value/>
  1726. <is_null_allowed>true</is_null_allowed>
  1727. </field>
  1728. <field id="type" xsi:type="AttributeEnum">
  1729. <values>
  1730. <value>application</value>
  1731. <value>os</value>
  1732. <value>security</value>
  1733. <value>servicepack</value>
  1734. </values>
  1735. <sql>type</sql>
  1736. <default_value>security</default_value>
  1737. <is_null_allowed>false</is_null_allowed>
  1738. </field>
  1739. <field id="ci_list" xsi:type="AttributeLinkedSetIndirect">
  1740. <linked_class>lnkPatchToCI</linked_class>
  1741. <ext_key_to_me>patch_id</ext_key_to_me>
  1742. <count_min>0</count_min>
  1743. <count_max>0</count_max>
  1744. <ext_key_to_remote>ci_id</ext_key_to_remote>
  1745. </field>
  1746. </fields>
  1747. <methods/>
  1748. <presentation>
  1749. <details>
  1750. <items>
  1751. <item id="name">
  1752. <rank>10</rank>
  1753. </item>
  1754. <item id="description">
  1755. <rank>20</rank>
  1756. </item>
  1757. <item id="target_sw">
  1758. <rank>30</rank>
  1759. </item>
  1760. <item id="version">
  1761. <rank>40</rank>
  1762. </item>
  1763. <item id="type">
  1764. <rank>50</rank>
  1765. </item>
  1766. <item id="ci_list">
  1767. <rank>60</rank>
  1768. </item>
  1769. </items>
  1770. </details>
  1771. <search>
  1772. <items>
  1773. <item id="name">
  1774. <rank>10</rank>
  1775. </item>
  1776. <item id="target_sw">
  1777. <rank>20</rank>
  1778. </item>
  1779. <item id="version">
  1780. <rank>30</rank>
  1781. </item>
  1782. <item id="type">
  1783. <rank>40</rank>
  1784. </item>
  1785. <item id="description">
  1786. <rank>50</rank>
  1787. </item>
  1788. </items>
  1789. </search>
  1790. <list>
  1791. <items>
  1792. <item id="target_sw">
  1793. <rank>10</rank>
  1794. </item>
  1795. <item id="version">
  1796. <rank>20</rank>
  1797. </item>
  1798. <item id="type">
  1799. <rank>30</rank>
  1800. </item>
  1801. </items>
  1802. </list>
  1803. </presentation>
  1804. </class>
  1805. <class id="Software" _delta="define">
  1806. <parent>cmdbAbstractObject</parent>
  1807. <properties>
  1808. <category>bizmodel,searchable,configmgmt</category>
  1809. <abstract>true</abstract>
  1810. <key_type>autoincrement</key_type>
  1811. <db_table>software</db_table>
  1812. <db_key_field>id</db_key_field>
  1813. <db_final_class_field>finalclass</db_final_class_field>
  1814. <naming>
  1815. <format>%1$s</format>
  1816. <attributes>
  1817. <attribute id="name"/>
  1818. </attributes>
  1819. </naming>
  1820. <display_template/>
  1821. <icon>images/software.png</icon>
  1822. <reconciliation>
  1823. <attributes>
  1824. <attribute id="name"/>
  1825. </attributes>
  1826. </reconciliation>
  1827. </properties>
  1828. <fields>
  1829. <field id="name" xsi:type="AttributeString">
  1830. <sql>name</sql>
  1831. <default_value/>
  1832. <is_null_allowed>false</is_null_allowed>
  1833. </field>
  1834. <field id="description" xsi:type="AttributeText">
  1835. <sql>description</sql>
  1836. <default_value/>
  1837. <is_null_allowed>true</is_null_allowed>
  1838. </field>
  1839. </fields>
  1840. <methods/>
  1841. <presentation>
  1842. <details>
  1843. <items>
  1844. <item id="name">
  1845. <rank>10</rank>
  1846. </item>
  1847. <item id="description">
  1848. <rank>20</rank>
  1849. </item>
  1850. </items>
  1851. </details>
  1852. <search>
  1853. <items>
  1854. <item id="name">
  1855. <rank>10</rank>
  1856. </item>
  1857. <item id="description">
  1858. <rank>20</rank>
  1859. </item>
  1860. </items>
  1861. </search>
  1862. <list>
  1863. <items>
  1864. <item id="description">
  1865. <rank>10</rank>
  1866. </item>
  1867. </items>
  1868. </list>
  1869. </presentation>
  1870. </class>
  1871. <class id="Application" _delta="define">
  1872. <parent>Software</parent>
  1873. <properties>
  1874. <category>bizmodel,searchable,configmgmt</category>
  1875. <abstract>false</abstract>
  1876. <key_type>autoincrement</key_type>
  1877. <db_table>software_app</db_table>
  1878. <db_key_field>id</db_key_field>
  1879. <db_final_class_field/>
  1880. <naming>
  1881. <format>%1$s</format>
  1882. <attributes>
  1883. <attribute id="name"/>
  1884. </attributes>
  1885. </naming>
  1886. <display_template/>
  1887. <icon>images/software.png</icon>
  1888. <reconciliation>
  1889. <attributes>
  1890. <attribute id="name"/>
  1891. </attributes>
  1892. </reconciliation>
  1893. </properties>
  1894. <fields>
  1895. <field id="instance_list" xsi:type="AttributeLinkedSet">
  1896. <linked_class>ApplicationInstance</linked_class>
  1897. <ext_key_to_me>software_id</ext_key_to_me>
  1898. <count_min>0</count_min>
  1899. <count_max>0</count_max>
  1900. </field>
  1901. </fields>
  1902. <methods/>
  1903. <presentation>
  1904. <details>
  1905. <items>
  1906. <item id="name">
  1907. <rank>10</rank>
  1908. </item>
  1909. <item id="description">
  1910. <rank>20</rank>
  1911. </item>
  1912. <item id="instance_list">
  1913. <rank>30</rank>
  1914. </item>
  1915. </items>
  1916. </details>
  1917. <search>
  1918. <items>
  1919. <item id="name">
  1920. <rank>10</rank>
  1921. </item>
  1922. <item id="description">
  1923. <rank>20</rank>
  1924. </item>
  1925. </items>
  1926. </search>
  1927. <list>
  1928. <items>
  1929. <item id="description">
  1930. <rank>10</rank>
  1931. </item>
  1932. </items>
  1933. </list>
  1934. </presentation>
  1935. </class>
  1936. <class id="DBServer" _delta="define">
  1937. <parent>Software</parent>
  1938. <properties>
  1939. <category>bizmodel,searchable,configmgmt</category>
  1940. <abstract>false</abstract>
  1941. <key_type>autoincrement</key_type>
  1942. <db_table>software_db</db_table>
  1943. <db_key_field>id</db_key_field>
  1944. <db_final_class_field/>
  1945. <naming>
  1946. <format>%1$s</format>
  1947. <attributes>
  1948. <attribute id="name"/>
  1949. </attributes>
  1950. </naming>
  1951. <display_template/>
  1952. <icon>images/software.png</icon>
  1953. <reconciliation>
  1954. <attributes>
  1955. <attribute id="name"/>
  1956. </attributes>
  1957. </reconciliation>
  1958. </properties>
  1959. <fields>
  1960. <field id="instance_list" xsi:type="AttributeLinkedSet">
  1961. <linked_class>DBServerInstance</linked_class>
  1962. <ext_key_to_me>software_id</ext_key_to_me>
  1963. <count_min>0</count_min>
  1964. <count_max>0</count_max>
  1965. </field>
  1966. </fields>
  1967. <methods/>
  1968. <presentation>
  1969. <details>
  1970. <items>
  1971. <item id="name">
  1972. <rank>10</rank>
  1973. </item>
  1974. <item id="description">
  1975. <rank>20</rank>
  1976. </item>
  1977. <item id="instance_list">
  1978. <rank>30</rank>
  1979. </item>
  1980. </items>
  1981. </details>
  1982. <search>
  1983. <items>
  1984. <item id="name">
  1985. <rank>10</rank>
  1986. </item>
  1987. <item id="description">
  1988. <rank>20</rank>
  1989. </item>
  1990. </items>
  1991. </search>
  1992. <list>
  1993. <items>
  1994. <item id="description">
  1995. <rank>10</rank>
  1996. </item>
  1997. </items>
  1998. </list>
  1999. </presentation>
  2000. </class>
  2001. <class id="lnkPatchToCI" _delta="define">
  2002. <parent>cmdbAbstractObject</parent>
  2003. <properties>
  2004. <is_link>1</is_link>
  2005. <category>bizmodel,configmgmt</category>
  2006. <abstract>false</abstract>
  2007. <key_type>autoincrement</key_type>
  2008. <db_table>lnkpatchtoci</db_table>
  2009. <db_key_field>id</db_key_field>
  2010. <db_final_class_field/>
  2011. <naming>
  2012. <format>%1$s</format>
  2013. <attributes>
  2014. <attribute id="patch_id"/>
  2015. </attributes>
  2016. </naming>
  2017. <display_template/>
  2018. <icon/>
  2019. <reconciliation>
  2020. <attributes>
  2021. <attribute id="patch_id"/>
  2022. <attribute id="ci_id"/>
  2023. </attributes>
  2024. </reconciliation>
  2025. </properties>
  2026. <fields>
  2027. <field id="patch_id" xsi:type="AttributeExternalKey">
  2028. <sql>patch_id</sql>
  2029. <target_class>Patch</target_class>
  2030. <is_null_allowed>false</is_null_allowed>
  2031. <on_target_delete>DEL_AUTO</on_target_delete>
  2032. <jointype/>
  2033. </field>
  2034. <field id="patch_name" xsi:type="AttributeExternalField">
  2035. <extkey_attcode>patch_id</extkey_attcode>
  2036. <target_attcode>name</target_attcode>
  2037. </field>
  2038. <field id="ci_id" xsi:type="AttributeExternalKey">
  2039. <sql>ci_id</sql>
  2040. <target_class>Device</target_class>
  2041. <is_null_allowed>false</is_null_allowed>
  2042. <on_target_delete>DEL_AUTO</on_target_delete>
  2043. <jointype/>
  2044. </field>
  2045. <field id="ci_name" xsi:type="AttributeExternalField">
  2046. <extkey_attcode>ci_id</extkey_attcode>
  2047. <target_attcode>name</target_attcode>
  2048. </field>
  2049. <field id="ci_status" xsi:type="AttributeExternalField">
  2050. <extkey_attcode>ci_id</extkey_attcode>
  2051. <target_attcode>status</target_attcode>
  2052. </field>
  2053. </fields>
  2054. <methods/>
  2055. <presentation>
  2056. <details>
  2057. <items>
  2058. <item id="patch_id">
  2059. <rank>10</rank>
  2060. </item>
  2061. <item id="ci_id">
  2062. <rank>20</rank>
  2063. </item>
  2064. <item id="ci_status">
  2065. <rank>30</rank>
  2066. </item>
  2067. </items>
  2068. </details>
  2069. <search>
  2070. <items>
  2071. <item id="patch_id">
  2072. <rank>10</rank>
  2073. </item>
  2074. <item id="ci_id">
  2075. <rank>20</rank>
  2076. </item>
  2077. </items>
  2078. </search>
  2079. <list>
  2080. <items>
  2081. <item id="patch_id">
  2082. <rank>10</rank>
  2083. </item>
  2084. <item id="ci_id">
  2085. <rank>20</rank>
  2086. </item>
  2087. <item id="ci_status">
  2088. <rank>30</rank>
  2089. </item>
  2090. </items>
  2091. </list>
  2092. </presentation>
  2093. </class>
  2094. <class id="FunctionalCI" _delta="define">
  2095. <parent>cmdbAbstractObject</parent>
  2096. <properties>
  2097. <category>bizmodel,searchable,configmgmt</category>
  2098. <abstract>true</abstract>
  2099. <key_type>autoincrement</key_type>
  2100. <db_table>functionalci</db_table>
  2101. <db_key_field>id</db_key_field>
  2102. <db_final_class_field>finalclass</db_final_class_field>
  2103. <naming>
  2104. <format>%1$s</format>
  2105. <attributes>
  2106. <attribute id="name"/>
  2107. </attributes>
  2108. </naming>
  2109. <display_template/>
  2110. <icon>images/server.png</icon>
  2111. <reconciliation>
  2112. <attributes>
  2113. <attribute id="name"/>
  2114. <attribute id="org_id"/>
  2115. <attribute id="owner_name"/>
  2116. </attributes>
  2117. </reconciliation>
  2118. </properties>
  2119. <fields>
  2120. <field id="name" xsi:type="AttributeString">
  2121. <sql>name</sql>
  2122. <default_value/>
  2123. <is_null_allowed>false</is_null_allowed>
  2124. </field>
  2125. <field id="status" xsi:type="AttributeEnum">
  2126. <values>
  2127. <value>implementation</value>
  2128. <value>production</value>
  2129. <value>obsolete</value>
  2130. </values>
  2131. <sql>status</sql>
  2132. <default_value>implementation</default_value>
  2133. <is_null_allowed>false</is_null_allowed>
  2134. </field>
  2135. <field id="org_id" xsi:type="AttributeExternalKey">
  2136. <sql>org_id</sql>
  2137. <target_class>Organization</target_class>
  2138. <is_null_allowed>false</is_null_allowed>
  2139. <on_target_delete>DEL_MANUAL</on_target_delete>
  2140. <jointype/>
  2141. </field>
  2142. <field id="owner_name" xsi:type="AttributeExternalField">
  2143. <extkey_attcode>org_id</extkey_attcode>
  2144. <target_attcode>name</target_attcode>
  2145. </field>
  2146. <field id="importance" xsi:type="AttributeEnum">
  2147. <values>
  2148. <value>low</value>
  2149. <value>medium</value>
  2150. <value>high</value>
  2151. </values>
  2152. <sql>importance</sql>
  2153. <default_value>medium</default_value>
  2154. <is_null_allowed>false</is_null_allowed>
  2155. </field>
  2156. <field id="contact_list" xsi:type="AttributeLinkedSetIndirect">
  2157. <linked_class>lnkCIToContact</linked_class>
  2158. <ext_key_to_me>ci_id</ext_key_to_me>
  2159. <count_min>0</count_min>
  2160. <count_max>0</count_max>
  2161. <ext_key_to_remote>contact_id</ext_key_to_remote>
  2162. </field>
  2163. <field id="document_list" xsi:type="AttributeLinkedSetIndirect">
  2164. <linked_class>lnkCIToDoc</linked_class>
  2165. <ext_key_to_me>ci_id</ext_key_to_me>
  2166. <count_min>0</count_min>
  2167. <count_max>0</count_max>
  2168. <ext_key_to_remote>document_id</ext_key_to_remote>
  2169. </field>
  2170. <field id="solution_list" xsi:type="AttributeLinkedSetIndirect">
  2171. <linked_class>lnkSolutionToCI</linked_class>
  2172. <ext_key_to_me>ci_id</ext_key_to_me>
  2173. <count_min>0</count_min>
  2174. <count_max>0</count_max>
  2175. <ext_key_to_remote>solution_id</ext_key_to_remote>
  2176. </field>
  2177. <field id="contract_list" xsi:type="AttributeLinkedSetIndirect">
  2178. <linked_class>lnkContractToCI</linked_class>
  2179. <ext_key_to_me>ci_id</ext_key_to_me>
  2180. <count_min>0</count_min>
  2181. <count_max>0</count_max>
  2182. <ext_key_to_remote>contract_id</ext_key_to_remote>
  2183. </field>
  2184. <field id="ticket_list" xsi:type="AttributeLinkedSetIndirect">
  2185. <linked_class>lnkTicketToCI</linked_class>
  2186. <ext_key_to_me>ci_id</ext_key_to_me>
  2187. <count_min>0</count_min>
  2188. <count_max>0</count_max>
  2189. <ext_key_to_remote>ticket_id</ext_key_to_remote>
  2190. </field>
  2191. </fields>
  2192. <methods>
  2193. <method id="GetRelationQueries">
  2194. <static>true</static>
  2195. <access>public</access>
  2196. <type>Overload-DBObject</type>
  2197. <code><![CDATA[ public static function GetRelationQueries($sRelCode)
  2198. {
  2199. switch ($sRelCode)
  2200. {
  2201. case "impacts":
  2202. $aRels = array(
  2203. "contact" => array("sQuery"=>"SELECT Contact AS c JOIN lnkCIToContact AS l1 ON l1.contact_id = c.id WHERE l1.ci_id = :this->id", "bPropagate"=>true, "iDistance"=>3),
  2204. "solution" => array("sQuery"=>"SELECT ApplicationSolution AS s JOIN lnkSolutionToCI AS l1 ON l1.solution_id = s.id WHERE l1.ci_id = :this->id", "bPropagate"=>true, "iDistance"=>2),
  2205. );
  2206. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  2207. break;
  2208. default:
  2209. return parent::GetRelationQueries($sRelCode);
  2210. }
  2211. }]]></code>
  2212. </method>
  2213. </methods>
  2214. <presentation>
  2215. <details>
  2216. <items>
  2217. <item id="name">
  2218. <rank>10</rank>
  2219. </item>
  2220. <item id="status">
  2221. <rank>20</rank>
  2222. </item>
  2223. <item id="org_id">
  2224. <rank>30</rank>
  2225. </item>
  2226. <item id="importance">
  2227. <rank>40</rank>
  2228. </item>
  2229. <item id="contact_list">
  2230. <rank>50</rank>
  2231. </item>
  2232. <item id="document_list">
  2233. <rank>60</rank>
  2234. </item>
  2235. <item id="solution_list">
  2236. <rank>70</rank>
  2237. </item>
  2238. <item id="contract_list">
  2239. <rank>80</rank>
  2240. </item>
  2241. <item id="ticket_list">
  2242. <rank>90</rank>
  2243. </item>
  2244. </items>
  2245. </details>
  2246. <search>
  2247. <items>
  2248. <item id="name">
  2249. <rank>10</rank>
  2250. </item>
  2251. <item id="status">
  2252. <rank>20</rank>
  2253. </item>
  2254. <item id="org_id">
  2255. <rank>30</rank>
  2256. </item>
  2257. <item id="importance">
  2258. <rank>40</rank>
  2259. </item>
  2260. </items>
  2261. </search>
  2262. <list>
  2263. <items>
  2264. <item id="finalclass">
  2265. <rank>10</rank>
  2266. </item>
  2267. <item id="status">
  2268. <rank>20</rank>
  2269. </item>
  2270. <item id="org_id">
  2271. <rank>30</rank>
  2272. </item>
  2273. <item id="importance">
  2274. <rank>40</rank>
  2275. </item>
  2276. </items>
  2277. </list>
  2278. </presentation>
  2279. </class>
  2280. <class id="SoftwareInstance" _delta="define">
  2281. <parent>FunctionalCI</parent>
  2282. <properties>
  2283. <category>bizmodel,searchable,configmgmt</category>
  2284. <abstract>true</abstract>
  2285. <key_type>autoincrement</key_type>
  2286. <db_table>softwareinstance</db_table>
  2287. <db_key_field>id</db_key_field>
  2288. <db_final_class_field/>
  2289. <naming>
  2290. <format>%1$s - %2$s</format>
  2291. <attributes>
  2292. <attribute id="name"/>
  2293. <attribute id="device_id_friendlyname"/>
  2294. </attributes>
  2295. </naming>
  2296. <display_template/>
  2297. <icon>images/application.png</icon>
  2298. <reconciliation>
  2299. <attributes>
  2300. <attribute id="name"/>
  2301. <attribute id="device_id"/>
  2302. <attribute id="device_name"/>
  2303. <attribute id="org_id"/>
  2304. <attribute id="owner_name"/>
  2305. </attributes>
  2306. </reconciliation>
  2307. </properties>
  2308. <fields>
  2309. <field id="device_id" xsi:type="AttributeExternalKey">
  2310. <filter><![CDATA[SELECT Device WHERE org_id = :this->org_id]]></filter>
  2311. <dependencies>
  2312. <attribute id="org_id"/>
  2313. </dependencies>
  2314. <sql>device_id</sql>
  2315. <target_class>Device</target_class>
  2316. <is_null_allowed>false</is_null_allowed>
  2317. <on_target_delete>DEL_MANUAL</on_target_delete>
  2318. <jointype/>
  2319. </field>
  2320. <field id="device_name" xsi:type="AttributeExternalField">
  2321. <extkey_attcode>device_id</extkey_attcode>
  2322. <target_attcode>name</target_attcode>
  2323. </field>
  2324. <field id="licence_id" xsi:type="AttributeExternalKey">
  2325. <filter><![CDATA[SELECT Licence WHERE org_id = :this->org_id]]></filter>
  2326. <dependencies>
  2327. <attribute id="org_id"/>
  2328. </dependencies>
  2329. <sql>licence_id</sql>
  2330. <target_class>Licence</target_class>
  2331. <is_null_allowed>true</is_null_allowed>
  2332. <on_target_delete>DEL_MANUAL</on_target_delete>
  2333. <jointype/>
  2334. </field>
  2335. <field id="licence_name" xsi:type="AttributeExternalField">
  2336. <extkey_attcode>licence_id</extkey_attcode>
  2337. <target_attcode>name</target_attcode>
  2338. </field>
  2339. <field id="version" xsi:type="AttributeString">
  2340. <sql>version</sql>
  2341. <default_value/>
  2342. <is_null_allowed>true</is_null_allowed>
  2343. </field>
  2344. <field id="description" xsi:type="AttributeText">
  2345. <sql>description</sql>
  2346. <default_value/>
  2347. <is_null_allowed>true</is_null_allowed>
  2348. </field>
  2349. </fields>
  2350. <methods>
  2351. <method id="ComputeValues">
  2352. <static>false</static>
  2353. <access>public</access>
  2354. <type>Overload-DBObject</type>
  2355. <code> public function ComputeValues()
  2356. {
  2357. }</code>
  2358. </method>
  2359. <method id="GetRelationQueries">
  2360. <static>true</static>
  2361. <access>public</access>
  2362. <type>Overload-DBObject</type>
  2363. <code><![CDATA[ public static function GetRelationQueries($sRelCode)
  2364. {
  2365. switch ($sRelCode)
  2366. {
  2367. case "impacts":
  2368. $aRels = array(
  2369. // Actually this should be limited to the Software instances based on a DBServer Application type...
  2370. "db_instances" => array("sQuery"=>"SELECT DatabaseInstance AS db WHERE db.db_server_instance_id = :this->id", "bPropagate"=>true, "iDistance"=>5),
  2371. );
  2372. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  2373. break;
  2374. case 'depends on':
  2375. $aRels = array(
  2376. "applications" => array("sQuery"=>"SELECT Device JOIN SoftwareInstance AS app ON app.device_id = Device.id WHERE app.id = :this->id", "bPropagate"=>true, "iDistance"=>5),
  2377. );
  2378. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  2379. break;
  2380. default:
  2381. return parent::GetRelationQueries($sRelCode);
  2382. }
  2383. }]]></code>
  2384. </method>
  2385. </methods>
  2386. <presentation>
  2387. <details>
  2388. <items>
  2389. <item id="name">
  2390. <rank>10</rank>
  2391. </item>
  2392. <item id="status">
  2393. <rank>20</rank>
  2394. </item>
  2395. <item id="org_id">
  2396. <rank>30</rank>
  2397. </item>
  2398. <item id="importance">
  2399. <rank>40</rank>
  2400. </item>
  2401. <item id="device_id">
  2402. <rank>50</rank>
  2403. </item>
  2404. <item id="licence_id">
  2405. <rank>60</rank>
  2406. </item>
  2407. <item id="version">
  2408. <rank>70</rank>
  2409. </item>
  2410. <item id="description">
  2411. <rank>80</rank>
  2412. </item>
  2413. <item id="contact_list">
  2414. <rank>90</rank>
  2415. </item>
  2416. <item id="document_list">
  2417. <rank>100</rank>
  2418. </item>
  2419. <item id="solution_list">
  2420. <rank>110</rank>
  2421. </item>
  2422. <item id="contract_list">
  2423. <rank>120</rank>
  2424. </item>
  2425. <item id="ticket_list">
  2426. <rank>130</rank>
  2427. </item>
  2428. </items>
  2429. </details>
  2430. <search>
  2431. <items>
  2432. <item id="status">
  2433. <rank>10</rank>
  2434. </item>
  2435. <item id="org_id">
  2436. <rank>20</rank>
  2437. </item>
  2438. <item id="importance">
  2439. <rank>30</rank>
  2440. </item>
  2441. <item id="device_id">
  2442. <rank>40</rank>
  2443. </item>
  2444. <item id="licence_id">
  2445. <rank>50</rank>
  2446. </item>
  2447. <item id="version">
  2448. <rank>60</rank>
  2449. </item>
  2450. </items>
  2451. </search>
  2452. <list>
  2453. <items>
  2454. <item id="finalclass">
  2455. <rank>10</rank>
  2456. </item>
  2457. <item id="status">
  2458. <rank>20</rank>
  2459. </item>
  2460. <item id="org_id">
  2461. <rank>30</rank>
  2462. </item>
  2463. <item id="importance">
  2464. <rank>40</rank>
  2465. </item>
  2466. <item id="device_id">
  2467. <rank>50</rank>
  2468. </item>
  2469. <item id="version">
  2470. <rank>60</rank>
  2471. </item>
  2472. </items>
  2473. </list>
  2474. </presentation>
  2475. </class>
  2476. <class id="DBServerInstance" _delta="define">
  2477. <parent>SoftwareInstance</parent>
  2478. <properties>
  2479. <category>bizmodel,searchable,configmgmt</category>
  2480. <abstract>false</abstract>
  2481. <key_type>autoincrement</key_type>
  2482. <db_table>softwareinstance_dbserver</db_table>
  2483. <db_key_field>id</db_key_field>
  2484. <db_final_class_field/>
  2485. <naming>
  2486. <format>%1$s - %2$s</format>
  2487. <attributes>
  2488. <attribute id="name"/>
  2489. <attribute id="device_id_friendlyname"/>
  2490. </attributes>
  2491. </naming>
  2492. <display_template/>
  2493. <icon>images/database.png</icon>
  2494. <reconciliation>
  2495. <attributes>
  2496. <attribute id="name"/>
  2497. <attribute id="software_id"/>
  2498. <attribute id="software_name"/>
  2499. <attribute id="device_id"/>
  2500. <attribute id="device_name"/>
  2501. <attribute id="org_id"/>
  2502. <attribute id="owner_name"/>
  2503. </attributes>
  2504. </reconciliation>
  2505. </properties>
  2506. <fields>
  2507. <field id="software_id" xsi:type="AttributeExternalKey">
  2508. <sql>software_id</sql>
  2509. <target_class>DBServer</target_class>
  2510. <is_null_allowed>false</is_null_allowed>
  2511. <on_target_delete>DEL_MANUAL</on_target_delete>
  2512. <jointype/>
  2513. </field>
  2514. <field id="software_name" xsi:type="AttributeExternalField">
  2515. <extkey_attcode>software_id</extkey_attcode>
  2516. <target_attcode>name</target_attcode>
  2517. </field>
  2518. <field id="dbinstance_list" xsi:type="AttributeLinkedSet">
  2519. <linked_class>DatabaseInstance</linked_class>
  2520. <ext_key_to_me>db_server_instance_id</ext_key_to_me>
  2521. <count_min>0</count_min>
  2522. <count_max>0</count_max>
  2523. </field>
  2524. </fields>
  2525. <methods/>
  2526. <presentation>
  2527. <details>
  2528. <items>
  2529. <item id="name">
  2530. <rank>10</rank>
  2531. </item>
  2532. <item id="status">
  2533. <rank>20</rank>
  2534. </item>
  2535. <item id="org_id">
  2536. <rank>30</rank>
  2537. </item>
  2538. <item id="importance">
  2539. <rank>40</rank>
  2540. </item>
  2541. <item id="device_id">
  2542. <rank>50</rank>
  2543. </item>
  2544. <item id="licence_id">
  2545. <rank>60</rank>
  2546. </item>
  2547. <item id="software_id">
  2548. <rank>70</rank>
  2549. </item>
  2550. <item id="version">
  2551. <rank>80</rank>
  2552. </item>
  2553. <item id="description">
  2554. <rank>90</rank>
  2555. </item>
  2556. <item id="contact_list">
  2557. <rank>100</rank>
  2558. </item>
  2559. <item id="document_list">
  2560. <rank>110</rank>
  2561. </item>
  2562. <item id="solution_list">
  2563. <rank>120</rank>
  2564. </item>
  2565. <item id="contract_list">
  2566. <rank>130</rank>
  2567. </item>
  2568. <item id="ticket_list">
  2569. <rank>140</rank>
  2570. </item>
  2571. <item id="dbinstance_list">
  2572. <rank>150</rank>
  2573. </item>
  2574. </items>
  2575. </details>
  2576. <search>
  2577. <items>
  2578. <item id="status">
  2579. <rank>10</rank>
  2580. </item>
  2581. <item id="org_id">
  2582. <rank>20</rank>
  2583. </item>
  2584. <item id="importance">
  2585. <rank>30</rank>
  2586. </item>
  2587. <item id="device_id">
  2588. <rank>40</rank>
  2589. </item>
  2590. <item id="licence_id">
  2591. <rank>50</rank>
  2592. </item>
  2593. <item id="software_id">
  2594. <rank>60</rank>
  2595. </item>
  2596. <item id="version">
  2597. <rank>70</rank>
  2598. </item>
  2599. </items>
  2600. </search>
  2601. <list>
  2602. <items>
  2603. <item id="status">
  2604. <rank>10</rank>
  2605. </item>
  2606. <item id="org_id">
  2607. <rank>20</rank>
  2608. </item>
  2609. <item id="importance">
  2610. <rank>30</rank>
  2611. </item>
  2612. <item id="device_id">
  2613. <rank>40</rank>
  2614. </item>
  2615. <item id="software_id">
  2616. <rank>50</rank>
  2617. </item>
  2618. <item id="version">
  2619. <rank>60</rank>
  2620. </item>
  2621. </items>
  2622. </list>
  2623. </presentation>
  2624. </class>
  2625. <class id="ApplicationInstance" _delta="define">
  2626. <parent>SoftwareInstance</parent>
  2627. <properties>
  2628. <category>bizmodel,searchable,configmgmt</category>
  2629. <abstract>false</abstract>
  2630. <key_type>autoincrement</key_type>
  2631. <db_table>softwareinstance_application</db_table>
  2632. <db_key_field>id</db_key_field>
  2633. <db_final_class_field/>
  2634. <naming>
  2635. <format>%1$s - %2$s</format>
  2636. <attributes>
  2637. <attribute id="name"/>
  2638. <attribute id="device_id_friendlyname"/>
  2639. </attributes>
  2640. </naming>
  2641. <display_template/>
  2642. <icon>images/application.png</icon>
  2643. <reconciliation>
  2644. <attributes>
  2645. <attribute id="name"/>
  2646. <attribute id="software_id"/>
  2647. <attribute id="software_name"/>
  2648. <attribute id="device_id"/>
  2649. <attribute id="device_name"/>
  2650. <attribute id="org_id"/>
  2651. <attribute id="owner_name"/>
  2652. </attributes>
  2653. </reconciliation>
  2654. </properties>
  2655. <fields>
  2656. <field id="software_id" xsi:type="AttributeExternalKey">
  2657. <sql>software_id</sql>
  2658. <target_class>Application</target_class>
  2659. <is_null_allowed>false</is_null_allowed>
  2660. <on_target_delete>DEL_MANUAL</on_target_delete>
  2661. <jointype/>
  2662. </field>
  2663. <field id="software_name" xsi:type="AttributeExternalField">
  2664. <extkey_attcode>software_id</extkey_attcode>
  2665. <target_attcode>name</target_attcode>
  2666. </field>
  2667. </fields>
  2668. <methods/>
  2669. <presentation>
  2670. <details>
  2671. <items>
  2672. <item id="name">
  2673. <rank>10</rank>
  2674. </item>
  2675. <item id="status">
  2676. <rank>20</rank>
  2677. </item>
  2678. <item id="org_id">
  2679. <rank>30</rank>
  2680. </item>
  2681. <item id="importance">
  2682. <rank>40</rank>
  2683. </item>
  2684. <item id="device_id">
  2685. <rank>50</rank>
  2686. </item>
  2687. <item id="licence_id">
  2688. <rank>60</rank>
  2689. </item>
  2690. <item id="software_id">
  2691. <rank>70</rank>
  2692. </item>
  2693. <item id="version">
  2694. <rank>80</rank>
  2695. </item>
  2696. <item id="description">
  2697. <rank>90</rank>
  2698. </item>
  2699. <item id="contact_list">
  2700. <rank>100</rank>
  2701. </item>
  2702. <item id="document_list">
  2703. <rank>110</rank>
  2704. </item>
  2705. <item id="solution_list">
  2706. <rank>120</rank>
  2707. </item>
  2708. <item id="contract_list">
  2709. <rank>130</rank>
  2710. </item>
  2711. <item id="ticket_list">
  2712. <rank>140</rank>
  2713. </item>
  2714. </items>
  2715. </details>
  2716. <search>
  2717. <items>
  2718. <item id="status">
  2719. <rank>10</rank>
  2720. </item>
  2721. <item id="org_id">
  2722. <rank>20</rank>
  2723. </item>
  2724. <item id="importance">
  2725. <rank>30</rank>
  2726. </item>
  2727. <item id="device_id">
  2728. <rank>40</rank>
  2729. </item>
  2730. <item id="licence_id">
  2731. <rank>50</rank>
  2732. </item>
  2733. <item id="software_id">
  2734. <rank>60</rank>
  2735. </item>
  2736. <item id="version">
  2737. <rank>70</rank>
  2738. </item>
  2739. </items>
  2740. </search>
  2741. <list>
  2742. <items>
  2743. <item id="status">
  2744. <rank>10</rank>
  2745. </item>
  2746. <item id="org_id">
  2747. <rank>20</rank>
  2748. </item>
  2749. <item id="importance">
  2750. <rank>30</rank>
  2751. </item>
  2752. <item id="device_id">
  2753. <rank>40</rank>
  2754. </item>
  2755. <item id="software_id">
  2756. <rank>50</rank>
  2757. </item>
  2758. <item id="version">
  2759. <rank>60</rank>
  2760. </item>
  2761. </items>
  2762. </list>
  2763. </presentation>
  2764. </class>
  2765. <class id="DatabaseInstance" _delta="define">
  2766. <parent>FunctionalCI</parent>
  2767. <properties>
  2768. <category>bizmodel,searchable,configmgmt</category>
  2769. <abstract>false</abstract>
  2770. <key_type>autoincrement</key_type>
  2771. <db_table>databaseinstance</db_table>
  2772. <db_key_field>id</db_key_field>
  2773. <db_final_class_field/>
  2774. <naming>
  2775. <format>%1$s - %2$s</format>
  2776. <attributes>
  2777. <attribute id="name"/>
  2778. <attribute id="db_server_instance_id_friendlyname"/>
  2779. </attributes>
  2780. </naming>
  2781. <display_template/>
  2782. <icon>images/database-instance.png</icon>
  2783. <reconciliation>
  2784. <attributes>
  2785. <attribute id="name"/>
  2786. <attribute id="org_id"/>
  2787. <attribute id="owner_name"/>
  2788. <attribute id="db_server_instance_id"/>
  2789. <attribute id="db_server_instance_name"/>
  2790. </attributes>
  2791. </reconciliation>
  2792. </properties>
  2793. <fields>
  2794. <field id="db_server_instance_id" xsi:type="AttributeExternalKey">
  2795. <filter><![CDATA[SELECT DBServerInstance WHERE org_id = :this->org_id]]></filter>
  2796. <dependencies>
  2797. <attribute id="org_id"/>
  2798. </dependencies>
  2799. <sql>db_server_instance_id</sql>
  2800. <target_class>DBServerInstance</target_class>
  2801. <is_null_allowed>false</is_null_allowed>
  2802. <on_target_delete>DEL_MANUAL</on_target_delete>
  2803. <jointype/>
  2804. </field>
  2805. <field id="db_server_instance_name" xsi:type="AttributeExternalField">
  2806. <extkey_attcode>db_server_instance_id</extkey_attcode>
  2807. <target_attcode>name</target_attcode>
  2808. </field>
  2809. <field id="db_server_instance_version" xsi:type="AttributeExternalField">
  2810. <extkey_attcode>db_server_instance_id</extkey_attcode>
  2811. <target_attcode>version</target_attcode>
  2812. </field>
  2813. <field id="description" xsi:type="AttributeText">
  2814. <sql>description</sql>
  2815. <default_value/>
  2816. <is_null_allowed>true</is_null_allowed>
  2817. </field>
  2818. </fields>
  2819. <methods>
  2820. <method id="GetRelationQueries">
  2821. <static>true</static>
  2822. <access>public</access>
  2823. <type>Overload-DBObject</type>
  2824. <code><![CDATA[ public static function GetRelationQueries($sRelCode)
  2825. {
  2826. switch ($sRelCode)
  2827. {
  2828. case "depends on":
  2829. $aRels = array(
  2830. "db_instances" => array("sQuery"=>"SELECT DBServerInstance AS db_server_inst JOIN DatabaseInstance AS db ON db.db_server_instance_id = db_server_inst.id WHERE db.id = :this->id", "bPropagate"=>true, "iDistance"=>5),
  2831. );
  2832. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  2833. break;
  2834. default:
  2835. return parent::GetRelationQueries($sRelCode);
  2836. }
  2837. }]]></code>
  2838. </method>
  2839. </methods>
  2840. <presentation>
  2841. <details>
  2842. <items>
  2843. <item id="name">
  2844. <rank>10</rank>
  2845. </item>
  2846. <item id="status">
  2847. <rank>20</rank>
  2848. </item>
  2849. <item id="org_id">
  2850. <rank>30</rank>
  2851. </item>
  2852. <item id="importance">
  2853. <rank>40</rank>
  2854. </item>
  2855. <item id="db_server_instance_id">
  2856. <rank>50</rank>
  2857. </item>
  2858. <item id="db_server_instance_version">
  2859. <rank>60</rank>
  2860. </item>
  2861. <item id="description">
  2862. <rank>70</rank>
  2863. </item>
  2864. <item id="contact_list">
  2865. <rank>80</rank>
  2866. </item>
  2867. <item id="document_list">
  2868. <rank>90</rank>
  2869. </item>
  2870. <item id="solution_list">
  2871. <rank>100</rank>
  2872. </item>
  2873. <item id="contract_list">
  2874. <rank>110</rank>
  2875. </item>
  2876. <item id="ticket_list">
  2877. <rank>120</rank>
  2878. </item>
  2879. </items>
  2880. </details>
  2881. <search>
  2882. <items>
  2883. <item id="name">
  2884. <rank>10</rank>
  2885. </item>
  2886. <item id="status">
  2887. <rank>20</rank>
  2888. </item>
  2889. <item id="org_id">
  2890. <rank>30</rank>
  2891. </item>
  2892. <item id="importance">
  2893. <rank>40</rank>
  2894. </item>
  2895. <item id="db_server_instance_id">
  2896. <rank>50</rank>
  2897. </item>
  2898. <item id="db_server_instance_version">
  2899. <rank>60</rank>
  2900. </item>
  2901. </items>
  2902. </search>
  2903. <list>
  2904. <items>
  2905. <item id="status">
  2906. <rank>10</rank>
  2907. </item>
  2908. <item id="org_id">
  2909. <rank>20</rank>
  2910. </item>
  2911. <item id="importance">
  2912. <rank>30</rank>
  2913. </item>
  2914. <item id="db_server_instance_id">
  2915. <rank>40</rank>
  2916. </item>
  2917. <item id="db_server_instance_version">
  2918. <rank>50</rank>
  2919. </item>
  2920. </items>
  2921. </list>
  2922. </presentation>
  2923. </class>
  2924. <class id="ApplicationSolution" _delta="define">
  2925. <parent>FunctionalCI</parent>
  2926. <properties>
  2927. <category>bizmodel,searchable,configmgmt</category>
  2928. <abstract>false</abstract>
  2929. <key_type>autoincrement</key_type>
  2930. <db_table>applicationsolution</db_table>
  2931. <db_key_field>id</db_key_field>
  2932. <db_final_class_field/>
  2933. <naming>
  2934. <format>%1$s</format>
  2935. <attributes>
  2936. <attribute id="name"/>
  2937. </attributes>
  2938. </naming>
  2939. <display_template/>
  2940. <icon>images/solution.png</icon>
  2941. <reconciliation>
  2942. <attributes>
  2943. <attribute id="name"/>
  2944. <attribute id="org_id"/>
  2945. <attribute id="owner_name"/>
  2946. </attributes>
  2947. </reconciliation>
  2948. </properties>
  2949. <fields>
  2950. <field id="description" xsi:type="AttributeText">
  2951. <sql>description</sql>
  2952. <default_value/>
  2953. <is_null_allowed>true</is_null_allowed>
  2954. </field>
  2955. <field id="ci_list" xsi:type="AttributeLinkedSetIndirect">
  2956. <linked_class>lnkSolutionToCI</linked_class>
  2957. <ext_key_to_me>solution_id</ext_key_to_me>
  2958. <count_min>0</count_min>
  2959. <count_max>0</count_max>
  2960. <ext_key_to_remote>ci_id</ext_key_to_remote>
  2961. </field>
  2962. <field id="process_list" xsi:type="AttributeLinkedSetIndirect">
  2963. <linked_class>lnkProcessToSolution</linked_class>
  2964. <ext_key_to_me>solution_id</ext_key_to_me>
  2965. <count_min>0</count_min>
  2966. <count_max>0</count_max>
  2967. <ext_key_to_remote>process_id</ext_key_to_remote>
  2968. </field>
  2969. </fields>
  2970. <methods>
  2971. <method id="GetRelationQueries">
  2972. <static>true</static>
  2973. <access>public</access>
  2974. <type>Overload-DBObject</type>
  2975. <code><![CDATA[ public static function GetRelationQueries($sRelCode)
  2976. {
  2977. switch ($sRelCode)
  2978. {
  2979. case "impacts":
  2980. $aRels = array(
  2981. "process" => array("sQuery"=>"SELECT BusinessProcess AS p JOIN lnkProcessToSolution AS l1 ON l1.process_id = p.id WHERE l1.solution_id = :this->id", "bPropagate"=>true, "iDistance"=>3),
  2982. );
  2983. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  2984. break;
  2985. case "depends on":
  2986. $aRels = array(
  2987. "solution" => array("sQuery"=>"SELECT FunctionalCI AS ci JOIN lnkSolutionToCI AS l1 ON l1.ci_id = ci.id WHERE l1.solution_id = :this->id", "bPropagate"=>true, "iDistance"=>2),
  2988. );
  2989. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  2990. break;
  2991. default:
  2992. return parent::GetRelationQueries($sRelCode);
  2993. }
  2994. }]]></code>
  2995. </method>
  2996. </methods>
  2997. <presentation>
  2998. <details>
  2999. <items>
  3000. <item id="name">
  3001. <rank>10</rank>
  3002. </item>
  3003. <item id="status">
  3004. <rank>20</rank>
  3005. </item>
  3006. <item id="org_id">
  3007. <rank>30</rank>
  3008. </item>
  3009. <item id="importance">
  3010. <rank>40</rank>
  3011. </item>
  3012. <item id="description">
  3013. <rank>50</rank>
  3014. </item>
  3015. <item id="contact_list">
  3016. <rank>60</rank>
  3017. </item>
  3018. <item id="document_list">
  3019. <rank>70</rank>
  3020. </item>
  3021. <item id="solution_list">
  3022. <rank>80</rank>
  3023. </item>
  3024. <item id="contract_list">
  3025. <rank>90</rank>
  3026. </item>
  3027. <item id="ticket_list">
  3028. <rank>100</rank>
  3029. </item>
  3030. <item id="ci_list">
  3031. <rank>110</rank>
  3032. </item>
  3033. <item id="process_list">
  3034. <rank>120</rank>
  3035. </item>
  3036. </items>
  3037. </details>
  3038. <search>
  3039. <items>
  3040. <item id="name">
  3041. <rank>10</rank>
  3042. </item>
  3043. <item id="status">
  3044. <rank>20</rank>
  3045. </item>
  3046. <item id="org_id">
  3047. <rank>30</rank>
  3048. </item>
  3049. <item id="importance">
  3050. <rank>40</rank>
  3051. </item>
  3052. </items>
  3053. </search>
  3054. <list>
  3055. <items>
  3056. <item id="status">
  3057. <rank>10</rank>
  3058. </item>
  3059. <item id="org_id">
  3060. <rank>20</rank>
  3061. </item>
  3062. <item id="importance">
  3063. <rank>30</rank>
  3064. </item>
  3065. </items>
  3066. </list>
  3067. </presentation>
  3068. </class>
  3069. <class id="BusinessProcess" _delta="define">
  3070. <parent>FunctionalCI</parent>
  3071. <properties>
  3072. <category>bizmodel,searchable,configmgmt</category>
  3073. <abstract>false</abstract>
  3074. <key_type>autoincrement</key_type>
  3075. <db_table>businessprocess</db_table>
  3076. <db_key_field>id</db_key_field>
  3077. <db_final_class_field/>
  3078. <naming>
  3079. <format>%1$s</format>
  3080. <attributes>
  3081. <attribute id="name"/>
  3082. </attributes>
  3083. </naming>
  3084. <display_template/>
  3085. <icon>images/business-process.png</icon>
  3086. <reconciliation>
  3087. <attributes>
  3088. <attribute id="name"/>
  3089. <attribute id="org_id"/>
  3090. <attribute id="owner_name"/>
  3091. </attributes>
  3092. </reconciliation>
  3093. </properties>
  3094. <fields>
  3095. <field id="description" xsi:type="AttributeText">
  3096. <sql>description</sql>
  3097. <default_value/>
  3098. <is_null_allowed>true</is_null_allowed>
  3099. </field>
  3100. <field id="used_solution_list" xsi:type="AttributeLinkedSetIndirect">
  3101. <linked_class>lnkProcessToSolution</linked_class>
  3102. <ext_key_to_me>process_id</ext_key_to_me>
  3103. <count_min>0</count_min>
  3104. <count_max>0</count_max>
  3105. <ext_key_to_remote>solution_id</ext_key_to_remote>
  3106. </field>
  3107. </fields>
  3108. <methods>
  3109. <method id="GetRelationQueries">
  3110. <static>true</static>
  3111. <access>public</access>
  3112. <type>Overload-DBObject</type>
  3113. <code><![CDATA[ public static function GetRelationQueries($sRelCode)
  3114. {
  3115. switch ($sRelCode)
  3116. {
  3117. case "depends on":
  3118. $aRels = array(
  3119. "solution" => array("sQuery"=>"SELECT ApplicationSolution AS app JOIN lnkProcessToSolution AS l1 ON l1.solution_id = app.id WHERE l1.process_id = :this->id", "bPropagate"=>true, "iDistance"=>3),
  3120. );
  3121. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  3122. break;
  3123. default:
  3124. return parent::GetRelationQueries($sRelCode);
  3125. }
  3126. }]]></code>
  3127. </method>
  3128. </methods>
  3129. <presentation>
  3130. <details>
  3131. <items>
  3132. <item id="name">
  3133. <rank>10</rank>
  3134. </item>
  3135. <item id="status">
  3136. <rank>20</rank>
  3137. </item>
  3138. <item id="org_id">
  3139. <rank>30</rank>
  3140. </item>
  3141. <item id="importance">
  3142. <rank>40</rank>
  3143. </item>
  3144. <item id="description">
  3145. <rank>50</rank>
  3146. </item>
  3147. <item id="contact_list">
  3148. <rank>60</rank>
  3149. </item>
  3150. <item id="document_list">
  3151. <rank>70</rank>
  3152. </item>
  3153. <item id="contract_list">
  3154. <rank>80</rank>
  3155. </item>
  3156. <item id="ticket_list">
  3157. <rank>90</rank>
  3158. </item>
  3159. <item id="used_solution_list">
  3160. <rank>100</rank>
  3161. </item>
  3162. </items>
  3163. </details>
  3164. <search>
  3165. <items>
  3166. <item id="name">
  3167. <rank>10</rank>
  3168. </item>
  3169. <item id="status">
  3170. <rank>20</rank>
  3171. </item>
  3172. <item id="org_id">
  3173. <rank>30</rank>
  3174. </item>
  3175. <item id="importance">
  3176. <rank>40</rank>
  3177. </item>
  3178. <item id="description">
  3179. <rank>50</rank>
  3180. </item>
  3181. </items>
  3182. </search>
  3183. <list>
  3184. <items>
  3185. <item id="status">
  3186. <rank>10</rank>
  3187. </item>
  3188. <item id="org_id">
  3189. <rank>20</rank>
  3190. </item>
  3191. <item id="importance">
  3192. <rank>30</rank>
  3193. </item>
  3194. </items>
  3195. </list>
  3196. </presentation>
  3197. </class>
  3198. <class id="ConnectableCI" _delta="define">
  3199. <parent>FunctionalCI</parent>
  3200. <properties>
  3201. <category>bizmodel,searchable,configmgmt</category>
  3202. <abstract>true</abstract>
  3203. <key_type>autoincrement</key_type>
  3204. <db_table>connectableci</db_table>
  3205. <db_key_field>id</db_key_field>
  3206. <db_final_class_field/>
  3207. <naming>
  3208. <format>%1$s</format>
  3209. <attributes>
  3210. <attribute id="name"/>
  3211. </attributes>
  3212. </naming>
  3213. <display_template/>
  3214. <icon>images/server.png</icon>
  3215. <reconciliation>
  3216. <attributes>
  3217. <attribute id="name"/>
  3218. <attribute id="org_id"/>
  3219. <attribute id="owner_name"/>
  3220. </attributes>
  3221. </reconciliation>
  3222. </properties>
  3223. <fields>
  3224. <field id="brand" xsi:type="AttributeString">
  3225. <sql>brand</sql>
  3226. <default_value/>
  3227. <is_null_allowed>true</is_null_allowed>
  3228. </field>
  3229. <field id="model" xsi:type="AttributeString">
  3230. <sql>model</sql>
  3231. <default_value/>
  3232. <is_null_allowed>true</is_null_allowed>
  3233. </field>
  3234. <field id="serial_number" xsi:type="AttributeString">
  3235. <sql>serial_number</sql>
  3236. <default_value/>
  3237. <is_null_allowed>true</is_null_allowed>
  3238. </field>
  3239. <field id="asset_ref" xsi:type="AttributeString">
  3240. <sql>asset_ref</sql>
  3241. <default_value/>
  3242. <is_null_allowed>true</is_null_allowed>
  3243. </field>
  3244. </fields>
  3245. <methods/>
  3246. <presentation>
  3247. <details>
  3248. <items>
  3249. <item id="name">
  3250. <rank>10</rank>
  3251. </item>
  3252. <item id="status">
  3253. <rank>20</rank>
  3254. </item>
  3255. <item id="org_id">
  3256. <rank>30</rank>
  3257. </item>
  3258. <item id="importance">
  3259. <rank>40</rank>
  3260. </item>
  3261. <item id="brand">
  3262. <rank>50</rank>
  3263. </item>
  3264. <item id="model">
  3265. <rank>60</rank>
  3266. </item>
  3267. <item id="serial_number">
  3268. <rank>70</rank>
  3269. </item>
  3270. <item id="asset_ref">
  3271. <rank>80</rank>
  3272. </item>
  3273. <item id="contact_list">
  3274. <rank>90</rank>
  3275. </item>
  3276. <item id="document_list">
  3277. <rank>100</rank>
  3278. </item>
  3279. <item id="solution_list">
  3280. <rank>110</rank>
  3281. </item>
  3282. <item id="contract_list">
  3283. <rank>120</rank>
  3284. </item>
  3285. <item id="ticket_list">
  3286. <rank>130</rank>
  3287. </item>
  3288. </items>
  3289. </details>
  3290. <search>
  3291. <items>
  3292. <item id="name">
  3293. <rank>10</rank>
  3294. </item>
  3295. <item id="status">
  3296. <rank>20</rank>
  3297. </item>
  3298. <item id="org_id">
  3299. <rank>30</rank>
  3300. </item>
  3301. <item id="importance">
  3302. <rank>40</rank>
  3303. </item>
  3304. <item id="brand">
  3305. <rank>50</rank>
  3306. </item>
  3307. <item id="model">
  3308. <rank>60</rank>
  3309. </item>
  3310. <item id="serial_number">
  3311. <rank>70</rank>
  3312. </item>
  3313. <item id="asset_ref">
  3314. <rank>80</rank>
  3315. </item>
  3316. </items>
  3317. </search>
  3318. <list>
  3319. <items>
  3320. <item id="finalclass">
  3321. <rank>10</rank>
  3322. </item>
  3323. <item id="status">
  3324. <rank>20</rank>
  3325. </item>
  3326. <item id="org_id">
  3327. <rank>30</rank>
  3328. </item>
  3329. <item id="importance">
  3330. <rank>40</rank>
  3331. </item>
  3332. <item id="brand">
  3333. <rank>50</rank>
  3334. </item>
  3335. <item id="model">
  3336. <rank>60</rank>
  3337. </item>
  3338. <item id="serial_number">
  3339. <rank>70</rank>
  3340. </item>
  3341. <item id="asset_ref">
  3342. <rank>80</rank>
  3343. </item>
  3344. </items>
  3345. </list>
  3346. </presentation>
  3347. </class>
  3348. <class id="NetworkInterface" _delta="define">
  3349. <parent>ConnectableCI</parent>
  3350. <properties>
  3351. <category>bizmodel,searchable,configmgmt</category>
  3352. <abstract>false</abstract>
  3353. <key_type>autoincrement</key_type>
  3354. <db_table>networkinterface</db_table>
  3355. <db_key_field>id</db_key_field>
  3356. <db_final_class_field/>
  3357. <naming>
  3358. <format>%1$s - %2$s</format>
  3359. <attributes>
  3360. <attribute id="device_id_friendlyname"/>
  3361. <attribute id="name"/>
  3362. </attributes>
  3363. </naming>
  3364. <display_template/>
  3365. <icon>images/interface.png</icon>
  3366. <reconciliation>
  3367. <attributes>
  3368. <attribute id="name"/>
  3369. <attribute id="device_id"/>
  3370. <attribute id="device_name"/>
  3371. <attribute id="org_id"/>
  3372. </attributes>
  3373. </reconciliation>
  3374. </properties>
  3375. <fields>
  3376. <field id="device_id" xsi:type="AttributeExternalKey">
  3377. <filter><![CDATA[SELECT Device WHERE org_id = :this->org_id]]></filter>
  3378. <dependencies>
  3379. <attribute id="org_id"/>
  3380. </dependencies>
  3381. <sql>device_id</sql>
  3382. <target_class>Device</target_class>
  3383. <is_null_allowed>false</is_null_allowed>
  3384. <on_target_delete>DEL_AUTO</on_target_delete>
  3385. <jointype/>
  3386. </field>
  3387. <field id="device_name" xsi:type="AttributeExternalField">
  3388. <extkey_attcode>device_id</extkey_attcode>
  3389. <target_attcode>name</target_attcode>
  3390. </field>
  3391. <field id="logical_type" xsi:type="AttributeEnum">
  3392. <values>
  3393. <value>backup</value>
  3394. <value>logical</value>
  3395. <value>port</value>
  3396. <value>primary</value>
  3397. <value>secondary</value>
  3398. </values>
  3399. <sql>logical_type</sql>
  3400. <default_value>primary</default_value>
  3401. <is_null_allowed>false</is_null_allowed>
  3402. </field>
  3403. <field id="physical_type" xsi:type="AttributeEnum">
  3404. <values>
  3405. <value>atm</value>
  3406. <value>ethernet</value>
  3407. <value>framerelay</value>
  3408. <value>vlan</value>
  3409. </values>
  3410. <sql>physical_type</sql>
  3411. <default_value>ethernet</default_value>
  3412. <is_null_allowed>false</is_null_allowed>
  3413. </field>
  3414. <field id="ip_address" xsi:type="AttributeIPAddress">
  3415. <sql>ip_address</sql>
  3416. <default_value/>
  3417. <is_null_allowed>true</is_null_allowed>
  3418. </field>
  3419. <field id="ip_mask" xsi:type="AttributeIPAddress">
  3420. <sql>ip_mask</sql>
  3421. <default_value/>
  3422. <is_null_allowed>true</is_null_allowed>
  3423. </field>
  3424. <field id="mac_address" xsi:type="AttributeString">
  3425. <sql>mac_address</sql>
  3426. <default_value/>
  3427. <is_null_allowed>true</is_null_allowed>
  3428. </field>
  3429. <field id="speed" xsi:type="AttributeInteger">
  3430. <sql>speed</sql>
  3431. <default_value/>
  3432. <is_null_allowed>true</is_null_allowed>
  3433. </field>
  3434. <field id="duplex" xsi:type="AttributeEnum">
  3435. <values>
  3436. <value>full</value>
  3437. <value>half</value>
  3438. <value>auto</value>
  3439. <value>unknown</value>
  3440. </values>
  3441. <sql>duplex</sql>
  3442. <default_value>full</default_value>
  3443. <is_null_allowed>true</is_null_allowed>
  3444. </field>
  3445. <field id="connected_if" xsi:type="AttributeExternalKey">
  3446. <filter><![CDATA[SELECT NetworkInterface WHERE org_id = :this->org_id]]></filter>
  3447. <dependencies>
  3448. <attribute id="org_id"/>
  3449. </dependencies>
  3450. <sql>connected_if</sql>
  3451. <target_class>NetworkInterface</target_class>
  3452. <is_null_allowed>true</is_null_allowed>
  3453. <on_target_delete>DEL_AUTO</on_target_delete>
  3454. <jointype/>
  3455. </field>
  3456. <field id="connected_name" xsi:type="AttributeExternalField">
  3457. <extkey_attcode>connected_if</extkey_attcode>
  3458. <target_attcode>name</target_attcode>
  3459. </field>
  3460. <field id="connected_if_device_id" xsi:type="AttributeExternalField">
  3461. <extkey_attcode>connected_if</extkey_attcode>
  3462. <target_attcode>device_id</target_attcode>
  3463. </field>
  3464. <field id="connected_if_device_id_name" xsi:type="AttributeExternalField">
  3465. <extkey_attcode>connected_if</extkey_attcode>
  3466. <target_attcode>device_name</target_attcode>
  3467. </field>
  3468. <field id="link_type" xsi:type="AttributeEnum">
  3469. <values>
  3470. <value>uplink</value>
  3471. <value>downlink</value>
  3472. </values>
  3473. <sql>link_type</sql>
  3474. <default_value>uplink</default_value>
  3475. <is_null_allowed>false</is_null_allowed>
  3476. </field>
  3477. <field id="connected_if_device_id_friendlyname" xsi:type="AttributeExternalField">
  3478. <extkey_attcode>connected_if</extkey_attcode>
  3479. <target_attcode>device_id_friendlyname</target_attcode>
  3480. </field>
  3481. </fields>
  3482. <methods>
  3483. <method id="GetRelationQueries">
  3484. <static>true</static>
  3485. <access>public</access>
  3486. <type>Overload-DBObject</type>
  3487. <code><![CDATA[ public static function GetRelationQueries($sRelCode)
  3488. {
  3489. switch ($sRelCode)
  3490. {
  3491. case "impacts":
  3492. $aRels = array(
  3493. "connected_devices" => array("sQuery"=>"SELECT Device AS dev JOIN NetworkInterface AS if1 ON if1.device_id = dev.id JOIN NetworkInterface AS if2 ON if2.connected_if = if1.id WHERE if2.id = :this->id AND if2.link_type='downlink'", "bPropagate"=>true, "iDistance"=>5),
  3494. );
  3495. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  3496. break;
  3497. default:
  3498. return parent::GetRelationQueries($sRelCode);
  3499. }
  3500. }]]></code>
  3501. </method>
  3502. <method id="UpdateConnectedInterface">
  3503. <static>false</static>
  3504. <access>protected</access>
  3505. <type>Overload-DBObject</type>
  3506. <code><![CDATA[ protected function UpdateConnectedInterface()
  3507. {
  3508. $iPrevTargetIf = $this->m_aOrigValues['connected_if']; // The interface this interface was connected to
  3509. if ($iPrevTargetIf == $this->Get('connected_if'))
  3510. {
  3511. return;
  3512. }
  3513. if ($iPrevTargetIf != 0)
  3514. {
  3515. // The interface was previosuly connected to another interface. Make sure that we reset this 'previously connected interface'
  3516. $oPrevConnectedIf = MetaModel::GetObject('NetworkInterface', $iPrevTargetIf, false);
  3517. if (!is_null($oPrevConnectedIf))
  3518. {
  3519. if ($oPrevConnectedIf->Get('connected_if') == $this->GetKey()) // protection against reentrance
  3520. {
  3521. $oPrevConnectedIf->Set('connected_if', 0);
  3522. $oPrevConnectedIf->DBUpdate();
  3523. }
  3524. }
  3525. }
  3526. $oConnIf = MetaModel::GetObject('NetworkInterface', $this->Get('connected_if'), false /* no exception if not found */);
  3527. if (!is_null($oConnIf))
  3528. {
  3529. $sLink = $this->Get('link_type');
  3530. $sConnLink = ($sLink == 'uplink') ? 'downlink' : 'uplink';
  3531. if (($oConnIf->Get('connected_if') != $this->GetKey()) || ($sConnLink != $oConnIf->Get('link_type')))
  3532. {
  3533. // Connect the remote interface to the current one
  3534. $oConnIf->Set('connected_if', $this->GetKey());
  3535. $oConnIf->Set('link_type', $sConnLink);
  3536. // Need to backup the current change, because it is reset when DBUpdateTracked is complete
  3537. $oConnIf->DBUpdate();
  3538. }
  3539. }
  3540. }]]></code>
  3541. </method>
  3542. <method id="AfterInsert">
  3543. <static>false</static>
  3544. <access>protected</access>
  3545. <type>Overload-DBObject</type>
  3546. <code><![CDATA[ protected function AfterInsert()
  3547. {
  3548. $this->UpdateConnectedInterface();
  3549. parent::AfterInsert();
  3550. }]]></code>
  3551. </method>
  3552. <method id="AfterUpdate">
  3553. <static>false</static>
  3554. <access>protected</access>
  3555. <type>Overload-DBObject</type>
  3556. <code><![CDATA[ protected function AfterUpdate()
  3557. {
  3558. $this->UpdateConnectedInterface();
  3559. parent::AfterUpdate();
  3560. }]]></code>
  3561. </method>
  3562. </methods>
  3563. <presentation>
  3564. <details>
  3565. <items>
  3566. <item id="name">
  3567. <rank>10</rank>
  3568. </item>
  3569. <item id="status">
  3570. <rank>20</rank>
  3571. </item>
  3572. <item id="org_id">
  3573. <rank>30</rank>
  3574. </item>
  3575. <item id="importance">
  3576. <rank>40</rank>
  3577. </item>
  3578. <item id="brand">
  3579. <rank>50</rank>
  3580. </item>
  3581. <item id="model">
  3582. <rank>60</rank>
  3583. </item>
  3584. <item id="serial_number">
  3585. <rank>70</rank>
  3586. </item>
  3587. <item id="asset_ref">
  3588. <rank>80</rank>
  3589. </item>
  3590. <item id="device_id">
  3591. <rank>90</rank>
  3592. </item>
  3593. <item id="logical_type">
  3594. <rank>100</rank>
  3595. </item>
  3596. <item id="physical_type">
  3597. <rank>110</rank>
  3598. </item>
  3599. <item id="ip_address">
  3600. <rank>120</rank>
  3601. </item>
  3602. <item id="ip_mask">
  3603. <rank>130</rank>
  3604. </item>
  3605. <item id="mac_address">
  3606. <rank>140</rank>
  3607. </item>
  3608. <item id="speed">
  3609. <rank>150</rank>
  3610. </item>
  3611. <item id="duplex">
  3612. <rank>160</rank>
  3613. </item>
  3614. <item id="link_type">
  3615. <rank>170</rank>
  3616. </item>
  3617. <item id="connected_if">
  3618. <rank>180</rank>
  3619. </item>
  3620. <item id="connected_if_device_id">
  3621. <rank>190</rank>
  3622. </item>
  3623. <item id="contact_list">
  3624. <rank>200</rank>
  3625. </item>
  3626. <item id="document_list">
  3627. <rank>210</rank>
  3628. </item>
  3629. <item id="solution_list">
  3630. <rank>220</rank>
  3631. </item>
  3632. <item id="contract_list">
  3633. <rank>230</rank>
  3634. </item>
  3635. <item id="ticket_list">
  3636. <rank>240</rank>
  3637. </item>
  3638. </items>
  3639. </details>
  3640. <search>
  3641. <items>
  3642. <item id="name">
  3643. <rank>10</rank>
  3644. </item>
  3645. <item id="status">
  3646. <rank>20</rank>
  3647. </item>
  3648. <item id="org_id">
  3649. <rank>30</rank>
  3650. </item>
  3651. <item id="importance">
  3652. <rank>40</rank>
  3653. </item>
  3654. <item id="device_id">
  3655. <rank>50</rank>
  3656. </item>
  3657. <item id="logical_type">
  3658. <rank>60</rank>
  3659. </item>
  3660. <item id="physical_type">
  3661. <rank>70</rank>
  3662. </item>
  3663. <item id="ip_address">
  3664. <rank>80</rank>
  3665. </item>
  3666. <item id="ip_mask">
  3667. <rank>90</rank>
  3668. </item>
  3669. <item id="mac_address">
  3670. <rank>100</rank>
  3671. </item>
  3672. <item id="connected_if_device_id">
  3673. <rank>110</rank>
  3674. </item>
  3675. </items>
  3676. </search>
  3677. <list>
  3678. <items>
  3679. <item id="status">
  3680. <rank>10</rank>
  3681. </item>
  3682. <item id="ip_address">
  3683. <rank>20</rank>
  3684. </item>
  3685. <item id="importance">
  3686. <rank>30</rank>
  3687. </item>
  3688. <item id="device_id">
  3689. <rank>40</rank>
  3690. </item>
  3691. <item id="logical_type">
  3692. <rank>50</rank>
  3693. </item>
  3694. <item id="physical_type">
  3695. <rank>60</rank>
  3696. </item>
  3697. <item id="link_type">
  3698. <rank>70</rank>
  3699. </item>
  3700. <item id="connected_if_device_id">
  3701. <rank>80</rank>
  3702. </item>
  3703. </items>
  3704. </list>
  3705. </presentation>
  3706. </class>
  3707. <class id="Device" _delta="define">
  3708. <parent>ConnectableCI</parent>
  3709. <properties>
  3710. <category>bizmodel,searchable,configmgmt</category>
  3711. <abstract>true</abstract>
  3712. <key_type>autoincrement</key_type>
  3713. <db_table>device</db_table>
  3714. <db_key_field>id</db_key_field>
  3715. <db_final_class_field/>
  3716. <naming>
  3717. <format>%1$s</format>
  3718. <attributes>
  3719. <attribute id="name"/>
  3720. </attributes>
  3721. </naming>
  3722. <display_template/>
  3723. <icon>images/server.png</icon>
  3724. <reconciliation>
  3725. <attributes>
  3726. <attribute id="name"/>
  3727. <attribute id="org_id"/>
  3728. <attribute id="owner_name"/>
  3729. </attributes>
  3730. </reconciliation>
  3731. </properties>
  3732. <fields>
  3733. <field id="nwinterface_list" xsi:type="AttributeLinkedSet">
  3734. <linked_class>NetworkInterface</linked_class>
  3735. <ext_key_to_me>device_id</ext_key_to_me>
  3736. <count_min>0</count_min>
  3737. <count_max>0</count_max>
  3738. </field>
  3739. </fields>
  3740. <methods>
  3741. <method id="GetRelationQueries">
  3742. <static>true</static>
  3743. <access>public</access>
  3744. <type>Overload-DBObject</type>
  3745. <code><![CDATA[ public static function GetRelationQueries($sRelCode)
  3746. {
  3747. switch ($sRelCode)
  3748. {
  3749. case "impacts":
  3750. $aRels = array(
  3751. "applications" => array("sQuery"=>"SELECT SoftwareInstance AS app WHERE app.device_id = :this->id", "bPropagate"=>true, "iDistance"=>5),
  3752. "connected_devices" => array("sQuery"=>"SELECT Device AS dev JOIN NetworkInterface AS if1 ON if1.device_id = dev.id JOIN NetworkInterface AS if2 ON if2.connected_if = if1.id WHERE if2.device_id = :this->id AND if2.link_type='downlink'", "bPropagate"=>true, "iDistance"=>5),
  3753. );
  3754. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  3755. break;
  3756. case "depends on":
  3757. $aRels = array(
  3758. "connected_devices" => array("sQuery"=>"SELECT Device AS dev JOIN NetworkInterface AS if1 ON if1.device_id = dev.id JOIN NetworkInterface AS if2 ON if2.connected_if = if1.id WHERE if2.device_id = :this->id AND if2.link_type='uplink'", "bPropagate"=>true, "iDistance"=>5),
  3759. );
  3760. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  3761. break;
  3762. default:
  3763. return parent::GetRelationQueries($sRelCode);
  3764. }
  3765. }]]></code>
  3766. </method>
  3767. </methods>
  3768. <presentation>
  3769. <details>
  3770. <items>
  3771. <item id="name">
  3772. <rank>10</rank>
  3773. </item>
  3774. <item id="status">
  3775. <rank>20</rank>
  3776. </item>
  3777. <item id="org_id">
  3778. <rank>30</rank>
  3779. </item>
  3780. <item id="importance">
  3781. <rank>40</rank>
  3782. </item>
  3783. <item id="brand">
  3784. <rank>50</rank>
  3785. </item>
  3786. <item id="model">
  3787. <rank>60</rank>
  3788. </item>
  3789. <item id="serial_number">
  3790. <rank>70</rank>
  3791. </item>
  3792. <item id="asset_ref">
  3793. <rank>80</rank>
  3794. </item>
  3795. <item id="contact_list">
  3796. <rank>90</rank>
  3797. </item>
  3798. <item id="document_list">
  3799. <rank>100</rank>
  3800. </item>
  3801. <item id="solution_list">
  3802. <rank>110</rank>
  3803. </item>
  3804. <item id="contract_list">
  3805. <rank>120</rank>
  3806. </item>
  3807. <item id="ticket_list">
  3808. <rank>130</rank>
  3809. </item>
  3810. <item id="nwinterface_list">
  3811. <rank>140</rank>
  3812. </item>
  3813. </items>
  3814. </details>
  3815. <search>
  3816. <items>
  3817. <item id="name">
  3818. <rank>10</rank>
  3819. </item>
  3820. <item id="status">
  3821. <rank>20</rank>
  3822. </item>
  3823. <item id="org_id">
  3824. <rank>30</rank>
  3825. </item>
  3826. <item id="importance">
  3827. <rank>40</rank>
  3828. </item>
  3829. <item id="brand">
  3830. <rank>50</rank>
  3831. </item>
  3832. <item id="model">
  3833. <rank>60</rank>
  3834. </item>
  3835. <item id="serial_number">
  3836. <rank>70</rank>
  3837. </item>
  3838. <item id="asset_ref">
  3839. <rank>80</rank>
  3840. </item>
  3841. </items>
  3842. </search>
  3843. <list>
  3844. <items>
  3845. <item id="finalclass">
  3846. <rank>10</rank>
  3847. </item>
  3848. <item id="status">
  3849. <rank>20</rank>
  3850. </item>
  3851. <item id="org_id">
  3852. <rank>30</rank>
  3853. </item>
  3854. <item id="importance">
  3855. <rank>40</rank>
  3856. </item>
  3857. <item id="brand">
  3858. <rank>50</rank>
  3859. </item>
  3860. <item id="model">
  3861. <rank>60</rank>
  3862. </item>
  3863. <item id="serial_number">
  3864. <rank>70</rank>
  3865. </item>
  3866. <item id="asset_ref">
  3867. <rank>80</rank>
  3868. </item>
  3869. </items>
  3870. </list>
  3871. </presentation>
  3872. </class>
  3873. <class id="PC" _delta="define">
  3874. <parent>Device</parent>
  3875. <properties>
  3876. <category>bizmodel,searchable,configmgmt</category>
  3877. <abstract>false</abstract>
  3878. <key_type>autoincrement</key_type>
  3879. <db_table>pc</db_table>
  3880. <db_key_field>id</db_key_field>
  3881. <db_final_class_field/>
  3882. <naming>
  3883. <format>%1$s</format>
  3884. <attributes>
  3885. <attribute id="name"/>
  3886. </attributes>
  3887. </naming>
  3888. <display_template/>
  3889. <icon>images/laptop.png</icon>
  3890. <reconciliation>
  3891. <attributes>
  3892. <attribute id="name"/>
  3893. <attribute id="org_id"/>
  3894. <attribute id="owner_name"/>
  3895. </attributes>
  3896. </reconciliation>
  3897. </properties>
  3898. <fields>
  3899. <field id="cpu" xsi:type="AttributeString">
  3900. <sql>cpu</sql>
  3901. <default_value/>
  3902. <is_null_allowed>true</is_null_allowed>
  3903. </field>
  3904. <field id="ram" xsi:type="AttributeString">
  3905. <sql>ram</sql>
  3906. <default_value/>
  3907. <is_null_allowed>true</is_null_allowed>
  3908. </field>
  3909. <field id="hdd" xsi:type="AttributeString">
  3910. <sql>hdd</sql>
  3911. <default_value/>
  3912. <is_null_allowed>true</is_null_allowed>
  3913. </field>
  3914. <field id="os_family" xsi:type="AttributeString">
  3915. <sql>os_family</sql>
  3916. <default_value/>
  3917. <is_null_allowed>true</is_null_allowed>
  3918. </field>
  3919. <field id="os_version" xsi:type="AttributeString">
  3920. <sql>os_version</sql>
  3921. <default_value/>
  3922. <is_null_allowed>true</is_null_allowed>
  3923. </field>
  3924. <field id="application_list" xsi:type="AttributeLinkedSet">
  3925. <linked_class>SoftwareInstance</linked_class>
  3926. <ext_key_to_me>device_id</ext_key_to_me>
  3927. <count_min>0</count_min>
  3928. <count_max>0</count_max>
  3929. </field>
  3930. <field id="patch_list" xsi:type="AttributeLinkedSetIndirect">
  3931. <linked_class>lnkPatchToCI</linked_class>
  3932. <ext_key_to_me>ci_id</ext_key_to_me>
  3933. <count_min>0</count_min>
  3934. <count_max>0</count_max>
  3935. <ext_key_to_remote>patch_id</ext_key_to_remote>
  3936. </field>
  3937. </fields>
  3938. <methods/>
  3939. <presentation>
  3940. <details>
  3941. <items>
  3942. <item id="name">
  3943. <rank>10</rank>
  3944. </item>
  3945. <item id="status">
  3946. <rank>20</rank>
  3947. </item>
  3948. <item id="org_id">
  3949. <rank>30</rank>
  3950. </item>
  3951. <item id="importance">
  3952. <rank>40</rank>
  3953. </item>
  3954. <item id="brand">
  3955. <rank>50</rank>
  3956. </item>
  3957. <item id="model">
  3958. <rank>60</rank>
  3959. </item>
  3960. <item id="serial_number">
  3961. <rank>70</rank>
  3962. </item>
  3963. <item id="asset_ref">
  3964. <rank>80</rank>
  3965. </item>
  3966. <item id="cpu">
  3967. <rank>90</rank>
  3968. </item>
  3969. <item id="ram">
  3970. <rank>100</rank>
  3971. </item>
  3972. <item id="hdd">
  3973. <rank>110</rank>
  3974. </item>
  3975. <item id="os_family">
  3976. <rank>120</rank>
  3977. </item>
  3978. <item id="os_version">
  3979. <rank>130</rank>
  3980. </item>
  3981. <item id="contact_list">
  3982. <rank>140</rank>
  3983. </item>
  3984. <item id="document_list">
  3985. <rank>150</rank>
  3986. </item>
  3987. <item id="solution_list">
  3988. <rank>160</rank>
  3989. </item>
  3990. <item id="contract_list">
  3991. <rank>170</rank>
  3992. </item>
  3993. <item id="ticket_list">
  3994. <rank>180</rank>
  3995. </item>
  3996. <item id="nwinterface_list">
  3997. <rank>190</rank>
  3998. </item>
  3999. <item id="application_list">
  4000. <rank>200</rank>
  4001. </item>
  4002. <item id="patch_list">
  4003. <rank>210</rank>
  4004. </item>
  4005. </items>
  4006. </details>
  4007. <search>
  4008. <items>
  4009. <item id="name">
  4010. <rank>10</rank>
  4011. </item>
  4012. <item id="status">
  4013. <rank>20</rank>
  4014. </item>
  4015. <item id="org_id">
  4016. <rank>30</rank>
  4017. </item>
  4018. <item id="importance">
  4019. <rank>40</rank>
  4020. </item>
  4021. <item id="brand">
  4022. <rank>50</rank>
  4023. </item>
  4024. <item id="model">
  4025. <rank>60</rank>
  4026. </item>
  4027. <item id="serial_number">
  4028. <rank>70</rank>
  4029. </item>
  4030. <item id="asset_ref">
  4031. <rank>80</rank>
  4032. </item>
  4033. <item id="os_family">
  4034. <rank>90</rank>
  4035. </item>
  4036. <item id="os_version">
  4037. <rank>100</rank>
  4038. </item>
  4039. </items>
  4040. </search>
  4041. <list>
  4042. <items>
  4043. <item id="status">
  4044. <rank>10</rank>
  4045. </item>
  4046. <item id="org_id">
  4047. <rank>20</rank>
  4048. </item>
  4049. <item id="importance">
  4050. <rank>30</rank>
  4051. </item>
  4052. <item id="brand">
  4053. <rank>40</rank>
  4054. </item>
  4055. <item id="model">
  4056. <rank>50</rank>
  4057. </item>
  4058. <item id="os_family">
  4059. <rank>60</rank>
  4060. </item>
  4061. </items>
  4062. </list>
  4063. </presentation>
  4064. </class>
  4065. <class id="MobileCI" _delta="define">
  4066. <parent>Device</parent>
  4067. <properties>
  4068. <category>bizmodel,searchable,configmgmt</category>
  4069. <abstract>true</abstract>
  4070. <key_type>autoincrement</key_type>
  4071. <db_table>mobileci</db_table>
  4072. <db_key_field>id</db_key_field>
  4073. <db_final_class_field/>
  4074. <naming>
  4075. <format>%1$s</format>
  4076. <attributes>
  4077. <attribute id="name"/>
  4078. </attributes>
  4079. </naming>
  4080. <display_template/>
  4081. <icon>images/mobile-phone.png</icon>
  4082. <reconciliation>
  4083. <attributes>
  4084. <attribute id="name"/>
  4085. <attribute id="org_id"/>
  4086. <attribute id="owner_name"/>
  4087. </attributes>
  4088. </reconciliation>
  4089. </properties>
  4090. <fields/>
  4091. <methods/>
  4092. <presentation>
  4093. <details>
  4094. <items>
  4095. <item id="name">
  4096. <rank>10</rank>
  4097. </item>
  4098. <item id="status">
  4099. <rank>20</rank>
  4100. </item>
  4101. <item id="org_id">
  4102. <rank>30</rank>
  4103. </item>
  4104. <item id="importance">
  4105. <rank>40</rank>
  4106. </item>
  4107. <item id="brand">
  4108. <rank>50</rank>
  4109. </item>
  4110. <item id="model">
  4111. <rank>60</rank>
  4112. </item>
  4113. <item id="serial_number">
  4114. <rank>70</rank>
  4115. </item>
  4116. <item id="asset_ref">
  4117. <rank>80</rank>
  4118. </item>
  4119. <item id="contact_list">
  4120. <rank>90</rank>
  4121. </item>
  4122. <item id="document_list">
  4123. <rank>100</rank>
  4124. </item>
  4125. <item id="solution_list">
  4126. <rank>110</rank>
  4127. </item>
  4128. <item id="contract_list">
  4129. <rank>120</rank>
  4130. </item>
  4131. <item id="ticket_list">
  4132. <rank>130</rank>
  4133. </item>
  4134. <item id="nwinterface_list">
  4135. <rank>140</rank>
  4136. </item>
  4137. </items>
  4138. </details>
  4139. <search>
  4140. <items>
  4141. <item id="name">
  4142. <rank>10</rank>
  4143. </item>
  4144. <item id="status">
  4145. <rank>20</rank>
  4146. </item>
  4147. <item id="org_id">
  4148. <rank>30</rank>
  4149. </item>
  4150. <item id="importance">
  4151. <rank>40</rank>
  4152. </item>
  4153. <item id="brand">
  4154. <rank>50</rank>
  4155. </item>
  4156. <item id="model">
  4157. <rank>60</rank>
  4158. </item>
  4159. <item id="serial_number">
  4160. <rank>70</rank>
  4161. </item>
  4162. <item id="asset_ref">
  4163. <rank>80</rank>
  4164. </item>
  4165. </items>
  4166. </search>
  4167. <list>
  4168. <items>
  4169. <item id="status">
  4170. <rank>10</rank>
  4171. </item>
  4172. <item id="org_id">
  4173. <rank>20</rank>
  4174. </item>
  4175. <item id="importance">
  4176. <rank>30</rank>
  4177. </item>
  4178. <item id="brand">
  4179. <rank>40</rank>
  4180. </item>
  4181. <item id="model">
  4182. <rank>50</rank>
  4183. </item>
  4184. </items>
  4185. </list>
  4186. </presentation>
  4187. </class>
  4188. <class id="MobilePhone" _delta="define">
  4189. <parent>MobileCI</parent>
  4190. <properties>
  4191. <category>bizmodel,searchable,configmgmt</category>
  4192. <abstract>false</abstract>
  4193. <key_type>autoincrement</key_type>
  4194. <db_table>mobilephone</db_table>
  4195. <db_key_field>id</db_key_field>
  4196. <db_final_class_field/>
  4197. <naming>
  4198. <format>%1$s</format>
  4199. <attributes>
  4200. <attribute id="name"/>
  4201. </attributes>
  4202. </naming>
  4203. <display_template/>
  4204. <icon>images/mobile-phone.png</icon>
  4205. <reconciliation>
  4206. <attributes>
  4207. <attribute id="name"/>
  4208. <attribute id="org_id"/>
  4209. <attribute id="owner_name"/>
  4210. </attributes>
  4211. </reconciliation>
  4212. </properties>
  4213. <fields>
  4214. <field id="number" xsi:type="AttributeString">
  4215. <sql>number</sql>
  4216. <default_value/>
  4217. <is_null_allowed>true</is_null_allowed>
  4218. </field>
  4219. <field id="imei" xsi:type="AttributeString">
  4220. <sql>IMIE</sql>
  4221. <default_value/>
  4222. <is_null_allowed>true</is_null_allowed>
  4223. </field>
  4224. <field id="hw_pin" xsi:type="AttributeString">
  4225. <sql>hw_pin</sql>
  4226. <default_value/>
  4227. <is_null_allowed>true</is_null_allowed>
  4228. </field>
  4229. </fields>
  4230. <methods/>
  4231. <presentation>
  4232. <details>
  4233. <items>
  4234. <item id="name">
  4235. <rank>10</rank>
  4236. </item>
  4237. <item id="status">
  4238. <rank>20</rank>
  4239. </item>
  4240. <item id="org_id">
  4241. <rank>30</rank>
  4242. </item>
  4243. <item id="importance">
  4244. <rank>40</rank>
  4245. </item>
  4246. <item id="brand">
  4247. <rank>50</rank>
  4248. </item>
  4249. <item id="model">
  4250. <rank>60</rank>
  4251. </item>
  4252. <item id="serial_number">
  4253. <rank>70</rank>
  4254. </item>
  4255. <item id="asset_ref">
  4256. <rank>80</rank>
  4257. </item>
  4258. <item id="number">
  4259. <rank>90</rank>
  4260. </item>
  4261. <item id="imei">
  4262. <rank>100</rank>
  4263. </item>
  4264. <item id="hw_pin">
  4265. <rank>110</rank>
  4266. </item>
  4267. <item id="contact_list">
  4268. <rank>120</rank>
  4269. </item>
  4270. <item id="document_list">
  4271. <rank>130</rank>
  4272. </item>
  4273. <item id="solution_list">
  4274. <rank>140</rank>
  4275. </item>
  4276. <item id="contract_list">
  4277. <rank>150</rank>
  4278. </item>
  4279. <item id="ticket_list">
  4280. <rank>160</rank>
  4281. </item>
  4282. <item id="nwinterface_list">
  4283. <rank>170</rank>
  4284. </item>
  4285. </items>
  4286. </details>
  4287. <search>
  4288. <items>
  4289. <item id="name">
  4290. <rank>10</rank>
  4291. </item>
  4292. <item id="status">
  4293. <rank>20</rank>
  4294. </item>
  4295. <item id="org_id">
  4296. <rank>30</rank>
  4297. </item>
  4298. <item id="importance">
  4299. <rank>40</rank>
  4300. </item>
  4301. <item id="brand">
  4302. <rank>50</rank>
  4303. </item>
  4304. <item id="model">
  4305. <rank>60</rank>
  4306. </item>
  4307. <item id="serial_number">
  4308. <rank>70</rank>
  4309. </item>
  4310. <item id="asset_ref">
  4311. <rank>80</rank>
  4312. </item>
  4313. <item id="number">
  4314. <rank>90</rank>
  4315. </item>
  4316. <item id="imei">
  4317. <rank>100</rank>
  4318. </item>
  4319. </items>
  4320. </search>
  4321. <list>
  4322. <items>
  4323. <item id="status">
  4324. <rank>10</rank>
  4325. </item>
  4326. <item id="org_id">
  4327. <rank>20</rank>
  4328. </item>
  4329. <item id="importance">
  4330. <rank>30</rank>
  4331. </item>
  4332. <item id="brand">
  4333. <rank>40</rank>
  4334. </item>
  4335. <item id="model">
  4336. <rank>50</rank>
  4337. </item>
  4338. </items>
  4339. </list>
  4340. </presentation>
  4341. </class>
  4342. <class id="InfrastructureCI" _delta="define">
  4343. <parent>Device</parent>
  4344. <properties>
  4345. <category>bizmodel,searchable,configmgmt</category>
  4346. <abstract>true</abstract>
  4347. <key_type>autoincrement</key_type>
  4348. <db_table>infrastructureci</db_table>
  4349. <db_key_field>id</db_key_field>
  4350. <db_final_class_field/>
  4351. <naming>
  4352. <format>%1$s</format>
  4353. <attributes>
  4354. <attribute id="name"/>
  4355. </attributes>
  4356. </naming>
  4357. <display_template/>
  4358. <icon>images/server.png</icon>
  4359. <reconciliation>
  4360. <attributes>
  4361. <attribute id="name"/>
  4362. <attribute id="org_id"/>
  4363. <attribute id="owner_name"/>
  4364. <attribute id="location_id"/>
  4365. <attribute id="location_name"/>
  4366. </attributes>
  4367. </reconciliation>
  4368. </properties>
  4369. <fields>
  4370. <field id="description" xsi:type="AttributeText">
  4371. <sql>description</sql>
  4372. <default_value/>
  4373. <is_null_allowed>true</is_null_allowed>
  4374. </field>
  4375. <field id="location_id" xsi:type="AttributeExternalKey">
  4376. <filter><![CDATA[SELECT Location AS l WHERE l.org_id = :this->org_id]]></filter>
  4377. <dependencies>
  4378. <attribute id="org_id"/>
  4379. </dependencies>
  4380. <sql>location_id</sql>
  4381. <target_class>Location</target_class>
  4382. <is_null_allowed>true</is_null_allowed>
  4383. <on_target_delete>DEL_MANUAL</on_target_delete>
  4384. <jointype/>
  4385. </field>
  4386. <field id="location_name" xsi:type="AttributeExternalField">
  4387. <extkey_attcode>location_id</extkey_attcode>
  4388. <target_attcode>name</target_attcode>
  4389. </field>
  4390. <field id="location_details" xsi:type="AttributeText">
  4391. <sql>location_details</sql>
  4392. <default_value/>
  4393. <is_null_allowed>true</is_null_allowed>
  4394. </field>
  4395. <field id="management_ip" xsi:type="AttributeIPAddress">
  4396. <sql>management_ip</sql>
  4397. <default_value/>
  4398. <is_null_allowed>true</is_null_allowed>
  4399. </field>
  4400. <field id="default_gateway" xsi:type="AttributeString">
  4401. <sql>default_gateway</sql>
  4402. <default_value/>
  4403. <is_null_allowed>true</is_null_allowed>
  4404. </field>
  4405. </fields>
  4406. <methods/>
  4407. <presentation>
  4408. <details>
  4409. <items>
  4410. <item id="name">
  4411. <rank>10</rank>
  4412. </item>
  4413. <item id="status">
  4414. <rank>20</rank>
  4415. </item>
  4416. <item id="org_id">
  4417. <rank>30</rank>
  4418. </item>
  4419. <item id="importance">
  4420. <rank>40</rank>
  4421. </item>
  4422. <item id="brand">
  4423. <rank>50</rank>
  4424. </item>
  4425. <item id="model">
  4426. <rank>60</rank>
  4427. </item>
  4428. <item id="serial_number">
  4429. <rank>70</rank>
  4430. </item>
  4431. <item id="asset_ref">
  4432. <rank>80</rank>
  4433. </item>
  4434. <item id="description">
  4435. <rank>90</rank>
  4436. </item>
  4437. <item id="location_id">
  4438. <rank>100</rank>
  4439. </item>
  4440. <item id="location_details">
  4441. <rank>110</rank>
  4442. </item>
  4443. <item id="management_ip">
  4444. <rank>120</rank>
  4445. </item>
  4446. <item id="default_gateway">
  4447. <rank>130</rank>
  4448. </item>
  4449. <item id="contact_list">
  4450. <rank>140</rank>
  4451. </item>
  4452. <item id="document_list">
  4453. <rank>150</rank>
  4454. </item>
  4455. <item id="solution_list">
  4456. <rank>160</rank>
  4457. </item>
  4458. <item id="contract_list">
  4459. <rank>170</rank>
  4460. </item>
  4461. <item id="ticket_list">
  4462. <rank>180</rank>
  4463. </item>
  4464. <item id="nwinterface_list">
  4465. <rank>190</rank>
  4466. </item>
  4467. </items>
  4468. </details>
  4469. <search>
  4470. <items>
  4471. <item id="name">
  4472. <rank>10</rank>
  4473. </item>
  4474. <item id="status">
  4475. <rank>20</rank>
  4476. </item>
  4477. <item id="org_id">
  4478. <rank>30</rank>
  4479. </item>
  4480. <item id="importance">
  4481. <rank>40</rank>
  4482. </item>
  4483. <item id="brand">
  4484. <rank>50</rank>
  4485. </item>
  4486. <item id="model">
  4487. <rank>60</rank>
  4488. </item>
  4489. <item id="serial_number">
  4490. <rank>70</rank>
  4491. </item>
  4492. <item id="asset_ref">
  4493. <rank>80</rank>
  4494. </item>
  4495. <item id="location_id">
  4496. <rank>90</rank>
  4497. </item>
  4498. <item id="management_ip">
  4499. <rank>100</rank>
  4500. </item>
  4501. <item id="default_gateway">
  4502. <rank>110</rank>
  4503. </item>
  4504. </items>
  4505. </search>
  4506. <list>
  4507. <items>
  4508. <item id="status">
  4509. <rank>10</rank>
  4510. </item>
  4511. <item id="org_id">
  4512. <rank>20</rank>
  4513. </item>
  4514. <item id="importance">
  4515. <rank>30</rank>
  4516. </item>
  4517. <item id="brand">
  4518. <rank>40</rank>
  4519. </item>
  4520. <item id="model">
  4521. <rank>50</rank>
  4522. </item>
  4523. <item id="location_id">
  4524. <rank>60</rank>
  4525. </item>
  4526. </items>
  4527. </list>
  4528. </presentation>
  4529. </class>
  4530. <class id="NetworkDevice" _delta="define">
  4531. <parent>InfrastructureCI</parent>
  4532. <properties>
  4533. <category>bizmodel,searchable,configmgmt</category>
  4534. <abstract>false</abstract>
  4535. <key_type>autoincrement</key_type>
  4536. <db_table>networkdevice</db_table>
  4537. <db_key_field>id</db_key_field>
  4538. <db_final_class_field/>
  4539. <naming>
  4540. <format>%1$s</format>
  4541. <attributes>
  4542. <attribute id="name"/>
  4543. </attributes>
  4544. </naming>
  4545. <display_template/>
  4546. <icon>images/switch.png</icon>
  4547. <reconciliation>
  4548. <attributes>
  4549. <attribute id="name"/>
  4550. <attribute id="org_id"/>
  4551. <attribute id="owner_name"/>
  4552. <attribute id="location_id"/>
  4553. <attribute id="location_name"/>
  4554. </attributes>
  4555. </reconciliation>
  4556. </properties>
  4557. <fields>
  4558. <field id="type" xsi:type="AttributeEnum">
  4559. <values>
  4560. <value>wanaccelerator</value>
  4561. <value>firewall</value>
  4562. <value>hub</value>
  4563. <value>loadbalancer</value>
  4564. <value>router</value>
  4565. <value>switch</value>
  4566. </values>
  4567. <sql>type</sql>
  4568. <default_value>switch</default_value>
  4569. <is_null_allowed>true</is_null_allowed>
  4570. </field>
  4571. <field id="ios_version" xsi:type="AttributeString">
  4572. <sql>ios_version</sql>
  4573. <default_value/>
  4574. <is_null_allowed>true</is_null_allowed>
  4575. </field>
  4576. <field id="ram" xsi:type="AttributeString">
  4577. <sql>ram</sql>
  4578. <default_value/>
  4579. <is_null_allowed>true</is_null_allowed>
  4580. </field>
  4581. <field id="snmp_read" xsi:type="AttributeString">
  4582. <sql>snmp_read</sql>
  4583. <default_value/>
  4584. <is_null_allowed>true</is_null_allowed>
  4585. </field>
  4586. <field id="snmp_write" xsi:type="AttributeString">
  4587. <sql>snmp_write</sql>
  4588. <default_value/>
  4589. <is_null_allowed>true</is_null_allowed>
  4590. </field>
  4591. </fields>
  4592. <methods/>
  4593. <presentation>
  4594. <details>
  4595. <items>
  4596. <item id="name">
  4597. <rank>10</rank>
  4598. </item>
  4599. <item id="status">
  4600. <rank>20</rank>
  4601. </item>
  4602. <item id="org_id">
  4603. <rank>30</rank>
  4604. </item>
  4605. <item id="importance">
  4606. <rank>40</rank>
  4607. </item>
  4608. <item id="brand">
  4609. <rank>50</rank>
  4610. </item>
  4611. <item id="model">
  4612. <rank>60</rank>
  4613. </item>
  4614. <item id="serial_number">
  4615. <rank>70</rank>
  4616. </item>
  4617. <item id="asset_ref">
  4618. <rank>80</rank>
  4619. </item>
  4620. <item id="description">
  4621. <rank>90</rank>
  4622. </item>
  4623. <item id="location_id">
  4624. <rank>100</rank>
  4625. </item>
  4626. <item id="location_details">
  4627. <rank>110</rank>
  4628. </item>
  4629. <item id="management_ip">
  4630. <rank>120</rank>
  4631. </item>
  4632. <item id="default_gateway">
  4633. <rank>130</rank>
  4634. </item>
  4635. <item id="type">
  4636. <rank>140</rank>
  4637. </item>
  4638. <item id="ios_version">
  4639. <rank>150</rank>
  4640. </item>
  4641. <item id="ram">
  4642. <rank>160</rank>
  4643. </item>
  4644. <item id="snmp_read">
  4645. <rank>170</rank>
  4646. </item>
  4647. <item id="snmp_write">
  4648. <rank>180</rank>
  4649. </item>
  4650. <item id="contact_list">
  4651. <rank>190</rank>
  4652. </item>
  4653. <item id="document_list">
  4654. <rank>200</rank>
  4655. </item>
  4656. <item id="solution_list">
  4657. <rank>210</rank>
  4658. </item>
  4659. <item id="contract_list">
  4660. <rank>220</rank>
  4661. </item>
  4662. <item id="ticket_list">
  4663. <rank>230</rank>
  4664. </item>
  4665. <item id="nwinterface_list">
  4666. <rank>240</rank>
  4667. </item>
  4668. </items>
  4669. </details>
  4670. <search>
  4671. <items>
  4672. <item id="name">
  4673. <rank>10</rank>
  4674. </item>
  4675. <item id="status">
  4676. <rank>20</rank>
  4677. </item>
  4678. <item id="org_id">
  4679. <rank>30</rank>
  4680. </item>
  4681. <item id="importance">
  4682. <rank>40</rank>
  4683. </item>
  4684. <item id="brand">
  4685. <rank>50</rank>
  4686. </item>
  4687. <item id="model">
  4688. <rank>60</rank>
  4689. </item>
  4690. <item id="serial_number">
  4691. <rank>70</rank>
  4692. </item>
  4693. <item id="asset_ref">
  4694. <rank>80</rank>
  4695. </item>
  4696. <item id="location_id">
  4697. <rank>90</rank>
  4698. </item>
  4699. <item id="management_ip">
  4700. <rank>100</rank>
  4701. </item>
  4702. <item id="default_gateway">
  4703. <rank>110</rank>
  4704. </item>
  4705. <item id="type">
  4706. <rank>120</rank>
  4707. </item>
  4708. <item id="ios_version">
  4709. <rank>130</rank>
  4710. </item>
  4711. </items>
  4712. </search>
  4713. <list>
  4714. <items>
  4715. <item id="status">
  4716. <rank>10</rank>
  4717. </item>
  4718. <item id="org_id">
  4719. <rank>20</rank>
  4720. </item>
  4721. <item id="importance">
  4722. <rank>30</rank>
  4723. </item>
  4724. <item id="brand">
  4725. <rank>40</rank>
  4726. </item>
  4727. <item id="model">
  4728. <rank>50</rank>
  4729. </item>
  4730. <item id="location_id">
  4731. <rank>60</rank>
  4732. </item>
  4733. <item id="type">
  4734. <rank>70</rank>
  4735. </item>
  4736. </items>
  4737. </list>
  4738. </presentation>
  4739. </class>
  4740. <class id="Server" _delta="define">
  4741. <parent>InfrastructureCI</parent>
  4742. <properties>
  4743. <category>bizmodel,searchable,configmgmt</category>
  4744. <abstract>false</abstract>
  4745. <key_type>autoincrement</key_type>
  4746. <db_table>server</db_table>
  4747. <db_key_field>id</db_key_field>
  4748. <db_final_class_field/>
  4749. <naming>
  4750. <format>%1$s</format>
  4751. <attributes>
  4752. <attribute id="name"/>
  4753. </attributes>
  4754. </naming>
  4755. <display_template/>
  4756. <icon>images/server.png</icon>
  4757. <reconciliation>
  4758. <attributes>
  4759. <attribute id="name"/>
  4760. <attribute id="org_id"/>
  4761. <attribute id="owner_name"/>
  4762. <attribute id="location_id"/>
  4763. <attribute id="location_name"/>
  4764. </attributes>
  4765. </reconciliation>
  4766. </properties>
  4767. <fields>
  4768. <field id="cpu" xsi:type="AttributeString">
  4769. <sql>cpu</sql>
  4770. <default_value/>
  4771. <is_null_allowed>true</is_null_allowed>
  4772. </field>
  4773. <field id="ram" xsi:type="AttributeString">
  4774. <sql>ram</sql>
  4775. <default_value/>
  4776. <is_null_allowed>true</is_null_allowed>
  4777. </field>
  4778. <field id="hdd" xsi:type="AttributeString">
  4779. <sql>hdd</sql>
  4780. <default_value/>
  4781. <is_null_allowed>true</is_null_allowed>
  4782. </field>
  4783. <field id="os_family" xsi:type="AttributeString">
  4784. <sql>os_family</sql>
  4785. <default_value/>
  4786. <is_null_allowed>true</is_null_allowed>
  4787. </field>
  4788. <field id="os_version" xsi:type="AttributeString">
  4789. <sql>os_version</sql>
  4790. <default_value/>
  4791. <is_null_allowed>true</is_null_allowed>
  4792. </field>
  4793. <field id="application_list" xsi:type="AttributeLinkedSet">
  4794. <linked_class>SoftwareInstance</linked_class>
  4795. <ext_key_to_me>device_id</ext_key_to_me>
  4796. <count_min>0</count_min>
  4797. <count_max>0</count_max>
  4798. </field>
  4799. <field id="patch_list" xsi:type="AttributeLinkedSetIndirect">
  4800. <linked_class>lnkPatchToCI</linked_class>
  4801. <ext_key_to_me>ci_id</ext_key_to_me>
  4802. <count_min>0</count_min>
  4803. <count_max>0</count_max>
  4804. <ext_key_to_remote>patch_id</ext_key_to_remote>
  4805. </field>
  4806. </fields>
  4807. <methods/>
  4808. <presentation>
  4809. <details>
  4810. <items>
  4811. <item id="name">
  4812. <rank>10</rank>
  4813. </item>
  4814. <item id="status">
  4815. <rank>20</rank>
  4816. </item>
  4817. <item id="org_id">
  4818. <rank>30</rank>
  4819. </item>
  4820. <item id="importance">
  4821. <rank>40</rank>
  4822. </item>
  4823. <item id="brand">
  4824. <rank>50</rank>
  4825. </item>
  4826. <item id="model">
  4827. <rank>60</rank>
  4828. </item>
  4829. <item id="serial_number">
  4830. <rank>70</rank>
  4831. </item>
  4832. <item id="asset_ref">
  4833. <rank>80</rank>
  4834. </item>
  4835. <item id="description">
  4836. <rank>90</rank>
  4837. </item>
  4838. <item id="location_id">
  4839. <rank>100</rank>
  4840. </item>
  4841. <item id="location_details">
  4842. <rank>110</rank>
  4843. </item>
  4844. <item id="management_ip">
  4845. <rank>120</rank>
  4846. </item>
  4847. <item id="default_gateway">
  4848. <rank>130</rank>
  4849. </item>
  4850. <item id="cpu">
  4851. <rank>140</rank>
  4852. </item>
  4853. <item id="ram">
  4854. <rank>150</rank>
  4855. </item>
  4856. <item id="hdd">
  4857. <rank>160</rank>
  4858. </item>
  4859. <item id="os_family">
  4860. <rank>170</rank>
  4861. </item>
  4862. <item id="os_version">
  4863. <rank>180</rank>
  4864. </item>
  4865. <item id="contact_list">
  4866. <rank>190</rank>
  4867. </item>
  4868. <item id="document_list">
  4869. <rank>200</rank>
  4870. </item>
  4871. <item id="solution_list">
  4872. <rank>210</rank>
  4873. </item>
  4874. <item id="contract_list">
  4875. <rank>220</rank>
  4876. </item>
  4877. <item id="ticket_list">
  4878. <rank>230</rank>
  4879. </item>
  4880. <item id="nwinterface_list">
  4881. <rank>240</rank>
  4882. </item>
  4883. <item id="application_list">
  4884. <rank>250</rank>
  4885. </item>
  4886. <item id="patch_list">
  4887. <rank>260</rank>
  4888. </item>
  4889. </items>
  4890. </details>
  4891. <search>
  4892. <items>
  4893. <item id="name">
  4894. <rank>10</rank>
  4895. </item>
  4896. <item id="status">
  4897. <rank>20</rank>
  4898. </item>
  4899. <item id="org_id">
  4900. <rank>30</rank>
  4901. </item>
  4902. <item id="importance">
  4903. <rank>40</rank>
  4904. </item>
  4905. <item id="brand">
  4906. <rank>50</rank>
  4907. </item>
  4908. <item id="model">
  4909. <rank>60</rank>
  4910. </item>
  4911. <item id="serial_number">
  4912. <rank>70</rank>
  4913. </item>
  4914. <item id="asset_ref">
  4915. <rank>80</rank>
  4916. </item>
  4917. <item id="location_id">
  4918. <rank>90</rank>
  4919. </item>
  4920. <item id="management_ip">
  4921. <rank>100</rank>
  4922. </item>
  4923. <item id="default_gateway">
  4924. <rank>110</rank>
  4925. </item>
  4926. <item id="os_family">
  4927. <rank>120</rank>
  4928. </item>
  4929. <item id="os_version">
  4930. <rank>130</rank>
  4931. </item>
  4932. </items>
  4933. </search>
  4934. <list>
  4935. <items>
  4936. <item id="status">
  4937. <rank>10</rank>
  4938. </item>
  4939. <item id="org_id">
  4940. <rank>20</rank>
  4941. </item>
  4942. <item id="importance">
  4943. <rank>30</rank>
  4944. </item>
  4945. <item id="brand">
  4946. <rank>40</rank>
  4947. </item>
  4948. <item id="model">
  4949. <rank>50</rank>
  4950. </item>
  4951. <item id="location_id">
  4952. <rank>60</rank>
  4953. </item>
  4954. <item id="os_family">
  4955. <rank>70</rank>
  4956. </item>
  4957. </items>
  4958. </list>
  4959. </presentation>
  4960. </class>
  4961. <class id="Printer" _delta="define">
  4962. <parent>InfrastructureCI</parent>
  4963. <properties>
  4964. <category>bizmodel,searchable,configmgmt</category>
  4965. <abstract>false</abstract>
  4966. <key_type>autoincrement</key_type>
  4967. <db_table>printer</db_table>
  4968. <db_key_field>id</db_key_field>
  4969. <db_final_class_field/>
  4970. <naming>
  4971. <format>%1$s</format>
  4972. <attributes>
  4973. <attribute id="name"/>
  4974. </attributes>
  4975. </naming>
  4976. <display_template/>
  4977. <icon>images/printer.png</icon>
  4978. <reconciliation>
  4979. <attributes>
  4980. <attribute id="name"/>
  4981. <attribute id="org_id"/>
  4982. <attribute id="owner_name"/>
  4983. <attribute id="location_id"/>
  4984. <attribute id="location_name"/>
  4985. </attributes>
  4986. </reconciliation>
  4987. </properties>
  4988. <fields>
  4989. <field id="type" xsi:type="AttributeEnum">
  4990. <values>
  4991. <value>mopier</value>
  4992. <value>printer</value>
  4993. </values>
  4994. <sql>type</sql>
  4995. <default_value>printer</default_value>
  4996. <is_null_allowed>true</is_null_allowed>
  4997. </field>
  4998. <field id="technology" xsi:type="AttributeEnum">
  4999. <values>
  5000. <value>laser</value>
  5001. <value>inkjet</value>
  5002. <value>tracer</value>
  5003. </values>
  5004. <sql>technology</sql>
  5005. <default_value>laser</default_value>
  5006. <is_null_allowed>true</is_null_allowed>
  5007. </field>
  5008. </fields>
  5009. <methods/>
  5010. <presentation>
  5011. <details>
  5012. <items>
  5013. <item id="name">
  5014. <rank>10</rank>
  5015. </item>
  5016. <item id="status">
  5017. <rank>20</rank>
  5018. </item>
  5019. <item id="org_id">
  5020. <rank>30</rank>
  5021. </item>
  5022. <item id="importance">
  5023. <rank>40</rank>
  5024. </item>
  5025. <item id="brand">
  5026. <rank>50</rank>
  5027. </item>
  5028. <item id="model">
  5029. <rank>60</rank>
  5030. </item>
  5031. <item id="serial_number">
  5032. <rank>70</rank>
  5033. </item>
  5034. <item id="asset_ref">
  5035. <rank>80</rank>
  5036. </item>
  5037. <item id="description">
  5038. <rank>90</rank>
  5039. </item>
  5040. <item id="location_id">
  5041. <rank>100</rank>
  5042. </item>
  5043. <item id="location_details">
  5044. <rank>110</rank>
  5045. </item>
  5046. <item id="management_ip">
  5047. <rank>120</rank>
  5048. </item>
  5049. <item id="default_gateway">
  5050. <rank>130</rank>
  5051. </item>
  5052. <item id="type">
  5053. <rank>140</rank>
  5054. </item>
  5055. <item id="technology">
  5056. <rank>150</rank>
  5057. </item>
  5058. <item id="contact_list">
  5059. <rank>160</rank>
  5060. </item>
  5061. <item id="document_list">
  5062. <rank>170</rank>
  5063. </item>
  5064. <item id="solution_list">
  5065. <rank>180</rank>
  5066. </item>
  5067. <item id="contract_list">
  5068. <rank>190</rank>
  5069. </item>
  5070. <item id="ticket_list">
  5071. <rank>200</rank>
  5072. </item>
  5073. <item id="nwinterface_list">
  5074. <rank>210</rank>
  5075. </item>
  5076. </items>
  5077. </details>
  5078. <search>
  5079. <items>
  5080. <item id="name">
  5081. <rank>10</rank>
  5082. </item>
  5083. <item id="status">
  5084. <rank>20</rank>
  5085. </item>
  5086. <item id="org_id">
  5087. <rank>30</rank>
  5088. </item>
  5089. <item id="importance">
  5090. <rank>40</rank>
  5091. </item>
  5092. <item id="brand">
  5093. <rank>50</rank>
  5094. </item>
  5095. <item id="model">
  5096. <rank>60</rank>
  5097. </item>
  5098. <item id="serial_number">
  5099. <rank>70</rank>
  5100. </item>
  5101. <item id="asset_ref">
  5102. <rank>80</rank>
  5103. </item>
  5104. <item id="description">
  5105. <rank>90</rank>
  5106. </item>
  5107. <item id="location_id">
  5108. <rank>100</rank>
  5109. </item>
  5110. <item id="location_details">
  5111. <rank>110</rank>
  5112. </item>
  5113. <item id="management_ip">
  5114. <rank>120</rank>
  5115. </item>
  5116. <item id="default_gateway">
  5117. <rank>130</rank>
  5118. </item>
  5119. <item id="type">
  5120. <rank>140</rank>
  5121. </item>
  5122. <item id="technology">
  5123. <rank>150</rank>
  5124. </item>
  5125. </items>
  5126. </search>
  5127. <list>
  5128. <items>
  5129. <item id="status">
  5130. <rank>10</rank>
  5131. </item>
  5132. <item id="org_id">
  5133. <rank>20</rank>
  5134. </item>
  5135. <item id="importance">
  5136. <rank>30</rank>
  5137. </item>
  5138. <item id="brand">
  5139. <rank>40</rank>
  5140. </item>
  5141. <item id="model">
  5142. <rank>50</rank>
  5143. </item>
  5144. <item id="serial_number">
  5145. <rank>60</rank>
  5146. </item>
  5147. <item id="asset_ref">
  5148. <rank>70</rank>
  5149. </item>
  5150. <item id="location_id">
  5151. <rank>80</rank>
  5152. </item>
  5153. <item id="management_ip">
  5154. <rank>90</rank>
  5155. </item>
  5156. <item id="default_gateway">
  5157. <rank>100</rank>
  5158. </item>
  5159. <item id="type">
  5160. <rank>110</rank>
  5161. </item>
  5162. <item id="technology">
  5163. <rank>120</rank>
  5164. </item>
  5165. </items>
  5166. </list>
  5167. </presentation>
  5168. </class>
  5169. <class id="Group" _delta="define">
  5170. <parent>cmdbAbstractObject</parent>
  5171. <properties>
  5172. <category>bizmodel,searchable,configmgmt</category>
  5173. <abstract>false</abstract>
  5174. <key_type>autoincrement</key_type>
  5175. <db_table>group</db_table>
  5176. <db_key_field>id</db_key_field>
  5177. <db_final_class_field/>
  5178. <naming>
  5179. <format>%1$s</format>
  5180. <attributes>
  5181. <attribute id="name"/>
  5182. </attributes>
  5183. </naming>
  5184. <display_template/>
  5185. <icon>images/group.png</icon>
  5186. <reconciliation>
  5187. <attributes>
  5188. <attribute id="name"/>
  5189. <attribute id="org_id"/>
  5190. <attribute id="owner_name"/>
  5191. </attributes>
  5192. </reconciliation>
  5193. </properties>
  5194. <fields>
  5195. <field id="name" xsi:type="AttributeString">
  5196. <sql>name</sql>
  5197. <default_value/>
  5198. <is_null_allowed>false</is_null_allowed>
  5199. </field>
  5200. <field id="status" xsi:type="AttributeEnum">
  5201. <values>
  5202. <value>production</value>
  5203. <value>implementation</value>
  5204. <value>obsolete</value>
  5205. </values>
  5206. <sql>status</sql>
  5207. <default_value>implementation</default_value>
  5208. <is_null_allowed>false</is_null_allowed>
  5209. </field>
  5210. <field id="org_id" xsi:type="AttributeExternalKey">
  5211. <sql>org_id</sql>
  5212. <target_class>Organization</target_class>
  5213. <is_null_allowed>false</is_null_allowed>
  5214. <on_target_delete>DEL_MANUAL</on_target_delete>
  5215. <jointype/>
  5216. </field>
  5217. <field id="owner_name" xsi:type="AttributeExternalField">
  5218. <extkey_attcode>org_id</extkey_attcode>
  5219. <target_attcode>name</target_attcode>
  5220. </field>
  5221. <field id="description" xsi:type="AttributeText">
  5222. <sql>description</sql>
  5223. <default_value/>
  5224. <is_null_allowed>true</is_null_allowed>
  5225. </field>
  5226. <field id="type" xsi:type="AttributeString">
  5227. <sql>type</sql>
  5228. <default_value/>
  5229. <is_null_allowed>true</is_null_allowed>
  5230. </field>
  5231. <field id="parent_id" xsi:type="AttributeHierarchicalKey">
  5232. <dependencies>
  5233. <attribute id="org_id"/>
  5234. </dependencies>
  5235. <sql>parent_id</sql>
  5236. <is_null_allowed>true</is_null_allowed>
  5237. <on_target_delete>DEL_MANUAL</on_target_delete>
  5238. </field>
  5239. <field id="parent_name" xsi:type="AttributeExternalField">
  5240. <extkey_attcode>parent_id</extkey_attcode>
  5241. <target_attcode>name</target_attcode>
  5242. </field>
  5243. <field id="ci_list" xsi:type="AttributeLinkedSetIndirect">
  5244. <linked_class>lnkGroupToCI</linked_class>
  5245. <ext_key_to_me>group_id</ext_key_to_me>
  5246. <count_min>0</count_min>
  5247. <count_max>0</count_max>
  5248. <ext_key_to_remote>ci_id</ext_key_to_remote>
  5249. </field>
  5250. </fields>
  5251. <methods/>
  5252. <presentation>
  5253. <details>
  5254. <items>
  5255. <item id="name">
  5256. <rank>10</rank>
  5257. </item>
  5258. <item id="status">
  5259. <rank>20</rank>
  5260. </item>
  5261. <item id="org_id">
  5262. <rank>30</rank>
  5263. </item>
  5264. <item id="type">
  5265. <rank>40</rank>
  5266. </item>
  5267. <item id="description">
  5268. <rank>50</rank>
  5269. </item>
  5270. <item id="parent_id">
  5271. <rank>60</rank>
  5272. </item>
  5273. <item id="ci_list">
  5274. <rank>70</rank>
  5275. </item>
  5276. </items>
  5277. </details>
  5278. <search>
  5279. <items>
  5280. <item id="name">
  5281. <rank>10</rank>
  5282. </item>
  5283. <item id="status">
  5284. <rank>20</rank>
  5285. </item>
  5286. <item id="org_id">
  5287. <rank>30</rank>
  5288. </item>
  5289. <item id="type">
  5290. <rank>40</rank>
  5291. </item>
  5292. </items>
  5293. </search>
  5294. <list>
  5295. <items>
  5296. <item id="status">
  5297. <rank>10</rank>
  5298. </item>
  5299. <item id="org_id">
  5300. <rank>20</rank>
  5301. </item>
  5302. <item id="type">
  5303. <rank>30</rank>
  5304. </item>
  5305. <item id="parent_id">
  5306. <rank>40</rank>
  5307. </item>
  5308. </items>
  5309. </list>
  5310. </presentation>
  5311. </class>
  5312. <class id="lnkGroupToCI" _delta="define">
  5313. <parent>cmdbAbstractObject</parent>
  5314. <properties>
  5315. <is_link>1</is_link>
  5316. <category>bizmodel,configmgmt</category>
  5317. <abstract>false</abstract>
  5318. <key_type>autoincrement</key_type>
  5319. <db_table>lnkgrouptoci</db_table>
  5320. <db_key_field>id</db_key_field>
  5321. <db_final_class_field/>
  5322. <naming>
  5323. <format>%1$s</format>
  5324. <attributes>
  5325. <attribute id="group_id"/>
  5326. </attributes>
  5327. </naming>
  5328. <display_template/>
  5329. <icon/>
  5330. <reconciliation>
  5331. <attributes>
  5332. <attribute id="group_id"/>
  5333. <attribute id="ci_id"/>
  5334. </attributes>
  5335. </reconciliation>
  5336. </properties>
  5337. <fields>
  5338. <field id="group_id" xsi:type="AttributeExternalKey">
  5339. <sql>group_id</sql>
  5340. <target_class>Group</target_class>
  5341. <is_null_allowed>false</is_null_allowed>
  5342. <on_target_delete>DEL_MANUAL</on_target_delete>
  5343. <jointype/>
  5344. </field>
  5345. <field id="group_name" xsi:type="AttributeExternalField">
  5346. <extkey_attcode>group_id</extkey_attcode>
  5347. <target_attcode>name</target_attcode>
  5348. </field>
  5349. <field id="ci_id" xsi:type="AttributeExternalKey">
  5350. <sql>ci_id</sql>
  5351. <target_class>FunctionalCI</target_class>
  5352. <is_null_allowed>false</is_null_allowed>
  5353. <on_target_delete>DEL_MANUAL</on_target_delete>
  5354. <jointype/>
  5355. </field>
  5356. <field id="ci_name" xsi:type="AttributeExternalField">
  5357. <extkey_attcode>ci_id</extkey_attcode>
  5358. <target_attcode>name</target_attcode>
  5359. </field>
  5360. <field id="ci_status" xsi:type="AttributeExternalField">
  5361. <extkey_attcode>ci_id</extkey_attcode>
  5362. <target_attcode>status</target_attcode>
  5363. </field>
  5364. <field id="reason" xsi:type="AttributeString">
  5365. <sql>reason</sql>
  5366. <default_value/>
  5367. <is_null_allowed>true</is_null_allowed>
  5368. </field>
  5369. </fields>
  5370. <methods/>
  5371. <presentation>
  5372. <details>
  5373. <items>
  5374. <item id="group_id">
  5375. <rank>10</rank>
  5376. </item>
  5377. <item id="ci_id">
  5378. <rank>20</rank>
  5379. </item>
  5380. <item id="ci_status">
  5381. <rank>30</rank>
  5382. </item>
  5383. <item id="reason">
  5384. <rank>40</rank>
  5385. </item>
  5386. </items>
  5387. </details>
  5388. <search>
  5389. <items>
  5390. <item id="group_id">
  5391. <rank>10</rank>
  5392. </item>
  5393. <item id="ci_id">
  5394. <rank>20</rank>
  5395. </item>
  5396. <item id="reason">
  5397. <rank>30</rank>
  5398. </item>
  5399. </items>
  5400. </search>
  5401. <list>
  5402. <items>
  5403. <item id="group_id">
  5404. <rank>10</rank>
  5405. </item>
  5406. <item id="ci_id">
  5407. <rank>20</rank>
  5408. </item>
  5409. <item id="ci_status">
  5410. <rank>30</rank>
  5411. </item>
  5412. <item id="reason">
  5413. <rank>40</rank>
  5414. </item>
  5415. </items>
  5416. </list>
  5417. </presentation>
  5418. </class>
  5419. <class id="lnkCIToDoc" _delta="define">
  5420. <parent>cmdbAbstractObject</parent>
  5421. <properties>
  5422. <is_link>1</is_link>
  5423. <category>bizmodel,configmgmt</category>
  5424. <abstract>false</abstract>
  5425. <key_type>autoincrement</key_type>
  5426. <db_table>lnkcitodoc</db_table>
  5427. <db_key_field>id</db_key_field>
  5428. <db_final_class_field/>
  5429. <naming>
  5430. <format>%1$s</format>
  5431. <attributes>
  5432. <attribute id="ci_id"/>
  5433. </attributes>
  5434. </naming>
  5435. <display_template/>
  5436. <icon/>
  5437. <reconciliation>
  5438. <attributes>
  5439. <attribute id="ci_id"/>
  5440. <attribute id="document_id"/>
  5441. </attributes>
  5442. </reconciliation>
  5443. </properties>
  5444. <fields>
  5445. <field id="ci_id" xsi:type="AttributeExternalKey">
  5446. <sql>ci_id</sql>
  5447. <target_class>FunctionalCI</target_class>
  5448. <is_null_allowed>false</is_null_allowed>
  5449. <on_target_delete>DEL_AUTO</on_target_delete>
  5450. <jointype/>
  5451. </field>
  5452. <field id="ci_name" xsi:type="AttributeExternalField">
  5453. <extkey_attcode>ci_id</extkey_attcode>
  5454. <target_attcode>name</target_attcode>
  5455. </field>
  5456. <field id="ci_status" xsi:type="AttributeExternalField">
  5457. <extkey_attcode>ci_id</extkey_attcode>
  5458. <target_attcode>status</target_attcode>
  5459. </field>
  5460. <field id="document_id" xsi:type="AttributeExternalKey">
  5461. <sql>document_id</sql>
  5462. <target_class>Document</target_class>
  5463. <is_null_allowed>false</is_null_allowed>
  5464. <on_target_delete>DEL_AUTO</on_target_delete>
  5465. <jointype/>
  5466. </field>
  5467. <field id="document_name" xsi:type="AttributeExternalField">
  5468. <extkey_attcode>document_id</extkey_attcode>
  5469. <target_attcode>name</target_attcode>
  5470. </field>
  5471. <field id="document_type" xsi:type="AttributeExternalField">
  5472. <extkey_attcode>document_id</extkey_attcode>
  5473. <target_attcode>type</target_attcode>
  5474. </field>
  5475. <field id="document_status" xsi:type="AttributeExternalField">
  5476. <extkey_attcode>document_id</extkey_attcode>
  5477. <target_attcode>status</target_attcode>
  5478. </field>
  5479. </fields>
  5480. <methods/>
  5481. <presentation>
  5482. <details>
  5483. <items>
  5484. <item id="ci_id">
  5485. <rank>10</rank>
  5486. </item>
  5487. <item id="ci_status">
  5488. <rank>20</rank>
  5489. </item>
  5490. <item id="document_id">
  5491. <rank>30</rank>
  5492. </item>
  5493. <item id="document_type">
  5494. <rank>40</rank>
  5495. </item>
  5496. <item id="document_status">
  5497. <rank>50</rank>
  5498. </item>
  5499. </items>
  5500. </details>
  5501. <search>
  5502. <items>
  5503. <item id="ci_id">
  5504. <rank>10</rank>
  5505. </item>
  5506. <item id="document_id">
  5507. <rank>20</rank>
  5508. </item>
  5509. </items>
  5510. </search>
  5511. <list>
  5512. <items>
  5513. <item id="ci_id">
  5514. <rank>10</rank>
  5515. </item>
  5516. <item id="ci_status">
  5517. <rank>20</rank>
  5518. </item>
  5519. <item id="document_id">
  5520. <rank>30</rank>
  5521. </item>
  5522. <item id="document_type">
  5523. <rank>40</rank>
  5524. </item>
  5525. <item id="document_status">
  5526. <rank>50</rank>
  5527. </item>
  5528. </items>
  5529. </list>
  5530. </presentation>
  5531. </class>
  5532. <class id="lnkCIToContact" _delta="define">
  5533. <parent>cmdbAbstractObject</parent>
  5534. <properties>
  5535. <is_link>1</is_link>
  5536. <category>bizmodel,configmgmt</category>
  5537. <abstract>false</abstract>
  5538. <key_type>autoincrement</key_type>
  5539. <db_table>lnkcitocontact</db_table>
  5540. <db_key_field>id</db_key_field>
  5541. <db_final_class_field/>
  5542. <naming>
  5543. <format>%1$s</format>
  5544. <attributes>
  5545. <attribute id="ci_id"/>
  5546. </attributes>
  5547. </naming>
  5548. <display_template/>
  5549. <icon>images/contact.png</icon>
  5550. <reconciliation>
  5551. <attributes>
  5552. <attribute id="ci_id"/>
  5553. <attribute id="contact_id"/>
  5554. </attributes>
  5555. </reconciliation>
  5556. </properties>
  5557. <fields>
  5558. <field id="ci_id" xsi:type="AttributeExternalKey">
  5559. <sql>ci_id</sql>
  5560. <target_class>FunctionalCI</target_class>
  5561. <is_null_allowed>false</is_null_allowed>
  5562. <on_target_delete>DEL_AUTO</on_target_delete>
  5563. <jointype/>
  5564. </field>
  5565. <field id="ci_name" xsi:type="AttributeExternalField">
  5566. <extkey_attcode>ci_id</extkey_attcode>
  5567. <target_attcode>name</target_attcode>
  5568. </field>
  5569. <field id="ci_status" xsi:type="AttributeExternalField">
  5570. <extkey_attcode>ci_id</extkey_attcode>
  5571. <target_attcode>status</target_attcode>
  5572. </field>
  5573. <field id="contact_id" xsi:type="AttributeExternalKey">
  5574. <sql>contact_id</sql>
  5575. <target_class>Contact</target_class>
  5576. <is_null_allowed>false</is_null_allowed>
  5577. <on_target_delete>DEL_AUTO</on_target_delete>
  5578. <jointype/>
  5579. </field>
  5580. <field id="contact_name" xsi:type="AttributeExternalField">
  5581. <extkey_attcode>contact_id</extkey_attcode>
  5582. <target_attcode>name</target_attcode>
  5583. </field>
  5584. <field id="contact_email" xsi:type="AttributeExternalField">
  5585. <extkey_attcode>contact_id</extkey_attcode>
  5586. <target_attcode>email</target_attcode>
  5587. </field>
  5588. <field id="role" xsi:type="AttributeString">
  5589. <sql>role</sql>
  5590. <default_value/>
  5591. <is_null_allowed>true</is_null_allowed>
  5592. </field>
  5593. </fields>
  5594. <methods/>
  5595. <presentation>
  5596. <details>
  5597. <items>
  5598. <item id="ci_id">
  5599. <rank>10</rank>
  5600. </item>
  5601. <item id="ci_status">
  5602. <rank>20</rank>
  5603. </item>
  5604. <item id="contact_id">
  5605. <rank>30</rank>
  5606. </item>
  5607. <item id="contact_email">
  5608. <rank>40</rank>
  5609. </item>
  5610. <item id="role">
  5611. <rank>50</rank>
  5612. </item>
  5613. </items>
  5614. </details>
  5615. <search>
  5616. <items>
  5617. <item id="ci_id">
  5618. <rank>10</rank>
  5619. </item>
  5620. <item id="contact_id">
  5621. <rank>20</rank>
  5622. </item>
  5623. <item id="role">
  5624. <rank>30</rank>
  5625. </item>
  5626. </items>
  5627. </search>
  5628. <list>
  5629. <items>
  5630. <item id="ci_id">
  5631. <rank>10</rank>
  5632. </item>
  5633. <item id="ci_status">
  5634. <rank>20</rank>
  5635. </item>
  5636. <item id="contact_id">
  5637. <rank>30</rank>
  5638. </item>
  5639. <item id="contact_email">
  5640. <rank>40</rank>
  5641. </item>
  5642. <item id="role">
  5643. <rank>50</rank>
  5644. </item>
  5645. </items>
  5646. </list>
  5647. </presentation>
  5648. </class>
  5649. <class id="lnkSolutionToCI" _delta="define">
  5650. <parent>cmdbAbstractObject</parent>
  5651. <properties>
  5652. <is_link>1</is_link>
  5653. <category>bizmodel,configmgmt</category>
  5654. <abstract>false</abstract>
  5655. <key_type>autoincrement</key_type>
  5656. <db_table>lnksolutiontoci</db_table>
  5657. <db_key_field>id</db_key_field>
  5658. <db_final_class_field/>
  5659. <naming>
  5660. <format>%1$s</format>
  5661. <attributes>
  5662. <attribute id="solution_id"/>
  5663. </attributes>
  5664. </naming>
  5665. <display_template/>
  5666. <icon/>
  5667. <reconciliation>
  5668. <attributes>
  5669. <attribute id="solution_id"/>
  5670. <attribute id="ci_id"/>
  5671. </attributes>
  5672. </reconciliation>
  5673. </properties>
  5674. <fields>
  5675. <field id="solution_id" xsi:type="AttributeExternalKey">
  5676. <sql>solution_id</sql>
  5677. <target_class>ApplicationSolution</target_class>
  5678. <is_null_allowed>false</is_null_allowed>
  5679. <on_target_delete>DEL_AUTO</on_target_delete>
  5680. <jointype/>
  5681. </field>
  5682. <field id="solution_name" xsi:type="AttributeExternalField">
  5683. <extkey_attcode>solution_id</extkey_attcode>
  5684. <target_attcode>name</target_attcode>
  5685. </field>
  5686. <field id="ci_id" xsi:type="AttributeExternalKey">
  5687. <sql>ci_id</sql>
  5688. <target_class>FunctionalCI</target_class>
  5689. <is_null_allowed>false</is_null_allowed>
  5690. <on_target_delete>DEL_AUTO</on_target_delete>
  5691. <jointype/>
  5692. </field>
  5693. <field id="ci_name" xsi:type="AttributeExternalField">
  5694. <extkey_attcode>ci_id</extkey_attcode>
  5695. <target_attcode>name</target_attcode>
  5696. </field>
  5697. <field id="ci_status" xsi:type="AttributeExternalField">
  5698. <extkey_attcode>ci_id</extkey_attcode>
  5699. <target_attcode>status</target_attcode>
  5700. </field>
  5701. <field id="utility" xsi:type="AttributeString">
  5702. <sql>utility</sql>
  5703. <default_value/>
  5704. <is_null_allowed>true</is_null_allowed>
  5705. </field>
  5706. </fields>
  5707. <methods/>
  5708. <presentation>
  5709. <details>
  5710. <items>
  5711. <item id="solution_id">
  5712. <rank>10</rank>
  5713. </item>
  5714. <item id="ci_id">
  5715. <rank>20</rank>
  5716. </item>
  5717. <item id="ci_status">
  5718. <rank>30</rank>
  5719. </item>
  5720. <item id="utility">
  5721. <rank>40</rank>
  5722. </item>
  5723. </items>
  5724. </details>
  5725. <search>
  5726. <items>
  5727. <item id="solution_id">
  5728. <rank>10</rank>
  5729. </item>
  5730. <item id="ci_id">
  5731. <rank>20</rank>
  5732. </item>
  5733. <item id="utility">
  5734. <rank>30</rank>
  5735. </item>
  5736. </items>
  5737. </search>
  5738. <list>
  5739. <items>
  5740. <item id="solution_id">
  5741. <rank>10</rank>
  5742. </item>
  5743. <item id="ci_id">
  5744. <rank>20</rank>
  5745. </item>
  5746. <item id="ci_status">
  5747. <rank>30</rank>
  5748. </item>
  5749. <item id="utility">
  5750. <rank>40</rank>
  5751. </item>
  5752. </items>
  5753. </list>
  5754. </presentation>
  5755. </class>
  5756. <class id="lnkProcessToSolution" _delta="define">
  5757. <parent>cmdbAbstractObject</parent>
  5758. <properties>
  5759. <is_link>1</is_link>
  5760. <category>bizmodel,configmgmt</category>
  5761. <abstract>false</abstract>
  5762. <key_type>autoincrement</key_type>
  5763. <db_table>lnkprocesstosolution</db_table>
  5764. <db_key_field>id</db_key_field>
  5765. <db_final_class_field/>
  5766. <naming>
  5767. <format>%1$s</format>
  5768. <attributes>
  5769. <attribute id="solution_id"/>
  5770. </attributes>
  5771. </naming>
  5772. <display_template/>
  5773. <icon/>
  5774. <reconciliation>
  5775. <attributes>
  5776. <attribute id="solution_id"/>
  5777. <attribute id="process_id"/>
  5778. </attributes>
  5779. </reconciliation>
  5780. </properties>
  5781. <fields>
  5782. <field id="solution_id" xsi:type="AttributeExternalKey">
  5783. <sql>solution_id</sql>
  5784. <target_class>ApplicationSolution</target_class>
  5785. <is_null_allowed>false</is_null_allowed>
  5786. <on_target_delete>DEL_AUTO</on_target_delete>
  5787. <jointype/>
  5788. </field>
  5789. <field id="solution_name" xsi:type="AttributeExternalField">
  5790. <extkey_attcode>solution_id</extkey_attcode>
  5791. <target_attcode>name</target_attcode>
  5792. </field>
  5793. <field id="process_id" xsi:type="AttributeExternalKey">
  5794. <sql>process_id</sql>
  5795. <target_class>BusinessProcess</target_class>
  5796. <is_null_allowed>false</is_null_allowed>
  5797. <on_target_delete>DEL_AUTO</on_target_delete>
  5798. <jointype/>
  5799. </field>
  5800. <field id="process_name" xsi:type="AttributeExternalField">
  5801. <extkey_attcode>process_id</extkey_attcode>
  5802. <target_attcode>name</target_attcode>
  5803. </field>
  5804. <field id="reason" xsi:type="AttributeString">
  5805. <sql>reason</sql>
  5806. <default_value/>
  5807. <is_null_allowed>true</is_null_allowed>
  5808. </field>
  5809. </fields>
  5810. <methods/>
  5811. <presentation>
  5812. <details>
  5813. <items>
  5814. <item id="solution_id">
  5815. <rank>10</rank>
  5816. </item>
  5817. <item id="process_id">
  5818. <rank>20</rank>
  5819. </item>
  5820. <item id="reason">
  5821. <rank>30</rank>
  5822. </item>
  5823. </items>
  5824. </details>
  5825. <search>
  5826. <items>
  5827. <item id="solution_id">
  5828. <rank>10</rank>
  5829. </item>
  5830. <item id="process_id">
  5831. <rank>20</rank>
  5832. </item>
  5833. <item id="reason">
  5834. <rank>30</rank>
  5835. </item>
  5836. </items>
  5837. </search>
  5838. <list>
  5839. <items>
  5840. <item id="solution_id">
  5841. <rank>10</rank>
  5842. </item>
  5843. <item id="process_id">
  5844. <rank>20</rank>
  5845. </item>
  5846. <item id="reason">
  5847. <rank>30</rank>
  5848. </item>
  5849. </items>
  5850. </list>
  5851. </presentation>
  5852. </class>
  5853. </classes>
  5854. <menus>
  5855. <menu id="DataAdministration" xsi:type="MenuGroup" _delta="define">
  5856. <rank>70</rank>
  5857. <enable_class>Organization</enable_class>
  5858. <enable_action>UR_ACTION_MODIFY</enable_action>
  5859. <enable_permission>UR_ALLOWED_YES</enable_permission>
  5860. <enable_stimulus/>
  5861. </menu>
  5862. <menu id="Audit" xsi:type="WebPageMenuNode" _delta="define">
  5863. <rank>33</rank>
  5864. <parent>DataAdministration</parent>
  5865. <url>$pages/audit.php</url>
  5866. </menu>
  5867. <menu id="Catalogs" xsi:type="TemplateMenuNode" _delta="define">
  5868. <rank>50</rank>
  5869. <parent>DataAdministration</parent>
  5870. <template_file/>
  5871. </menu>
  5872. <menu id="Organization" xsi:type="OQLMenuNode" _delta="define">
  5873. <rank>10</rank>
  5874. <parent>Catalogs</parent>
  5875. <oql>SELECT Organization</oql>
  5876. <do_search>1</do_search>
  5877. </menu>
  5878. <menu id="Application" xsi:type="OQLMenuNode" _delta="define">
  5879. <rank>20</rank>
  5880. <parent>Catalogs</parent>
  5881. <oql>SELECT Application</oql>
  5882. <do_search/>
  5883. </menu>
  5884. <menu id="DBServer" xsi:type="OQLMenuNode" _delta="define">
  5885. <rank>40</rank>
  5886. <parent>Catalogs</parent>
  5887. <oql>SELECT DBServer</oql>
  5888. <do_search/>
  5889. </menu>
  5890. <menu id="ConfigManagement" xsi:type="MenuGroup" _delta="define">
  5891. <rank>20</rank>
  5892. </menu>
  5893. <menu id="ConfigManagementOverview" xsi:type="DashboardMenuNode" _delta="define">
  5894. <rank>0</rank>
  5895. <parent>ConfigManagement</parent>
  5896. <definition>
  5897. <title>UI:ConfigMgmtMenuOverview:Title</title>
  5898. <layout>DashboardLayoutTwoCols</layout>
  5899. <cells>
  5900. <cell id="0">
  5901. <rank>0</rank>
  5902. <dashlets>
  5903. <dashlet id="1" xsi:type="DashletGroupByPie">
  5904. <rank>0</rank>
  5905. <title>UI-ConfigMgmtMenuOverview-FunctionalCIbyStatus</title>
  5906. <query>SELECT FunctionalCI</query>
  5907. <group_by>status</group_by>
  5908. <style>pie</style>
  5909. </dashlet>
  5910. </dashlets>
  5911. </cell>
  5912. <cell id="1">
  5913. <rank>0</rank>
  5914. <dashlets>
  5915. <dashlet id="2" xsi:type="DashletGroupByBars">
  5916. <rank>0</rank>
  5917. <title>UI-ConfigMgmtMenuOverview-FunctionalCIByType</title>
  5918. <query>SELECT FunctionalCI</query>
  5919. <group_by>finalclass</group_by>
  5920. <style>bars</style>
  5921. </dashlet>
  5922. </dashlets>
  5923. </cell>
  5924. <cell id="2">
  5925. <rank>0</rank>
  5926. <dashlets>
  5927. <dashlet id="3" xsi:type="DashletGroupByTable">
  5928. <rank>0</rank>
  5929. <title>UI-ConfigMgmtMenuOverview-FunctionalCIByType</title>
  5930. <query>SELECT FunctionalCI</query>
  5931. <group_by>finalclass</group_by>
  5932. <style>table</style>
  5933. </dashlet>
  5934. </dashlets>
  5935. </cell>
  5936. </cells>
  5937. </definition>
  5938. </menu>
  5939. <menu id="Contact" xsi:type="DashboardMenuNode" _delta="define">
  5940. <rank>1</rank>
  5941. <parent>ConfigManagement</parent>
  5942. <definition>
  5943. <layout>DashboardLayoutOneCol</layout>
  5944. <title></title>
  5945. <cells>
  5946. <cell id="1">
  5947. <rank>0</rank>
  5948. <dashlets>
  5949. <dashlet id="1" xsi:type="DashletHeaderDynamic">
  5950. <rank>0</rank>
  5951. <title>UI:ContactsMenu</title>
  5952. <icon>itop-config-mgmt-1.0.0/images/team.png</icon>
  5953. <subtitle>Menu:ConfigManagement:AllContacts</subtitle>
  5954. <query>SELECT Contact</query>
  5955. <group_by>status</group_by>
  5956. <values>active,inactive</values>
  5957. </dashlet>
  5958. <dashlet id="2" xsi:type="DashletBadge">
  5959. <rank>1</rank>
  5960. <class>Team</class>
  5961. </dashlet>
  5962. <dashlet id="3" xsi:type="DashletBadge">
  5963. <rank>2</rank>
  5964. <class>Person</class>
  5965. </dashlet>
  5966. </dashlets>
  5967. </cell>
  5968. <cell id="2">
  5969. <rank>1</rank>
  5970. <dashlets>
  5971. <dashlet id="4" xsi:type="DashletGroupByPie">
  5972. <rank>0</rank>
  5973. <title>UI-ContactsMenu-ContactsByLocation</title>
  5974. <query>SELECT Contact</query>
  5975. <group_by>location_id</group_by>
  5976. <style>pie</style>
  5977. </dashlet>
  5978. </dashlets>
  5979. </cell>
  5980. </cells>
  5981. </definition>
  5982. </menu>
  5983. <menu id="NewContact" xsi:type="NewObjectMenuNode" _delta="define">
  5984. <rank>1</rank>
  5985. <parent>Contact</parent>
  5986. <class>Contact</class>
  5987. </menu>
  5988. <menu id="SearchContacts" xsi:type="SearchMenuNode" _delta="define">
  5989. <rank>2</rank>
  5990. <parent>Contact</parent>
  5991. <class>Contact</class>
  5992. </menu>
  5993. <menu id="Document" xsi:type="OQLMenuNode" _delta="define">
  5994. <rank>2</rank>
  5995. <parent>ConfigManagement</parent>
  5996. <oql>SELECT Document</oql>
  5997. <do_search>1</do_search>
  5998. </menu>
  5999. <menu id="Location" xsi:type="OQLMenuNode" _delta="define">
  6000. <rank>3</rank>
  6001. <parent>ConfigManagement</parent>
  6002. <oql>SELECT Location</oql>
  6003. <do_search>1</do_search>
  6004. </menu>
  6005. <menu id="Group" xsi:type="OQLMenuNode" _delta="define">
  6006. <rank>4</rank>
  6007. <parent>ConfigManagement</parent>
  6008. <oql>SELECT Group</oql>
  6009. <do_search>1</do_search>
  6010. </menu>
  6011. <menu id="ConfigManagementCI" xsi:type="DashboardMenuNode" _delta="define">
  6012. <rank>5</rank>
  6013. <parent>ConfigManagement</parent>
  6014. <definition>
  6015. <layout>DashboardLayoutOneCol</layout>
  6016. <title></title>
  6017. <cells>
  6018. <cell id="0">
  6019. <rank>0</rank>
  6020. <dashlets>
  6021. <dashlet id="1" xsi:type="DashletHeaderDynamic">
  6022. <rank>0</rank>
  6023. <title>Menu_ConfigManagement_Devices</title>
  6024. <icon>itop-config-mgmt-1.0.0/images/server.png</icon>
  6025. <subtitle>Menu_ConfigManagement_AllDevices</subtitle>
  6026. <query>SELECT FunctionalCI</query>
  6027. <group_by>status</group_by>
  6028. <values>implementation,production,obsolete</values>
  6029. </dashlet>
  6030. <dashlet id="2" xsi:type="DashletBadge">
  6031. <rank>1</rank>
  6032. <class>Server</class>
  6033. </dashlet>
  6034. <dashlet id="3" xsi:type="DashletBadge">
  6035. <rank>2</rank>
  6036. <class>NetworkDevice</class>
  6037. </dashlet>
  6038. <dashlet id="5" xsi:type="DashletBadge">
  6039. <rank>3</rank>
  6040. <class>PC</class>
  6041. </dashlet>
  6042. <dashlet id="6" xsi:type="DashletBadge">
  6043. <rank>4</rank>
  6044. <class>MobilePhone</class>
  6045. </dashlet>
  6046. <dashlet id="7" xsi:type="DashletBadge">
  6047. <rank>5</rank>
  6048. <class>Printer</class>
  6049. </dashlet>
  6050. </dashlets>
  6051. </cell>
  6052. <cell id="1">
  6053. <rank>1</rank>
  6054. <dashlets>
  6055. <dashlet id="8" xsi:type="DashletHeaderStatic">
  6056. <rank>0</rank>
  6057. <title>Menu:ConfigManagement:SWAndApps</title>
  6058. <icon>itop-config-mgmt-1.0.0/images/application.png</icon>
  6059. </dashlet>
  6060. <dashlet id="9" xsi:type="DashletBadge">
  6061. <rank>1</rank>
  6062. <class>ApplicationInstance</class>
  6063. </dashlet>
  6064. <dashlet id="10" xsi:type="DashletBadge">
  6065. <rank>2</rank>
  6066. <class>DBServerInstance</class>
  6067. </dashlet>
  6068. <dashlet id="11" xsi:type="DashletBadge">
  6069. <rank>3</rank>
  6070. <class>DatabaseInstance</class>
  6071. </dashlet>
  6072. <dashlet id="12" xsi:type="DashletBadge">
  6073. <rank>4</rank>
  6074. <class>Patch</class>
  6075. </dashlet>
  6076. <dashlet id="13" xsi:type="DashletBadge">
  6077. <rank>5</rank>
  6078. <class>Licence</class>
  6079. </dashlet>
  6080. </dashlets>
  6081. </cell>
  6082. <cell id="2">
  6083. <rank>2</rank>
  6084. <dashlets>
  6085. <dashlet id="14" xsi:type="DashletHeaderStatic">
  6086. <rank>0</rank>
  6087. <title>Menu:ConfigManagement:Misc</title>
  6088. <icon>itop-config-mgmt-1.0.0/images/subnet.png</icon>
  6089. </dashlet>
  6090. <dashlet id="15" xsi:type="DashletBadge">
  6091. <rank>1</rank>
  6092. <class>NetworkInterface</class>
  6093. </dashlet>
  6094. <dashlet id="16" xsi:type="DashletBadge">
  6095. <rank>2</rank>
  6096. <class>Subnet</class>
  6097. </dashlet>
  6098. <dashlet id="17" xsi:type="DashletBadge">
  6099. <rank>3</rank>
  6100. <class>BusinessProcess</class>
  6101. </dashlet>
  6102. <dashlet id="18" xsi:type="DashletBadge">
  6103. <rank>4</rank>
  6104. <class>ApplicationSolution</class>
  6105. </dashlet>
  6106. <dashlet id="19" xsi:type="DashletBadge">
  6107. <rank>5</rank>
  6108. <class>Group</class>
  6109. </dashlet>
  6110. </dashlets>
  6111. </cell>
  6112. </cells>
  6113. </definition>
  6114. </menu>
  6115. <menu id="NewCI" xsi:type="NewObjectMenuNode" _delta="define">
  6116. <rank>0</rank>
  6117. <parent>ConfigManagementCI</parent>
  6118. <class>FunctionalCI</class>
  6119. </menu>
  6120. <menu id="SearchCIs" xsi:type="SearchMenuNode" _delta="define">
  6121. <rank>1</rank>
  6122. <parent>ConfigManagementCI</parent>
  6123. <class>FunctionalCI</class>
  6124. </menu>
  6125. <menu id="ConfigManagement:Shortcuts" xsi:type="TemplateMenuNode" _delta="define">
  6126. <rank>6</rank>
  6127. <parent>ConfigManagement</parent>
  6128. <template_file/>
  6129. </menu>
  6130. <menu id="Server" xsi:type="OQLMenuNode" _delta="define">
  6131. <rank>1</rank>
  6132. <parent>ConfigManagement:Shortcuts</parent>
  6133. <oql>SELECT Server</oql>
  6134. <do_search/>
  6135. </menu>
  6136. <menu id="NetworkDevice" xsi:type="OQLMenuNode" _delta="define">
  6137. <rank>2</rank>
  6138. <parent>ConfigManagement:Shortcuts</parent>
  6139. <oql>SELECT NetworkDevice</oql>
  6140. <do_search/>
  6141. </menu>
  6142. <menu id="Printer" xsi:type="OQLMenuNode" _delta="define">
  6143. <rank>3</rank>
  6144. <parent>ConfigManagement:Shortcuts</parent>
  6145. <oql>SELECT Printer</oql>
  6146. <do_search/>
  6147. </menu>
  6148. <menu id="PC" xsi:type="OQLMenuNode" _delta="define">
  6149. <rank>4</rank>
  6150. <parent>ConfigManagement:Shortcuts</parent>
  6151. <oql>SELECT PC</oql>
  6152. <do_search/>
  6153. </menu>
  6154. <menu id="BusinessProcess" xsi:type="OQLMenuNode" _delta="define">
  6155. <rank>5</rank>
  6156. <parent>ConfigManagement:Shortcuts</parent>
  6157. <oql>SELECT BusinessProcess</oql>
  6158. <do_search/>
  6159. </menu>
  6160. <menu id="ApplicationSolution" xsi:type="OQLMenuNode" _delta="define">
  6161. <rank>6</rank>
  6162. <parent>ConfigManagement:Shortcuts</parent>
  6163. <oql>SELECT ApplicationSolution</oql>
  6164. <do_search/>
  6165. </menu>
  6166. </menus>
  6167. </itop_design>