datamodel.itop-config-mgmt.xml 186 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192
  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. <attribute id="finalclass"/>
  2117. </attributes>
  2118. </reconciliation>
  2119. </properties>
  2120. <fields>
  2121. <field id="name" xsi:type="AttributeString">
  2122. <sql>name</sql>
  2123. <default_value/>
  2124. <is_null_allowed>false</is_null_allowed>
  2125. </field>
  2126. <field id="status" xsi:type="AttributeEnum">
  2127. <values>
  2128. <value>implementation</value>
  2129. <value>production</value>
  2130. <value>obsolete</value>
  2131. </values>
  2132. <sql>status</sql>
  2133. <default_value>implementation</default_value>
  2134. <is_null_allowed>false</is_null_allowed>
  2135. </field>
  2136. <field id="org_id" xsi:type="AttributeExternalKey">
  2137. <sql>org_id</sql>
  2138. <target_class>Organization</target_class>
  2139. <is_null_allowed>false</is_null_allowed>
  2140. <on_target_delete>DEL_MANUAL</on_target_delete>
  2141. <jointype/>
  2142. </field>
  2143. <field id="owner_name" xsi:type="AttributeExternalField">
  2144. <extkey_attcode>org_id</extkey_attcode>
  2145. <target_attcode>name</target_attcode>
  2146. </field>
  2147. <field id="importance" xsi:type="AttributeEnum">
  2148. <values>
  2149. <value>low</value>
  2150. <value>medium</value>
  2151. <value>high</value>
  2152. </values>
  2153. <sql>importance</sql>
  2154. <default_value>medium</default_value>
  2155. <is_null_allowed>false</is_null_allowed>
  2156. </field>
  2157. <field id="contact_list" xsi:type="AttributeLinkedSetIndirect">
  2158. <linked_class>lnkCIToContact</linked_class>
  2159. <ext_key_to_me>ci_id</ext_key_to_me>
  2160. <count_min>0</count_min>
  2161. <count_max>0</count_max>
  2162. <ext_key_to_remote>contact_id</ext_key_to_remote>
  2163. </field>
  2164. <field id="document_list" xsi:type="AttributeLinkedSetIndirect">
  2165. <linked_class>lnkCIToDoc</linked_class>
  2166. <ext_key_to_me>ci_id</ext_key_to_me>
  2167. <count_min>0</count_min>
  2168. <count_max>0</count_max>
  2169. <ext_key_to_remote>document_id</ext_key_to_remote>
  2170. </field>
  2171. <field id="solution_list" xsi:type="AttributeLinkedSetIndirect">
  2172. <linked_class>lnkSolutionToCI</linked_class>
  2173. <ext_key_to_me>ci_id</ext_key_to_me>
  2174. <count_min>0</count_min>
  2175. <count_max>0</count_max>
  2176. <ext_key_to_remote>solution_id</ext_key_to_remote>
  2177. </field>
  2178. <field id="contract_list" xsi:type="AttributeLinkedSetIndirect">
  2179. <linked_class>lnkContractToCI</linked_class>
  2180. <ext_key_to_me>ci_id</ext_key_to_me>
  2181. <count_min>0</count_min>
  2182. <count_max>0</count_max>
  2183. <ext_key_to_remote>contract_id</ext_key_to_remote>
  2184. </field>
  2185. <field id="ticket_list" xsi:type="AttributeLinkedSetIndirect">
  2186. <linked_class>lnkTicketToCI</linked_class>
  2187. <ext_key_to_me>ci_id</ext_key_to_me>
  2188. <count_min>0</count_min>
  2189. <count_max>0</count_max>
  2190. <ext_key_to_remote>ticket_id</ext_key_to_remote>
  2191. </field>
  2192. </fields>
  2193. <methods>
  2194. <method id="GetRelationQueries">
  2195. <static>true</static>
  2196. <access>public</access>
  2197. <type>Overload-DBObject</type>
  2198. <code><![CDATA[ public static function GetRelationQueries($sRelCode)
  2199. {
  2200. switch ($sRelCode)
  2201. {
  2202. case "impacts":
  2203. $aRels = array(
  2204. "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),
  2205. "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),
  2206. );
  2207. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  2208. break;
  2209. default:
  2210. return parent::GetRelationQueries($sRelCode);
  2211. }
  2212. }]]></code>
  2213. </method>
  2214. </methods>
  2215. <presentation>
  2216. <details>
  2217. <items>
  2218. <item id="name">
  2219. <rank>10</rank>
  2220. </item>
  2221. <item id="status">
  2222. <rank>20</rank>
  2223. </item>
  2224. <item id="org_id">
  2225. <rank>30</rank>
  2226. </item>
  2227. <item id="importance">
  2228. <rank>40</rank>
  2229. </item>
  2230. <item id="contact_list">
  2231. <rank>50</rank>
  2232. </item>
  2233. <item id="document_list">
  2234. <rank>60</rank>
  2235. </item>
  2236. <item id="solution_list">
  2237. <rank>70</rank>
  2238. </item>
  2239. <item id="contract_list">
  2240. <rank>80</rank>
  2241. </item>
  2242. <item id="ticket_list">
  2243. <rank>90</rank>
  2244. </item>
  2245. </items>
  2246. </details>
  2247. <search>
  2248. <items>
  2249. <item id="name">
  2250. <rank>10</rank>
  2251. </item>
  2252. <item id="status">
  2253. <rank>20</rank>
  2254. </item>
  2255. <item id="org_id">
  2256. <rank>30</rank>
  2257. </item>
  2258. <item id="importance">
  2259. <rank>40</rank>
  2260. </item>
  2261. </items>
  2262. </search>
  2263. <list>
  2264. <items>
  2265. <item id="finalclass">
  2266. <rank>10</rank>
  2267. </item>
  2268. <item id="status">
  2269. <rank>20</rank>
  2270. </item>
  2271. <item id="org_id">
  2272. <rank>30</rank>
  2273. </item>
  2274. <item id="importance">
  2275. <rank>40</rank>
  2276. </item>
  2277. </items>
  2278. </list>
  2279. </presentation>
  2280. </class>
  2281. <class id="SoftwareInstance" _delta="define">
  2282. <parent>FunctionalCI</parent>
  2283. <properties>
  2284. <category>bizmodel,searchable,configmgmt</category>
  2285. <abstract>true</abstract>
  2286. <key_type>autoincrement</key_type>
  2287. <db_table>softwareinstance</db_table>
  2288. <db_key_field>id</db_key_field>
  2289. <db_final_class_field/>
  2290. <naming>
  2291. <format>%1$s - %2$s</format>
  2292. <attributes>
  2293. <attribute id="name"/>
  2294. <attribute id="device_id_friendlyname"/>
  2295. </attributes>
  2296. </naming>
  2297. <display_template/>
  2298. <icon>images/application.png</icon>
  2299. <reconciliation>
  2300. <attributes>
  2301. <attribute id="name"/>
  2302. <attribute id="device_id"/>
  2303. <attribute id="device_name"/>
  2304. <attribute id="org_id"/>
  2305. <attribute id="owner_name"/>
  2306. <attribute id="finalclass"/>
  2307. </attributes>
  2308. </reconciliation>
  2309. </properties>
  2310. <fields>
  2311. <field id="device_id" xsi:type="AttributeExternalKey">
  2312. <filter><![CDATA[SELECT Device WHERE org_id = :this->org_id]]></filter>
  2313. <dependencies>
  2314. <attribute id="org_id"/>
  2315. </dependencies>
  2316. <sql>device_id</sql>
  2317. <target_class>Device</target_class>
  2318. <is_null_allowed>false</is_null_allowed>
  2319. <on_target_delete>DEL_MANUAL</on_target_delete>
  2320. <jointype/>
  2321. </field>
  2322. <field id="device_name" xsi:type="AttributeExternalField">
  2323. <extkey_attcode>device_id</extkey_attcode>
  2324. <target_attcode>name</target_attcode>
  2325. </field>
  2326. <field id="licence_id" xsi:type="AttributeExternalKey">
  2327. <filter><![CDATA[SELECT Licence WHERE org_id = :this->org_id]]></filter>
  2328. <dependencies>
  2329. <attribute id="org_id"/>
  2330. </dependencies>
  2331. <sql>licence_id</sql>
  2332. <target_class>Licence</target_class>
  2333. <is_null_allowed>true</is_null_allowed>
  2334. <on_target_delete>DEL_MANUAL</on_target_delete>
  2335. <jointype/>
  2336. </field>
  2337. <field id="licence_name" xsi:type="AttributeExternalField">
  2338. <extkey_attcode>licence_id</extkey_attcode>
  2339. <target_attcode>name</target_attcode>
  2340. </field>
  2341. <field id="version" xsi:type="AttributeString">
  2342. <sql>version</sql>
  2343. <default_value/>
  2344. <is_null_allowed>true</is_null_allowed>
  2345. </field>
  2346. <field id="description" xsi:type="AttributeText">
  2347. <sql>description</sql>
  2348. <default_value/>
  2349. <is_null_allowed>true</is_null_allowed>
  2350. </field>
  2351. </fields>
  2352. <methods>
  2353. <method id="ComputeValues">
  2354. <static>false</static>
  2355. <access>public</access>
  2356. <type>Overload-DBObject</type>
  2357. <code> public function ComputeValues()
  2358. {
  2359. }</code>
  2360. </method>
  2361. <method id="GetRelationQueries">
  2362. <static>true</static>
  2363. <access>public</access>
  2364. <type>Overload-DBObject</type>
  2365. <code><![CDATA[ public static function GetRelationQueries($sRelCode)
  2366. {
  2367. switch ($sRelCode)
  2368. {
  2369. case "impacts":
  2370. $aRels = array(
  2371. // Actually this should be limited to the Software instances based on a DBServer Application type...
  2372. "db_instances" => array("sQuery"=>"SELECT DatabaseInstance AS db WHERE db.db_server_instance_id = :this->id", "bPropagate"=>true, "iDistance"=>5),
  2373. );
  2374. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  2375. break;
  2376. case 'depends on':
  2377. $aRels = array(
  2378. "applications" => array("sQuery"=>"SELECT Device JOIN SoftwareInstance AS app ON app.device_id = Device.id WHERE app.id = :this->id", "bPropagate"=>true, "iDistance"=>5),
  2379. );
  2380. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  2381. break;
  2382. default:
  2383. return parent::GetRelationQueries($sRelCode);
  2384. }
  2385. }]]></code>
  2386. </method>
  2387. </methods>
  2388. <presentation>
  2389. <details>
  2390. <items>
  2391. <item id="name">
  2392. <rank>10</rank>
  2393. </item>
  2394. <item id="status">
  2395. <rank>20</rank>
  2396. </item>
  2397. <item id="org_id">
  2398. <rank>30</rank>
  2399. </item>
  2400. <item id="importance">
  2401. <rank>40</rank>
  2402. </item>
  2403. <item id="device_id">
  2404. <rank>50</rank>
  2405. </item>
  2406. <item id="licence_id">
  2407. <rank>60</rank>
  2408. </item>
  2409. <item id="version">
  2410. <rank>70</rank>
  2411. </item>
  2412. <item id="description">
  2413. <rank>80</rank>
  2414. </item>
  2415. <item id="contact_list">
  2416. <rank>90</rank>
  2417. </item>
  2418. <item id="document_list">
  2419. <rank>100</rank>
  2420. </item>
  2421. <item id="solution_list">
  2422. <rank>110</rank>
  2423. </item>
  2424. <item id="contract_list">
  2425. <rank>120</rank>
  2426. </item>
  2427. <item id="ticket_list">
  2428. <rank>130</rank>
  2429. </item>
  2430. </items>
  2431. </details>
  2432. <search>
  2433. <items>
  2434. <item id="status">
  2435. <rank>10</rank>
  2436. </item>
  2437. <item id="org_id">
  2438. <rank>20</rank>
  2439. </item>
  2440. <item id="importance">
  2441. <rank>30</rank>
  2442. </item>
  2443. <item id="device_id">
  2444. <rank>40</rank>
  2445. </item>
  2446. <item id="licence_id">
  2447. <rank>50</rank>
  2448. </item>
  2449. <item id="version">
  2450. <rank>60</rank>
  2451. </item>
  2452. </items>
  2453. </search>
  2454. <list>
  2455. <items>
  2456. <item id="finalclass">
  2457. <rank>10</rank>
  2458. </item>
  2459. <item id="status">
  2460. <rank>20</rank>
  2461. </item>
  2462. <item id="org_id">
  2463. <rank>30</rank>
  2464. </item>
  2465. <item id="importance">
  2466. <rank>40</rank>
  2467. </item>
  2468. <item id="device_id">
  2469. <rank>50</rank>
  2470. </item>
  2471. <item id="version">
  2472. <rank>60</rank>
  2473. </item>
  2474. </items>
  2475. </list>
  2476. </presentation>
  2477. </class>
  2478. <class id="DBServerInstance" _delta="define">
  2479. <parent>SoftwareInstance</parent>
  2480. <properties>
  2481. <category>bizmodel,searchable,configmgmt</category>
  2482. <abstract>false</abstract>
  2483. <key_type>autoincrement</key_type>
  2484. <db_table>softwareinstance_dbserver</db_table>
  2485. <db_key_field>id</db_key_field>
  2486. <db_final_class_field/>
  2487. <naming>
  2488. <format>%1$s - %2$s</format>
  2489. <attributes>
  2490. <attribute id="name"/>
  2491. <attribute id="device_id_friendlyname"/>
  2492. </attributes>
  2493. </naming>
  2494. <display_template/>
  2495. <icon>images/database.png</icon>
  2496. <reconciliation>
  2497. <attributes>
  2498. <attribute id="name"/>
  2499. <attribute id="software_id"/>
  2500. <attribute id="software_name"/>
  2501. <attribute id="device_id"/>
  2502. <attribute id="device_name"/>
  2503. <attribute id="org_id"/>
  2504. <attribute id="owner_name"/>
  2505. </attributes>
  2506. </reconciliation>
  2507. </properties>
  2508. <fields>
  2509. <field id="software_id" xsi:type="AttributeExternalKey">
  2510. <sql>software_id</sql>
  2511. <target_class>DBServer</target_class>
  2512. <is_null_allowed>false</is_null_allowed>
  2513. <on_target_delete>DEL_MANUAL</on_target_delete>
  2514. <jointype/>
  2515. </field>
  2516. <field id="software_name" xsi:type="AttributeExternalField">
  2517. <extkey_attcode>software_id</extkey_attcode>
  2518. <target_attcode>name</target_attcode>
  2519. </field>
  2520. <field id="dbinstance_list" xsi:type="AttributeLinkedSet">
  2521. <linked_class>DatabaseInstance</linked_class>
  2522. <ext_key_to_me>db_server_instance_id</ext_key_to_me>
  2523. <count_min>0</count_min>
  2524. <count_max>0</count_max>
  2525. </field>
  2526. </fields>
  2527. <methods/>
  2528. <presentation>
  2529. <details>
  2530. <items>
  2531. <item id="name">
  2532. <rank>10</rank>
  2533. </item>
  2534. <item id="status">
  2535. <rank>20</rank>
  2536. </item>
  2537. <item id="org_id">
  2538. <rank>30</rank>
  2539. </item>
  2540. <item id="importance">
  2541. <rank>40</rank>
  2542. </item>
  2543. <item id="device_id">
  2544. <rank>50</rank>
  2545. </item>
  2546. <item id="licence_id">
  2547. <rank>60</rank>
  2548. </item>
  2549. <item id="software_id">
  2550. <rank>70</rank>
  2551. </item>
  2552. <item id="version">
  2553. <rank>80</rank>
  2554. </item>
  2555. <item id="description">
  2556. <rank>90</rank>
  2557. </item>
  2558. <item id="contact_list">
  2559. <rank>100</rank>
  2560. </item>
  2561. <item id="document_list">
  2562. <rank>110</rank>
  2563. </item>
  2564. <item id="solution_list">
  2565. <rank>120</rank>
  2566. </item>
  2567. <item id="contract_list">
  2568. <rank>130</rank>
  2569. </item>
  2570. <item id="ticket_list">
  2571. <rank>140</rank>
  2572. </item>
  2573. <item id="dbinstance_list">
  2574. <rank>150</rank>
  2575. </item>
  2576. </items>
  2577. </details>
  2578. <search>
  2579. <items>
  2580. <item id="status">
  2581. <rank>10</rank>
  2582. </item>
  2583. <item id="org_id">
  2584. <rank>20</rank>
  2585. </item>
  2586. <item id="importance">
  2587. <rank>30</rank>
  2588. </item>
  2589. <item id="device_id">
  2590. <rank>40</rank>
  2591. </item>
  2592. <item id="licence_id">
  2593. <rank>50</rank>
  2594. </item>
  2595. <item id="software_id">
  2596. <rank>60</rank>
  2597. </item>
  2598. <item id="version">
  2599. <rank>70</rank>
  2600. </item>
  2601. </items>
  2602. </search>
  2603. <list>
  2604. <items>
  2605. <item id="status">
  2606. <rank>10</rank>
  2607. </item>
  2608. <item id="org_id">
  2609. <rank>20</rank>
  2610. </item>
  2611. <item id="importance">
  2612. <rank>30</rank>
  2613. </item>
  2614. <item id="device_id">
  2615. <rank>40</rank>
  2616. </item>
  2617. <item id="software_id">
  2618. <rank>50</rank>
  2619. </item>
  2620. <item id="version">
  2621. <rank>60</rank>
  2622. </item>
  2623. </items>
  2624. </list>
  2625. </presentation>
  2626. </class>
  2627. <class id="ApplicationInstance" _delta="define">
  2628. <parent>SoftwareInstance</parent>
  2629. <properties>
  2630. <category>bizmodel,searchable,configmgmt</category>
  2631. <abstract>false</abstract>
  2632. <key_type>autoincrement</key_type>
  2633. <db_table>softwareinstance_application</db_table>
  2634. <db_key_field>id</db_key_field>
  2635. <db_final_class_field/>
  2636. <naming>
  2637. <format>%1$s - %2$s</format>
  2638. <attributes>
  2639. <attribute id="name"/>
  2640. <attribute id="device_id_friendlyname"/>
  2641. </attributes>
  2642. </naming>
  2643. <display_template/>
  2644. <icon>images/application.png</icon>
  2645. <reconciliation>
  2646. <attributes>
  2647. <attribute id="name"/>
  2648. <attribute id="software_id"/>
  2649. <attribute id="software_name"/>
  2650. <attribute id="device_id"/>
  2651. <attribute id="device_name"/>
  2652. <attribute id="org_id"/>
  2653. <attribute id="owner_name"/>
  2654. </attributes>
  2655. </reconciliation>
  2656. </properties>
  2657. <fields>
  2658. <field id="software_id" xsi:type="AttributeExternalKey">
  2659. <sql>software_id</sql>
  2660. <target_class>Application</target_class>
  2661. <is_null_allowed>false</is_null_allowed>
  2662. <on_target_delete>DEL_MANUAL</on_target_delete>
  2663. <jointype/>
  2664. </field>
  2665. <field id="software_name" xsi:type="AttributeExternalField">
  2666. <extkey_attcode>software_id</extkey_attcode>
  2667. <target_attcode>name</target_attcode>
  2668. </field>
  2669. </fields>
  2670. <methods/>
  2671. <presentation>
  2672. <details>
  2673. <items>
  2674. <item id="name">
  2675. <rank>10</rank>
  2676. </item>
  2677. <item id="status">
  2678. <rank>20</rank>
  2679. </item>
  2680. <item id="org_id">
  2681. <rank>30</rank>
  2682. </item>
  2683. <item id="importance">
  2684. <rank>40</rank>
  2685. </item>
  2686. <item id="device_id">
  2687. <rank>50</rank>
  2688. </item>
  2689. <item id="licence_id">
  2690. <rank>60</rank>
  2691. </item>
  2692. <item id="software_id">
  2693. <rank>70</rank>
  2694. </item>
  2695. <item id="version">
  2696. <rank>80</rank>
  2697. </item>
  2698. <item id="description">
  2699. <rank>90</rank>
  2700. </item>
  2701. <item id="contact_list">
  2702. <rank>100</rank>
  2703. </item>
  2704. <item id="document_list">
  2705. <rank>110</rank>
  2706. </item>
  2707. <item id="solution_list">
  2708. <rank>120</rank>
  2709. </item>
  2710. <item id="contract_list">
  2711. <rank>130</rank>
  2712. </item>
  2713. <item id="ticket_list">
  2714. <rank>140</rank>
  2715. </item>
  2716. </items>
  2717. </details>
  2718. <search>
  2719. <items>
  2720. <item id="status">
  2721. <rank>10</rank>
  2722. </item>
  2723. <item id="org_id">
  2724. <rank>20</rank>
  2725. </item>
  2726. <item id="importance">
  2727. <rank>30</rank>
  2728. </item>
  2729. <item id="device_id">
  2730. <rank>40</rank>
  2731. </item>
  2732. <item id="licence_id">
  2733. <rank>50</rank>
  2734. </item>
  2735. <item id="software_id">
  2736. <rank>60</rank>
  2737. </item>
  2738. <item id="version">
  2739. <rank>70</rank>
  2740. </item>
  2741. </items>
  2742. </search>
  2743. <list>
  2744. <items>
  2745. <item id="status">
  2746. <rank>10</rank>
  2747. </item>
  2748. <item id="org_id">
  2749. <rank>20</rank>
  2750. </item>
  2751. <item id="importance">
  2752. <rank>30</rank>
  2753. </item>
  2754. <item id="device_id">
  2755. <rank>40</rank>
  2756. </item>
  2757. <item id="software_id">
  2758. <rank>50</rank>
  2759. </item>
  2760. <item id="version">
  2761. <rank>60</rank>
  2762. </item>
  2763. </items>
  2764. </list>
  2765. </presentation>
  2766. </class>
  2767. <class id="DatabaseInstance" _delta="define">
  2768. <parent>FunctionalCI</parent>
  2769. <properties>
  2770. <category>bizmodel,searchable,configmgmt</category>
  2771. <abstract>false</abstract>
  2772. <key_type>autoincrement</key_type>
  2773. <db_table>databaseinstance</db_table>
  2774. <db_key_field>id</db_key_field>
  2775. <db_final_class_field/>
  2776. <naming>
  2777. <format>%1$s - %2$s</format>
  2778. <attributes>
  2779. <attribute id="name"/>
  2780. <attribute id="db_server_instance_id_friendlyname"/>
  2781. </attributes>
  2782. </naming>
  2783. <display_template/>
  2784. <icon>images/database-instance.png</icon>
  2785. <reconciliation>
  2786. <attributes>
  2787. <attribute id="name"/>
  2788. <attribute id="org_id"/>
  2789. <attribute id="owner_name"/>
  2790. <attribute id="db_server_instance_id"/>
  2791. <attribute id="db_server_instance_name"/>
  2792. </attributes>
  2793. </reconciliation>
  2794. </properties>
  2795. <fields>
  2796. <field id="db_server_instance_id" xsi:type="AttributeExternalKey">
  2797. <filter><![CDATA[SELECT DBServerInstance WHERE org_id = :this->org_id]]></filter>
  2798. <dependencies>
  2799. <attribute id="org_id"/>
  2800. </dependencies>
  2801. <sql>db_server_instance_id</sql>
  2802. <target_class>DBServerInstance</target_class>
  2803. <is_null_allowed>false</is_null_allowed>
  2804. <on_target_delete>DEL_MANUAL</on_target_delete>
  2805. <jointype/>
  2806. </field>
  2807. <field id="db_server_instance_name" xsi:type="AttributeExternalField">
  2808. <extkey_attcode>db_server_instance_id</extkey_attcode>
  2809. <target_attcode>name</target_attcode>
  2810. </field>
  2811. <field id="db_server_instance_version" xsi:type="AttributeExternalField">
  2812. <extkey_attcode>db_server_instance_id</extkey_attcode>
  2813. <target_attcode>version</target_attcode>
  2814. </field>
  2815. <field id="description" xsi:type="AttributeText">
  2816. <sql>description</sql>
  2817. <default_value/>
  2818. <is_null_allowed>true</is_null_allowed>
  2819. </field>
  2820. </fields>
  2821. <methods>
  2822. <method id="GetRelationQueries">
  2823. <static>true</static>
  2824. <access>public</access>
  2825. <type>Overload-DBObject</type>
  2826. <code><![CDATA[ public static function GetRelationQueries($sRelCode)
  2827. {
  2828. switch ($sRelCode)
  2829. {
  2830. case "depends on":
  2831. $aRels = array(
  2832. "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),
  2833. );
  2834. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  2835. break;
  2836. default:
  2837. return parent::GetRelationQueries($sRelCode);
  2838. }
  2839. }]]></code>
  2840. </method>
  2841. </methods>
  2842. <presentation>
  2843. <details>
  2844. <items>
  2845. <item id="name">
  2846. <rank>10</rank>
  2847. </item>
  2848. <item id="status">
  2849. <rank>20</rank>
  2850. </item>
  2851. <item id="org_id">
  2852. <rank>30</rank>
  2853. </item>
  2854. <item id="importance">
  2855. <rank>40</rank>
  2856. </item>
  2857. <item id="db_server_instance_id">
  2858. <rank>50</rank>
  2859. </item>
  2860. <item id="db_server_instance_version">
  2861. <rank>60</rank>
  2862. </item>
  2863. <item id="description">
  2864. <rank>70</rank>
  2865. </item>
  2866. <item id="contact_list">
  2867. <rank>80</rank>
  2868. </item>
  2869. <item id="document_list">
  2870. <rank>90</rank>
  2871. </item>
  2872. <item id="solution_list">
  2873. <rank>100</rank>
  2874. </item>
  2875. <item id="contract_list">
  2876. <rank>110</rank>
  2877. </item>
  2878. <item id="ticket_list">
  2879. <rank>120</rank>
  2880. </item>
  2881. </items>
  2882. </details>
  2883. <search>
  2884. <items>
  2885. <item id="name">
  2886. <rank>10</rank>
  2887. </item>
  2888. <item id="status">
  2889. <rank>20</rank>
  2890. </item>
  2891. <item id="org_id">
  2892. <rank>30</rank>
  2893. </item>
  2894. <item id="importance">
  2895. <rank>40</rank>
  2896. </item>
  2897. <item id="db_server_instance_id">
  2898. <rank>50</rank>
  2899. </item>
  2900. <item id="db_server_instance_version">
  2901. <rank>60</rank>
  2902. </item>
  2903. </items>
  2904. </search>
  2905. <list>
  2906. <items>
  2907. <item id="status">
  2908. <rank>10</rank>
  2909. </item>
  2910. <item id="org_id">
  2911. <rank>20</rank>
  2912. </item>
  2913. <item id="importance">
  2914. <rank>30</rank>
  2915. </item>
  2916. <item id="db_server_instance_id">
  2917. <rank>40</rank>
  2918. </item>
  2919. <item id="db_server_instance_version">
  2920. <rank>50</rank>
  2921. </item>
  2922. </items>
  2923. </list>
  2924. </presentation>
  2925. </class>
  2926. <class id="ApplicationSolution" _delta="define">
  2927. <parent>FunctionalCI</parent>
  2928. <properties>
  2929. <category>bizmodel,searchable,configmgmt</category>
  2930. <abstract>false</abstract>
  2931. <key_type>autoincrement</key_type>
  2932. <db_table>applicationsolution</db_table>
  2933. <db_key_field>id</db_key_field>
  2934. <db_final_class_field/>
  2935. <naming>
  2936. <format>%1$s</format>
  2937. <attributes>
  2938. <attribute id="name"/>
  2939. </attributes>
  2940. </naming>
  2941. <display_template/>
  2942. <icon>images/solution.png</icon>
  2943. <reconciliation>
  2944. <attributes>
  2945. <attribute id="name"/>
  2946. <attribute id="org_id"/>
  2947. <attribute id="owner_name"/>
  2948. </attributes>
  2949. </reconciliation>
  2950. </properties>
  2951. <fields>
  2952. <field id="description" xsi:type="AttributeText">
  2953. <sql>description</sql>
  2954. <default_value/>
  2955. <is_null_allowed>true</is_null_allowed>
  2956. </field>
  2957. <field id="ci_list" xsi:type="AttributeLinkedSetIndirect">
  2958. <linked_class>lnkSolutionToCI</linked_class>
  2959. <ext_key_to_me>solution_id</ext_key_to_me>
  2960. <count_min>0</count_min>
  2961. <count_max>0</count_max>
  2962. <ext_key_to_remote>ci_id</ext_key_to_remote>
  2963. </field>
  2964. <field id="process_list" xsi:type="AttributeLinkedSetIndirect">
  2965. <linked_class>lnkProcessToSolution</linked_class>
  2966. <ext_key_to_me>solution_id</ext_key_to_me>
  2967. <count_min>0</count_min>
  2968. <count_max>0</count_max>
  2969. <ext_key_to_remote>process_id</ext_key_to_remote>
  2970. </field>
  2971. </fields>
  2972. <methods>
  2973. <method id="GetRelationQueries">
  2974. <static>true</static>
  2975. <access>public</access>
  2976. <type>Overload-DBObject</type>
  2977. <code><![CDATA[ public static function GetRelationQueries($sRelCode)
  2978. {
  2979. switch ($sRelCode)
  2980. {
  2981. case "impacts":
  2982. $aRels = array(
  2983. "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),
  2984. );
  2985. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  2986. break;
  2987. case "depends on":
  2988. $aRels = array(
  2989. "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),
  2990. );
  2991. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  2992. break;
  2993. default:
  2994. return parent::GetRelationQueries($sRelCode);
  2995. }
  2996. }]]></code>
  2997. </method>
  2998. </methods>
  2999. <presentation>
  3000. <details>
  3001. <items>
  3002. <item id="name">
  3003. <rank>10</rank>
  3004. </item>
  3005. <item id="status">
  3006. <rank>20</rank>
  3007. </item>
  3008. <item id="org_id">
  3009. <rank>30</rank>
  3010. </item>
  3011. <item id="importance">
  3012. <rank>40</rank>
  3013. </item>
  3014. <item id="description">
  3015. <rank>50</rank>
  3016. </item>
  3017. <item id="contact_list">
  3018. <rank>60</rank>
  3019. </item>
  3020. <item id="document_list">
  3021. <rank>70</rank>
  3022. </item>
  3023. <item id="solution_list">
  3024. <rank>80</rank>
  3025. </item>
  3026. <item id="contract_list">
  3027. <rank>90</rank>
  3028. </item>
  3029. <item id="ticket_list">
  3030. <rank>100</rank>
  3031. </item>
  3032. <item id="ci_list">
  3033. <rank>110</rank>
  3034. </item>
  3035. <item id="process_list">
  3036. <rank>120</rank>
  3037. </item>
  3038. </items>
  3039. </details>
  3040. <search>
  3041. <items>
  3042. <item id="name">
  3043. <rank>10</rank>
  3044. </item>
  3045. <item id="status">
  3046. <rank>20</rank>
  3047. </item>
  3048. <item id="org_id">
  3049. <rank>30</rank>
  3050. </item>
  3051. <item id="importance">
  3052. <rank>40</rank>
  3053. </item>
  3054. </items>
  3055. </search>
  3056. <list>
  3057. <items>
  3058. <item id="status">
  3059. <rank>10</rank>
  3060. </item>
  3061. <item id="org_id">
  3062. <rank>20</rank>
  3063. </item>
  3064. <item id="importance">
  3065. <rank>30</rank>
  3066. </item>
  3067. </items>
  3068. </list>
  3069. </presentation>
  3070. </class>
  3071. <class id="BusinessProcess" _delta="define">
  3072. <parent>FunctionalCI</parent>
  3073. <properties>
  3074. <category>bizmodel,searchable,configmgmt</category>
  3075. <abstract>false</abstract>
  3076. <key_type>autoincrement</key_type>
  3077. <db_table>businessprocess</db_table>
  3078. <db_key_field>id</db_key_field>
  3079. <db_final_class_field/>
  3080. <naming>
  3081. <format>%1$s</format>
  3082. <attributes>
  3083. <attribute id="name"/>
  3084. </attributes>
  3085. </naming>
  3086. <display_template/>
  3087. <icon>images/business-process.png</icon>
  3088. <reconciliation>
  3089. <attributes>
  3090. <attribute id="name"/>
  3091. <attribute id="org_id"/>
  3092. <attribute id="owner_name"/>
  3093. </attributes>
  3094. </reconciliation>
  3095. </properties>
  3096. <fields>
  3097. <field id="description" xsi:type="AttributeText">
  3098. <sql>description</sql>
  3099. <default_value/>
  3100. <is_null_allowed>true</is_null_allowed>
  3101. </field>
  3102. <field id="used_solution_list" xsi:type="AttributeLinkedSetIndirect">
  3103. <linked_class>lnkProcessToSolution</linked_class>
  3104. <ext_key_to_me>process_id</ext_key_to_me>
  3105. <count_min>0</count_min>
  3106. <count_max>0</count_max>
  3107. <ext_key_to_remote>solution_id</ext_key_to_remote>
  3108. </field>
  3109. </fields>
  3110. <methods>
  3111. <method id="GetRelationQueries">
  3112. <static>true</static>
  3113. <access>public</access>
  3114. <type>Overload-DBObject</type>
  3115. <code><![CDATA[ public static function GetRelationQueries($sRelCode)
  3116. {
  3117. switch ($sRelCode)
  3118. {
  3119. case "depends on":
  3120. $aRels = array(
  3121. "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),
  3122. );
  3123. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  3124. break;
  3125. default:
  3126. return parent::GetRelationQueries($sRelCode);
  3127. }
  3128. }]]></code>
  3129. </method>
  3130. </methods>
  3131. <presentation>
  3132. <details>
  3133. <items>
  3134. <item id="name">
  3135. <rank>10</rank>
  3136. </item>
  3137. <item id="status">
  3138. <rank>20</rank>
  3139. </item>
  3140. <item id="org_id">
  3141. <rank>30</rank>
  3142. </item>
  3143. <item id="importance">
  3144. <rank>40</rank>
  3145. </item>
  3146. <item id="description">
  3147. <rank>50</rank>
  3148. </item>
  3149. <item id="contact_list">
  3150. <rank>60</rank>
  3151. </item>
  3152. <item id="document_list">
  3153. <rank>70</rank>
  3154. </item>
  3155. <item id="contract_list">
  3156. <rank>80</rank>
  3157. </item>
  3158. <item id="ticket_list">
  3159. <rank>90</rank>
  3160. </item>
  3161. <item id="used_solution_list">
  3162. <rank>100</rank>
  3163. </item>
  3164. </items>
  3165. </details>
  3166. <search>
  3167. <items>
  3168. <item id="name">
  3169. <rank>10</rank>
  3170. </item>
  3171. <item id="status">
  3172. <rank>20</rank>
  3173. </item>
  3174. <item id="org_id">
  3175. <rank>30</rank>
  3176. </item>
  3177. <item id="importance">
  3178. <rank>40</rank>
  3179. </item>
  3180. <item id="description">
  3181. <rank>50</rank>
  3182. </item>
  3183. </items>
  3184. </search>
  3185. <list>
  3186. <items>
  3187. <item id="status">
  3188. <rank>10</rank>
  3189. </item>
  3190. <item id="org_id">
  3191. <rank>20</rank>
  3192. </item>
  3193. <item id="importance">
  3194. <rank>30</rank>
  3195. </item>
  3196. </items>
  3197. </list>
  3198. </presentation>
  3199. </class>
  3200. <class id="ConnectableCI" _delta="define">
  3201. <parent>FunctionalCI</parent>
  3202. <properties>
  3203. <category>bizmodel,searchable,configmgmt</category>
  3204. <abstract>true</abstract>
  3205. <key_type>autoincrement</key_type>
  3206. <db_table>connectableci</db_table>
  3207. <db_key_field>id</db_key_field>
  3208. <db_final_class_field/>
  3209. <naming>
  3210. <format>%1$s</format>
  3211. <attributes>
  3212. <attribute id="name"/>
  3213. </attributes>
  3214. </naming>
  3215. <display_template/>
  3216. <icon>images/server.png</icon>
  3217. <reconciliation>
  3218. <attributes>
  3219. <attribute id="name"/>
  3220. <attribute id="org_id"/>
  3221. <attribute id="owner_name"/>
  3222. <attribute id="finalclass"/>
  3223. </attributes>
  3224. </reconciliation>
  3225. </properties>
  3226. <fields>
  3227. <field id="brand" xsi:type="AttributeString">
  3228. <sql>brand</sql>
  3229. <default_value/>
  3230. <is_null_allowed>true</is_null_allowed>
  3231. </field>
  3232. <field id="model" xsi:type="AttributeString">
  3233. <sql>model</sql>
  3234. <default_value/>
  3235. <is_null_allowed>true</is_null_allowed>
  3236. </field>
  3237. <field id="serial_number" xsi:type="AttributeString">
  3238. <sql>serial_number</sql>
  3239. <default_value/>
  3240. <is_null_allowed>true</is_null_allowed>
  3241. </field>
  3242. <field id="asset_ref" xsi:type="AttributeString">
  3243. <sql>asset_ref</sql>
  3244. <default_value/>
  3245. <is_null_allowed>true</is_null_allowed>
  3246. </field>
  3247. </fields>
  3248. <methods/>
  3249. <presentation>
  3250. <details>
  3251. <items>
  3252. <item id="name">
  3253. <rank>10</rank>
  3254. </item>
  3255. <item id="status">
  3256. <rank>20</rank>
  3257. </item>
  3258. <item id="org_id">
  3259. <rank>30</rank>
  3260. </item>
  3261. <item id="importance">
  3262. <rank>40</rank>
  3263. </item>
  3264. <item id="brand">
  3265. <rank>50</rank>
  3266. </item>
  3267. <item id="model">
  3268. <rank>60</rank>
  3269. </item>
  3270. <item id="serial_number">
  3271. <rank>70</rank>
  3272. </item>
  3273. <item id="asset_ref">
  3274. <rank>80</rank>
  3275. </item>
  3276. <item id="contact_list">
  3277. <rank>90</rank>
  3278. </item>
  3279. <item id="document_list">
  3280. <rank>100</rank>
  3281. </item>
  3282. <item id="solution_list">
  3283. <rank>110</rank>
  3284. </item>
  3285. <item id="contract_list">
  3286. <rank>120</rank>
  3287. </item>
  3288. <item id="ticket_list">
  3289. <rank>130</rank>
  3290. </item>
  3291. </items>
  3292. </details>
  3293. <search>
  3294. <items>
  3295. <item id="name">
  3296. <rank>10</rank>
  3297. </item>
  3298. <item id="status">
  3299. <rank>20</rank>
  3300. </item>
  3301. <item id="org_id">
  3302. <rank>30</rank>
  3303. </item>
  3304. <item id="importance">
  3305. <rank>40</rank>
  3306. </item>
  3307. <item id="brand">
  3308. <rank>50</rank>
  3309. </item>
  3310. <item id="model">
  3311. <rank>60</rank>
  3312. </item>
  3313. <item id="serial_number">
  3314. <rank>70</rank>
  3315. </item>
  3316. <item id="asset_ref">
  3317. <rank>80</rank>
  3318. </item>
  3319. </items>
  3320. </search>
  3321. <list>
  3322. <items>
  3323. <item id="finalclass">
  3324. <rank>10</rank>
  3325. </item>
  3326. <item id="status">
  3327. <rank>20</rank>
  3328. </item>
  3329. <item id="org_id">
  3330. <rank>30</rank>
  3331. </item>
  3332. <item id="importance">
  3333. <rank>40</rank>
  3334. </item>
  3335. <item id="brand">
  3336. <rank>50</rank>
  3337. </item>
  3338. <item id="model">
  3339. <rank>60</rank>
  3340. </item>
  3341. <item id="serial_number">
  3342. <rank>70</rank>
  3343. </item>
  3344. <item id="asset_ref">
  3345. <rank>80</rank>
  3346. </item>
  3347. </items>
  3348. </list>
  3349. </presentation>
  3350. </class>
  3351. <class id="NetworkInterface" _delta="define">
  3352. <parent>ConnectableCI</parent>
  3353. <properties>
  3354. <category>bizmodel,searchable,configmgmt</category>
  3355. <abstract>false</abstract>
  3356. <key_type>autoincrement</key_type>
  3357. <db_table>networkinterface</db_table>
  3358. <db_key_field>id</db_key_field>
  3359. <db_final_class_field/>
  3360. <naming>
  3361. <format>%1$s - %2$s</format>
  3362. <attributes>
  3363. <attribute id="device_id_friendlyname"/>
  3364. <attribute id="name"/>
  3365. </attributes>
  3366. </naming>
  3367. <display_template/>
  3368. <icon>images/interface.png</icon>
  3369. <reconciliation>
  3370. <attributes>
  3371. <attribute id="name"/>
  3372. <attribute id="device_id"/>
  3373. <attribute id="device_name"/>
  3374. <attribute id="org_id"/>
  3375. </attributes>
  3376. </reconciliation>
  3377. </properties>
  3378. <fields>
  3379. <field id="device_id" xsi:type="AttributeExternalKey">
  3380. <filter><![CDATA[SELECT Device WHERE org_id = :this->org_id]]></filter>
  3381. <dependencies>
  3382. <attribute id="org_id"/>
  3383. </dependencies>
  3384. <sql>device_id</sql>
  3385. <target_class>Device</target_class>
  3386. <is_null_allowed>false</is_null_allowed>
  3387. <on_target_delete>DEL_AUTO</on_target_delete>
  3388. <jointype/>
  3389. </field>
  3390. <field id="device_name" xsi:type="AttributeExternalField">
  3391. <extkey_attcode>device_id</extkey_attcode>
  3392. <target_attcode>name</target_attcode>
  3393. </field>
  3394. <field id="logical_type" xsi:type="AttributeEnum">
  3395. <values>
  3396. <value>backup</value>
  3397. <value>logical</value>
  3398. <value>port</value>
  3399. <value>primary</value>
  3400. <value>secondary</value>
  3401. </values>
  3402. <sql>logical_type</sql>
  3403. <default_value>primary</default_value>
  3404. <is_null_allowed>false</is_null_allowed>
  3405. </field>
  3406. <field id="physical_type" xsi:type="AttributeEnum">
  3407. <values>
  3408. <value>atm</value>
  3409. <value>ethernet</value>
  3410. <value>framerelay</value>
  3411. <value>vlan</value>
  3412. </values>
  3413. <sql>physical_type</sql>
  3414. <default_value>ethernet</default_value>
  3415. <is_null_allowed>false</is_null_allowed>
  3416. </field>
  3417. <field id="ip_address" xsi:type="AttributeIPAddress">
  3418. <sql>ip_address</sql>
  3419. <default_value/>
  3420. <is_null_allowed>true</is_null_allowed>
  3421. </field>
  3422. <field id="ip_mask" xsi:type="AttributeIPAddress">
  3423. <sql>ip_mask</sql>
  3424. <default_value/>
  3425. <is_null_allowed>true</is_null_allowed>
  3426. </field>
  3427. <field id="mac_address" xsi:type="AttributeString">
  3428. <sql>mac_address</sql>
  3429. <default_value/>
  3430. <is_null_allowed>true</is_null_allowed>
  3431. </field>
  3432. <field id="speed" xsi:type="AttributeInteger">
  3433. <sql>speed</sql>
  3434. <default_value/>
  3435. <is_null_allowed>true</is_null_allowed>
  3436. </field>
  3437. <field id="duplex" xsi:type="AttributeEnum">
  3438. <values>
  3439. <value>full</value>
  3440. <value>half</value>
  3441. <value>auto</value>
  3442. <value>unknown</value>
  3443. </values>
  3444. <sql>duplex</sql>
  3445. <default_value>full</default_value>
  3446. <is_null_allowed>true</is_null_allowed>
  3447. </field>
  3448. <field id="connected_if" xsi:type="AttributeExternalKey">
  3449. <filter><![CDATA[SELECT NetworkInterface WHERE org_id = :this->org_id]]></filter>
  3450. <dependencies>
  3451. <attribute id="org_id"/>
  3452. </dependencies>
  3453. <sql>connected_if</sql>
  3454. <target_class>NetworkInterface</target_class>
  3455. <is_null_allowed>true</is_null_allowed>
  3456. <on_target_delete>DEL_AUTO</on_target_delete>
  3457. <jointype/>
  3458. </field>
  3459. <field id="connected_name" xsi:type="AttributeExternalField">
  3460. <extkey_attcode>connected_if</extkey_attcode>
  3461. <target_attcode>name</target_attcode>
  3462. </field>
  3463. <field id="connected_if_device_id" xsi:type="AttributeExternalField">
  3464. <extkey_attcode>connected_if</extkey_attcode>
  3465. <target_attcode>device_id</target_attcode>
  3466. </field>
  3467. <field id="connected_if_device_id_name" xsi:type="AttributeExternalField">
  3468. <extkey_attcode>connected_if</extkey_attcode>
  3469. <target_attcode>device_name</target_attcode>
  3470. </field>
  3471. <field id="link_type" xsi:type="AttributeEnum">
  3472. <values>
  3473. <value>uplink</value>
  3474. <value>downlink</value>
  3475. </values>
  3476. <sql>link_type</sql>
  3477. <default_value>uplink</default_value>
  3478. <is_null_allowed>false</is_null_allowed>
  3479. </field>
  3480. <field id="connected_if_device_id_friendlyname" xsi:type="AttributeExternalField">
  3481. <extkey_attcode>connected_if</extkey_attcode>
  3482. <target_attcode>device_id_friendlyname</target_attcode>
  3483. </field>
  3484. </fields>
  3485. <methods>
  3486. <method id="GetRelationQueries">
  3487. <static>true</static>
  3488. <access>public</access>
  3489. <type>Overload-DBObject</type>
  3490. <code><![CDATA[ public static function GetRelationQueries($sRelCode)
  3491. {
  3492. switch ($sRelCode)
  3493. {
  3494. case "impacts":
  3495. $aRels = array(
  3496. "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),
  3497. );
  3498. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  3499. break;
  3500. default:
  3501. return parent::GetRelationQueries($sRelCode);
  3502. }
  3503. }]]></code>
  3504. </method>
  3505. <method id="UpdateConnectedInterface">
  3506. <static>false</static>
  3507. <access>protected</access>
  3508. <type>Overload-DBObject</type>
  3509. <code><![CDATA[ protected function UpdateConnectedInterface()
  3510. {
  3511. $iPrevTargetIf = $this->m_aOrigValues['connected_if']; // The interface this interface was connected to
  3512. if ($iPrevTargetIf == $this->Get('connected_if'))
  3513. {
  3514. return;
  3515. }
  3516. if ($iPrevTargetIf != 0)
  3517. {
  3518. // The interface was previosuly connected to another interface. Make sure that we reset this 'previously connected interface'
  3519. $oPrevConnectedIf = MetaModel::GetObject('NetworkInterface', $iPrevTargetIf, false);
  3520. if (!is_null($oPrevConnectedIf))
  3521. {
  3522. if ($oPrevConnectedIf->Get('connected_if') == $this->GetKey()) // protection against reentrance
  3523. {
  3524. $oPrevConnectedIf->Set('connected_if', 0);
  3525. $oPrevConnectedIf->DBUpdate();
  3526. }
  3527. }
  3528. }
  3529. $oConnIf = MetaModel::GetObject('NetworkInterface', $this->Get('connected_if'), false /* no exception if not found */);
  3530. if (!is_null($oConnIf))
  3531. {
  3532. $sLink = $this->Get('link_type');
  3533. $sConnLink = ($sLink == 'uplink') ? 'downlink' : 'uplink';
  3534. if (($oConnIf->Get('connected_if') != $this->GetKey()) || ($sConnLink != $oConnIf->Get('link_type')))
  3535. {
  3536. // Connect the remote interface to the current one
  3537. $oConnIf->Set('connected_if', $this->GetKey());
  3538. $oConnIf->Set('link_type', $sConnLink);
  3539. // Need to backup the current change, because it is reset when DBUpdateTracked is complete
  3540. $oConnIf->DBUpdate();
  3541. }
  3542. }
  3543. }]]></code>
  3544. </method>
  3545. <method id="AfterInsert">
  3546. <static>false</static>
  3547. <access>protected</access>
  3548. <type>Overload-DBObject</type>
  3549. <code><![CDATA[ protected function AfterInsert()
  3550. {
  3551. $this->UpdateConnectedInterface();
  3552. parent::AfterInsert();
  3553. }]]></code>
  3554. </method>
  3555. <method id="AfterUpdate">
  3556. <static>false</static>
  3557. <access>protected</access>
  3558. <type>Overload-DBObject</type>
  3559. <code><![CDATA[ protected function AfterUpdate()
  3560. {
  3561. $this->UpdateConnectedInterface();
  3562. parent::AfterUpdate();
  3563. }]]></code>
  3564. </method>
  3565. </methods>
  3566. <presentation>
  3567. <details>
  3568. <items>
  3569. <item id="name">
  3570. <rank>10</rank>
  3571. </item>
  3572. <item id="status">
  3573. <rank>20</rank>
  3574. </item>
  3575. <item id="org_id">
  3576. <rank>30</rank>
  3577. </item>
  3578. <item id="importance">
  3579. <rank>40</rank>
  3580. </item>
  3581. <item id="brand">
  3582. <rank>50</rank>
  3583. </item>
  3584. <item id="model">
  3585. <rank>60</rank>
  3586. </item>
  3587. <item id="serial_number">
  3588. <rank>70</rank>
  3589. </item>
  3590. <item id="asset_ref">
  3591. <rank>80</rank>
  3592. </item>
  3593. <item id="device_id">
  3594. <rank>90</rank>
  3595. </item>
  3596. <item id="logical_type">
  3597. <rank>100</rank>
  3598. </item>
  3599. <item id="physical_type">
  3600. <rank>110</rank>
  3601. </item>
  3602. <item id="ip_address">
  3603. <rank>120</rank>
  3604. </item>
  3605. <item id="ip_mask">
  3606. <rank>130</rank>
  3607. </item>
  3608. <item id="mac_address">
  3609. <rank>140</rank>
  3610. </item>
  3611. <item id="speed">
  3612. <rank>150</rank>
  3613. </item>
  3614. <item id="duplex">
  3615. <rank>160</rank>
  3616. </item>
  3617. <item id="link_type">
  3618. <rank>170</rank>
  3619. </item>
  3620. <item id="connected_if">
  3621. <rank>180</rank>
  3622. </item>
  3623. <item id="connected_if_device_id">
  3624. <rank>190</rank>
  3625. </item>
  3626. <item id="contact_list">
  3627. <rank>200</rank>
  3628. </item>
  3629. <item id="document_list">
  3630. <rank>210</rank>
  3631. </item>
  3632. <item id="solution_list">
  3633. <rank>220</rank>
  3634. </item>
  3635. <item id="contract_list">
  3636. <rank>230</rank>
  3637. </item>
  3638. <item id="ticket_list">
  3639. <rank>240</rank>
  3640. </item>
  3641. </items>
  3642. </details>
  3643. <search>
  3644. <items>
  3645. <item id="name">
  3646. <rank>10</rank>
  3647. </item>
  3648. <item id="status">
  3649. <rank>20</rank>
  3650. </item>
  3651. <item id="org_id">
  3652. <rank>30</rank>
  3653. </item>
  3654. <item id="importance">
  3655. <rank>40</rank>
  3656. </item>
  3657. <item id="device_id">
  3658. <rank>50</rank>
  3659. </item>
  3660. <item id="logical_type">
  3661. <rank>60</rank>
  3662. </item>
  3663. <item id="physical_type">
  3664. <rank>70</rank>
  3665. </item>
  3666. <item id="ip_address">
  3667. <rank>80</rank>
  3668. </item>
  3669. <item id="ip_mask">
  3670. <rank>90</rank>
  3671. </item>
  3672. <item id="mac_address">
  3673. <rank>100</rank>
  3674. </item>
  3675. <item id="connected_if_device_id">
  3676. <rank>110</rank>
  3677. </item>
  3678. </items>
  3679. </search>
  3680. <list>
  3681. <items>
  3682. <item id="status">
  3683. <rank>10</rank>
  3684. </item>
  3685. <item id="ip_address">
  3686. <rank>20</rank>
  3687. </item>
  3688. <item id="importance">
  3689. <rank>30</rank>
  3690. </item>
  3691. <item id="device_id">
  3692. <rank>40</rank>
  3693. </item>
  3694. <item id="logical_type">
  3695. <rank>50</rank>
  3696. </item>
  3697. <item id="physical_type">
  3698. <rank>60</rank>
  3699. </item>
  3700. <item id="link_type">
  3701. <rank>70</rank>
  3702. </item>
  3703. <item id="connected_if_device_id">
  3704. <rank>80</rank>
  3705. </item>
  3706. </items>
  3707. </list>
  3708. </presentation>
  3709. </class>
  3710. <class id="Device" _delta="define">
  3711. <parent>ConnectableCI</parent>
  3712. <properties>
  3713. <category>bizmodel,searchable,configmgmt</category>
  3714. <abstract>true</abstract>
  3715. <key_type>autoincrement</key_type>
  3716. <db_table>device</db_table>
  3717. <db_key_field>id</db_key_field>
  3718. <db_final_class_field/>
  3719. <naming>
  3720. <format>%1$s</format>
  3721. <attributes>
  3722. <attribute id="name"/>
  3723. </attributes>
  3724. </naming>
  3725. <display_template/>
  3726. <icon>images/server.png</icon>
  3727. <reconciliation>
  3728. <attributes>
  3729. <attribute id="name"/>
  3730. <attribute id="org_id"/>
  3731. <attribute id="owner_name"/>
  3732. </attributes>
  3733. </reconciliation>
  3734. </properties>
  3735. <fields>
  3736. <field id="nwinterface_list" xsi:type="AttributeLinkedSet">
  3737. <linked_class>NetworkInterface</linked_class>
  3738. <ext_key_to_me>device_id</ext_key_to_me>
  3739. <count_min>0</count_min>
  3740. <count_max>0</count_max>
  3741. </field>
  3742. </fields>
  3743. <methods>
  3744. <method id="GetRelationQueries">
  3745. <static>true</static>
  3746. <access>public</access>
  3747. <type>Overload-DBObject</type>
  3748. <code><![CDATA[ public static function GetRelationQueries($sRelCode)
  3749. {
  3750. switch ($sRelCode)
  3751. {
  3752. case "impacts":
  3753. $aRels = array(
  3754. "applications" => array("sQuery"=>"SELECT SoftwareInstance AS app WHERE app.device_id = :this->id", "bPropagate"=>true, "iDistance"=>5),
  3755. "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),
  3756. );
  3757. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  3758. break;
  3759. case "depends on":
  3760. $aRels = array(
  3761. "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),
  3762. );
  3763. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  3764. break;
  3765. default:
  3766. return parent::GetRelationQueries($sRelCode);
  3767. }
  3768. }]]></code>
  3769. </method>
  3770. </methods>
  3771. <presentation>
  3772. <details>
  3773. <items>
  3774. <item id="name">
  3775. <rank>10</rank>
  3776. </item>
  3777. <item id="status">
  3778. <rank>20</rank>
  3779. </item>
  3780. <item id="org_id">
  3781. <rank>30</rank>
  3782. </item>
  3783. <item id="importance">
  3784. <rank>40</rank>
  3785. </item>
  3786. <item id="brand">
  3787. <rank>50</rank>
  3788. </item>
  3789. <item id="model">
  3790. <rank>60</rank>
  3791. </item>
  3792. <item id="serial_number">
  3793. <rank>70</rank>
  3794. </item>
  3795. <item id="asset_ref">
  3796. <rank>80</rank>
  3797. </item>
  3798. <item id="contact_list">
  3799. <rank>90</rank>
  3800. </item>
  3801. <item id="document_list">
  3802. <rank>100</rank>
  3803. </item>
  3804. <item id="solution_list">
  3805. <rank>110</rank>
  3806. </item>
  3807. <item id="contract_list">
  3808. <rank>120</rank>
  3809. </item>
  3810. <item id="ticket_list">
  3811. <rank>130</rank>
  3812. </item>
  3813. <item id="nwinterface_list">
  3814. <rank>140</rank>
  3815. </item>
  3816. </items>
  3817. </details>
  3818. <search>
  3819. <items>
  3820. <item id="name">
  3821. <rank>10</rank>
  3822. </item>
  3823. <item id="status">
  3824. <rank>20</rank>
  3825. </item>
  3826. <item id="org_id">
  3827. <rank>30</rank>
  3828. </item>
  3829. <item id="importance">
  3830. <rank>40</rank>
  3831. </item>
  3832. <item id="brand">
  3833. <rank>50</rank>
  3834. </item>
  3835. <item id="model">
  3836. <rank>60</rank>
  3837. </item>
  3838. <item id="serial_number">
  3839. <rank>70</rank>
  3840. </item>
  3841. <item id="asset_ref">
  3842. <rank>80</rank>
  3843. </item>
  3844. </items>
  3845. </search>
  3846. <list>
  3847. <items>
  3848. <item id="finalclass">
  3849. <rank>10</rank>
  3850. </item>
  3851. <item id="status">
  3852. <rank>20</rank>
  3853. </item>
  3854. <item id="org_id">
  3855. <rank>30</rank>
  3856. </item>
  3857. <item id="importance">
  3858. <rank>40</rank>
  3859. </item>
  3860. <item id="brand">
  3861. <rank>50</rank>
  3862. </item>
  3863. <item id="model">
  3864. <rank>60</rank>
  3865. </item>
  3866. <item id="serial_number">
  3867. <rank>70</rank>
  3868. </item>
  3869. <item id="asset_ref">
  3870. <rank>80</rank>
  3871. </item>
  3872. </items>
  3873. </list>
  3874. </presentation>
  3875. </class>
  3876. <class id="PC" _delta="define">
  3877. <parent>Device</parent>
  3878. <properties>
  3879. <category>bizmodel,searchable,configmgmt</category>
  3880. <abstract>false</abstract>
  3881. <key_type>autoincrement</key_type>
  3882. <db_table>pc</db_table>
  3883. <db_key_field>id</db_key_field>
  3884. <db_final_class_field/>
  3885. <naming>
  3886. <format>%1$s</format>
  3887. <attributes>
  3888. <attribute id="name"/>
  3889. </attributes>
  3890. </naming>
  3891. <display_template/>
  3892. <icon>images/laptop.png</icon>
  3893. <reconciliation>
  3894. <attributes>
  3895. <attribute id="name"/>
  3896. <attribute id="org_id"/>
  3897. <attribute id="owner_name"/>
  3898. </attributes>
  3899. </reconciliation>
  3900. </properties>
  3901. <fields>
  3902. <field id="cpu" xsi:type="AttributeString">
  3903. <sql>cpu</sql>
  3904. <default_value/>
  3905. <is_null_allowed>true</is_null_allowed>
  3906. </field>
  3907. <field id="ram" xsi:type="AttributeString">
  3908. <sql>ram</sql>
  3909. <default_value/>
  3910. <is_null_allowed>true</is_null_allowed>
  3911. </field>
  3912. <field id="hdd" xsi:type="AttributeString">
  3913. <sql>hdd</sql>
  3914. <default_value/>
  3915. <is_null_allowed>true</is_null_allowed>
  3916. </field>
  3917. <field id="os_family" xsi:type="AttributeString">
  3918. <sql>os_family</sql>
  3919. <default_value/>
  3920. <is_null_allowed>true</is_null_allowed>
  3921. </field>
  3922. <field id="os_version" xsi:type="AttributeString">
  3923. <sql>os_version</sql>
  3924. <default_value/>
  3925. <is_null_allowed>true</is_null_allowed>
  3926. </field>
  3927. <field id="application_list" xsi:type="AttributeLinkedSet">
  3928. <linked_class>SoftwareInstance</linked_class>
  3929. <ext_key_to_me>device_id</ext_key_to_me>
  3930. <count_min>0</count_min>
  3931. <count_max>0</count_max>
  3932. </field>
  3933. <field id="patch_list" xsi:type="AttributeLinkedSetIndirect">
  3934. <linked_class>lnkPatchToCI</linked_class>
  3935. <ext_key_to_me>ci_id</ext_key_to_me>
  3936. <count_min>0</count_min>
  3937. <count_max>0</count_max>
  3938. <ext_key_to_remote>patch_id</ext_key_to_remote>
  3939. </field>
  3940. </fields>
  3941. <methods/>
  3942. <presentation>
  3943. <details>
  3944. <items>
  3945. <item id="name">
  3946. <rank>10</rank>
  3947. </item>
  3948. <item id="status">
  3949. <rank>20</rank>
  3950. </item>
  3951. <item id="org_id">
  3952. <rank>30</rank>
  3953. </item>
  3954. <item id="importance">
  3955. <rank>40</rank>
  3956. </item>
  3957. <item id="brand">
  3958. <rank>50</rank>
  3959. </item>
  3960. <item id="model">
  3961. <rank>60</rank>
  3962. </item>
  3963. <item id="serial_number">
  3964. <rank>70</rank>
  3965. </item>
  3966. <item id="asset_ref">
  3967. <rank>80</rank>
  3968. </item>
  3969. <item id="cpu">
  3970. <rank>90</rank>
  3971. </item>
  3972. <item id="ram">
  3973. <rank>100</rank>
  3974. </item>
  3975. <item id="hdd">
  3976. <rank>110</rank>
  3977. </item>
  3978. <item id="os_family">
  3979. <rank>120</rank>
  3980. </item>
  3981. <item id="os_version">
  3982. <rank>130</rank>
  3983. </item>
  3984. <item id="contact_list">
  3985. <rank>140</rank>
  3986. </item>
  3987. <item id="document_list">
  3988. <rank>150</rank>
  3989. </item>
  3990. <item id="solution_list">
  3991. <rank>160</rank>
  3992. </item>
  3993. <item id="contract_list">
  3994. <rank>170</rank>
  3995. </item>
  3996. <item id="ticket_list">
  3997. <rank>180</rank>
  3998. </item>
  3999. <item id="nwinterface_list">
  4000. <rank>190</rank>
  4001. </item>
  4002. <item id="application_list">
  4003. <rank>200</rank>
  4004. </item>
  4005. <item id="patch_list">
  4006. <rank>210</rank>
  4007. </item>
  4008. </items>
  4009. </details>
  4010. <search>
  4011. <items>
  4012. <item id="name">
  4013. <rank>10</rank>
  4014. </item>
  4015. <item id="status">
  4016. <rank>20</rank>
  4017. </item>
  4018. <item id="org_id">
  4019. <rank>30</rank>
  4020. </item>
  4021. <item id="importance">
  4022. <rank>40</rank>
  4023. </item>
  4024. <item id="brand">
  4025. <rank>50</rank>
  4026. </item>
  4027. <item id="model">
  4028. <rank>60</rank>
  4029. </item>
  4030. <item id="serial_number">
  4031. <rank>70</rank>
  4032. </item>
  4033. <item id="asset_ref">
  4034. <rank>80</rank>
  4035. </item>
  4036. <item id="os_family">
  4037. <rank>90</rank>
  4038. </item>
  4039. <item id="os_version">
  4040. <rank>100</rank>
  4041. </item>
  4042. </items>
  4043. </search>
  4044. <list>
  4045. <items>
  4046. <item id="status">
  4047. <rank>10</rank>
  4048. </item>
  4049. <item id="org_id">
  4050. <rank>20</rank>
  4051. </item>
  4052. <item id="importance">
  4053. <rank>30</rank>
  4054. </item>
  4055. <item id="brand">
  4056. <rank>40</rank>
  4057. </item>
  4058. <item id="model">
  4059. <rank>50</rank>
  4060. </item>
  4061. <item id="os_family">
  4062. <rank>60</rank>
  4063. </item>
  4064. </items>
  4065. </list>
  4066. </presentation>
  4067. </class>
  4068. <class id="MobileCI" _delta="define">
  4069. <parent>Device</parent>
  4070. <properties>
  4071. <category>bizmodel,searchable,configmgmt</category>
  4072. <abstract>true</abstract>
  4073. <key_type>autoincrement</key_type>
  4074. <db_table>mobileci</db_table>
  4075. <db_key_field>id</db_key_field>
  4076. <db_final_class_field/>
  4077. <naming>
  4078. <format>%1$s</format>
  4079. <attributes>
  4080. <attribute id="name"/>
  4081. </attributes>
  4082. </naming>
  4083. <display_template/>
  4084. <icon>images/mobile-phone.png</icon>
  4085. <reconciliation>
  4086. <attributes>
  4087. <attribute id="name"/>
  4088. <attribute id="org_id"/>
  4089. <attribute id="owner_name"/>
  4090. </attributes>
  4091. </reconciliation>
  4092. </properties>
  4093. <fields/>
  4094. <methods/>
  4095. <presentation>
  4096. <details>
  4097. <items>
  4098. <item id="name">
  4099. <rank>10</rank>
  4100. </item>
  4101. <item id="status">
  4102. <rank>20</rank>
  4103. </item>
  4104. <item id="org_id">
  4105. <rank>30</rank>
  4106. </item>
  4107. <item id="importance">
  4108. <rank>40</rank>
  4109. </item>
  4110. <item id="brand">
  4111. <rank>50</rank>
  4112. </item>
  4113. <item id="model">
  4114. <rank>60</rank>
  4115. </item>
  4116. <item id="serial_number">
  4117. <rank>70</rank>
  4118. </item>
  4119. <item id="asset_ref">
  4120. <rank>80</rank>
  4121. </item>
  4122. <item id="contact_list">
  4123. <rank>90</rank>
  4124. </item>
  4125. <item id="document_list">
  4126. <rank>100</rank>
  4127. </item>
  4128. <item id="solution_list">
  4129. <rank>110</rank>
  4130. </item>
  4131. <item id="contract_list">
  4132. <rank>120</rank>
  4133. </item>
  4134. <item id="ticket_list">
  4135. <rank>130</rank>
  4136. </item>
  4137. <item id="nwinterface_list">
  4138. <rank>140</rank>
  4139. </item>
  4140. </items>
  4141. </details>
  4142. <search>
  4143. <items>
  4144. <item id="name">
  4145. <rank>10</rank>
  4146. </item>
  4147. <item id="status">
  4148. <rank>20</rank>
  4149. </item>
  4150. <item id="org_id">
  4151. <rank>30</rank>
  4152. </item>
  4153. <item id="importance">
  4154. <rank>40</rank>
  4155. </item>
  4156. <item id="brand">
  4157. <rank>50</rank>
  4158. </item>
  4159. <item id="model">
  4160. <rank>60</rank>
  4161. </item>
  4162. <item id="serial_number">
  4163. <rank>70</rank>
  4164. </item>
  4165. <item id="asset_ref">
  4166. <rank>80</rank>
  4167. </item>
  4168. </items>
  4169. </search>
  4170. <list>
  4171. <items>
  4172. <item id="status">
  4173. <rank>10</rank>
  4174. </item>
  4175. <item id="org_id">
  4176. <rank>20</rank>
  4177. </item>
  4178. <item id="importance">
  4179. <rank>30</rank>
  4180. </item>
  4181. <item id="brand">
  4182. <rank>40</rank>
  4183. </item>
  4184. <item id="model">
  4185. <rank>50</rank>
  4186. </item>
  4187. </items>
  4188. </list>
  4189. </presentation>
  4190. </class>
  4191. <class id="MobilePhone" _delta="define">
  4192. <parent>MobileCI</parent>
  4193. <properties>
  4194. <category>bizmodel,searchable,configmgmt</category>
  4195. <abstract>false</abstract>
  4196. <key_type>autoincrement</key_type>
  4197. <db_table>mobilephone</db_table>
  4198. <db_key_field>id</db_key_field>
  4199. <db_final_class_field/>
  4200. <naming>
  4201. <format>%1$s</format>
  4202. <attributes>
  4203. <attribute id="name"/>
  4204. </attributes>
  4205. </naming>
  4206. <display_template/>
  4207. <icon>images/mobile-phone.png</icon>
  4208. <reconciliation>
  4209. <attributes>
  4210. <attribute id="name"/>
  4211. <attribute id="org_id"/>
  4212. <attribute id="owner_name"/>
  4213. </attributes>
  4214. </reconciliation>
  4215. </properties>
  4216. <fields>
  4217. <field id="number" xsi:type="AttributeString">
  4218. <sql>number</sql>
  4219. <default_value/>
  4220. <is_null_allowed>true</is_null_allowed>
  4221. </field>
  4222. <field id="imei" xsi:type="AttributeString">
  4223. <sql>IMIE</sql>
  4224. <default_value/>
  4225. <is_null_allowed>true</is_null_allowed>
  4226. </field>
  4227. <field id="hw_pin" xsi:type="AttributeString">
  4228. <sql>hw_pin</sql>
  4229. <default_value/>
  4230. <is_null_allowed>true</is_null_allowed>
  4231. </field>
  4232. </fields>
  4233. <methods/>
  4234. <presentation>
  4235. <details>
  4236. <items>
  4237. <item id="name">
  4238. <rank>10</rank>
  4239. </item>
  4240. <item id="status">
  4241. <rank>20</rank>
  4242. </item>
  4243. <item id="org_id">
  4244. <rank>30</rank>
  4245. </item>
  4246. <item id="importance">
  4247. <rank>40</rank>
  4248. </item>
  4249. <item id="brand">
  4250. <rank>50</rank>
  4251. </item>
  4252. <item id="model">
  4253. <rank>60</rank>
  4254. </item>
  4255. <item id="serial_number">
  4256. <rank>70</rank>
  4257. </item>
  4258. <item id="asset_ref">
  4259. <rank>80</rank>
  4260. </item>
  4261. <item id="number">
  4262. <rank>90</rank>
  4263. </item>
  4264. <item id="imei">
  4265. <rank>100</rank>
  4266. </item>
  4267. <item id="hw_pin">
  4268. <rank>110</rank>
  4269. </item>
  4270. <item id="contact_list">
  4271. <rank>120</rank>
  4272. </item>
  4273. <item id="document_list">
  4274. <rank>130</rank>
  4275. </item>
  4276. <item id="solution_list">
  4277. <rank>140</rank>
  4278. </item>
  4279. <item id="contract_list">
  4280. <rank>150</rank>
  4281. </item>
  4282. <item id="ticket_list">
  4283. <rank>160</rank>
  4284. </item>
  4285. <item id="nwinterface_list">
  4286. <rank>170</rank>
  4287. </item>
  4288. </items>
  4289. </details>
  4290. <search>
  4291. <items>
  4292. <item id="name">
  4293. <rank>10</rank>
  4294. </item>
  4295. <item id="status">
  4296. <rank>20</rank>
  4297. </item>
  4298. <item id="org_id">
  4299. <rank>30</rank>
  4300. </item>
  4301. <item id="importance">
  4302. <rank>40</rank>
  4303. </item>
  4304. <item id="brand">
  4305. <rank>50</rank>
  4306. </item>
  4307. <item id="model">
  4308. <rank>60</rank>
  4309. </item>
  4310. <item id="serial_number">
  4311. <rank>70</rank>
  4312. </item>
  4313. <item id="asset_ref">
  4314. <rank>80</rank>
  4315. </item>
  4316. <item id="number">
  4317. <rank>90</rank>
  4318. </item>
  4319. <item id="imei">
  4320. <rank>100</rank>
  4321. </item>
  4322. </items>
  4323. </search>
  4324. <list>
  4325. <items>
  4326. <item id="status">
  4327. <rank>10</rank>
  4328. </item>
  4329. <item id="org_id">
  4330. <rank>20</rank>
  4331. </item>
  4332. <item id="importance">
  4333. <rank>30</rank>
  4334. </item>
  4335. <item id="brand">
  4336. <rank>40</rank>
  4337. </item>
  4338. <item id="model">
  4339. <rank>50</rank>
  4340. </item>
  4341. </items>
  4342. </list>
  4343. </presentation>
  4344. </class>
  4345. <class id="InfrastructureCI" _delta="define">
  4346. <parent>Device</parent>
  4347. <properties>
  4348. <category>bizmodel,searchable,configmgmt</category>
  4349. <abstract>true</abstract>
  4350. <key_type>autoincrement</key_type>
  4351. <db_table>infrastructureci</db_table>
  4352. <db_key_field>id</db_key_field>
  4353. <db_final_class_field/>
  4354. <naming>
  4355. <format>%1$s</format>
  4356. <attributes>
  4357. <attribute id="name"/>
  4358. </attributes>
  4359. </naming>
  4360. <display_template/>
  4361. <icon>images/server.png</icon>
  4362. <reconciliation>
  4363. <attributes>
  4364. <attribute id="name"/>
  4365. <attribute id="org_id"/>
  4366. <attribute id="owner_name"/>
  4367. <attribute id="location_id"/>
  4368. <attribute id="location_name"/>
  4369. </attributes>
  4370. </reconciliation>
  4371. </properties>
  4372. <fields>
  4373. <field id="description" xsi:type="AttributeText">
  4374. <sql>description</sql>
  4375. <default_value/>
  4376. <is_null_allowed>true</is_null_allowed>
  4377. </field>
  4378. <field id="location_id" xsi:type="AttributeExternalKey">
  4379. <filter><![CDATA[SELECT Location AS l WHERE l.org_id = :this->org_id]]></filter>
  4380. <dependencies>
  4381. <attribute id="org_id"/>
  4382. </dependencies>
  4383. <sql>location_id</sql>
  4384. <target_class>Location</target_class>
  4385. <is_null_allowed>true</is_null_allowed>
  4386. <on_target_delete>DEL_MANUAL</on_target_delete>
  4387. <jointype/>
  4388. </field>
  4389. <field id="location_name" xsi:type="AttributeExternalField">
  4390. <extkey_attcode>location_id</extkey_attcode>
  4391. <target_attcode>name</target_attcode>
  4392. </field>
  4393. <field id="location_details" xsi:type="AttributeText">
  4394. <sql>location_details</sql>
  4395. <default_value/>
  4396. <is_null_allowed>true</is_null_allowed>
  4397. </field>
  4398. <field id="management_ip" xsi:type="AttributeIPAddress">
  4399. <sql>management_ip</sql>
  4400. <default_value/>
  4401. <is_null_allowed>true</is_null_allowed>
  4402. </field>
  4403. <field id="default_gateway" xsi:type="AttributeString">
  4404. <sql>default_gateway</sql>
  4405. <default_value/>
  4406. <is_null_allowed>true</is_null_allowed>
  4407. </field>
  4408. </fields>
  4409. <methods/>
  4410. <presentation>
  4411. <details>
  4412. <items>
  4413. <item id="name">
  4414. <rank>10</rank>
  4415. </item>
  4416. <item id="status">
  4417. <rank>20</rank>
  4418. </item>
  4419. <item id="org_id">
  4420. <rank>30</rank>
  4421. </item>
  4422. <item id="importance">
  4423. <rank>40</rank>
  4424. </item>
  4425. <item id="brand">
  4426. <rank>50</rank>
  4427. </item>
  4428. <item id="model">
  4429. <rank>60</rank>
  4430. </item>
  4431. <item id="serial_number">
  4432. <rank>70</rank>
  4433. </item>
  4434. <item id="asset_ref">
  4435. <rank>80</rank>
  4436. </item>
  4437. <item id="description">
  4438. <rank>90</rank>
  4439. </item>
  4440. <item id="location_id">
  4441. <rank>100</rank>
  4442. </item>
  4443. <item id="location_details">
  4444. <rank>110</rank>
  4445. </item>
  4446. <item id="management_ip">
  4447. <rank>120</rank>
  4448. </item>
  4449. <item id="default_gateway">
  4450. <rank>130</rank>
  4451. </item>
  4452. <item id="contact_list">
  4453. <rank>140</rank>
  4454. </item>
  4455. <item id="document_list">
  4456. <rank>150</rank>
  4457. </item>
  4458. <item id="solution_list">
  4459. <rank>160</rank>
  4460. </item>
  4461. <item id="contract_list">
  4462. <rank>170</rank>
  4463. </item>
  4464. <item id="ticket_list">
  4465. <rank>180</rank>
  4466. </item>
  4467. <item id="nwinterface_list">
  4468. <rank>190</rank>
  4469. </item>
  4470. </items>
  4471. </details>
  4472. <search>
  4473. <items>
  4474. <item id="name">
  4475. <rank>10</rank>
  4476. </item>
  4477. <item id="status">
  4478. <rank>20</rank>
  4479. </item>
  4480. <item id="org_id">
  4481. <rank>30</rank>
  4482. </item>
  4483. <item id="importance">
  4484. <rank>40</rank>
  4485. </item>
  4486. <item id="brand">
  4487. <rank>50</rank>
  4488. </item>
  4489. <item id="model">
  4490. <rank>60</rank>
  4491. </item>
  4492. <item id="serial_number">
  4493. <rank>70</rank>
  4494. </item>
  4495. <item id="asset_ref">
  4496. <rank>80</rank>
  4497. </item>
  4498. <item id="location_id">
  4499. <rank>90</rank>
  4500. </item>
  4501. <item id="management_ip">
  4502. <rank>100</rank>
  4503. </item>
  4504. <item id="default_gateway">
  4505. <rank>110</rank>
  4506. </item>
  4507. </items>
  4508. </search>
  4509. <list>
  4510. <items>
  4511. <item id="status">
  4512. <rank>10</rank>
  4513. </item>
  4514. <item id="org_id">
  4515. <rank>20</rank>
  4516. </item>
  4517. <item id="importance">
  4518. <rank>30</rank>
  4519. </item>
  4520. <item id="brand">
  4521. <rank>40</rank>
  4522. </item>
  4523. <item id="model">
  4524. <rank>50</rank>
  4525. </item>
  4526. <item id="location_id">
  4527. <rank>60</rank>
  4528. </item>
  4529. </items>
  4530. </list>
  4531. </presentation>
  4532. </class>
  4533. <class id="NetworkDevice" _delta="define">
  4534. <parent>InfrastructureCI</parent>
  4535. <properties>
  4536. <category>bizmodel,searchable,configmgmt</category>
  4537. <abstract>false</abstract>
  4538. <key_type>autoincrement</key_type>
  4539. <db_table>networkdevice</db_table>
  4540. <db_key_field>id</db_key_field>
  4541. <db_final_class_field/>
  4542. <naming>
  4543. <format>%1$s</format>
  4544. <attributes>
  4545. <attribute id="name"/>
  4546. </attributes>
  4547. </naming>
  4548. <display_template/>
  4549. <icon>images/switch.png</icon>
  4550. <reconciliation>
  4551. <attributes>
  4552. <attribute id="name"/>
  4553. <attribute id="org_id"/>
  4554. <attribute id="owner_name"/>
  4555. <attribute id="location_id"/>
  4556. <attribute id="location_name"/>
  4557. </attributes>
  4558. </reconciliation>
  4559. </properties>
  4560. <fields>
  4561. <field id="type" xsi:type="AttributeEnum">
  4562. <values>
  4563. <value>wanaccelerator</value>
  4564. <value>firewall</value>
  4565. <value>hub</value>
  4566. <value>loadbalancer</value>
  4567. <value>router</value>
  4568. <value>switch</value>
  4569. </values>
  4570. <sql>type</sql>
  4571. <default_value>switch</default_value>
  4572. <is_null_allowed>true</is_null_allowed>
  4573. </field>
  4574. <field id="ios_version" xsi:type="AttributeString">
  4575. <sql>ios_version</sql>
  4576. <default_value/>
  4577. <is_null_allowed>true</is_null_allowed>
  4578. </field>
  4579. <field id="ram" xsi:type="AttributeString">
  4580. <sql>ram</sql>
  4581. <default_value/>
  4582. <is_null_allowed>true</is_null_allowed>
  4583. </field>
  4584. <field id="snmp_read" xsi:type="AttributeString">
  4585. <sql>snmp_read</sql>
  4586. <default_value/>
  4587. <is_null_allowed>true</is_null_allowed>
  4588. </field>
  4589. <field id="snmp_write" xsi:type="AttributeString">
  4590. <sql>snmp_write</sql>
  4591. <default_value/>
  4592. <is_null_allowed>true</is_null_allowed>
  4593. </field>
  4594. </fields>
  4595. <methods/>
  4596. <presentation>
  4597. <details>
  4598. <items>
  4599. <item id="name">
  4600. <rank>10</rank>
  4601. </item>
  4602. <item id="status">
  4603. <rank>20</rank>
  4604. </item>
  4605. <item id="org_id">
  4606. <rank>30</rank>
  4607. </item>
  4608. <item id="importance">
  4609. <rank>40</rank>
  4610. </item>
  4611. <item id="brand">
  4612. <rank>50</rank>
  4613. </item>
  4614. <item id="model">
  4615. <rank>60</rank>
  4616. </item>
  4617. <item id="serial_number">
  4618. <rank>70</rank>
  4619. </item>
  4620. <item id="asset_ref">
  4621. <rank>80</rank>
  4622. </item>
  4623. <item id="description">
  4624. <rank>90</rank>
  4625. </item>
  4626. <item id="location_id">
  4627. <rank>100</rank>
  4628. </item>
  4629. <item id="location_details">
  4630. <rank>110</rank>
  4631. </item>
  4632. <item id="management_ip">
  4633. <rank>120</rank>
  4634. </item>
  4635. <item id="default_gateway">
  4636. <rank>130</rank>
  4637. </item>
  4638. <item id="type">
  4639. <rank>140</rank>
  4640. </item>
  4641. <item id="ios_version">
  4642. <rank>150</rank>
  4643. </item>
  4644. <item id="ram">
  4645. <rank>160</rank>
  4646. </item>
  4647. <item id="snmp_read">
  4648. <rank>170</rank>
  4649. </item>
  4650. <item id="snmp_write">
  4651. <rank>180</rank>
  4652. </item>
  4653. <item id="contact_list">
  4654. <rank>190</rank>
  4655. </item>
  4656. <item id="document_list">
  4657. <rank>200</rank>
  4658. </item>
  4659. <item id="solution_list">
  4660. <rank>210</rank>
  4661. </item>
  4662. <item id="contract_list">
  4663. <rank>220</rank>
  4664. </item>
  4665. <item id="ticket_list">
  4666. <rank>230</rank>
  4667. </item>
  4668. <item id="nwinterface_list">
  4669. <rank>240</rank>
  4670. </item>
  4671. </items>
  4672. </details>
  4673. <search>
  4674. <items>
  4675. <item id="name">
  4676. <rank>10</rank>
  4677. </item>
  4678. <item id="status">
  4679. <rank>20</rank>
  4680. </item>
  4681. <item id="org_id">
  4682. <rank>30</rank>
  4683. </item>
  4684. <item id="importance">
  4685. <rank>40</rank>
  4686. </item>
  4687. <item id="brand">
  4688. <rank>50</rank>
  4689. </item>
  4690. <item id="model">
  4691. <rank>60</rank>
  4692. </item>
  4693. <item id="serial_number">
  4694. <rank>70</rank>
  4695. </item>
  4696. <item id="asset_ref">
  4697. <rank>80</rank>
  4698. </item>
  4699. <item id="location_id">
  4700. <rank>90</rank>
  4701. </item>
  4702. <item id="management_ip">
  4703. <rank>100</rank>
  4704. </item>
  4705. <item id="default_gateway">
  4706. <rank>110</rank>
  4707. </item>
  4708. <item id="type">
  4709. <rank>120</rank>
  4710. </item>
  4711. <item id="ios_version">
  4712. <rank>130</rank>
  4713. </item>
  4714. </items>
  4715. </search>
  4716. <list>
  4717. <items>
  4718. <item id="status">
  4719. <rank>10</rank>
  4720. </item>
  4721. <item id="org_id">
  4722. <rank>20</rank>
  4723. </item>
  4724. <item id="importance">
  4725. <rank>30</rank>
  4726. </item>
  4727. <item id="brand">
  4728. <rank>40</rank>
  4729. </item>
  4730. <item id="model">
  4731. <rank>50</rank>
  4732. </item>
  4733. <item id="location_id">
  4734. <rank>60</rank>
  4735. </item>
  4736. <item id="type">
  4737. <rank>70</rank>
  4738. </item>
  4739. </items>
  4740. </list>
  4741. </presentation>
  4742. </class>
  4743. <class id="Server" _delta="define">
  4744. <parent>InfrastructureCI</parent>
  4745. <properties>
  4746. <category>bizmodel,searchable,configmgmt</category>
  4747. <abstract>false</abstract>
  4748. <key_type>autoincrement</key_type>
  4749. <db_table>server</db_table>
  4750. <db_key_field>id</db_key_field>
  4751. <db_final_class_field/>
  4752. <naming>
  4753. <format>%1$s</format>
  4754. <attributes>
  4755. <attribute id="name"/>
  4756. </attributes>
  4757. </naming>
  4758. <display_template/>
  4759. <icon>images/server.png</icon>
  4760. <reconciliation>
  4761. <attributes>
  4762. <attribute id="name"/>
  4763. <attribute id="org_id"/>
  4764. <attribute id="owner_name"/>
  4765. <attribute id="location_id"/>
  4766. <attribute id="location_name"/>
  4767. </attributes>
  4768. </reconciliation>
  4769. </properties>
  4770. <fields>
  4771. <field id="cpu" xsi:type="AttributeString">
  4772. <sql>cpu</sql>
  4773. <default_value/>
  4774. <is_null_allowed>true</is_null_allowed>
  4775. </field>
  4776. <field id="ram" xsi:type="AttributeString">
  4777. <sql>ram</sql>
  4778. <default_value/>
  4779. <is_null_allowed>true</is_null_allowed>
  4780. </field>
  4781. <field id="hdd" xsi:type="AttributeString">
  4782. <sql>hdd</sql>
  4783. <default_value/>
  4784. <is_null_allowed>true</is_null_allowed>
  4785. </field>
  4786. <field id="os_family" xsi:type="AttributeString">
  4787. <sql>os_family</sql>
  4788. <default_value/>
  4789. <is_null_allowed>true</is_null_allowed>
  4790. </field>
  4791. <field id="os_version" xsi:type="AttributeString">
  4792. <sql>os_version</sql>
  4793. <default_value/>
  4794. <is_null_allowed>true</is_null_allowed>
  4795. </field>
  4796. <field id="application_list" xsi:type="AttributeLinkedSet">
  4797. <linked_class>SoftwareInstance</linked_class>
  4798. <ext_key_to_me>device_id</ext_key_to_me>
  4799. <count_min>0</count_min>
  4800. <count_max>0</count_max>
  4801. </field>
  4802. <field id="patch_list" xsi:type="AttributeLinkedSetIndirect">
  4803. <linked_class>lnkPatchToCI</linked_class>
  4804. <ext_key_to_me>ci_id</ext_key_to_me>
  4805. <count_min>0</count_min>
  4806. <count_max>0</count_max>
  4807. <ext_key_to_remote>patch_id</ext_key_to_remote>
  4808. </field>
  4809. </fields>
  4810. <methods/>
  4811. <presentation>
  4812. <details>
  4813. <items>
  4814. <item id="name">
  4815. <rank>10</rank>
  4816. </item>
  4817. <item id="status">
  4818. <rank>20</rank>
  4819. </item>
  4820. <item id="org_id">
  4821. <rank>30</rank>
  4822. </item>
  4823. <item id="importance">
  4824. <rank>40</rank>
  4825. </item>
  4826. <item id="brand">
  4827. <rank>50</rank>
  4828. </item>
  4829. <item id="model">
  4830. <rank>60</rank>
  4831. </item>
  4832. <item id="serial_number">
  4833. <rank>70</rank>
  4834. </item>
  4835. <item id="asset_ref">
  4836. <rank>80</rank>
  4837. </item>
  4838. <item id="description">
  4839. <rank>90</rank>
  4840. </item>
  4841. <item id="location_id">
  4842. <rank>100</rank>
  4843. </item>
  4844. <item id="location_details">
  4845. <rank>110</rank>
  4846. </item>
  4847. <item id="management_ip">
  4848. <rank>120</rank>
  4849. </item>
  4850. <item id="default_gateway">
  4851. <rank>130</rank>
  4852. </item>
  4853. <item id="cpu">
  4854. <rank>140</rank>
  4855. </item>
  4856. <item id="ram">
  4857. <rank>150</rank>
  4858. </item>
  4859. <item id="hdd">
  4860. <rank>160</rank>
  4861. </item>
  4862. <item id="os_family">
  4863. <rank>170</rank>
  4864. </item>
  4865. <item id="os_version">
  4866. <rank>180</rank>
  4867. </item>
  4868. <item id="contact_list">
  4869. <rank>190</rank>
  4870. </item>
  4871. <item id="document_list">
  4872. <rank>200</rank>
  4873. </item>
  4874. <item id="solution_list">
  4875. <rank>210</rank>
  4876. </item>
  4877. <item id="contract_list">
  4878. <rank>220</rank>
  4879. </item>
  4880. <item id="ticket_list">
  4881. <rank>230</rank>
  4882. </item>
  4883. <item id="nwinterface_list">
  4884. <rank>240</rank>
  4885. </item>
  4886. <item id="application_list">
  4887. <rank>250</rank>
  4888. </item>
  4889. <item id="patch_list">
  4890. <rank>260</rank>
  4891. </item>
  4892. </items>
  4893. </details>
  4894. <search>
  4895. <items>
  4896. <item id="name">
  4897. <rank>10</rank>
  4898. </item>
  4899. <item id="status">
  4900. <rank>20</rank>
  4901. </item>
  4902. <item id="org_id">
  4903. <rank>30</rank>
  4904. </item>
  4905. <item id="importance">
  4906. <rank>40</rank>
  4907. </item>
  4908. <item id="brand">
  4909. <rank>50</rank>
  4910. </item>
  4911. <item id="model">
  4912. <rank>60</rank>
  4913. </item>
  4914. <item id="serial_number">
  4915. <rank>70</rank>
  4916. </item>
  4917. <item id="asset_ref">
  4918. <rank>80</rank>
  4919. </item>
  4920. <item id="location_id">
  4921. <rank>90</rank>
  4922. </item>
  4923. <item id="management_ip">
  4924. <rank>100</rank>
  4925. </item>
  4926. <item id="default_gateway">
  4927. <rank>110</rank>
  4928. </item>
  4929. <item id="os_family">
  4930. <rank>120</rank>
  4931. </item>
  4932. <item id="os_version">
  4933. <rank>130</rank>
  4934. </item>
  4935. </items>
  4936. </search>
  4937. <list>
  4938. <items>
  4939. <item id="status">
  4940. <rank>10</rank>
  4941. </item>
  4942. <item id="org_id">
  4943. <rank>20</rank>
  4944. </item>
  4945. <item id="importance">
  4946. <rank>30</rank>
  4947. </item>
  4948. <item id="brand">
  4949. <rank>40</rank>
  4950. </item>
  4951. <item id="model">
  4952. <rank>50</rank>
  4953. </item>
  4954. <item id="location_id">
  4955. <rank>60</rank>
  4956. </item>
  4957. <item id="os_family">
  4958. <rank>70</rank>
  4959. </item>
  4960. </items>
  4961. </list>
  4962. </presentation>
  4963. </class>
  4964. <class id="Printer" _delta="define">
  4965. <parent>InfrastructureCI</parent>
  4966. <properties>
  4967. <category>bizmodel,searchable,configmgmt</category>
  4968. <abstract>false</abstract>
  4969. <key_type>autoincrement</key_type>
  4970. <db_table>printer</db_table>
  4971. <db_key_field>id</db_key_field>
  4972. <db_final_class_field/>
  4973. <naming>
  4974. <format>%1$s</format>
  4975. <attributes>
  4976. <attribute id="name"/>
  4977. </attributes>
  4978. </naming>
  4979. <display_template/>
  4980. <icon>images/printer.png</icon>
  4981. <reconciliation>
  4982. <attributes>
  4983. <attribute id="name"/>
  4984. <attribute id="org_id"/>
  4985. <attribute id="owner_name"/>
  4986. <attribute id="location_id"/>
  4987. <attribute id="location_name"/>
  4988. </attributes>
  4989. </reconciliation>
  4990. </properties>
  4991. <fields>
  4992. <field id="type" xsi:type="AttributeEnum">
  4993. <values>
  4994. <value>mopier</value>
  4995. <value>printer</value>
  4996. </values>
  4997. <sql>type</sql>
  4998. <default_value>printer</default_value>
  4999. <is_null_allowed>true</is_null_allowed>
  5000. </field>
  5001. <field id="technology" xsi:type="AttributeEnum">
  5002. <values>
  5003. <value>laser</value>
  5004. <value>inkjet</value>
  5005. <value>tracer</value>
  5006. </values>
  5007. <sql>technology</sql>
  5008. <default_value>laser</default_value>
  5009. <is_null_allowed>true</is_null_allowed>
  5010. </field>
  5011. </fields>
  5012. <methods/>
  5013. <presentation>
  5014. <details>
  5015. <items>
  5016. <item id="name">
  5017. <rank>10</rank>
  5018. </item>
  5019. <item id="status">
  5020. <rank>20</rank>
  5021. </item>
  5022. <item id="org_id">
  5023. <rank>30</rank>
  5024. </item>
  5025. <item id="importance">
  5026. <rank>40</rank>
  5027. </item>
  5028. <item id="brand">
  5029. <rank>50</rank>
  5030. </item>
  5031. <item id="model">
  5032. <rank>60</rank>
  5033. </item>
  5034. <item id="serial_number">
  5035. <rank>70</rank>
  5036. </item>
  5037. <item id="asset_ref">
  5038. <rank>80</rank>
  5039. </item>
  5040. <item id="description">
  5041. <rank>90</rank>
  5042. </item>
  5043. <item id="location_id">
  5044. <rank>100</rank>
  5045. </item>
  5046. <item id="location_details">
  5047. <rank>110</rank>
  5048. </item>
  5049. <item id="management_ip">
  5050. <rank>120</rank>
  5051. </item>
  5052. <item id="default_gateway">
  5053. <rank>130</rank>
  5054. </item>
  5055. <item id="type">
  5056. <rank>140</rank>
  5057. </item>
  5058. <item id="technology">
  5059. <rank>150</rank>
  5060. </item>
  5061. <item id="contact_list">
  5062. <rank>160</rank>
  5063. </item>
  5064. <item id="document_list">
  5065. <rank>170</rank>
  5066. </item>
  5067. <item id="solution_list">
  5068. <rank>180</rank>
  5069. </item>
  5070. <item id="contract_list">
  5071. <rank>190</rank>
  5072. </item>
  5073. <item id="ticket_list">
  5074. <rank>200</rank>
  5075. </item>
  5076. <item id="nwinterface_list">
  5077. <rank>210</rank>
  5078. </item>
  5079. </items>
  5080. </details>
  5081. <search>
  5082. <items>
  5083. <item id="name">
  5084. <rank>10</rank>
  5085. </item>
  5086. <item id="status">
  5087. <rank>20</rank>
  5088. </item>
  5089. <item id="org_id">
  5090. <rank>30</rank>
  5091. </item>
  5092. <item id="importance">
  5093. <rank>40</rank>
  5094. </item>
  5095. <item id="brand">
  5096. <rank>50</rank>
  5097. </item>
  5098. <item id="model">
  5099. <rank>60</rank>
  5100. </item>
  5101. <item id="serial_number">
  5102. <rank>70</rank>
  5103. </item>
  5104. <item id="asset_ref">
  5105. <rank>80</rank>
  5106. </item>
  5107. <item id="description">
  5108. <rank>90</rank>
  5109. </item>
  5110. <item id="location_id">
  5111. <rank>100</rank>
  5112. </item>
  5113. <item id="location_details">
  5114. <rank>110</rank>
  5115. </item>
  5116. <item id="management_ip">
  5117. <rank>120</rank>
  5118. </item>
  5119. <item id="default_gateway">
  5120. <rank>130</rank>
  5121. </item>
  5122. <item id="type">
  5123. <rank>140</rank>
  5124. </item>
  5125. <item id="technology">
  5126. <rank>150</rank>
  5127. </item>
  5128. </items>
  5129. </search>
  5130. <list>
  5131. <items>
  5132. <item id="status">
  5133. <rank>10</rank>
  5134. </item>
  5135. <item id="org_id">
  5136. <rank>20</rank>
  5137. </item>
  5138. <item id="importance">
  5139. <rank>30</rank>
  5140. </item>
  5141. <item id="brand">
  5142. <rank>40</rank>
  5143. </item>
  5144. <item id="model">
  5145. <rank>50</rank>
  5146. </item>
  5147. <item id="serial_number">
  5148. <rank>60</rank>
  5149. </item>
  5150. <item id="asset_ref">
  5151. <rank>70</rank>
  5152. </item>
  5153. <item id="location_id">
  5154. <rank>80</rank>
  5155. </item>
  5156. <item id="management_ip">
  5157. <rank>90</rank>
  5158. </item>
  5159. <item id="default_gateway">
  5160. <rank>100</rank>
  5161. </item>
  5162. <item id="type">
  5163. <rank>110</rank>
  5164. </item>
  5165. <item id="technology">
  5166. <rank>120</rank>
  5167. </item>
  5168. </items>
  5169. </list>
  5170. </presentation>
  5171. </class>
  5172. <class id="Group" _delta="define">
  5173. <parent>cmdbAbstractObject</parent>
  5174. <properties>
  5175. <category>bizmodel,searchable,configmgmt</category>
  5176. <abstract>false</abstract>
  5177. <key_type>autoincrement</key_type>
  5178. <db_table>group</db_table>
  5179. <db_key_field>id</db_key_field>
  5180. <db_final_class_field/>
  5181. <naming>
  5182. <format>%1$s</format>
  5183. <attributes>
  5184. <attribute id="name"/>
  5185. </attributes>
  5186. </naming>
  5187. <display_template/>
  5188. <icon>images/group.png</icon>
  5189. <reconciliation>
  5190. <attributes>
  5191. <attribute id="name"/>
  5192. <attribute id="org_id"/>
  5193. <attribute id="owner_name"/>
  5194. </attributes>
  5195. </reconciliation>
  5196. </properties>
  5197. <fields>
  5198. <field id="name" xsi:type="AttributeString">
  5199. <sql>name</sql>
  5200. <default_value/>
  5201. <is_null_allowed>false</is_null_allowed>
  5202. </field>
  5203. <field id="status" xsi:type="AttributeEnum">
  5204. <values>
  5205. <value>production</value>
  5206. <value>implementation</value>
  5207. <value>obsolete</value>
  5208. </values>
  5209. <sql>status</sql>
  5210. <default_value>implementation</default_value>
  5211. <is_null_allowed>false</is_null_allowed>
  5212. </field>
  5213. <field id="org_id" xsi:type="AttributeExternalKey">
  5214. <sql>org_id</sql>
  5215. <target_class>Organization</target_class>
  5216. <is_null_allowed>false</is_null_allowed>
  5217. <on_target_delete>DEL_MANUAL</on_target_delete>
  5218. <jointype/>
  5219. </field>
  5220. <field id="owner_name" xsi:type="AttributeExternalField">
  5221. <extkey_attcode>org_id</extkey_attcode>
  5222. <target_attcode>name</target_attcode>
  5223. </field>
  5224. <field id="description" xsi:type="AttributeText">
  5225. <sql>description</sql>
  5226. <default_value/>
  5227. <is_null_allowed>true</is_null_allowed>
  5228. </field>
  5229. <field id="type" xsi:type="AttributeString">
  5230. <sql>type</sql>
  5231. <default_value/>
  5232. <is_null_allowed>true</is_null_allowed>
  5233. </field>
  5234. <field id="parent_id" xsi:type="AttributeHierarchicalKey">
  5235. <dependencies>
  5236. <attribute id="org_id"/>
  5237. </dependencies>
  5238. <sql>parent_id</sql>
  5239. <is_null_allowed>true</is_null_allowed>
  5240. <on_target_delete>DEL_MANUAL</on_target_delete>
  5241. </field>
  5242. <field id="parent_name" xsi:type="AttributeExternalField">
  5243. <extkey_attcode>parent_id</extkey_attcode>
  5244. <target_attcode>name</target_attcode>
  5245. </field>
  5246. <field id="ci_list" xsi:type="AttributeLinkedSetIndirect">
  5247. <linked_class>lnkGroupToCI</linked_class>
  5248. <ext_key_to_me>group_id</ext_key_to_me>
  5249. <count_min>0</count_min>
  5250. <count_max>0</count_max>
  5251. <ext_key_to_remote>ci_id</ext_key_to_remote>
  5252. </field>
  5253. </fields>
  5254. <methods/>
  5255. <presentation>
  5256. <details>
  5257. <items>
  5258. <item id="name">
  5259. <rank>10</rank>
  5260. </item>
  5261. <item id="status">
  5262. <rank>20</rank>
  5263. </item>
  5264. <item id="org_id">
  5265. <rank>30</rank>
  5266. </item>
  5267. <item id="type">
  5268. <rank>40</rank>
  5269. </item>
  5270. <item id="description">
  5271. <rank>50</rank>
  5272. </item>
  5273. <item id="parent_id">
  5274. <rank>60</rank>
  5275. </item>
  5276. <item id="ci_list">
  5277. <rank>70</rank>
  5278. </item>
  5279. </items>
  5280. </details>
  5281. <search>
  5282. <items>
  5283. <item id="name">
  5284. <rank>10</rank>
  5285. </item>
  5286. <item id="status">
  5287. <rank>20</rank>
  5288. </item>
  5289. <item id="org_id">
  5290. <rank>30</rank>
  5291. </item>
  5292. <item id="type">
  5293. <rank>40</rank>
  5294. </item>
  5295. </items>
  5296. </search>
  5297. <list>
  5298. <items>
  5299. <item id="status">
  5300. <rank>10</rank>
  5301. </item>
  5302. <item id="org_id">
  5303. <rank>20</rank>
  5304. </item>
  5305. <item id="type">
  5306. <rank>30</rank>
  5307. </item>
  5308. <item id="parent_id">
  5309. <rank>40</rank>
  5310. </item>
  5311. </items>
  5312. </list>
  5313. </presentation>
  5314. </class>
  5315. <class id="lnkGroupToCI" _delta="define">
  5316. <parent>cmdbAbstractObject</parent>
  5317. <properties>
  5318. <is_link>1</is_link>
  5319. <category>bizmodel,configmgmt</category>
  5320. <abstract>false</abstract>
  5321. <key_type>autoincrement</key_type>
  5322. <db_table>lnkgrouptoci</db_table>
  5323. <db_key_field>id</db_key_field>
  5324. <db_final_class_field/>
  5325. <naming>
  5326. <format>%1$s</format>
  5327. <attributes>
  5328. <attribute id="group_id"/>
  5329. </attributes>
  5330. </naming>
  5331. <display_template/>
  5332. <icon/>
  5333. <reconciliation>
  5334. <attributes>
  5335. <attribute id="group_id"/>
  5336. <attribute id="ci_id"/>
  5337. </attributes>
  5338. </reconciliation>
  5339. </properties>
  5340. <fields>
  5341. <field id="group_id" xsi:type="AttributeExternalKey">
  5342. <sql>group_id</sql>
  5343. <target_class>Group</target_class>
  5344. <is_null_allowed>false</is_null_allowed>
  5345. <on_target_delete>DEL_MANUAL</on_target_delete>
  5346. <jointype/>
  5347. </field>
  5348. <field id="group_name" xsi:type="AttributeExternalField">
  5349. <extkey_attcode>group_id</extkey_attcode>
  5350. <target_attcode>name</target_attcode>
  5351. </field>
  5352. <field id="ci_id" xsi:type="AttributeExternalKey">
  5353. <sql>ci_id</sql>
  5354. <target_class>FunctionalCI</target_class>
  5355. <is_null_allowed>false</is_null_allowed>
  5356. <on_target_delete>DEL_MANUAL</on_target_delete>
  5357. <jointype/>
  5358. </field>
  5359. <field id="ci_name" xsi:type="AttributeExternalField">
  5360. <extkey_attcode>ci_id</extkey_attcode>
  5361. <target_attcode>name</target_attcode>
  5362. </field>
  5363. <field id="ci_status" xsi:type="AttributeExternalField">
  5364. <extkey_attcode>ci_id</extkey_attcode>
  5365. <target_attcode>status</target_attcode>
  5366. </field>
  5367. <field id="reason" xsi:type="AttributeString">
  5368. <sql>reason</sql>
  5369. <default_value/>
  5370. <is_null_allowed>true</is_null_allowed>
  5371. </field>
  5372. </fields>
  5373. <methods/>
  5374. <presentation>
  5375. <details>
  5376. <items>
  5377. <item id="group_id">
  5378. <rank>10</rank>
  5379. </item>
  5380. <item id="ci_id">
  5381. <rank>20</rank>
  5382. </item>
  5383. <item id="ci_status">
  5384. <rank>30</rank>
  5385. </item>
  5386. <item id="reason">
  5387. <rank>40</rank>
  5388. </item>
  5389. </items>
  5390. </details>
  5391. <search>
  5392. <items>
  5393. <item id="group_id">
  5394. <rank>10</rank>
  5395. </item>
  5396. <item id="ci_id">
  5397. <rank>20</rank>
  5398. </item>
  5399. <item id="reason">
  5400. <rank>30</rank>
  5401. </item>
  5402. </items>
  5403. </search>
  5404. <list>
  5405. <items>
  5406. <item id="group_id">
  5407. <rank>10</rank>
  5408. </item>
  5409. <item id="ci_id">
  5410. <rank>20</rank>
  5411. </item>
  5412. <item id="ci_status">
  5413. <rank>30</rank>
  5414. </item>
  5415. <item id="reason">
  5416. <rank>40</rank>
  5417. </item>
  5418. </items>
  5419. </list>
  5420. </presentation>
  5421. </class>
  5422. <class id="lnkCIToDoc" _delta="define">
  5423. <parent>cmdbAbstractObject</parent>
  5424. <properties>
  5425. <is_link>1</is_link>
  5426. <category>bizmodel,configmgmt</category>
  5427. <abstract>false</abstract>
  5428. <key_type>autoincrement</key_type>
  5429. <db_table>lnkcitodoc</db_table>
  5430. <db_key_field>id</db_key_field>
  5431. <db_final_class_field/>
  5432. <naming>
  5433. <format>%1$s</format>
  5434. <attributes>
  5435. <attribute id="ci_id"/>
  5436. </attributes>
  5437. </naming>
  5438. <display_template/>
  5439. <icon/>
  5440. <reconciliation>
  5441. <attributes>
  5442. <attribute id="ci_id"/>
  5443. <attribute id="document_id"/>
  5444. </attributes>
  5445. </reconciliation>
  5446. </properties>
  5447. <fields>
  5448. <field id="ci_id" xsi:type="AttributeExternalKey">
  5449. <sql>ci_id</sql>
  5450. <target_class>FunctionalCI</target_class>
  5451. <is_null_allowed>false</is_null_allowed>
  5452. <on_target_delete>DEL_AUTO</on_target_delete>
  5453. <jointype/>
  5454. </field>
  5455. <field id="ci_name" xsi:type="AttributeExternalField">
  5456. <extkey_attcode>ci_id</extkey_attcode>
  5457. <target_attcode>name</target_attcode>
  5458. </field>
  5459. <field id="ci_status" xsi:type="AttributeExternalField">
  5460. <extkey_attcode>ci_id</extkey_attcode>
  5461. <target_attcode>status</target_attcode>
  5462. </field>
  5463. <field id="document_id" xsi:type="AttributeExternalKey">
  5464. <sql>document_id</sql>
  5465. <target_class>Document</target_class>
  5466. <is_null_allowed>false</is_null_allowed>
  5467. <on_target_delete>DEL_AUTO</on_target_delete>
  5468. <jointype/>
  5469. </field>
  5470. <field id="document_name" xsi:type="AttributeExternalField">
  5471. <extkey_attcode>document_id</extkey_attcode>
  5472. <target_attcode>name</target_attcode>
  5473. </field>
  5474. <field id="document_type" xsi:type="AttributeExternalField">
  5475. <extkey_attcode>document_id</extkey_attcode>
  5476. <target_attcode>type</target_attcode>
  5477. </field>
  5478. <field id="document_status" xsi:type="AttributeExternalField">
  5479. <extkey_attcode>document_id</extkey_attcode>
  5480. <target_attcode>status</target_attcode>
  5481. </field>
  5482. </fields>
  5483. <methods/>
  5484. <presentation>
  5485. <details>
  5486. <items>
  5487. <item id="ci_id">
  5488. <rank>10</rank>
  5489. </item>
  5490. <item id="ci_status">
  5491. <rank>20</rank>
  5492. </item>
  5493. <item id="document_id">
  5494. <rank>30</rank>
  5495. </item>
  5496. <item id="document_type">
  5497. <rank>40</rank>
  5498. </item>
  5499. <item id="document_status">
  5500. <rank>50</rank>
  5501. </item>
  5502. </items>
  5503. </details>
  5504. <search>
  5505. <items>
  5506. <item id="ci_id">
  5507. <rank>10</rank>
  5508. </item>
  5509. <item id="document_id">
  5510. <rank>20</rank>
  5511. </item>
  5512. </items>
  5513. </search>
  5514. <list>
  5515. <items>
  5516. <item id="ci_id">
  5517. <rank>10</rank>
  5518. </item>
  5519. <item id="ci_status">
  5520. <rank>20</rank>
  5521. </item>
  5522. <item id="document_id">
  5523. <rank>30</rank>
  5524. </item>
  5525. <item id="document_type">
  5526. <rank>40</rank>
  5527. </item>
  5528. <item id="document_status">
  5529. <rank>50</rank>
  5530. </item>
  5531. </items>
  5532. </list>
  5533. </presentation>
  5534. </class>
  5535. <class id="lnkCIToContact" _delta="define">
  5536. <parent>cmdbAbstractObject</parent>
  5537. <properties>
  5538. <is_link>1</is_link>
  5539. <category>bizmodel,configmgmt</category>
  5540. <abstract>false</abstract>
  5541. <key_type>autoincrement</key_type>
  5542. <db_table>lnkcitocontact</db_table>
  5543. <db_key_field>id</db_key_field>
  5544. <db_final_class_field/>
  5545. <naming>
  5546. <format>%1$s</format>
  5547. <attributes>
  5548. <attribute id="ci_id"/>
  5549. </attributes>
  5550. </naming>
  5551. <display_template/>
  5552. <icon>images/contact.png</icon>
  5553. <reconciliation>
  5554. <attributes>
  5555. <attribute id="ci_id"/>
  5556. <attribute id="contact_id"/>
  5557. </attributes>
  5558. </reconciliation>
  5559. </properties>
  5560. <fields>
  5561. <field id="ci_id" xsi:type="AttributeExternalKey">
  5562. <sql>ci_id</sql>
  5563. <target_class>FunctionalCI</target_class>
  5564. <is_null_allowed>false</is_null_allowed>
  5565. <on_target_delete>DEL_AUTO</on_target_delete>
  5566. <jointype/>
  5567. </field>
  5568. <field id="ci_name" xsi:type="AttributeExternalField">
  5569. <extkey_attcode>ci_id</extkey_attcode>
  5570. <target_attcode>name</target_attcode>
  5571. </field>
  5572. <field id="ci_status" xsi:type="AttributeExternalField">
  5573. <extkey_attcode>ci_id</extkey_attcode>
  5574. <target_attcode>status</target_attcode>
  5575. </field>
  5576. <field id="contact_id" xsi:type="AttributeExternalKey">
  5577. <sql>contact_id</sql>
  5578. <target_class>Contact</target_class>
  5579. <is_null_allowed>false</is_null_allowed>
  5580. <on_target_delete>DEL_AUTO</on_target_delete>
  5581. <jointype/>
  5582. </field>
  5583. <field id="contact_name" xsi:type="AttributeExternalField">
  5584. <extkey_attcode>contact_id</extkey_attcode>
  5585. <target_attcode>name</target_attcode>
  5586. </field>
  5587. <field id="contact_email" xsi:type="AttributeExternalField">
  5588. <extkey_attcode>contact_id</extkey_attcode>
  5589. <target_attcode>email</target_attcode>
  5590. </field>
  5591. <field id="role" xsi:type="AttributeString">
  5592. <sql>role</sql>
  5593. <default_value/>
  5594. <is_null_allowed>true</is_null_allowed>
  5595. </field>
  5596. </fields>
  5597. <methods/>
  5598. <presentation>
  5599. <details>
  5600. <items>
  5601. <item id="ci_id">
  5602. <rank>10</rank>
  5603. </item>
  5604. <item id="ci_status">
  5605. <rank>20</rank>
  5606. </item>
  5607. <item id="contact_id">
  5608. <rank>30</rank>
  5609. </item>
  5610. <item id="contact_email">
  5611. <rank>40</rank>
  5612. </item>
  5613. <item id="role">
  5614. <rank>50</rank>
  5615. </item>
  5616. </items>
  5617. </details>
  5618. <search>
  5619. <items>
  5620. <item id="ci_id">
  5621. <rank>10</rank>
  5622. </item>
  5623. <item id="contact_id">
  5624. <rank>20</rank>
  5625. </item>
  5626. <item id="role">
  5627. <rank>30</rank>
  5628. </item>
  5629. </items>
  5630. </search>
  5631. <list>
  5632. <items>
  5633. <item id="ci_id">
  5634. <rank>10</rank>
  5635. </item>
  5636. <item id="ci_status">
  5637. <rank>20</rank>
  5638. </item>
  5639. <item id="contact_id">
  5640. <rank>30</rank>
  5641. </item>
  5642. <item id="contact_email">
  5643. <rank>40</rank>
  5644. </item>
  5645. <item id="role">
  5646. <rank>50</rank>
  5647. </item>
  5648. </items>
  5649. </list>
  5650. </presentation>
  5651. </class>
  5652. <class id="lnkSolutionToCI" _delta="define">
  5653. <parent>cmdbAbstractObject</parent>
  5654. <properties>
  5655. <is_link>1</is_link>
  5656. <category>bizmodel,configmgmt</category>
  5657. <abstract>false</abstract>
  5658. <key_type>autoincrement</key_type>
  5659. <db_table>lnksolutiontoci</db_table>
  5660. <db_key_field>id</db_key_field>
  5661. <db_final_class_field/>
  5662. <naming>
  5663. <format>%1$s</format>
  5664. <attributes>
  5665. <attribute id="solution_id"/>
  5666. </attributes>
  5667. </naming>
  5668. <display_template/>
  5669. <icon/>
  5670. <reconciliation>
  5671. <attributes>
  5672. <attribute id="solution_id"/>
  5673. <attribute id="ci_id"/>
  5674. </attributes>
  5675. </reconciliation>
  5676. </properties>
  5677. <fields>
  5678. <field id="solution_id" xsi:type="AttributeExternalKey">
  5679. <sql>solution_id</sql>
  5680. <target_class>ApplicationSolution</target_class>
  5681. <is_null_allowed>false</is_null_allowed>
  5682. <on_target_delete>DEL_AUTO</on_target_delete>
  5683. <jointype/>
  5684. </field>
  5685. <field id="solution_name" xsi:type="AttributeExternalField">
  5686. <extkey_attcode>solution_id</extkey_attcode>
  5687. <target_attcode>name</target_attcode>
  5688. </field>
  5689. <field id="ci_id" xsi:type="AttributeExternalKey">
  5690. <sql>ci_id</sql>
  5691. <target_class>FunctionalCI</target_class>
  5692. <is_null_allowed>false</is_null_allowed>
  5693. <on_target_delete>DEL_AUTO</on_target_delete>
  5694. <jointype/>
  5695. </field>
  5696. <field id="ci_name" xsi:type="AttributeExternalField">
  5697. <extkey_attcode>ci_id</extkey_attcode>
  5698. <target_attcode>name</target_attcode>
  5699. </field>
  5700. <field id="ci_status" xsi:type="AttributeExternalField">
  5701. <extkey_attcode>ci_id</extkey_attcode>
  5702. <target_attcode>status</target_attcode>
  5703. </field>
  5704. <field id="utility" xsi:type="AttributeString">
  5705. <sql>utility</sql>
  5706. <default_value/>
  5707. <is_null_allowed>true</is_null_allowed>
  5708. </field>
  5709. </fields>
  5710. <methods/>
  5711. <presentation>
  5712. <details>
  5713. <items>
  5714. <item id="solution_id">
  5715. <rank>10</rank>
  5716. </item>
  5717. <item id="ci_id">
  5718. <rank>20</rank>
  5719. </item>
  5720. <item id="ci_status">
  5721. <rank>30</rank>
  5722. </item>
  5723. <item id="utility">
  5724. <rank>40</rank>
  5725. </item>
  5726. </items>
  5727. </details>
  5728. <search>
  5729. <items>
  5730. <item id="solution_id">
  5731. <rank>10</rank>
  5732. </item>
  5733. <item id="ci_id">
  5734. <rank>20</rank>
  5735. </item>
  5736. <item id="utility">
  5737. <rank>30</rank>
  5738. </item>
  5739. </items>
  5740. </search>
  5741. <list>
  5742. <items>
  5743. <item id="solution_id">
  5744. <rank>10</rank>
  5745. </item>
  5746. <item id="ci_id">
  5747. <rank>20</rank>
  5748. </item>
  5749. <item id="ci_status">
  5750. <rank>30</rank>
  5751. </item>
  5752. <item id="utility">
  5753. <rank>40</rank>
  5754. </item>
  5755. </items>
  5756. </list>
  5757. </presentation>
  5758. </class>
  5759. <class id="lnkProcessToSolution" _delta="define">
  5760. <parent>cmdbAbstractObject</parent>
  5761. <properties>
  5762. <is_link>1</is_link>
  5763. <category>bizmodel,configmgmt</category>
  5764. <abstract>false</abstract>
  5765. <key_type>autoincrement</key_type>
  5766. <db_table>lnkprocesstosolution</db_table>
  5767. <db_key_field>id</db_key_field>
  5768. <db_final_class_field/>
  5769. <naming>
  5770. <format>%1$s</format>
  5771. <attributes>
  5772. <attribute id="solution_id"/>
  5773. </attributes>
  5774. </naming>
  5775. <display_template/>
  5776. <icon/>
  5777. <reconciliation>
  5778. <attributes>
  5779. <attribute id="solution_id"/>
  5780. <attribute id="process_id"/>
  5781. </attributes>
  5782. </reconciliation>
  5783. </properties>
  5784. <fields>
  5785. <field id="solution_id" xsi:type="AttributeExternalKey">
  5786. <sql>solution_id</sql>
  5787. <target_class>ApplicationSolution</target_class>
  5788. <is_null_allowed>false</is_null_allowed>
  5789. <on_target_delete>DEL_AUTO</on_target_delete>
  5790. <jointype/>
  5791. </field>
  5792. <field id="solution_name" xsi:type="AttributeExternalField">
  5793. <extkey_attcode>solution_id</extkey_attcode>
  5794. <target_attcode>name</target_attcode>
  5795. </field>
  5796. <field id="process_id" xsi:type="AttributeExternalKey">
  5797. <sql>process_id</sql>
  5798. <target_class>BusinessProcess</target_class>
  5799. <is_null_allowed>false</is_null_allowed>
  5800. <on_target_delete>DEL_AUTO</on_target_delete>
  5801. <jointype/>
  5802. </field>
  5803. <field id="process_name" xsi:type="AttributeExternalField">
  5804. <extkey_attcode>process_id</extkey_attcode>
  5805. <target_attcode>name</target_attcode>
  5806. </field>
  5807. <field id="reason" xsi:type="AttributeString">
  5808. <sql>reason</sql>
  5809. <default_value/>
  5810. <is_null_allowed>true</is_null_allowed>
  5811. </field>
  5812. </fields>
  5813. <methods/>
  5814. <presentation>
  5815. <details>
  5816. <items>
  5817. <item id="solution_id">
  5818. <rank>10</rank>
  5819. </item>
  5820. <item id="process_id">
  5821. <rank>20</rank>
  5822. </item>
  5823. <item id="reason">
  5824. <rank>30</rank>
  5825. </item>
  5826. </items>
  5827. </details>
  5828. <search>
  5829. <items>
  5830. <item id="solution_id">
  5831. <rank>10</rank>
  5832. </item>
  5833. <item id="process_id">
  5834. <rank>20</rank>
  5835. </item>
  5836. <item id="reason">
  5837. <rank>30</rank>
  5838. </item>
  5839. </items>
  5840. </search>
  5841. <list>
  5842. <items>
  5843. <item id="solution_id">
  5844. <rank>10</rank>
  5845. </item>
  5846. <item id="process_id">
  5847. <rank>20</rank>
  5848. </item>
  5849. <item id="reason">
  5850. <rank>30</rank>
  5851. </item>
  5852. </items>
  5853. </list>
  5854. </presentation>
  5855. </class>
  5856. </classes>
  5857. <menus>
  5858. <menu id="DataAdministration" xsi:type="MenuGroup" _delta="define">
  5859. <rank>70</rank>
  5860. <enable_class>Organization</enable_class>
  5861. <enable_action>UR_ACTION_MODIFY</enable_action>
  5862. <enable_permission>UR_ALLOWED_YES</enable_permission>
  5863. <enable_stimulus/>
  5864. </menu>
  5865. <menu id="Audit" xsi:type="WebPageMenuNode" _delta="define">
  5866. <rank>33</rank>
  5867. <parent>DataAdministration</parent>
  5868. <url>$pages/audit.php</url>
  5869. </menu>
  5870. <menu id="Catalogs" xsi:type="TemplateMenuNode" _delta="define">
  5871. <rank>50</rank>
  5872. <parent>DataAdministration</parent>
  5873. <template_file/>
  5874. </menu>
  5875. <menu id="Organization" xsi:type="OQLMenuNode" _delta="define">
  5876. <rank>10</rank>
  5877. <parent>Catalogs</parent>
  5878. <oql>SELECT Organization</oql>
  5879. <do_search>1</do_search>
  5880. </menu>
  5881. <menu id="Application" xsi:type="OQLMenuNode" _delta="define">
  5882. <rank>20</rank>
  5883. <parent>Catalogs</parent>
  5884. <oql>SELECT Application</oql>
  5885. <do_search/>
  5886. </menu>
  5887. <menu id="DBServer" xsi:type="OQLMenuNode" _delta="define">
  5888. <rank>40</rank>
  5889. <parent>Catalogs</parent>
  5890. <oql>SELECT DBServer</oql>
  5891. <do_search/>
  5892. </menu>
  5893. <menu id="ConfigManagement" xsi:type="MenuGroup" _delta="define">
  5894. <rank>20</rank>
  5895. </menu>
  5896. <menu id="ConfigManagementOverview" xsi:type="DashboardMenuNode" _delta="define">
  5897. <rank>0</rank>
  5898. <parent>ConfigManagement</parent>
  5899. <definition>
  5900. <title>UI:ConfigMgmtMenuOverview:Title</title>
  5901. <layout>DashboardLayoutTwoCols</layout>
  5902. <cells>
  5903. <cell id="0">
  5904. <rank>0</rank>
  5905. <dashlets>
  5906. <dashlet id="1" xsi:type="DashletGroupByPie">
  5907. <rank>0</rank>
  5908. <title>UI-ConfigMgmtMenuOverview-FunctionalCIbyStatus</title>
  5909. <query>SELECT FunctionalCI</query>
  5910. <group_by>status</group_by>
  5911. <style>pie</style>
  5912. </dashlet>
  5913. </dashlets>
  5914. </cell>
  5915. <cell id="1">
  5916. <rank>0</rank>
  5917. <dashlets>
  5918. <dashlet id="2" xsi:type="DashletGroupByBars">
  5919. <rank>0</rank>
  5920. <title>UI-ConfigMgmtMenuOverview-FunctionalCIByType</title>
  5921. <query>SELECT FunctionalCI</query>
  5922. <group_by>finalclass</group_by>
  5923. <style>bars</style>
  5924. </dashlet>
  5925. </dashlets>
  5926. </cell>
  5927. <cell id="2">
  5928. <rank>0</rank>
  5929. <dashlets>
  5930. <dashlet id="3" xsi:type="DashletGroupByTable">
  5931. <rank>0</rank>
  5932. <title>UI-ConfigMgmtMenuOverview-FunctionalCIByType</title>
  5933. <query>SELECT FunctionalCI</query>
  5934. <group_by>finalclass</group_by>
  5935. <style>table</style>
  5936. </dashlet>
  5937. </dashlets>
  5938. </cell>
  5939. </cells>
  5940. </definition>
  5941. </menu>
  5942. <menu id="Contact" xsi:type="DashboardMenuNode" _delta="define">
  5943. <rank>1</rank>
  5944. <parent>ConfigManagement</parent>
  5945. <definition>
  5946. <layout>DashboardLayoutOneCol</layout>
  5947. <title></title>
  5948. <cells>
  5949. <cell id="1">
  5950. <rank>0</rank>
  5951. <dashlets>
  5952. <dashlet id="1" xsi:type="DashletHeaderDynamic">
  5953. <rank>0</rank>
  5954. <title>UI:ContactsMenu</title>
  5955. <icon>itop-config-mgmt-1.0.0/images/team.png</icon>
  5956. <subtitle>Menu:ConfigManagement:AllContacts</subtitle>
  5957. <query>SELECT Contact</query>
  5958. <group_by>status</group_by>
  5959. <values>active,inactive</values>
  5960. </dashlet>
  5961. <dashlet id="2" xsi:type="DashletBadge">
  5962. <rank>1</rank>
  5963. <class>Team</class>
  5964. </dashlet>
  5965. <dashlet id="3" xsi:type="DashletBadge">
  5966. <rank>2</rank>
  5967. <class>Person</class>
  5968. </dashlet>
  5969. </dashlets>
  5970. </cell>
  5971. <cell id="2">
  5972. <rank>1</rank>
  5973. <dashlets>
  5974. <dashlet id="4" xsi:type="DashletGroupByPie">
  5975. <rank>0</rank>
  5976. <title>UI-ContactsMenu-ContactsByLocation</title>
  5977. <query>SELECT Contact</query>
  5978. <group_by>location_id</group_by>
  5979. <style>pie</style>
  5980. </dashlet>
  5981. </dashlets>
  5982. </cell>
  5983. </cells>
  5984. </definition>
  5985. </menu>
  5986. <menu id="NewContact" xsi:type="NewObjectMenuNode" _delta="define">
  5987. <rank>1</rank>
  5988. <parent>Contact</parent>
  5989. <class>Contact</class>
  5990. </menu>
  5991. <menu id="SearchContacts" xsi:type="SearchMenuNode" _delta="define">
  5992. <rank>2</rank>
  5993. <parent>Contact</parent>
  5994. <class>Contact</class>
  5995. </menu>
  5996. <menu id="Document" xsi:type="OQLMenuNode" _delta="define">
  5997. <rank>2</rank>
  5998. <parent>ConfigManagement</parent>
  5999. <oql>SELECT Document</oql>
  6000. <do_search>1</do_search>
  6001. </menu>
  6002. <menu id="Location" xsi:type="OQLMenuNode" _delta="define">
  6003. <rank>3</rank>
  6004. <parent>ConfigManagement</parent>
  6005. <oql>SELECT Location</oql>
  6006. <do_search>1</do_search>
  6007. </menu>
  6008. <menu id="Group" xsi:type="OQLMenuNode" _delta="define">
  6009. <rank>4</rank>
  6010. <parent>ConfigManagement</parent>
  6011. <oql>SELECT Group</oql>
  6012. <do_search>1</do_search>
  6013. </menu>
  6014. <menu id="ConfigManagementCI" xsi:type="DashboardMenuNode" _delta="define">
  6015. <rank>5</rank>
  6016. <parent>ConfigManagement</parent>
  6017. <definition>
  6018. <layout>DashboardLayoutOneCol</layout>
  6019. <title></title>
  6020. <cells>
  6021. <cell id="0">
  6022. <rank>0</rank>
  6023. <dashlets>
  6024. <dashlet id="1" xsi:type="DashletHeaderDynamic">
  6025. <rank>0</rank>
  6026. <title>Menu_ConfigManagement_Devices</title>
  6027. <icon>itop-config-mgmt-1.0.0/images/server.png</icon>
  6028. <subtitle>Menu_ConfigManagement_AllDevices</subtitle>
  6029. <query>SELECT FunctionalCI</query>
  6030. <group_by>status</group_by>
  6031. <values>implementation,production,obsolete</values>
  6032. </dashlet>
  6033. <dashlet id="2" xsi:type="DashletBadge">
  6034. <rank>1</rank>
  6035. <class>Server</class>
  6036. </dashlet>
  6037. <dashlet id="3" xsi:type="DashletBadge">
  6038. <rank>2</rank>
  6039. <class>NetworkDevice</class>
  6040. </dashlet>
  6041. <dashlet id="5" xsi:type="DashletBadge">
  6042. <rank>3</rank>
  6043. <class>PC</class>
  6044. </dashlet>
  6045. <dashlet id="6" xsi:type="DashletBadge">
  6046. <rank>4</rank>
  6047. <class>MobilePhone</class>
  6048. </dashlet>
  6049. <dashlet id="7" xsi:type="DashletBadge">
  6050. <rank>5</rank>
  6051. <class>Printer</class>
  6052. </dashlet>
  6053. </dashlets>
  6054. </cell>
  6055. <cell id="1">
  6056. <rank>1</rank>
  6057. <dashlets>
  6058. <dashlet id="8" xsi:type="DashletHeaderStatic">
  6059. <rank>0</rank>
  6060. <title>Menu:ConfigManagement:SWAndApps</title>
  6061. <icon>itop-config-mgmt-1.0.0/images/application.png</icon>
  6062. </dashlet>
  6063. <dashlet id="9" xsi:type="DashletBadge">
  6064. <rank>1</rank>
  6065. <class>ApplicationInstance</class>
  6066. </dashlet>
  6067. <dashlet id="10" xsi:type="DashletBadge">
  6068. <rank>2</rank>
  6069. <class>DBServerInstance</class>
  6070. </dashlet>
  6071. <dashlet id="11" xsi:type="DashletBadge">
  6072. <rank>3</rank>
  6073. <class>DatabaseInstance</class>
  6074. </dashlet>
  6075. <dashlet id="12" xsi:type="DashletBadge">
  6076. <rank>4</rank>
  6077. <class>Patch</class>
  6078. </dashlet>
  6079. <dashlet id="13" xsi:type="DashletBadge">
  6080. <rank>5</rank>
  6081. <class>Licence</class>
  6082. </dashlet>
  6083. </dashlets>
  6084. </cell>
  6085. <cell id="2">
  6086. <rank>2</rank>
  6087. <dashlets>
  6088. <dashlet id="14" xsi:type="DashletHeaderStatic">
  6089. <rank>0</rank>
  6090. <title>Menu:ConfigManagement:Misc</title>
  6091. <icon>itop-config-mgmt-1.0.0/images/subnet.png</icon>
  6092. </dashlet>
  6093. <dashlet id="15" xsi:type="DashletBadge">
  6094. <rank>1</rank>
  6095. <class>NetworkInterface</class>
  6096. </dashlet>
  6097. <dashlet id="16" xsi:type="DashletBadge">
  6098. <rank>2</rank>
  6099. <class>Subnet</class>
  6100. </dashlet>
  6101. <dashlet id="17" xsi:type="DashletBadge">
  6102. <rank>3</rank>
  6103. <class>BusinessProcess</class>
  6104. </dashlet>
  6105. <dashlet id="18" xsi:type="DashletBadge">
  6106. <rank>4</rank>
  6107. <class>ApplicationSolution</class>
  6108. </dashlet>
  6109. <dashlet id="19" xsi:type="DashletBadge">
  6110. <rank>5</rank>
  6111. <class>Group</class>
  6112. </dashlet>
  6113. </dashlets>
  6114. </cell>
  6115. </cells>
  6116. </definition>
  6117. </menu>
  6118. <menu id="NewCI" xsi:type="NewObjectMenuNode" _delta="define">
  6119. <rank>0</rank>
  6120. <parent>ConfigManagementCI</parent>
  6121. <class>FunctionalCI</class>
  6122. </menu>
  6123. <menu id="SearchCIs" xsi:type="SearchMenuNode" _delta="define">
  6124. <rank>1</rank>
  6125. <parent>ConfigManagementCI</parent>
  6126. <class>FunctionalCI</class>
  6127. </menu>
  6128. <menu id="ConfigManagement:Shortcuts" xsi:type="TemplateMenuNode" _delta="define">
  6129. <rank>6</rank>
  6130. <parent>ConfigManagement</parent>
  6131. <template_file/>
  6132. </menu>
  6133. <menu id="Server" xsi:type="OQLMenuNode" _delta="define">
  6134. <rank>1</rank>
  6135. <parent>ConfigManagement:Shortcuts</parent>
  6136. <oql>SELECT Server</oql>
  6137. <do_search/>
  6138. </menu>
  6139. <menu id="NetworkDevice" xsi:type="OQLMenuNode" _delta="define">
  6140. <rank>2</rank>
  6141. <parent>ConfigManagement:Shortcuts</parent>
  6142. <oql>SELECT NetworkDevice</oql>
  6143. <do_search/>
  6144. </menu>
  6145. <menu id="Printer" xsi:type="OQLMenuNode" _delta="define">
  6146. <rank>3</rank>
  6147. <parent>ConfigManagement:Shortcuts</parent>
  6148. <oql>SELECT Printer</oql>
  6149. <do_search/>
  6150. </menu>
  6151. <menu id="PC" xsi:type="OQLMenuNode" _delta="define">
  6152. <rank>4</rank>
  6153. <parent>ConfigManagement:Shortcuts</parent>
  6154. <oql>SELECT PC</oql>
  6155. <do_search/>
  6156. </menu>
  6157. <menu id="BusinessProcess" xsi:type="OQLMenuNode" _delta="define">
  6158. <rank>5</rank>
  6159. <parent>ConfigManagement:Shortcuts</parent>
  6160. <oql>SELECT BusinessProcess</oql>
  6161. <do_search/>
  6162. </menu>
  6163. <menu id="ApplicationSolution" xsi:type="OQLMenuNode" _delta="define">
  6164. <rank>6</rank>
  6165. <parent>ConfigManagement:Shortcuts</parent>
  6166. <oql>SELECT ApplicationSolution</oql>
  6167. <do_search/>
  6168. </menu>
  6169. </menus>
  6170. </itop_design>