datamodel.itop-config-mgmt.xml 241 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905
  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>images/building.png</icon>
  27. <reconciliation>
  28. <attributes>
  29. <attribute id="name"/>
  30. <attribute id="code"/>
  31. </attributes>
  32. </reconciliation>
  33. </properties>
  34. <fields>
  35. <field id="name" xsi:type="AttributeString">
  36. <sql>name</sql>
  37. <default_value/>
  38. <is_null_allowed>false</is_null_allowed>
  39. </field>
  40. <field id="code" xsi:type="AttributeString">
  41. <sql>code</sql>
  42. <default_value/>
  43. <is_null_allowed>true</is_null_allowed>
  44. </field>
  45. <field id="status" xsi:type="AttributeEnum">
  46. <values>
  47. <value>active</value>
  48. <value>inactive</value>
  49. </values>
  50. <sql>status</sql>
  51. <default_value>active</default_value>
  52. <is_null_allowed>true</is_null_allowed>
  53. <display_style>list</display_style>
  54. </field>
  55. <field id="parent_id" xsi:type="AttributeHierarchicalKey">
  56. <sql>parent_id</sql>
  57. <is_null_allowed>true</is_null_allowed>
  58. <on_target_delete>DEL_MANUAL</on_target_delete>
  59. </field>
  60. <field id="parent_name" xsi:type="AttributeExternalField">
  61. <extkey_attcode>parent_id</extkey_attcode>
  62. <target_attcode>name</target_attcode>
  63. </field>
  64. <field id="deliverymodel_id" xsi:type="AttributeExternalKey">
  65. <sql>deliverymodel_id</sql>
  66. <target_class>DeliveryModel</target_class>
  67. <is_null_allowed>true</is_null_allowed>
  68. <on_target_delete>DEL_MANUAL</on_target_delete>
  69. </field>
  70. <field id="deliverymodel_name" xsi:type="AttributeExternalField">
  71. <extkey_attcode>deliverymodel_id</extkey_attcode>
  72. <target_attcode>name</target_attcode>
  73. </field>
  74. </fields>
  75. <methods/>
  76. <presentation>
  77. <details>
  78. <items>
  79. <item id="name">
  80. <rank>10</rank>
  81. </item>
  82. <item id="code">
  83. <rank>20</rank>
  84. </item>
  85. <item id="status">
  86. <rank>30</rank>
  87. </item>
  88. <item id="parent_id">
  89. <rank>40</rank>
  90. </item>
  91. <item id="deliverymodel_id">
  92. <rank>50</rank>
  93. </item>
  94. </items>
  95. </details>
  96. <search>
  97. <items>
  98. <item id="name">
  99. <rank>10</rank>
  100. </item>
  101. <item id="code">
  102. <rank>20</rank>
  103. </item>
  104. <item id="status">
  105. <rank>30</rank>
  106. </item>
  107. <item id="parent_id">
  108. <rank>40</rank>
  109. </item>
  110. </items>
  111. </search>
  112. <list>
  113. <items>
  114. <item id="code">
  115. <rank>10</rank>
  116. </item>
  117. <item id="status">
  118. <rank>20</rank>
  119. </item>
  120. <item id="parent_id">
  121. <rank>30</rank>
  122. </item>
  123. </items>
  124. </list>
  125. </presentation>
  126. </class>
  127. <class id="Location" _delta="define">
  128. <parent>cmdbAbstractObject</parent>
  129. <properties>
  130. <category>bizmodel,searchable,structure</category>
  131. <abstract>false</abstract>
  132. <key_type>autoincrement</key_type>
  133. <db_table>location</db_table>
  134. <db_key_field>id</db_key_field>
  135. <db_final_class_field/>
  136. <naming>
  137. <format>%1$s</format>
  138. <attributes>
  139. <attribute id="name"/>
  140. </attributes>
  141. </naming>
  142. <display_template/>
  143. <icon>images/location.png</icon>
  144. <reconciliation>
  145. <attributes>
  146. <attribute id="name"/>
  147. <attribute id="org_id"/>
  148. <attribute id="org_name"/>
  149. </attributes>
  150. </reconciliation>
  151. </properties>
  152. <fields>
  153. <field id="name" xsi:type="AttributeString">
  154. <sql>name</sql>
  155. <default_value/>
  156. <is_null_allowed>false</is_null_allowed>
  157. </field>
  158. <field id="status" xsi:type="AttributeEnum">
  159. <values>
  160. <value>active</value>
  161. <value>inactive</value>
  162. </values>
  163. <sql>status</sql>
  164. <default_value>active</default_value>
  165. <is_null_allowed>true</is_null_allowed>
  166. <display_style>list</display_style>
  167. </field>
  168. <field id="org_id" xsi:type="AttributeExternalKey">
  169. <sql>org_id</sql>
  170. <target_class>Organization</target_class>
  171. <is_null_allowed>false</is_null_allowed>
  172. <on_target_delete>DEL_MANUAL</on_target_delete>
  173. </field>
  174. <field id="org_name" xsi:type="AttributeExternalField">
  175. <extkey_attcode>org_id</extkey_attcode>
  176. <target_attcode>name</target_attcode>
  177. </field>
  178. <field id="address" xsi:type="AttributeText">
  179. <sql>address</sql>
  180. <default_value/>
  181. <is_null_allowed>true</is_null_allowed>
  182. </field>
  183. <field id="postal_code" xsi:type="AttributeString">
  184. <sql>postal_code</sql>
  185. <default_value/>
  186. <is_null_allowed>true</is_null_allowed>
  187. </field>
  188. <field id="city" xsi:type="AttributeString">
  189. <sql>city</sql>
  190. <default_value/>
  191. <is_null_allowed>true</is_null_allowed>
  192. </field>
  193. <field id="country" xsi:type="AttributeString">
  194. <sql>country</sql>
  195. <default_value/>
  196. <is_null_allowed>true</is_null_allowed>
  197. </field>
  198. <field id="physicaldevice_list" xsi:type="AttributeLinkedSet">
  199. <linked_class>PhysicalDevice</linked_class>
  200. <ext_key_to_me>location_id</ext_key_to_me>
  201. <edit_mode>add_only</edit_mode>
  202. <count_min>0</count_min>
  203. <count_max>0</count_max>
  204. </field>
  205. <field id="person_list" xsi:type="AttributeLinkedSet">
  206. <linked_class>Person</linked_class>
  207. <ext_key_to_me>location_id</ext_key_to_me>
  208. <edit_mode>add_only</edit_mode>
  209. <count_min>0</count_min>
  210. <count_max>0</count_max>
  211. </field>
  212. </fields>
  213. <methods/>
  214. <presentation>
  215. <details>
  216. <items>
  217. <item id="name">
  218. <rank>10</rank>
  219. </item>
  220. <item id="status">
  221. <rank>20</rank>
  222. </item>
  223. <item id="org_id">
  224. <rank>30</rank>
  225. </item>
  226. <item id="address">
  227. <rank>40</rank>
  228. </item>
  229. <item id="postal_code">
  230. <rank>50</rank>
  231. </item>
  232. <item id="city">
  233. <rank>60</rank>
  234. </item>
  235. <item id="country">
  236. <rank>70</rank>
  237. </item>
  238. <item id="person_list">
  239. <rank>80</rank>
  240. </item>
  241. <item id="physicaldevice_list">
  242. <rank>90</rank>
  243. </item>
  244. </items>
  245. </details>
  246. <search>
  247. <items>
  248. <item id="name">
  249. <rank>10</rank>
  250. </item>
  251. <item id="status">
  252. <rank>20</rank>
  253. </item>
  254. <item id="org_id">
  255. <rank>30</rank>
  256. </item>
  257. <item id="address">
  258. <rank>40</rank>
  259. </item>
  260. <item id="postal_code">
  261. <rank>50</rank>
  262. </item>
  263. <item id="city">
  264. <rank>60</rank>
  265. </item>
  266. <item id="country">
  267. <rank>70</rank>
  268. </item>
  269. </items>
  270. </search>
  271. <list>
  272. <items>
  273. <item id="status">
  274. <rank>10</rank>
  275. </item>
  276. <item id="org_id">
  277. <rank>20</rank>
  278. </item>
  279. <item id="city">
  280. <rank>30</rank>
  281. </item>
  282. <item id="country">
  283. <rank>40</rank>
  284. </item>
  285. </items>
  286. </list>
  287. </presentation>
  288. </class>
  289. <class id="Contact" _delta="define">
  290. <parent>cmdbAbstractObject</parent>
  291. <properties>
  292. <category>bizmodel,searchable,structure</category>
  293. <abstract>true</abstract>
  294. <key_type>autoincrement</key_type>
  295. <db_table>contact</db_table>
  296. <db_key_field>id</db_key_field>
  297. <db_final_class_field>finalclass</db_final_class_field>
  298. <naming>
  299. <format>%1$s</format>
  300. <attributes>
  301. <attribute id="name"/>
  302. </attributes>
  303. </naming>
  304. <display_template/>
  305. <icon>images/team.png</icon>
  306. <reconciliation>
  307. <attributes>
  308. <attribute id="name"/>
  309. <attribute id="org_id"/>
  310. <attribute id="org_name"/>
  311. <attribute id="email"/>
  312. </attributes>
  313. </reconciliation>
  314. </properties>
  315. <fields>
  316. <field id="name" xsi:type="AttributeString">
  317. <sql>name</sql>
  318. <default_value/>
  319. <is_null_allowed>false</is_null_allowed>
  320. </field>
  321. <field id="status" xsi:type="AttributeEnum">
  322. <values>
  323. <value>active</value>
  324. <value>inactive</value>
  325. </values>
  326. <sql>status</sql>
  327. <default_value>active</default_value>
  328. <is_null_allowed>false</is_null_allowed>
  329. <display_style>list</display_style>
  330. </field>
  331. <field id="org_id" xsi:type="AttributeExternalKey">
  332. <sql>org_id</sql>
  333. <target_class>Organization</target_class>
  334. <is_null_allowed>false</is_null_allowed>
  335. <on_target_delete>DEL_MANUAL</on_target_delete>
  336. </field>
  337. <field id="org_name" xsi:type="AttributeExternalField">
  338. <extkey_attcode>org_id</extkey_attcode>
  339. <target_attcode>name</target_attcode>
  340. </field>
  341. <field id="email" xsi:type="AttributeEmailAddress">
  342. <sql>email</sql>
  343. <default_value/>
  344. <is_null_allowed>true</is_null_allowed>
  345. </field>
  346. <field id="phone" xsi:type="AttributeString">
  347. <sql>phone</sql>
  348. <default_value/>
  349. <is_null_allowed>true</is_null_allowed>
  350. </field>
  351. <field id="notify" xsi:type="AttributeEnum">
  352. <values>
  353. <value>yes</value>
  354. <value>no</value>
  355. </values>
  356. <sql>notify</sql>
  357. <default_value>yes</default_value>
  358. <is_null_allowed>true</is_null_allowed>
  359. <display_style>radio_horizontal</display_style>
  360. </field>
  361. <field id="function" xsi:type="AttributeString">
  362. <sql>function</sql>
  363. <default_value/>
  364. <is_null_allowed>true</is_null_allowed>
  365. </field>
  366. <field id="cis_list" xsi:type="AttributeLinkedSetIndirect">
  367. <linked_class>lnkContactToFunctionalCI</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>functionalci_id</ext_key_to_remote>
  372. <duplicates/>
  373. </field>
  374. </fields>
  375. <methods/>
  376. <presentation>
  377. <details>
  378. <items>
  379. <item id="name">
  380. <rank>10</rank>
  381. </item>
  382. <item id="status">
  383. <rank>20</rank>
  384. </item>
  385. <item id="org_id">
  386. <rank>30</rank>
  387. </item>
  388. <item id="email">
  389. <rank>40</rank>
  390. </item>
  391. <item id="phone">
  392. <rank>50</rank>
  393. </item>
  394. <item id="notify">
  395. <rank>60</rank>
  396. </item>
  397. <item id="function">
  398. <rank>70</rank>
  399. </item>
  400. </items>
  401. </details>
  402. <search>
  403. <items>
  404. <item id="name">
  405. <rank>10</rank>
  406. </item>
  407. <item id="status">
  408. <rank>20</rank>
  409. </item>
  410. <item id="org_id">
  411. <rank>30</rank>
  412. </item>
  413. <item id="email">
  414. <rank>40</rank>
  415. </item>
  416. <item id="phone">
  417. <rank>50</rank>
  418. </item>
  419. <item id="notify">
  420. <rank>60</rank>
  421. </item>
  422. <item id="function">
  423. <rank>70</rank>
  424. </item>
  425. </items>
  426. </search>
  427. <list>
  428. <items>
  429. <item id="status">
  430. <rank>10</rank>
  431. </item>
  432. <item id="org_id">
  433. <rank>20</rank>
  434. </item>
  435. <item id="email">
  436. <rank>30</rank>
  437. </item>
  438. <item id="phone">
  439. <rank>40</rank>
  440. </item>
  441. <item id="function">
  442. <rank>50</rank>
  443. </item>
  444. </items>
  445. </list>
  446. </presentation>
  447. </class>
  448. <class id="Person" _delta="define">
  449. <parent>Contact</parent>
  450. <properties>
  451. <category>bizmodel,searchable,structure</category>
  452. <abstract>false</abstract>
  453. <key_type>autoincrement</key_type>
  454. <db_table>person</db_table>
  455. <db_key_field>id</db_key_field>
  456. <db_final_class_field/>
  457. <naming>
  458. <format>%1$s %2$s</format>
  459. <attributes>
  460. <attribute id="first_name"/>
  461. <attribute id="name"/>
  462. </attributes>
  463. </naming>
  464. <display_template/>
  465. <icon>images/person.png</icon>
  466. <reconciliation>
  467. <attributes>
  468. <attribute id="name"/>
  469. <attribute id="first_name"/>
  470. <attribute id="org_id"/>
  471. <attribute id="org_name"/>
  472. <attribute id="email"/>
  473. </attributes>
  474. </reconciliation>
  475. </properties>
  476. <fields>
  477. <field id="first_name" xsi:type="AttributeString">
  478. <sql>first_name</sql>
  479. <default_value/>
  480. <is_null_allowed>false</is_null_allowed>
  481. </field>
  482. <field id="employee_number" xsi:type="AttributeString">
  483. <sql>employee_number</sql>
  484. <default_value/>
  485. <is_null_allowed>true</is_null_allowed>
  486. </field>
  487. <field id="mobile_phone" xsi:type="AttributeString">
  488. <sql>mobile_phone</sql>
  489. <default_value/>
  490. <is_null_allowed>true</is_null_allowed>
  491. </field>
  492. <field id="location_id" xsi:type="AttributeExternalKey">
  493. <filter><![CDATA[SELECT l FROM Organization AS child JOIN Organization AS root ON child.parent_id BELOW root.id JOIN Location AS l ON l.org_id=root.id WHERE child.id=:this->org_id]]></filter>
  494. <dependencies>
  495. <attribute id="org_id"/>
  496. </dependencies>
  497. <sql>location_id</sql>
  498. <target_class>Location</target_class>
  499. <is_null_allowed>true</is_null_allowed>
  500. <on_target_delete>DEL_MANUAL</on_target_delete>
  501. </field>
  502. <field id="location_name" xsi:type="AttributeExternalField">
  503. <extkey_attcode>location_id</extkey_attcode>
  504. <target_attcode>name</target_attcode>
  505. </field>
  506. <field id="manager_id" xsi:type="AttributeExternalKey">
  507. <filter><![CDATA[SELECT Person]]></filter>
  508. <dependencies>
  509. <attribute id="org_id"/>
  510. </dependencies>
  511. <sql>manager_id</sql>
  512. <target_class>Person</target_class>
  513. <is_null_allowed>true</is_null_allowed>
  514. <on_target_delete>DEL_MANUAL</on_target_delete>
  515. </field>
  516. <field id="manager_name" xsi:type="AttributeExternalField">
  517. <extkey_attcode>manager_id</extkey_attcode>
  518. <target_attcode>name</target_attcode>
  519. </field>
  520. <field id="team_list" xsi:type="AttributeLinkedSetIndirect">
  521. <linked_class>lnkPersonToTeam</linked_class>
  522. <ext_key_to_me>person_id</ext_key_to_me>
  523. <count_min>0</count_min>
  524. <count_max>0</count_max>
  525. <ext_key_to_remote>team_id</ext_key_to_remote>
  526. <duplicates/>
  527. </field>
  528. <field id="tickets_list" xsi:type="AttributeLinkedSet">
  529. <linked_class>Ticket</linked_class>
  530. <ext_key_to_me>caller_id</ext_key_to_me>
  531. <edit_mode>add_only</edit_mode>
  532. <count_min>0</count_min>
  533. <count_max>0</count_max>
  534. </field>
  535. </fields>
  536. <methods/>
  537. <presentation>
  538. <details>
  539. <items>
  540. <item id="team_list">
  541. <rank>10</rank>
  542. </item>
  543. <item id="tickets_list">
  544. <rank>20</rank>
  545. </item>
  546. <item id="cis_list">
  547. <rank>30</rank>
  548. </item>
  549. <item id="col:col1">
  550. <rank>40</rank>
  551. <items>
  552. <item id="fieldset:Person:info">
  553. <rank>10</rank>
  554. <items>
  555. <item id="name">
  556. <rank>10</rank>
  557. </item>
  558. <item id="first_name">
  559. <rank>20</rank>
  560. </item>
  561. <item id="org_id">
  562. <rank>30</rank>
  563. </item>
  564. <item id="status">
  565. <rank>40</rank>
  566. </item>
  567. <item id="location_id">
  568. <rank>50</rank>
  569. </item>
  570. <item id="function">
  571. <rank>60</rank>
  572. </item>
  573. <item id="manager_id">
  574. <rank>70</rank>
  575. </item>
  576. <item id="employee_number">
  577. <rank>80</rank>
  578. </item>
  579. </items>
  580. </item>
  581. </items>
  582. </item>
  583. <item id="col:col2">
  584. <rank>50</rank>
  585. <items>
  586. <item id="fieldset:Person:notifiy">
  587. <rank>10</rank>
  588. <items>
  589. <item id="email">
  590. <rank>10</rank>
  591. </item>
  592. <item id="notify">
  593. <rank>20</rank>
  594. </item>
  595. <item id="phone">
  596. <rank>30</rank>
  597. </item>
  598. <item id="mobile_phone">
  599. <rank>40</rank>
  600. </item>
  601. </items>
  602. </item>
  603. </items>
  604. </item>
  605. </items>
  606. </details>
  607. <search>
  608. <items>
  609. <item id="name">
  610. <rank>10</rank>
  611. </item>
  612. <item id="first_name">
  613. <rank>20</rank>
  614. </item>
  615. <item id="org_id">
  616. <rank>30</rank>
  617. </item>
  618. <item id="status">
  619. <rank>40</rank>
  620. </item>
  621. <item id="location_id">
  622. <rank>50</rank>
  623. </item>
  624. <item id="email">
  625. <rank>60</rank>
  626. </item>
  627. <item id="phone">
  628. <rank>70</rank>
  629. </item>
  630. <item id="employee_number">
  631. <rank>80</rank>
  632. </item>
  633. <item id="manager_id">
  634. <rank>90</rank>
  635. </item>
  636. <item id="mobile_phone">
  637. <rank>100</rank>
  638. </item>
  639. <item id="notify">
  640. <rank>110</rank>
  641. </item>
  642. </items>
  643. </search>
  644. <list>
  645. <items>
  646. <item id="first_name">
  647. <rank>10</rank>
  648. </item>
  649. <item id="org_id">
  650. <rank>20</rank>
  651. </item>
  652. <item id="status">
  653. <rank>30</rank>
  654. </item>
  655. <item id="location_id">
  656. <rank>40</rank>
  657. </item>
  658. <item id="email">
  659. <rank>50</rank>
  660. </item>
  661. <item id="phone">
  662. <rank>60</rank>
  663. </item>
  664. </items>
  665. </list>
  666. </presentation>
  667. </class>
  668. <class id="Team" _delta="define">
  669. <parent>Contact</parent>
  670. <properties>
  671. <category>bizmodel,searchable</category>
  672. <abstract>false</abstract>
  673. <key_type>autoincrement</key_type>
  674. <db_table>team</db_table>
  675. <db_key_field>id</db_key_field>
  676. <db_final_class_field/>
  677. <naming>
  678. <format>%1$s</format>
  679. <attributes>
  680. <attribute id="name"/>
  681. </attributes>
  682. </naming>
  683. <display_template/>
  684. <icon>images/team.png</icon>
  685. <reconciliation>
  686. <attributes>
  687. <attribute id="name"/>
  688. <attribute id="org_id"/>
  689. <attribute id="org_name"/>
  690. <attribute id="email"/>
  691. </attributes>
  692. </reconciliation>
  693. </properties>
  694. <fields>
  695. <field id="persons_list" xsi:type="AttributeLinkedSetIndirect">
  696. <linked_class>lnkPersonToTeam</linked_class>
  697. <ext_key_to_me>team_id</ext_key_to_me>
  698. <count_min>0</count_min>
  699. <count_max>0</count_max>
  700. <ext_key_to_remote>person_id</ext_key_to_remote>
  701. <duplicates/>
  702. </field>
  703. <field id="tickets_list" xsi:type="AttributeLinkedSet">
  704. <linked_class>Ticket</linked_class>
  705. <ext_key_to_me>team_id</ext_key_to_me>
  706. <edit_mode>none</edit_mode>
  707. <count_min>0</count_min>
  708. <count_max>0</count_max>
  709. </field>
  710. </fields>
  711. <methods/>
  712. <presentation>
  713. <details>
  714. <items>
  715. <item id="name">
  716. <rank>10</rank>
  717. </item>
  718. <item id="status">
  719. <rank>20</rank>
  720. </item>
  721. <item id="org_id">
  722. <rank>30</rank>
  723. </item>
  724. <item id="email">
  725. <rank>40</rank>
  726. </item>
  727. <item id="phone">
  728. <rank>50</rank>
  729. </item>
  730. <item id="notify">
  731. <rank>60</rank>
  732. </item>
  733. <item id="function">
  734. <rank>70</rank>
  735. </item>
  736. <item id="persons_list">
  737. <rank>80</rank>
  738. </item>
  739. <item id="tickets_list">
  740. <rank>90</rank>
  741. </item>
  742. <item id="cis_list">
  743. <rank>100</rank>
  744. </item>
  745. </items>
  746. </details>
  747. <search>
  748. <items>
  749. <item id="name">
  750. <rank>10</rank>
  751. </item>
  752. <item id="status">
  753. <rank>20</rank>
  754. </item>
  755. <item id="org_id">
  756. <rank>30</rank>
  757. </item>
  758. <item id="email">
  759. <rank>40</rank>
  760. </item>
  761. <item id="phone">
  762. <rank>50</rank>
  763. </item>
  764. <item id="notify">
  765. <rank>60</rank>
  766. </item>
  767. <item id="function">
  768. <rank>70</rank>
  769. </item>
  770. </items>
  771. </search>
  772. <list>
  773. <items>
  774. <item id="status">
  775. <rank>10</rank>
  776. </item>
  777. <item id="org_id">
  778. <rank>20</rank>
  779. </item>
  780. <item id="email">
  781. <rank>30</rank>
  782. </item>
  783. <item id="phone">
  784. <rank>40</rank>
  785. </item>
  786. </items>
  787. </list>
  788. </presentation>
  789. </class>
  790. <class id="Document" _delta="define">
  791. <parent>cmdbAbstractObject</parent>
  792. <properties>
  793. <category>bizmodel,searchable</category>
  794. <abstract>true</abstract>
  795. <key_type>autoincrement</key_type>
  796. <db_table>document</db_table>
  797. <db_key_field>id</db_key_field>
  798. <db_final_class_field>finalclass</db_final_class_field>
  799. <naming>
  800. <format>Document</format>
  801. <attributes/>
  802. </naming>
  803. <display_template/>
  804. <icon>images/document.png</icon>
  805. <reconciliation>
  806. <attributes>
  807. <attribute id=""/>
  808. </attributes>
  809. </reconciliation>
  810. </properties>
  811. <fields>
  812. <field id="name" xsi:type="AttributeString">
  813. <sql>name</sql>
  814. <default_value/>
  815. <is_null_allowed>false</is_null_allowed>
  816. </field>
  817. <field id="org_id" xsi:type="AttributeExternalKey">
  818. <sql>org_id</sql>
  819. <target_class>Organization</target_class>
  820. <is_null_allowed>false</is_null_allowed>
  821. <on_target_delete>DEL_MANUAL</on_target_delete>
  822. </field>
  823. <field id="org_name" xsi:type="AttributeExternalField">
  824. <extkey_attcode>org_id</extkey_attcode>
  825. <target_attcode>name</target_attcode>
  826. </field>
  827. <field id="documenttype_id" xsi:type="AttributeExternalKey">
  828. <sql>documenttype_id</sql>
  829. <target_class>DocumentType</target_class>
  830. <is_null_allowed>true</is_null_allowed>
  831. <on_target_delete>DEL_MANUAL</on_target_delete>
  832. </field>
  833. <field id="documenttype_name" xsi:type="AttributeExternalField">
  834. <extkey_attcode>documenttype_id</extkey_attcode>
  835. <target_attcode>name</target_attcode>
  836. </field>
  837. <field id="description" xsi:type="AttributeText">
  838. <sql>description</sql>
  839. <default_value/>
  840. <is_null_allowed>true</is_null_allowed>
  841. </field>
  842. <field id="status" xsi:type="AttributeEnum">
  843. <values>
  844. <value>draft</value>
  845. <value>published</value>
  846. <value>obsolete</value>
  847. </values>
  848. <sql>status</sql>
  849. <default_value/>
  850. <is_null_allowed>true</is_null_allowed>
  851. <display_style>list</display_style>
  852. </field>
  853. <field id="cis_list" xsi:type="AttributeLinkedSetIndirect">
  854. <linked_class>lnkDocumentToFunctionalCI</linked_class>
  855. <ext_key_to_me>document_id</ext_key_to_me>
  856. <count_min>0</count_min>
  857. <count_max>0</count_max>
  858. <ext_key_to_remote>functionalci_id</ext_key_to_remote>
  859. <duplicates/>
  860. </field>
  861. <field id="contracts_list" xsi:type="AttributeLinkedSetIndirect">
  862. <linked_class>lnkContractToDocument</linked_class>
  863. <ext_key_to_me>document_id</ext_key_to_me>
  864. <count_min>0</count_min>
  865. <count_max>0</count_max>
  866. <ext_key_to_remote>contract_id</ext_key_to_remote>
  867. <duplicates/>
  868. </field>
  869. <field id="services_list" xsi:type="AttributeLinkedSetIndirect">
  870. <linked_class>lnkDocumentToService</linked_class>
  871. <ext_key_to_me>document_id</ext_key_to_me>
  872. <count_min>0</count_min>
  873. <count_max>0</count_max>
  874. <ext_key_to_remote>service_id</ext_key_to_remote>
  875. <duplicates/>
  876. </field>
  877. </fields>
  878. <methods/>
  879. <presentation>
  880. <details>
  881. <items>
  882. <item id="name">
  883. <rank>10</rank>
  884. </item>
  885. <item id="org_id">
  886. <rank>20</rank>
  887. </item>
  888. <item id="status">
  889. <rank>30</rank>
  890. </item>
  891. <item id="documenttype_id">
  892. <rank>40</rank>
  893. </item>
  894. <item id="description">
  895. <rank>50</rank>
  896. </item>
  897. <item id="cis_list">
  898. <rank>60</rank>
  899. </item>
  900. <item id="contracts_list">
  901. <rank>70</rank>
  902. </item>
  903. <item id="services_list">
  904. <rank>80</rank>
  905. </item>
  906. </items>
  907. </details>
  908. <search>
  909. <items>
  910. <item id="name">
  911. <rank>10</rank>
  912. </item>
  913. <item id="org_id">
  914. <rank>20</rank>
  915. </item>
  916. <item id="status">
  917. <rank>30</rank>
  918. </item>
  919. <item id="documenttype_id">
  920. <rank>40</rank>
  921. </item>
  922. <item id="description">
  923. <rank>50</rank>
  924. </item>
  925. </items>
  926. </search>
  927. <list>
  928. <items>
  929. <item id="org_id">
  930. <rank>10</rank>
  931. </item>
  932. <item id="status">
  933. <rank>20</rank>
  934. </item>
  935. <item id="documenttype_id">
  936. <rank>30</rank>
  937. </item>
  938. <item id="description">
  939. <rank>40</rank>
  940. </item>
  941. </items>
  942. </list>
  943. </presentation>
  944. </class>
  945. <class id="DocumentFile" _delta="define">
  946. <parent>Document</parent>
  947. <properties>
  948. <category>bizmodel,searchable</category>
  949. <abstract>false</abstract>
  950. <key_type>autoincrement</key_type>
  951. <db_table>documentfile</db_table>
  952. <db_key_field>id</db_key_field>
  953. <db_final_class_field/>
  954. <naming>
  955. <format>%1$s</format>
  956. <attributes>
  957. <attribute id="name"/>
  958. </attributes>
  959. </naming>
  960. <display_template/>
  961. <icon>images/document.png</icon>
  962. <reconciliation>
  963. <attributes>
  964. <attribute id="name"/>
  965. <attribute id="org_id"/>
  966. <attribute id="org_name"/>
  967. </attributes>
  968. </reconciliation>
  969. </properties>
  970. <fields>
  971. <field id="file" xsi:type="AttributeBlob"/>
  972. </fields>
  973. <methods/>
  974. <presentation>
  975. <details>
  976. <items>
  977. <item id="name">
  978. <rank>10</rank>
  979. </item>
  980. <item id="org_id">
  981. <rank>20</rank>
  982. </item>
  983. <item id="status">
  984. <rank>30</rank>
  985. </item>
  986. <item id="documenttype_id">
  987. <rank>40</rank>
  988. </item>
  989. <item id="description">
  990. <rank>50</rank>
  991. </item>
  992. <item id="file">
  993. <rank>60</rank>
  994. </item>
  995. <item id="cis_list">
  996. <rank>70</rank>
  997. </item>
  998. <item id="contracts_list">
  999. <rank>80</rank>
  1000. </item>
  1001. <item id="services_list">
  1002. <rank>90</rank>
  1003. </item>
  1004. </items>
  1005. </details>
  1006. <search>
  1007. <items>
  1008. <item id="name">
  1009. <rank>10</rank>
  1010. </item>
  1011. <item id="org_id">
  1012. <rank>20</rank>
  1013. </item>
  1014. <item id="status">
  1015. <rank>30</rank>
  1016. </item>
  1017. <item id="documenttype_id">
  1018. <rank>40</rank>
  1019. </item>
  1020. <item id="description">
  1021. <rank>50</rank>
  1022. </item>
  1023. </items>
  1024. </search>
  1025. <list>
  1026. <items>
  1027. <item id="org_id">
  1028. <rank>10</rank>
  1029. </item>
  1030. <item id="status">
  1031. <rank>20</rank>
  1032. </item>
  1033. <item id="documenttype_id">
  1034. <rank>30</rank>
  1035. </item>
  1036. <item id="file">
  1037. <rank>40</rank>
  1038. </item>
  1039. </items>
  1040. </list>
  1041. </presentation>
  1042. </class>
  1043. <class id="DocumentNote" _delta="define">
  1044. <parent>Document</parent>
  1045. <properties>
  1046. <category>bizmodel,searchable</category>
  1047. <abstract>false</abstract>
  1048. <key_type>autoincrement</key_type>
  1049. <db_table>documentnote</db_table>
  1050. <db_key_field>id</db_key_field>
  1051. <db_final_class_field/>
  1052. <naming>
  1053. <format>%1$s</format>
  1054. <attributes>
  1055. <attribute id="name"/>
  1056. </attributes>
  1057. </naming>
  1058. <display_template/>
  1059. <icon>images/document.png</icon>
  1060. <reconciliation>
  1061. <attributes>
  1062. <attribute id="name"/>
  1063. <attribute id="org_id"/>
  1064. <attribute id="org_name"/>
  1065. </attributes>
  1066. </reconciliation>
  1067. </properties>
  1068. <fields>
  1069. <field id="text" xsi:type="AttributeHTML">
  1070. <sql>text</sql>
  1071. <default_value/>
  1072. <is_null_allowed>false</is_null_allowed>
  1073. </field>
  1074. </fields>
  1075. <methods/>
  1076. <presentation>
  1077. <details>
  1078. <items>
  1079. <item id="name">
  1080. <rank>10</rank>
  1081. </item>
  1082. <item id="org_id">
  1083. <rank>20</rank>
  1084. </item>
  1085. <item id="status">
  1086. <rank>30</rank>
  1087. </item>
  1088. <item id="documenttype_id">
  1089. <rank>40</rank>
  1090. </item>
  1091. <item id="description">
  1092. <rank>50</rank>
  1093. </item>
  1094. <item id="text">
  1095. <rank>60</rank>
  1096. </item>
  1097. <item id="cis_list">
  1098. <rank>70</rank>
  1099. </item>
  1100. <item id="contracts_list">
  1101. <rank>80</rank>
  1102. </item>
  1103. <item id="services_list">
  1104. <rank>90</rank>
  1105. </item>
  1106. </items>
  1107. </details>
  1108. <search>
  1109. <items>
  1110. <item id="name">
  1111. <rank>10</rank>
  1112. </item>
  1113. <item id="org_id">
  1114. <rank>20</rank>
  1115. </item>
  1116. <item id="status">
  1117. <rank>30</rank>
  1118. </item>
  1119. <item id="documenttype_id">
  1120. <rank>40</rank>
  1121. </item>
  1122. <item id="description">
  1123. <rank>50</rank>
  1124. </item>
  1125. </items>
  1126. </search>
  1127. <list>
  1128. <items>
  1129. <item id="org_id">
  1130. <rank>10</rank>
  1131. </item>
  1132. <item id="status">
  1133. <rank>20</rank>
  1134. </item>
  1135. <item id="documenttype_id">
  1136. <rank>30</rank>
  1137. </item>
  1138. <item id="description">
  1139. <rank>40</rank>
  1140. </item>
  1141. </items>
  1142. </list>
  1143. </presentation>
  1144. </class>
  1145. <class id="DocumentWeb" _delta="define">
  1146. <parent>Document</parent>
  1147. <properties>
  1148. <category>bizmodel,searchable</category>
  1149. <abstract>false</abstract>
  1150. <key_type>autoincrement</key_type>
  1151. <db_table>documentweb</db_table>
  1152. <db_key_field>id</db_key_field>
  1153. <db_final_class_field/>
  1154. <naming>
  1155. <format>%1$s</format>
  1156. <attributes>
  1157. <attribute id="name"/>
  1158. </attributes>
  1159. </naming>
  1160. <display_template/>
  1161. <icon>images/document.png</icon>
  1162. <reconciliation>
  1163. <attributes>
  1164. <attribute id="name"/>
  1165. <attribute id="org_id"/>
  1166. <attribute id="org_name"/>
  1167. </attributes>
  1168. </reconciliation>
  1169. </properties>
  1170. <fields>
  1171. <field id="url" xsi:type="AttributeURL">
  1172. <sql>url</sql>
  1173. <default_value/>
  1174. <is_null_allowed>true</is_null_allowed>
  1175. <target>_blank</target>
  1176. </field>
  1177. </fields>
  1178. <methods/>
  1179. <presentation>
  1180. <details>
  1181. <items>
  1182. <item id="name">
  1183. <rank>10</rank>
  1184. </item>
  1185. <item id="org_id">
  1186. <rank>20</rank>
  1187. </item>
  1188. <item id="status">
  1189. <rank>30</rank>
  1190. </item>
  1191. <item id="description">
  1192. <rank>40</rank>
  1193. </item>
  1194. <item id="url">
  1195. <rank>50</rank>
  1196. </item>
  1197. <item id="cis_list">
  1198. <rank>60</rank>
  1199. </item>
  1200. <item id="contracts_list">
  1201. <rank>70</rank>
  1202. </item>
  1203. <item id="services_list">
  1204. <rank>80</rank>
  1205. </item>
  1206. </items>
  1207. </details>
  1208. <search>
  1209. <items>
  1210. <item id="name">
  1211. <rank>10</rank>
  1212. </item>
  1213. <item id="org_id">
  1214. <rank>20</rank>
  1215. </item>
  1216. <item id="status">
  1217. <rank>30</rank>
  1218. </item>
  1219. <item id="description">
  1220. <rank>40</rank>
  1221. </item>
  1222. <item id="url">
  1223. <rank>50</rank>
  1224. </item>
  1225. </items>
  1226. </search>
  1227. <list>
  1228. <items>
  1229. <item id="org_id">
  1230. <rank>10</rank>
  1231. </item>
  1232. <item id="status">
  1233. <rank>20</rank>
  1234. </item>
  1235. <item id="description">
  1236. <rank>30</rank>
  1237. </item>
  1238. <item id="url">
  1239. <rank>40</rank>
  1240. </item>
  1241. </items>
  1242. </list>
  1243. </presentation>
  1244. </class>
  1245. <class id="FunctionalCI" _delta="define">
  1246. <parent>cmdbAbstractObject</parent>
  1247. <properties>
  1248. <category>bizmodel,searchable</category>
  1249. <abstract>true</abstract>
  1250. <key_type>autoincrement</key_type>
  1251. <db_table>functionalci</db_table>
  1252. <db_key_field>id</db_key_field>
  1253. <db_final_class_field>finalclass</db_final_class_field>
  1254. <naming>
  1255. <format>%1$s</format>
  1256. <attributes>
  1257. <attribute id="name"/>
  1258. </attributes>
  1259. </naming>
  1260. <display_template/>
  1261. <icon>images/server.png</icon>
  1262. <reconciliation>
  1263. <attributes>
  1264. <attribute id="name"/>
  1265. <attribute id="org_id"/>
  1266. <attribute id="organization_name"/>
  1267. </attributes>
  1268. </reconciliation>
  1269. </properties>
  1270. <fields>
  1271. <field id="name" xsi:type="AttributeString">
  1272. <sql>name</sql>
  1273. <default_value/>
  1274. <is_null_allowed>false</is_null_allowed>
  1275. </field>
  1276. <field id="description" xsi:type="AttributeText">
  1277. <sql>description</sql>
  1278. <default_value/>
  1279. <is_null_allowed>true</is_null_allowed>
  1280. </field>
  1281. <field id="org_id" xsi:type="AttributeExternalKey">
  1282. <sql>org_id</sql>
  1283. <target_class>Organization</target_class>
  1284. <is_null_allowed>false</is_null_allowed>
  1285. <on_target_delete>DEL_MANUAL</on_target_delete>
  1286. </field>
  1287. <field id="organization_name" xsi:type="AttributeExternalField">
  1288. <extkey_attcode>org_id</extkey_attcode>
  1289. <target_attcode>name</target_attcode>
  1290. </field>
  1291. <field id="business_criticity" xsi:type="AttributeEnum">
  1292. <values>
  1293. <value>high</value>
  1294. <value>medium</value>
  1295. <value>low</value>
  1296. </values>
  1297. <sql>business_criticity</sql>
  1298. <default_value>low</default_value>
  1299. <is_null_allowed>true</is_null_allowed>
  1300. <display_style>list</display_style>
  1301. </field>
  1302. <field id="move2production" xsi:type="AttributeDate">
  1303. <sql>move2production</sql>
  1304. <default_value/>
  1305. <is_null_allowed>true</is_null_allowed>
  1306. </field>
  1307. <field id="contacts_list" xsi:type="AttributeLinkedSetIndirect">
  1308. <linked_class>lnkContactToFunctionalCI</linked_class>
  1309. <ext_key_to_me>functionalci_id</ext_key_to_me>
  1310. <count_min>0</count_min>
  1311. <count_max>0</count_max>
  1312. <ext_key_to_remote>contact_id</ext_key_to_remote>
  1313. <duplicates/>
  1314. </field>
  1315. <field id="documents_list" xsi:type="AttributeLinkedSetIndirect">
  1316. <linked_class>lnkDocumentToFunctionalCI</linked_class>
  1317. <ext_key_to_me>functionalci_id</ext_key_to_me>
  1318. <count_min>0</count_min>
  1319. <count_max>0</count_max>
  1320. <ext_key_to_remote>document_id</ext_key_to_remote>
  1321. <duplicates/>
  1322. </field>
  1323. <field id="applicationsolution_list" xsi:type="AttributeLinkedSetIndirect">
  1324. <linked_class>lnkApplicationSolutionToFunctionalCI</linked_class>
  1325. <ext_key_to_me>functionalci_id</ext_key_to_me>
  1326. <count_min>0</count_min>
  1327. <count_max>0</count_max>
  1328. <ext_key_to_remote>applicationsolution_id</ext_key_to_remote>
  1329. <duplicates/>
  1330. </field>
  1331. <field id="providercontracts_list" xsi:type="AttributeLinkedSetIndirect">
  1332. <linked_class>lnkFunctionalCIToProviderContract</linked_class>
  1333. <ext_key_to_me>functionalci_id</ext_key_to_me>
  1334. <count_min>0</count_min>
  1335. <count_max>0</count_max>
  1336. <ext_key_to_remote>providercontract_id</ext_key_to_remote>
  1337. <duplicates/>
  1338. </field>
  1339. <field id="services_list" xsi:type="AttributeLinkedSetIndirect">
  1340. <linked_class>lnkFunctionalCIToService</linked_class>
  1341. <ext_key_to_me>functionalci_id</ext_key_to_me>
  1342. <count_min>0</count_min>
  1343. <count_max>0</count_max>
  1344. <ext_key_to_remote>service_id</ext_key_to_remote>
  1345. <duplicates/>
  1346. </field>
  1347. <field id="softwares_list" xsi:type="AttributeLinkedSet">
  1348. <linked_class>SoftwareInstance</linked_class>
  1349. <ext_key_to_me>system_id</ext_key_to_me>
  1350. <edit_mode>in_place</edit_mode>
  1351. <count_min>0</count_min>
  1352. <count_max>0</count_max>
  1353. </field>
  1354. <field id="tickets_list" xsi:type="AttributeLinkedSetIndirect">
  1355. <linked_class>lnkFunctionalCIToTicket</linked_class>
  1356. <ext_key_to_me>functionalci_id</ext_key_to_me>
  1357. <count_min>0</count_min>
  1358. <count_max>0</count_max>
  1359. <ext_key_to_remote>ticket_id</ext_key_to_remote>
  1360. <duplicates/>
  1361. </field>
  1362. </fields>
  1363. <methods>
  1364. <method id="GetRelationQueries">
  1365. <static>true</static>
  1366. <access>public</access>
  1367. <type>Overload-DBObject</type>
  1368. <code><![CDATA[ public static function GetRelationQueries($sRelCode)
  1369. {
  1370. switch ($sRelCode)
  1371. {
  1372. case "impacts":
  1373. $aRels = array(
  1374. "contact" => array("sQuery"=>"SELECT Contact AS c JOIN lnkContactToFunctionalCI AS l1 ON l1.contact_id = c.id WHERE l1.functionalci_id = :this->id", "bPropagate"=>true, "iDistance"=>3),
  1375. "solution" => array("sQuery"=>"SELECT ApplicationSolution AS s JOIN lnkApplicationSolutionToFunctionalCI AS l1 ON l1.applicationsolution_id = s.id WHERE l1.functionalci_id = :this->id", "bPropagate"=>true, "iDistance"=>2),
  1376. "SoftwareInstances" => array("sQuery"=>"SELECT SoftwareInstance AS s WHERE s.system_id = :this->id", "bPropagate"=>true, "iDistance"=>10),
  1377. );
  1378. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  1379. break;
  1380. default:
  1381. return parent::GetRelationQueries($sRelCode);
  1382. }
  1383. }]]></code>
  1384. </method>
  1385. </methods>
  1386. <presentation>
  1387. <details>
  1388. <items>
  1389. <item id="name">
  1390. <rank>10</rank>
  1391. </item>
  1392. <item id="org_id">
  1393. <rank>20</rank>
  1394. </item>
  1395. <item id="business_criticity">
  1396. <rank>30</rank>
  1397. </item>
  1398. <item id="move2production">
  1399. <rank>40</rank>
  1400. </item>
  1401. <item id="description">
  1402. <rank>50</rank>
  1403. </item>
  1404. <item id="contacts_list">
  1405. <rank>60</rank>
  1406. </item>
  1407. <item id="documents_list">
  1408. <rank>70</rank>
  1409. </item>
  1410. <item id="tickets_list">
  1411. <rank>80</rank>
  1412. </item>
  1413. <item id="applicationsolution_list">
  1414. <rank>90</rank>
  1415. </item>
  1416. <item id="providercontracts_list">
  1417. <rank>100</rank>
  1418. </item>
  1419. <item id="services_list">
  1420. <rank>110</rank>
  1421. </item>
  1422. </items>
  1423. </details>
  1424. <search>
  1425. <items>
  1426. <item id="name">
  1427. <rank>10</rank>
  1428. </item>
  1429. <item id="org_id">
  1430. <rank>20</rank>
  1431. </item>
  1432. <item id="business_criticity">
  1433. <rank>30</rank>
  1434. </item>
  1435. <item id="move2production">
  1436. <rank>40</rank>
  1437. </item>
  1438. </items>
  1439. </search>
  1440. <list>
  1441. <items>
  1442. <item id="finalclass">
  1443. <rank>10</rank>
  1444. </item>
  1445. <item id="org_id">
  1446. <rank>20</rank>
  1447. </item>
  1448. <item id="business_criticity">
  1449. <rank>30</rank>
  1450. </item>
  1451. <item id="move2production">
  1452. <rank>40</rank>
  1453. </item>
  1454. </items>
  1455. </list>
  1456. </presentation>
  1457. </class>
  1458. <class id="PhysicalDevice" _delta="define">
  1459. <parent>FunctionalCI</parent>
  1460. <properties>
  1461. <category>bizmodel,searchable</category>
  1462. <abstract>true</abstract>
  1463. <key_type>autoincrement</key_type>
  1464. <db_table>physicaldevice</db_table>
  1465. <db_key_field>id</db_key_field>
  1466. <db_final_class_field/>
  1467. <naming>
  1468. <format>%1$s</format>
  1469. <attributes>
  1470. <attribute id="name"/>
  1471. </attributes>
  1472. </naming>
  1473. <display_template/>
  1474. <icon>images/server.png</icon>
  1475. <reconciliation>
  1476. <attributes>
  1477. <attribute id="name"/>
  1478. <attribute id="org_id"/>
  1479. <attribute id="organization_name"/>
  1480. </attributes>
  1481. </reconciliation>
  1482. </properties>
  1483. <fields>
  1484. <field id="serialnumber" xsi:type="AttributeString">
  1485. <sql>serialnumber</sql>
  1486. <default_value/>
  1487. <is_null_allowed>true</is_null_allowed>
  1488. </field>
  1489. <field id="location_id" xsi:type="AttributeExternalKey">
  1490. <filter><![CDATA[SELECT l FROM Organization AS child JOIN Organization AS root ON child.parent_id BELOW root.id JOIN Location AS l ON l.org_id=root.id WHERE child.id= :this->org_id]]></filter>
  1491. <dependencies>
  1492. <attribute id="org_id"/>
  1493. </dependencies>
  1494. <sql>location_id</sql>
  1495. <target_class>Location</target_class>
  1496. <is_null_allowed>true</is_null_allowed>
  1497. <on_target_delete>DEL_MANUAL</on_target_delete>
  1498. </field>
  1499. <field id="location_name" xsi:type="AttributeExternalField">
  1500. <extkey_attcode>location_id</extkey_attcode>
  1501. <target_attcode>name</target_attcode>
  1502. </field>
  1503. <field id="status" xsi:type="AttributeEnum">
  1504. <values>
  1505. <value>production</value>
  1506. <value>implementation</value>
  1507. <value>stock</value>
  1508. <value>obsolete</value>
  1509. </values>
  1510. <sql>status</sql>
  1511. <default_value>production</default_value>
  1512. <is_null_allowed>true</is_null_allowed>
  1513. <display_style>list</display_style>
  1514. </field>
  1515. <field id="brand_id" xsi:type="AttributeExternalKey">
  1516. <sql>brand_id</sql>
  1517. <target_class>Brand</target_class>
  1518. <is_null_allowed>true</is_null_allowed>
  1519. <on_target_delete>DEL_MANUAL</on_target_delete>
  1520. </field>
  1521. <field id="brand_name" xsi:type="AttributeExternalField">
  1522. <extkey_attcode>brand_id</extkey_attcode>
  1523. <target_attcode>name</target_attcode>
  1524. </field>
  1525. <field id="model_id" xsi:type="AttributeExternalKey">
  1526. <filter><![CDATA[SELECT Model WHERE brand_id=:this->brand_id AND type=:this->finalclass]]></filter>
  1527. <dependencies>
  1528. <attribute id="brand_id"/>
  1529. </dependencies>
  1530. <sql>model_id</sql>
  1531. <target_class>Model</target_class>
  1532. <is_null_allowed>true</is_null_allowed>
  1533. <on_target_delete>DEL_MANUAL</on_target_delete>
  1534. </field>
  1535. <field id="model_name" xsi:type="AttributeExternalField">
  1536. <extkey_attcode>model_id</extkey_attcode>
  1537. <target_attcode>name</target_attcode>
  1538. </field>
  1539. <field id="asset_number" xsi:type="AttributeString">
  1540. <sql>asset_number</sql>
  1541. <default_value/>
  1542. <is_null_allowed>true</is_null_allowed>
  1543. </field>
  1544. <field id="purchase_date" xsi:type="AttributeDate">
  1545. <sql>purchase_date</sql>
  1546. <default_value/>
  1547. <is_null_allowed>true</is_null_allowed>
  1548. </field>
  1549. <field id="end_of_warranty" xsi:type="AttributeDate">
  1550. <sql>end_of_warranty</sql>
  1551. <default_value/>
  1552. <is_null_allowed>true</is_null_allowed>
  1553. </field>
  1554. </fields>
  1555. <methods/>
  1556. <presentation>
  1557. <details>
  1558. <items>
  1559. <item id="name">
  1560. <rank>10</rank>
  1561. </item>
  1562. <item id="org_id">
  1563. <rank>20</rank>
  1564. </item>
  1565. <item id="status">
  1566. <rank>30</rank>
  1567. </item>
  1568. <item id="business_criticity">
  1569. <rank>40</rank>
  1570. </item>
  1571. <item id="location_id">
  1572. <rank>50</rank>
  1573. </item>
  1574. <item id="brand_id">
  1575. <rank>60</rank>
  1576. </item>
  1577. <item id="model_id">
  1578. <rank>70</rank>
  1579. </item>
  1580. <item id="serialnumber">
  1581. <rank>80</rank>
  1582. </item>
  1583. <item id="asset_number">
  1584. <rank>90</rank>
  1585. </item>
  1586. <item id="move2production">
  1587. <rank>100</rank>
  1588. </item>
  1589. <item id="purchase_date">
  1590. <rank>110</rank>
  1591. </item>
  1592. <item id="end_of_warranty">
  1593. <rank>120</rank>
  1594. </item>
  1595. <item id="description">
  1596. <rank>130</rank>
  1597. </item>
  1598. <item id="contacts_list">
  1599. <rank>140</rank>
  1600. </item>
  1601. <item id="documents_list">
  1602. <rank>150</rank>
  1603. </item>
  1604. <item id="tickets_list">
  1605. <rank>160</rank>
  1606. </item>
  1607. </items>
  1608. </details>
  1609. <search>
  1610. <items>
  1611. <item id="name">
  1612. <rank>10</rank>
  1613. </item>
  1614. <item id="org_id">
  1615. <rank>20</rank>
  1616. </item>
  1617. <item id="status">
  1618. <rank>30</rank>
  1619. </item>
  1620. <item id="business_criticity">
  1621. <rank>40</rank>
  1622. </item>
  1623. <item id="location_id">
  1624. <rank>50</rank>
  1625. </item>
  1626. <item id="brand_id">
  1627. <rank>60</rank>
  1628. </item>
  1629. <item id="model_id">
  1630. <rank>70</rank>
  1631. </item>
  1632. <item id="serialnumber">
  1633. <rank>80</rank>
  1634. </item>
  1635. <item id="asset_number">
  1636. <rank>90</rank>
  1637. </item>
  1638. <item id="move2production">
  1639. <rank>100</rank>
  1640. </item>
  1641. <item id="purchase_date">
  1642. <rank>110</rank>
  1643. </item>
  1644. <item id="end_of_warranty">
  1645. <rank>120</rank>
  1646. </item>
  1647. </items>
  1648. </search>
  1649. <list>
  1650. <items>
  1651. <item id="finalclass">
  1652. <rank>10</rank>
  1653. </item>
  1654. <item id="org_id">
  1655. <rank>20</rank>
  1656. </item>
  1657. <item id="status">
  1658. <rank>30</rank>
  1659. </item>
  1660. <item id="business_criticity">
  1661. <rank>40</rank>
  1662. </item>
  1663. <item id="location_id">
  1664. <rank>50</rank>
  1665. </item>
  1666. <item id="brand_id">
  1667. <rank>60</rank>
  1668. </item>
  1669. <item id="model_id">
  1670. <rank>70</rank>
  1671. </item>
  1672. <item id="serialnumber">
  1673. <rank>80</rank>
  1674. </item>
  1675. </items>
  1676. </list>
  1677. </presentation>
  1678. </class>
  1679. <class id="ConnectableCI" _delta="define">
  1680. <parent>PhysicalDevice</parent>
  1681. <properties>
  1682. <category>bizmodel,searchable</category>
  1683. <abstract>true</abstract>
  1684. <key_type>autoincrement</key_type>
  1685. <db_table>connectableci</db_table>
  1686. <db_key_field>id</db_key_field>
  1687. <db_final_class_field/>
  1688. <naming>
  1689. <format>%1$s</format>
  1690. <attributes>
  1691. <attribute id="name"/>
  1692. </attributes>
  1693. </naming>
  1694. <display_template/>
  1695. <icon>images/server.png</icon>
  1696. <reconciliation>
  1697. <attributes>
  1698. <attribute id="name"/>
  1699. <attribute id="org_id"/>
  1700. <attribute id="organization_name"/>
  1701. </attributes>
  1702. </reconciliation>
  1703. </properties>
  1704. <fields>
  1705. <field id="networkdevice_list" xsi:type="AttributeLinkedSetIndirect">
  1706. <linked_class>lnkConnectableCIToNetworkDevice</linked_class>
  1707. <ext_key_to_me>connectableci_id</ext_key_to_me>
  1708. <count_min>0</count_min>
  1709. <count_max>0</count_max>
  1710. <ext_key_to_remote>networkdevice_id</ext_key_to_remote>
  1711. <duplicates>true</duplicates>
  1712. </field>
  1713. <field id="physicalinterface_list" xsi:type="AttributeLinkedSet">
  1714. <linked_class>PhysicalInterface</linked_class>
  1715. <ext_key_to_me>connectableci_id</ext_key_to_me>
  1716. <edit_mode>in_place</edit_mode>
  1717. <count_min>0</count_min>
  1718. <count_max>0</count_max>
  1719. </field>
  1720. </fields>
  1721. <methods>
  1722. <method id="GetRelationQueries">
  1723. <static>true</static>
  1724. <access>public</access>
  1725. <type>Overload-DBObject</type>
  1726. <code><![CDATA[ public static function GetRelationQueries($sRelCode)
  1727. {
  1728. switch ($sRelCode)
  1729. {
  1730. case "impacts":
  1731. $aRels = array(
  1732. );
  1733. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  1734. break;
  1735. case "depends on":
  1736. $aRels = array(
  1737. "connected_network" => array("sQuery"=>"SELECT NetworkDevice AS nw JOIN lnkConnectableCIToNetworkDevice AS l1 ON l1.networkdevice_id = nw.id WHERE l1.connectableci_id = :this->id AND l1.connection_type='downlink'", "bPropagate"=>true, "iDistance"=>10),
  1738. );
  1739. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  1740. break;
  1741. default:
  1742. return parent::GetRelationQueries($sRelCode);
  1743. }
  1744. }]]></code>
  1745. </method>
  1746. </methods>
  1747. <presentation>
  1748. <details>
  1749. <items>
  1750. <item id="name">
  1751. <rank>10</rank>
  1752. </item>
  1753. <item id="org_id">
  1754. <rank>20</rank>
  1755. </item>
  1756. <item id="status">
  1757. <rank>30</rank>
  1758. </item>
  1759. <item id="business_criticity">
  1760. <rank>40</rank>
  1761. </item>
  1762. <item id="location_id">
  1763. <rank>50</rank>
  1764. </item>
  1765. <item id="brand_id">
  1766. <rank>60</rank>
  1767. </item>
  1768. <item id="model_id">
  1769. <rank>70</rank>
  1770. </item>
  1771. <item id="serialnumber">
  1772. <rank>80</rank>
  1773. </item>
  1774. <item id="asset_number">
  1775. <rank>90</rank>
  1776. </item>
  1777. <item id="move2production">
  1778. <rank>100</rank>
  1779. </item>
  1780. <item id="purchase_date">
  1781. <rank>110</rank>
  1782. </item>
  1783. <item id="end_of_warranty">
  1784. <rank>120</rank>
  1785. </item>
  1786. <item id="description">
  1787. <rank>130</rank>
  1788. </item>
  1789. <item id="contacts_list">
  1790. <rank>140</rank>
  1791. </item>
  1792. <item id="documents_list">
  1793. <rank>150</rank>
  1794. </item>
  1795. <item id="networkdevice_list">
  1796. <rank>160</rank>
  1797. </item>
  1798. </items>
  1799. </details>
  1800. <search>
  1801. <items>
  1802. <item id="name">
  1803. <rank>10</rank>
  1804. </item>
  1805. <item id="org_id">
  1806. <rank>20</rank>
  1807. </item>
  1808. <item id="status">
  1809. <rank>30</rank>
  1810. </item>
  1811. <item id="business_criticity">
  1812. <rank>40</rank>
  1813. </item>
  1814. <item id="location_id">
  1815. <rank>50</rank>
  1816. </item>
  1817. <item id="brand_id">
  1818. <rank>60</rank>
  1819. </item>
  1820. <item id="model_id">
  1821. <rank>70</rank>
  1822. </item>
  1823. <item id="serialnumber">
  1824. <rank>80</rank>
  1825. </item>
  1826. <item id="asset_number">
  1827. <rank>90</rank>
  1828. </item>
  1829. <item id="move2production">
  1830. <rank>100</rank>
  1831. </item>
  1832. <item id="purchase_date">
  1833. <rank>110</rank>
  1834. </item>
  1835. <item id="end_of_warranty">
  1836. <rank>120</rank>
  1837. </item>
  1838. </items>
  1839. </search>
  1840. <list>
  1841. <items>
  1842. <item id="finalclass">
  1843. <rank>10</rank>
  1844. </item>
  1845. <item id="org_id">
  1846. <rank>20</rank>
  1847. </item>
  1848. <item id="status">
  1849. <rank>30</rank>
  1850. </item>
  1851. <item id="business_criticity">
  1852. <rank>40</rank>
  1853. </item>
  1854. <item id="location_id">
  1855. <rank>50</rank>
  1856. </item>
  1857. <item id="brand_id">
  1858. <rank>60</rank>
  1859. </item>
  1860. <item id="model_id">
  1861. <rank>70</rank>
  1862. </item>
  1863. <item id="serialnumber">
  1864. <rank>80</rank>
  1865. </item>
  1866. </items>
  1867. </list>
  1868. </presentation>
  1869. </class>
  1870. <class id="DatacenterDevice" _delta="define">
  1871. <parent>ConnectableCI</parent>
  1872. <properties>
  1873. <category>bizmodel,searchable</category>
  1874. <abstract>true</abstract>
  1875. <key_type>autoincrement</key_type>
  1876. <db_table>datacenterdevice</db_table>
  1877. <db_key_field>id</db_key_field>
  1878. <db_final_class_field/>
  1879. <naming>
  1880. <format>%1$s</format>
  1881. <attributes>
  1882. <attribute id="name"/>
  1883. </attributes>
  1884. </naming>
  1885. <display_template/>
  1886. <icon>images/server.png</icon>
  1887. <reconciliation>
  1888. <attributes>
  1889. <attribute id="name"/>
  1890. <attribute id="org_id"/>
  1891. <attribute id="organization_name"/>
  1892. </attributes>
  1893. </reconciliation>
  1894. </properties>
  1895. <fields>
  1896. <field id="rack_id" xsi:type="AttributeExternalKey">
  1897. <filter><![CDATA[SELECT Rack WHERE location_id= :this->location_id]]></filter>
  1898. <dependencies>
  1899. <attribute id="location_id"/>
  1900. </dependencies>
  1901. <sql>rack_id</sql>
  1902. <target_class>Rack</target_class>
  1903. <is_null_allowed>true</is_null_allowed>
  1904. <on_target_delete>DEL_MANUAL</on_target_delete>
  1905. </field>
  1906. <field id="rack_name" xsi:type="AttributeExternalField">
  1907. <extkey_attcode>rack_id</extkey_attcode>
  1908. <target_attcode>name</target_attcode>
  1909. </field>
  1910. <field id="enclosure_id" xsi:type="AttributeExternalKey">
  1911. <filter><![CDATA[SELECT Enclosure WHERE rack_id= :this->rack_id]]></filter>
  1912. <dependencies>
  1913. <attribute id="rack_id"/>
  1914. </dependencies>
  1915. <sql>enclosure_id</sql>
  1916. <target_class>Enclosure</target_class>
  1917. <is_null_allowed>true</is_null_allowed>
  1918. <on_target_delete>DEL_MANUAL</on_target_delete>
  1919. </field>
  1920. <field id="enclosure_name" xsi:type="AttributeExternalField">
  1921. <extkey_attcode>enclosure_id</extkey_attcode>
  1922. <target_attcode>name</target_attcode>
  1923. </field>
  1924. <field id="nb_u" xsi:type="AttributeInteger">
  1925. <sql>nb_u</sql>
  1926. <default_value/>
  1927. <is_null_allowed>true</is_null_allowed>
  1928. </field>
  1929. <field id="managementip" xsi:type="AttributeIPAddress">
  1930. <sql>managementip</sql>
  1931. <default_value/>
  1932. <is_null_allowed>true</is_null_allowed>
  1933. </field>
  1934. <field id="powerA_id" xsi:type="AttributeExternalKey">
  1935. <filter><![CDATA[SELECT PowerConnection WHERE location_id= :this->location_id]]></filter>
  1936. <dependencies>
  1937. <attribute id="location_id"/>
  1938. </dependencies>
  1939. <sql>powera_id</sql>
  1940. <target_class>PowerConnection</target_class>
  1941. <is_null_allowed>true</is_null_allowed>
  1942. <on_target_delete>DEL_MANUAL</on_target_delete>
  1943. </field>
  1944. <field id="powerA_name" xsi:type="AttributeExternalField">
  1945. <extkey_attcode>powerA_id</extkey_attcode>
  1946. <target_attcode>name</target_attcode>
  1947. </field>
  1948. <field id="powerB_id" xsi:type="AttributeExternalKey">
  1949. <filter><![CDATA[SELECT PowerConnection WHERE location_id= :this->location_id]]></filter>
  1950. <dependencies>
  1951. <attribute id="location_id"/>
  1952. </dependencies>
  1953. <sql>powerB_id</sql>
  1954. <target_class>PowerConnection</target_class>
  1955. <is_null_allowed>true</is_null_allowed>
  1956. <on_target_delete>DEL_MANUAL</on_target_delete>
  1957. </field>
  1958. <field id="powerB_name" xsi:type="AttributeExternalField">
  1959. <extkey_attcode>powerB_id</extkey_attcode>
  1960. <target_attcode>name</target_attcode>
  1961. </field>
  1962. <field id="fiberinterfacelist_list" xsi:type="AttributeLinkedSet">
  1963. <linked_class>FiberChannelInterface</linked_class>
  1964. <ext_key_to_me>datacenterdevice_id</ext_key_to_me>
  1965. <edit_mode>in_place</edit_mode>
  1966. <count_min>0</count_min>
  1967. <count_max>0</count_max>
  1968. </field>
  1969. <field id="san_list" xsi:type="AttributeLinkedSetIndirect">
  1970. <linked_class>lnkSanToDatacenterDevice</linked_class>
  1971. <ext_key_to_me>datacenterdevice_id</ext_key_to_me>
  1972. <count_min>0</count_min>
  1973. <count_max>0</count_max>
  1974. <ext_key_to_remote>san_id</ext_key_to_remote>
  1975. <duplicates/>
  1976. </field>
  1977. </fields>
  1978. <methods>
  1979. <method id="GetRelationQueries">
  1980. <static>true</static>
  1981. <access>public</access>
  1982. <type>Overload-DBObject</type>
  1983. <code><![CDATA[ public static function GetRelationQueries($sRelCode)
  1984. {
  1985. switch ($sRelCode)
  1986. {
  1987. case "depends on":
  1988. $aRels = array();
  1989. if (class_exists('Enclosure'))
  1990. {
  1991. $aRels['Enclosure'] = array("sQuery"=>"SELECT Enclosure WHERE id = :this->enclosure_id", "bPropagate"=>true, "iDistance"=>10);
  1992. }
  1993. if (class_exists('SANSwitch'))
  1994. {
  1995. $aRels['SANSwitch'] = array("sQuery"=>"SELECT SANSwitch AS san JOIN lnkSanToDatacenterDevice AS l1 ON l1.san_id = san.id WHERE l1.datacenterdevice_id = :this->id", "bPropagate"=>true, "iDistance"=>10);
  1996. }
  1997. if (class_exists('PowerConnection'))
  1998. {
  1999. $aRels['PowerA'] = array(
  2000. "sQuery"=>"SELECT PowerConnection WHERE id = :this->powerA_id",
  2001. "bPropagate"=>true,
  2002. "iDistance"=>10
  2003. );
  2004. $aRels['PowerB'] = array(
  2005. "sQuery"=>"SELECT PowerConnection WHERE id = :this->powerB_id",
  2006. "bPropagate"=>true,
  2007. "iDistance"=>10
  2008. );
  2009. }
  2010. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  2011. break;
  2012. default:
  2013. return parent::GetRelationQueries($sRelCode);
  2014. }
  2015. }]]></code>
  2016. </method>
  2017. </methods>
  2018. <presentation>
  2019. <details>
  2020. <items>
  2021. <item id="name">
  2022. <rank>10</rank>
  2023. </item>
  2024. <item id="org_id">
  2025. <rank>20</rank>
  2026. </item>
  2027. <item id="status">
  2028. <rank>30</rank>
  2029. </item>
  2030. <item id="business_criticity">
  2031. <rank>40</rank>
  2032. </item>
  2033. <item id="location_id">
  2034. <rank>50</rank>
  2035. </item>
  2036. <item id="rack_id">
  2037. <rank>60</rank>
  2038. </item>
  2039. <item id="enclosure_id">
  2040. <rank>70</rank>
  2041. </item>
  2042. <item id="brand_id">
  2043. <rank>80</rank>
  2044. </item>
  2045. <item id="model_id">
  2046. <rank>90</rank>
  2047. </item>
  2048. <item id="nb_u">
  2049. <rank>100</rank>
  2050. </item>
  2051. <item id="serialnumber">
  2052. <rank>110</rank>
  2053. </item>
  2054. <item id="asset_number">
  2055. <rank>120</rank>
  2056. </item>
  2057. <item id="powerA_id">
  2058. <rank>130</rank>
  2059. </item>
  2060. <item id="powerB_id">
  2061. <rank>140</rank>
  2062. </item>
  2063. <item id="move2production">
  2064. <rank>150</rank>
  2065. </item>
  2066. <item id="purchase_date">
  2067. <rank>160</rank>
  2068. </item>
  2069. <item id="end_of_warranty">
  2070. <rank>170</rank>
  2071. </item>
  2072. <item id="description">
  2073. <rank>180</rank>
  2074. </item>
  2075. <item id="contacts_list">
  2076. <rank>190</rank>
  2077. </item>
  2078. <item id="documents_list">
  2079. <rank>200</rank>
  2080. </item>
  2081. <item id="networkdevice_list">
  2082. <rank>210</rank>
  2083. </item>
  2084. <item id="fiberinterfacelist_list">
  2085. <rank>220</rank>
  2086. </item>
  2087. </items>
  2088. </details>
  2089. <search>
  2090. <items>
  2091. <item id="name">
  2092. <rank>10</rank>
  2093. </item>
  2094. <item id="org_id">
  2095. <rank>20</rank>
  2096. </item>
  2097. <item id="status">
  2098. <rank>30</rank>
  2099. </item>
  2100. <item id="business_criticity">
  2101. <rank>40</rank>
  2102. </item>
  2103. <item id="location_id">
  2104. <rank>50</rank>
  2105. </item>
  2106. <item id="brand_id">
  2107. <rank>60</rank>
  2108. </item>
  2109. <item id="model_id">
  2110. <rank>70</rank>
  2111. </item>
  2112. <item id="serialnumber">
  2113. <rank>80</rank>
  2114. </item>
  2115. <item id="asset_number">
  2116. <rank>90</rank>
  2117. </item>
  2118. <item id="powerA_id">
  2119. <rank>100</rank>
  2120. </item>
  2121. <item id="powerB_id">
  2122. <rank>110</rank>
  2123. </item>
  2124. <item id="move2production">
  2125. <rank>120</rank>
  2126. </item>
  2127. <item id="purchase_date">
  2128. <rank>130</rank>
  2129. </item>
  2130. <item id="end_of_warranty">
  2131. <rank>140</rank>
  2132. </item>
  2133. </items>
  2134. </search>
  2135. <list>
  2136. <items>
  2137. <item id="finalclass">
  2138. <rank>10</rank>
  2139. </item>
  2140. <item id="org_id">
  2141. <rank>20</rank>
  2142. </item>
  2143. <item id="status">
  2144. <rank>30</rank>
  2145. </item>
  2146. <item id="business_criticity">
  2147. <rank>40</rank>
  2148. </item>
  2149. <item id="location_id">
  2150. <rank>50</rank>
  2151. </item>
  2152. <item id="brand_id">
  2153. <rank>60</rank>
  2154. </item>
  2155. <item id="model_id">
  2156. <rank>70</rank>
  2157. </item>
  2158. <item id="serialnumber">
  2159. <rank>80</rank>
  2160. </item>
  2161. </items>
  2162. </list>
  2163. </presentation>
  2164. </class>
  2165. <class id="NetworkDevice" _delta="define">
  2166. <parent>DatacenterDevice</parent>
  2167. <properties>
  2168. <category>bizmodel,searchable</category>
  2169. <abstract>false</abstract>
  2170. <key_type>autoincrement</key_type>
  2171. <db_table>networkdevice</db_table>
  2172. <db_key_field>id</db_key_field>
  2173. <db_final_class_field/>
  2174. <naming>
  2175. <format>%1$s</format>
  2176. <attributes>
  2177. <attribute id="name"/>
  2178. </attributes>
  2179. </naming>
  2180. <display_template/>
  2181. <icon>images/switch.png</icon>
  2182. <reconciliation>
  2183. <attributes>
  2184. <attribute id="name"/>
  2185. <attribute id="org_id"/>
  2186. <attribute id="organization_name"/>
  2187. </attributes>
  2188. </reconciliation>
  2189. </properties>
  2190. <fields>
  2191. <field id="networkdevicetype_id" xsi:type="AttributeExternalKey">
  2192. <sql>networkdevicetype_id</sql>
  2193. <target_class>NetworkDeviceType</target_class>
  2194. <is_null_allowed>false</is_null_allowed>
  2195. <on_target_delete>DEL_MANUAL</on_target_delete>
  2196. </field>
  2197. <field id="networkdevicetype_name" xsi:type="AttributeExternalField">
  2198. <extkey_attcode>networkdevicetype_id</extkey_attcode>
  2199. <target_attcode>name</target_attcode>
  2200. </field>
  2201. <field id="connectablecis_list" xsi:type="AttributeLinkedSetIndirect">
  2202. <linked_class>lnkConnectableCIToNetworkDevice</linked_class>
  2203. <ext_key_to_me>networkdevice_id</ext_key_to_me>
  2204. <count_min>0</count_min>
  2205. <count_max>0</count_max>
  2206. <ext_key_to_remote>connectableci_id</ext_key_to_remote>
  2207. <duplicates>true</duplicates>
  2208. </field>
  2209. <field id="iosversion_id" xsi:type="AttributeExternalKey">
  2210. <sql>iosversion_id</sql>
  2211. <target_class>IOSVersion</target_class>
  2212. <is_null_allowed>true</is_null_allowed>
  2213. <on_target_delete>DEL_MANUAL</on_target_delete>
  2214. </field>
  2215. <field id="iosversion_name" xsi:type="AttributeExternalField">
  2216. <extkey_attcode>iosversion_id</extkey_attcode>
  2217. <target_attcode>name</target_attcode>
  2218. </field>
  2219. <field id="ram" xsi:type="AttributeString">
  2220. <sql>ram</sql>
  2221. <default_value/>
  2222. <is_null_allowed>true</is_null_allowed>
  2223. </field>
  2224. </fields>
  2225. <methods>
  2226. <method id="GetRelationQueries">
  2227. <static>true</static>
  2228. <access>public</access>
  2229. <type>Overload-DBObject</type>
  2230. <code><![CDATA[ public static function GetRelationQueries($sRelCode)
  2231. {
  2232. switch ($sRelCode)
  2233. {
  2234. case "impacts":
  2235. $aRels = array(
  2236. "device" => array("sQuery"=>"SELECT ConnectableCI AS d JOIN lnkConnectableCIToNetworkDevice AS l1 ON l1.connectableci_id = d.id WHERE l1.networkdevice_id = :this->id AND l1.connection_type='downlink'", "bPropagate"=>true, "iDistance"=>1),
  2237. );
  2238. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  2239. break;
  2240. case "depends on":
  2241. $aRels = array(
  2242. // "connected_network" => array("sQuery"=>"SELECT NetworkDevice AS nw JOIN lnkConnectableCIToNetworkDevice AS l1 ON l1.networkdevice_id = nw.id WHERE l1.connectableci_id = :this->id AND l1.connection_type='uplink'", "bPropagate"=>true, "iDistance"=>10),
  2243. );
  2244. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  2245. break;
  2246. default:
  2247. return parent::GetRelationQueries($sRelCode);
  2248. }
  2249. }]]></code>
  2250. </method>
  2251. </methods>
  2252. <presentation>
  2253. <details>
  2254. <items>
  2255. <item id="contacts_list">
  2256. <rank>10</rank>
  2257. </item>
  2258. <item id="documents_list">
  2259. <rank>20</rank>
  2260. </item>
  2261. <item id="tickets_list">
  2262. <rank>30</rank>
  2263. </item>
  2264. <item id="physicalinterface_list">
  2265. <rank>40</rank>
  2266. </item>
  2267. <item id="connectablecis_list">
  2268. <rank>50</rank>
  2269. </item>
  2270. <item id="providercontracts_list">
  2271. <rank>60</rank>
  2272. </item>
  2273. <item id="services_list">
  2274. <rank>70</rank>
  2275. </item>
  2276. <item id="col:col1">
  2277. <rank>80</rank>
  2278. <items>
  2279. <item id="fieldset:Server:baseinfo">
  2280. <rank>10</rank>
  2281. <items>
  2282. <item id="name">
  2283. <rank>10</rank>
  2284. </item>
  2285. <item id="org_id">
  2286. <rank>20</rank>
  2287. </item>
  2288. <item id="status">
  2289. <rank>30</rank>
  2290. </item>
  2291. <item id="business_criticity">
  2292. <rank>40</rank>
  2293. </item>
  2294. <item id="location_id">
  2295. <rank>50</rank>
  2296. </item>
  2297. <item id="rack_id">
  2298. <rank>60</rank>
  2299. </item>
  2300. <item id="enclosure_id">
  2301. <rank>70</rank>
  2302. </item>
  2303. </items>
  2304. </item>
  2305. <item id="fieldset:Server:moreinfo">
  2306. <rank>20</rank>
  2307. <items>
  2308. <item id="networkdevicetype_id">
  2309. <rank>10</rank>
  2310. </item>
  2311. <item id="brand_id">
  2312. <rank>20</rank>
  2313. </item>
  2314. <item id="model_id">
  2315. <rank>30</rank>
  2316. </item>
  2317. <item id="iosversion_id">
  2318. <rank>40</rank>
  2319. </item>
  2320. <item id="ram">
  2321. <rank>50</rank>
  2322. </item>
  2323. <item id="nb_u">
  2324. <rank>60</rank>
  2325. </item>
  2326. <item id="serialnumber">
  2327. <rank>70</rank>
  2328. </item>
  2329. <item id="asset_number">
  2330. <rank>80</rank>
  2331. </item>
  2332. </items>
  2333. </item>
  2334. </items>
  2335. </item>
  2336. <item id="col:col2">
  2337. <rank>90</rank>
  2338. <items>
  2339. <item id="fieldset:Server:Date">
  2340. <rank>10</rank>
  2341. <items>
  2342. <item id="move2production">
  2343. <rank>10</rank>
  2344. </item>
  2345. <item id="purchase_date">
  2346. <rank>20</rank>
  2347. </item>
  2348. <item id="end_of_warranty">
  2349. <rank>30</rank>
  2350. </item>
  2351. </items>
  2352. </item>
  2353. <item id="fieldset:Server:otherinfo">
  2354. <rank>20</rank>
  2355. <items>
  2356. <item id="powerA_id">
  2357. <rank>10</rank>
  2358. </item>
  2359. <item id="powerB_id">
  2360. <rank>20</rank>
  2361. </item>
  2362. <item id="description">
  2363. <rank>30</rank>
  2364. </item>
  2365. </items>
  2366. </item>
  2367. </items>
  2368. </item>
  2369. </items>
  2370. </details>
  2371. <search>
  2372. <items>
  2373. <item id="name">
  2374. <rank>10</rank>
  2375. </item>
  2376. <item id="org_id">
  2377. <rank>20</rank>
  2378. </item>
  2379. <item id="status">
  2380. <rank>30</rank>
  2381. </item>
  2382. <item id="business_criticity">
  2383. <rank>40</rank>
  2384. </item>
  2385. <item id="location_id">
  2386. <rank>50</rank>
  2387. </item>
  2388. <item id="brand_id">
  2389. <rank>60</rank>
  2390. </item>
  2391. <item id="model_id">
  2392. <rank>70</rank>
  2393. </item>
  2394. <item id="serialnumber">
  2395. <rank>80</rank>
  2396. </item>
  2397. <item id="asset_number">
  2398. <rank>90</rank>
  2399. </item>
  2400. <item id="powerA_id">
  2401. <rank>100</rank>
  2402. </item>
  2403. <item id="powerB_id">
  2404. <rank>110</rank>
  2405. </item>
  2406. <item id="move2production">
  2407. <rank>120</rank>
  2408. </item>
  2409. <item id="purchase_date">
  2410. <rank>130</rank>
  2411. </item>
  2412. <item id="end_of_warranty">
  2413. <rank>140</rank>
  2414. </item>
  2415. </items>
  2416. </search>
  2417. <list>
  2418. <items>
  2419. <item id="org_id">
  2420. <rank>10</rank>
  2421. </item>
  2422. <item id="status">
  2423. <rank>20</rank>
  2424. </item>
  2425. <item id="business_criticity">
  2426. <rank>30</rank>
  2427. </item>
  2428. <item id="location_id">
  2429. <rank>40</rank>
  2430. </item>
  2431. <item id="brand_id">
  2432. <rank>50</rank>
  2433. </item>
  2434. <item id="model_id">
  2435. <rank>60</rank>
  2436. </item>
  2437. <item id="serialnumber">
  2438. <rank>70</rank>
  2439. </item>
  2440. </items>
  2441. </list>
  2442. </presentation>
  2443. </class>
  2444. <class id="Server" _delta="define">
  2445. <parent>DatacenterDevice</parent>
  2446. <properties>
  2447. <category>bizmodel,searchable</category>
  2448. <abstract>false</abstract>
  2449. <key_type>autoincrement</key_type>
  2450. <db_table>server</db_table>
  2451. <db_key_field>id</db_key_field>
  2452. <db_final_class_field/>
  2453. <naming>
  2454. <format>%1$s</format>
  2455. <attributes>
  2456. <attribute id="name"/>
  2457. </attributes>
  2458. </naming>
  2459. <display_template/>
  2460. <icon>images/server.png</icon>
  2461. <reconciliation>
  2462. <attributes>
  2463. <attribute id="name"/>
  2464. <attribute id="org_id"/>
  2465. <attribute id="organization_name"/>
  2466. </attributes>
  2467. </reconciliation>
  2468. </properties>
  2469. <fields>
  2470. <field id="osfamily_id" xsi:type="AttributeExternalKey">
  2471. <sql>osfamily_id</sql>
  2472. <target_class>OSFamily</target_class>
  2473. <is_null_allowed>true</is_null_allowed>
  2474. <on_target_delete>DEL_MANUAL</on_target_delete>
  2475. </field>
  2476. <field id="osfamily_name" xsi:type="AttributeExternalField">
  2477. <extkey_attcode>osfamily_id</extkey_attcode>
  2478. <target_attcode>name</target_attcode>
  2479. </field>
  2480. <field id="osversion_id" xsi:type="AttributeExternalKey">
  2481. <filter><![CDATA[SELECT OSVersion WHERE osfamily_id = :this->osfamily_id]]></filter>
  2482. <dependencies>
  2483. <attribute id="osfamily_id"/>
  2484. </dependencies>
  2485. <sql>osversion_id</sql>
  2486. <target_class>OSVersion</target_class>
  2487. <is_null_allowed>true</is_null_allowed>
  2488. <on_target_delete>DEL_MANUAL</on_target_delete>
  2489. </field>
  2490. <field id="osversion_name" xsi:type="AttributeExternalField">
  2491. <extkey_attcode>osversion_id</extkey_attcode>
  2492. <target_attcode>name</target_attcode>
  2493. </field>
  2494. <field id="oslicence_id" xsi:type="AttributeExternalKey">
  2495. <filter><![CDATA[SELECT OSLicence WHERE osversion_id = :this->osversion_id]]></filter>
  2496. <dependencies>
  2497. <attribute id="osversion_id"/>
  2498. </dependencies>
  2499. <sql>oslicence_id</sql>
  2500. <target_class>OSLicence</target_class>
  2501. <is_null_allowed>true</is_null_allowed>
  2502. <on_target_delete>DEL_MANUAL</on_target_delete>
  2503. </field>
  2504. <field id="oslicence_name" xsi:type="AttributeExternalField">
  2505. <extkey_attcode>oslicence_id</extkey_attcode>
  2506. <target_attcode>name</target_attcode>
  2507. </field>
  2508. <field id="cpu" xsi:type="AttributeString">
  2509. <sql>cpu</sql>
  2510. <default_value/>
  2511. <is_null_allowed>true</is_null_allowed>
  2512. </field>
  2513. <field id="ram" xsi:type="AttributeString">
  2514. <sql>ram</sql>
  2515. <default_value/>
  2516. <is_null_allowed>true</is_null_allowed>
  2517. </field>
  2518. <field id="logicalvolumes_list" xsi:type="AttributeLinkedSetIndirect">
  2519. <linked_class>lnkServerToVolume</linked_class>
  2520. <ext_key_to_me>server_id</ext_key_to_me>
  2521. <count_min>0</count_min>
  2522. <count_max>0</count_max>
  2523. <ext_key_to_remote>volume_id</ext_key_to_remote>
  2524. <duplicates/>
  2525. </field>
  2526. </fields>
  2527. <methods>
  2528. <method id="GetRelationQueries">
  2529. <static>true</static>
  2530. <access>public</access>
  2531. <type>Overload-DBObject</type>
  2532. <code><![CDATA[ public static function GetRelationQueries($sRelCode)
  2533. {
  2534. switch ($sRelCode)
  2535. {
  2536. case "impacts":
  2537. $aRels = array();
  2538. if (class_exists('Hypervisor'))
  2539. {
  2540. $aRels = array(
  2541. "device" => array("sQuery"=>"SELECT Hypervisor WHERE server_id = :this->id", "bPropagate"=>true, "iDistance"=>10),
  2542. );
  2543. }
  2544. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  2545. break;
  2546. case "depends on":
  2547. $aRels = array(
  2548. "volume" => array("sQuery"=>"SELECT LogicalVolume AS v JOIN lnkServerToVolume AS l1 ON l1.volume_id=v.id WHERE l1.server_id = :this->id", "bPropagate"=>true, "iDistance"=>10),
  2549. );
  2550. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  2551. break;
  2552. default:
  2553. return parent::GetRelationQueries($sRelCode);
  2554. }
  2555. }]]></code>
  2556. </method>
  2557. </methods>
  2558. <presentation>
  2559. <details>
  2560. <items>
  2561. <item id="softwares_list">
  2562. <rank>10</rank>
  2563. </item>
  2564. <item id="contacts_list">
  2565. <rank>20</rank>
  2566. </item>
  2567. <item id="documents_list">
  2568. <rank>30</rank>
  2569. </item>
  2570. <item id="tickets_list">
  2571. <rank>40</rank>
  2572. </item>
  2573. <item id="physicalinterface_list">
  2574. <rank>50</rank>
  2575. </item>
  2576. <item id="fiberinterfacelist_list">
  2577. <rank>60</rank>
  2578. </item>
  2579. <item id="networkdevice_list">
  2580. <rank>70</rank>
  2581. </item>
  2582. <item id="san_list">
  2583. <rank>80</rank>
  2584. </item>
  2585. <item id="logicalvolumes_list">
  2586. <rank>90</rank>
  2587. </item>
  2588. <item id="providercontracts_list">
  2589. <rank>100</rank>
  2590. </item>
  2591. <item id="services_list">
  2592. <rank>110</rank>
  2593. </item>
  2594. <item id="col:col1">
  2595. <rank>120</rank>
  2596. <items>
  2597. <item id="fieldset:Server:baseinfo">
  2598. <rank>10</rank>
  2599. <items>
  2600. <item id="name">
  2601. <rank>10</rank>
  2602. </item>
  2603. <item id="org_id">
  2604. <rank>20</rank>
  2605. </item>
  2606. <item id="status">
  2607. <rank>30</rank>
  2608. </item>
  2609. <item id="business_criticity">
  2610. <rank>40</rank>
  2611. </item>
  2612. <item id="location_id">
  2613. <rank>50</rank>
  2614. </item>
  2615. <item id="rack_id">
  2616. <rank>60</rank>
  2617. </item>
  2618. <item id="enclosure_id">
  2619. <rank>70</rank>
  2620. </item>
  2621. </items>
  2622. </item>
  2623. <item id="fieldset:Server:moreinfo">
  2624. <rank>20</rank>
  2625. <items>
  2626. <item id="brand_id">
  2627. <rank>10</rank>
  2628. </item>
  2629. <item id="model_id">
  2630. <rank>20</rank>
  2631. </item>
  2632. <item id="osfamily_id">
  2633. <rank>30</rank>
  2634. </item>
  2635. <item id="osversion_id">
  2636. <rank>40</rank>
  2637. </item>
  2638. <item id="oslicence_id">
  2639. <rank>50</rank>
  2640. </item>
  2641. <item id="cpu">
  2642. <rank>60</rank>
  2643. </item>
  2644. <item id="ram">
  2645. <rank>70</rank>
  2646. </item>
  2647. <item id="nb_u">
  2648. <rank>80</rank>
  2649. </item>
  2650. <item id="serialnumber">
  2651. <rank>90</rank>
  2652. </item>
  2653. <item id="asset_number">
  2654. <rank>100</rank>
  2655. </item>
  2656. </items>
  2657. </item>
  2658. </items>
  2659. </item>
  2660. <item id="col:col2">
  2661. <rank>130</rank>
  2662. <items>
  2663. <item id="fieldset:Server:Date">
  2664. <rank>10</rank>
  2665. <items>
  2666. <item id="move2production">
  2667. <rank>10</rank>
  2668. </item>
  2669. <item id="purchase_date">
  2670. <rank>20</rank>
  2671. </item>
  2672. <item id="end_of_warranty">
  2673. <rank>30</rank>
  2674. </item>
  2675. </items>
  2676. </item>
  2677. <item id="fieldset:Server:otherinfo">
  2678. <rank>20</rank>
  2679. <items>
  2680. <item id="powerA_id">
  2681. <rank>10</rank>
  2682. </item>
  2683. <item id="powerB_id">
  2684. <rank>20</rank>
  2685. </item>
  2686. <item id="description">
  2687. <rank>30</rank>
  2688. </item>
  2689. </items>
  2690. </item>
  2691. </items>
  2692. </item>
  2693. </items>
  2694. </details>
  2695. <search>
  2696. <items>
  2697. <item id="name">
  2698. <rank>10</rank>
  2699. </item>
  2700. <item id="org_id">
  2701. <rank>20</rank>
  2702. </item>
  2703. <item id="status">
  2704. <rank>30</rank>
  2705. </item>
  2706. <item id="business_criticity">
  2707. <rank>40</rank>
  2708. </item>
  2709. <item id="location_id">
  2710. <rank>50</rank>
  2711. </item>
  2712. <item id="brand_id">
  2713. <rank>60</rank>
  2714. </item>
  2715. <item id="model_id">
  2716. <rank>70</rank>
  2717. </item>
  2718. <item id="serialnumber">
  2719. <rank>80</rank>
  2720. </item>
  2721. <item id="asset_number">
  2722. <rank>90</rank>
  2723. </item>
  2724. <item id="powerA_id">
  2725. <rank>100</rank>
  2726. </item>
  2727. <item id="powerB_id">
  2728. <rank>110</rank>
  2729. </item>
  2730. <item id="move2production">
  2731. <rank>120</rank>
  2732. </item>
  2733. <item id="purchase_date">
  2734. <rank>130</rank>
  2735. </item>
  2736. <item id="end_of_warranty">
  2737. <rank>140</rank>
  2738. </item>
  2739. </items>
  2740. </search>
  2741. <list>
  2742. <items>
  2743. <item id="org_id">
  2744. <rank>10</rank>
  2745. </item>
  2746. <item id="status">
  2747. <rank>20</rank>
  2748. </item>
  2749. <item id="business_criticity">
  2750. <rank>30</rank>
  2751. </item>
  2752. <item id="location_id">
  2753. <rank>40</rank>
  2754. </item>
  2755. <item id="brand_id">
  2756. <rank>50</rank>
  2757. </item>
  2758. <item id="model_id">
  2759. <rank>60</rank>
  2760. </item>
  2761. <item id="serialnumber">
  2762. <rank>70</rank>
  2763. </item>
  2764. </items>
  2765. </list>
  2766. </presentation>
  2767. </class>
  2768. <class id="ApplicationSolution" _delta="define">
  2769. <parent>FunctionalCI</parent>
  2770. <properties>
  2771. <category>bizmodel,searchable</category>
  2772. <abstract>false</abstract>
  2773. <key_type>autoincrement</key_type>
  2774. <db_table>applicationsolution</db_table>
  2775. <db_key_field>id</db_key_field>
  2776. <db_final_class_field/>
  2777. <naming>
  2778. <format>%1$s</format>
  2779. <attributes>
  2780. <attribute id="name"/>
  2781. </attributes>
  2782. </naming>
  2783. <display_template/>
  2784. <icon>images/solution.png</icon>
  2785. <reconciliation>
  2786. <attributes>
  2787. <attribute id="name"/>
  2788. <attribute id="org_id"/>
  2789. <attribute id="organization_name"/>
  2790. </attributes>
  2791. </reconciliation>
  2792. </properties>
  2793. <fields>
  2794. <field id="functionalcis_list" xsi:type="AttributeLinkedSetIndirect">
  2795. <linked_class>lnkApplicationSolutionToFunctionalCI</linked_class>
  2796. <ext_key_to_me>applicationsolution_id</ext_key_to_me>
  2797. <count_min>0</count_min>
  2798. <count_max>0</count_max>
  2799. <ext_key_to_remote>functionalci_id</ext_key_to_remote>
  2800. <duplicates/>
  2801. </field>
  2802. <field id="businessprocess_list" xsi:type="AttributeLinkedSetIndirect">
  2803. <linked_class>lnkApplicationSolutionToBusinessProcess</linked_class>
  2804. <ext_key_to_me>applicationsolution_id</ext_key_to_me>
  2805. <count_min>0</count_min>
  2806. <count_max>0</count_max>
  2807. <ext_key_to_remote>businessprocess_id</ext_key_to_remote>
  2808. <duplicates/>
  2809. </field>
  2810. <field id="status" xsi:type="AttributeEnum">
  2811. <values>
  2812. <value>active</value>
  2813. <value>inactive</value>
  2814. </values>
  2815. <sql>status</sql>
  2816. <default_value>active</default_value>
  2817. <is_null_allowed>true</is_null_allowed>
  2818. <display_style>list</display_style>
  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 "impacts":
  2831. $aRels = array(
  2832. "process" => array("sQuery"=>"SELECT BusinessProcess AS p JOIN lnkApplicationSolutionToBusinessProcess AS l1 ON l1.businessprocess_id = p.id WHERE l1.applicationsolution_id = :this->id", "bPropagate"=>true, "iDistance"=>10),
  2833. );
  2834. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  2835. break;
  2836. case "depends on":
  2837. $aRels = array(
  2838. "solution" => array("sQuery"=>"SELECT FunctionalCI AS ci JOIN lnkApplicationSolutionToFunctionalCI AS l1 ON l1.functionalci_id = ci.id WHERE l1.applicationsolution_id = :this->id", "bPropagate"=>true, "iDistance"=>2),
  2839. );
  2840. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  2841. break;
  2842. default:
  2843. return parent::GetRelationQueries($sRelCode);
  2844. }
  2845. }]]></code>
  2846. </method>
  2847. </methods>
  2848. <presentation>
  2849. <details>
  2850. <items>
  2851. <item id="name">
  2852. <rank>10</rank>
  2853. </item>
  2854. <item id="org_id">
  2855. <rank>20</rank>
  2856. </item>
  2857. <item id="status">
  2858. <rank>30</rank>
  2859. </item>
  2860. <item id="business_criticity">
  2861. <rank>40</rank>
  2862. </item>
  2863. <item id="move2production">
  2864. <rank>50</rank>
  2865. </item>
  2866. <item id="description">
  2867. <rank>60</rank>
  2868. </item>
  2869. <item id="contacts_list">
  2870. <rank>70</rank>
  2871. </item>
  2872. <item id="documents_list">
  2873. <rank>80</rank>
  2874. </item>
  2875. <item id="tickets_list">
  2876. <rank>90</rank>
  2877. </item>
  2878. <item id="functionalcis_list">
  2879. <rank>100</rank>
  2880. </item>
  2881. <item id="businessprocess_list">
  2882. <rank>110</rank>
  2883. </item>
  2884. <item id="providercontracts_list">
  2885. <rank>120</rank>
  2886. </item>
  2887. <item id="services_list">
  2888. <rank>130</rank>
  2889. </item>
  2890. </items>
  2891. </details>
  2892. <search>
  2893. <items>
  2894. <item id="name">
  2895. <rank>10</rank>
  2896. </item>
  2897. <item id="org_id">
  2898. <rank>20</rank>
  2899. </item>
  2900. <item id="business_criticity">
  2901. <rank>30</rank>
  2902. </item>
  2903. <item id="move2production">
  2904. <rank>40</rank>
  2905. </item>
  2906. </items>
  2907. </search>
  2908. <list>
  2909. <items>
  2910. <item id="org_id">
  2911. <rank>10</rank>
  2912. </item>
  2913. <item id="business_criticity">
  2914. <rank>20</rank>
  2915. </item>
  2916. <item id="move2production">
  2917. <rank>30</rank>
  2918. </item>
  2919. </items>
  2920. </list>
  2921. </presentation>
  2922. </class>
  2923. <class id="BusinessProcess" _delta="define">
  2924. <parent>FunctionalCI</parent>
  2925. <properties>
  2926. <category>bizmodel,searchable</category>
  2927. <abstract>false</abstract>
  2928. <key_type>autoincrement</key_type>
  2929. <db_table>businessprocess</db_table>
  2930. <db_key_field>id</db_key_field>
  2931. <db_final_class_field/>
  2932. <naming>
  2933. <format>%1$s</format>
  2934. <attributes>
  2935. <attribute id="name"/>
  2936. </attributes>
  2937. </naming>
  2938. <display_template/>
  2939. <icon>images/business-process.png</icon>
  2940. <reconciliation>
  2941. <attributes>
  2942. <attribute id="name"/>
  2943. <attribute id="org_id"/>
  2944. <attribute id="organization_name"/>
  2945. </attributes>
  2946. </reconciliation>
  2947. </properties>
  2948. <fields>
  2949. <field id="applicationsolutions_list" xsi:type="AttributeLinkedSetIndirect">
  2950. <linked_class>lnkApplicationSolutionToBusinessProcess</linked_class>
  2951. <ext_key_to_me>businessprocess_id</ext_key_to_me>
  2952. <count_min>0</count_min>
  2953. <count_max>0</count_max>
  2954. <ext_key_to_remote>applicationsolution_id</ext_key_to_remote>
  2955. <duplicates/>
  2956. </field>
  2957. <field id="status" xsi:type="AttributeEnum">
  2958. <values>
  2959. <value>active</value>
  2960. <value>inactive</value>
  2961. </values>
  2962. <sql>status</sql>
  2963. <default_value>active</default_value>
  2964. <is_null_allowed>true</is_null_allowed>
  2965. <display_style>list</display_style>
  2966. </field>
  2967. </fields>
  2968. <methods>
  2969. <method id="GetRelationQueries">
  2970. <static>true</static>
  2971. <access>public</access>
  2972. <type>Overload-DBObject</type>
  2973. <code><![CDATA[ public static function GetRelationQueries($sRelCode)
  2974. {
  2975. switch ($sRelCode)
  2976. {
  2977. case "depends on":
  2978. $aRels = array(
  2979. "solution" => array("sQuery"=>"SELECT ApplicationSolution AS app JOIN lnkApplicationSolutionToBusinessProcess AS l1 ON l1.applicationsolution_id = app.id WHERE l1.businessprocess_id = :this->id", "bPropagate"=>true, "iDistance"=>10),
  2980. );
  2981. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  2982. break;
  2983. default:
  2984. return parent::GetRelationQueries($sRelCode);
  2985. }
  2986. }]]></code>
  2987. </method>
  2988. </methods>
  2989. <presentation>
  2990. <details>
  2991. <items>
  2992. <item id="name">
  2993. <rank>10</rank>
  2994. </item>
  2995. <item id="org_id">
  2996. <rank>20</rank>
  2997. </item>
  2998. <item id="status">
  2999. <rank>30</rank>
  3000. </item>
  3001. <item id="business_criticity">
  3002. <rank>40</rank>
  3003. </item>
  3004. <item id="move2production">
  3005. <rank>50</rank>
  3006. </item>
  3007. <item id="description">
  3008. <rank>60</rank>
  3009. </item>
  3010. <item id="contacts_list">
  3011. <rank>70</rank>
  3012. </item>
  3013. <item id="documents_list">
  3014. <rank>80</rank>
  3015. </item>
  3016. <item id="tickets_list">
  3017. <rank>90</rank>
  3018. </item>
  3019. <item id="applicationsolutions_list">
  3020. <rank>100</rank>
  3021. </item>
  3022. </items>
  3023. </details>
  3024. <search>
  3025. <items>
  3026. <item id="name">
  3027. <rank>10</rank>
  3028. </item>
  3029. <item id="org_id">
  3030. <rank>20</rank>
  3031. </item>
  3032. <item id="business_criticity">
  3033. <rank>30</rank>
  3034. </item>
  3035. <item id="move2production">
  3036. <rank>40</rank>
  3037. </item>
  3038. </items>
  3039. </search>
  3040. <list>
  3041. <items>
  3042. <item id="org_id">
  3043. <rank>10</rank>
  3044. </item>
  3045. <item id="business_criticity">
  3046. <rank>20</rank>
  3047. </item>
  3048. <item id="move2production">
  3049. <rank>30</rank>
  3050. </item>
  3051. </items>
  3052. </list>
  3053. </presentation>
  3054. </class>
  3055. <class id="SoftwareInstance" _delta="define">
  3056. <parent>FunctionalCI</parent>
  3057. <properties>
  3058. <category>bizmodel,searchable</category>
  3059. <abstract>true</abstract>
  3060. <key_type>autoincrement</key_type>
  3061. <db_table>softwareinstance</db_table>
  3062. <db_key_field>id</db_key_field>
  3063. <db_final_class_field/>
  3064. <naming>
  3065. <format>%1$s %2$s</format>
  3066. <attributes>
  3067. <attribute id="name"/>
  3068. <attribute id="system_name"/>
  3069. </attributes>
  3070. </naming>
  3071. <display_template/>
  3072. <icon>images/application.png</icon>
  3073. <reconciliation>
  3074. <attributes>
  3075. <attribute id="name"/>
  3076. <attribute id="org_id"/>
  3077. <attribute id="organization_name"/>
  3078. <attribute id="system_id"/>
  3079. <attribute id="system_name"/>
  3080. </attributes>
  3081. </reconciliation>
  3082. </properties>
  3083. <fields>
  3084. <field id="system_id" xsi:type="AttributeExternalKey">
  3085. <filter><![CDATA[SELECT FunctionalCI WHERE finalclass IN ('Server','VirtualMachine','PC')]]></filter>
  3086. <sql>functionalci_id</sql>
  3087. <target_class>FunctionalCI</target_class>
  3088. <is_null_allowed>false</is_null_allowed>
  3089. <on_target_delete>DEL_AUTO</on_target_delete>
  3090. </field>
  3091. <field id="system_name" xsi:type="AttributeExternalField">
  3092. <extkey_attcode>system_id</extkey_attcode>
  3093. <target_attcode>name</target_attcode>
  3094. </field>
  3095. <field id="software_id" xsi:type="AttributeExternalKey">
  3096. <filter><![CDATA[SELECT Software WHERE type = :this->finalclass]]></filter>
  3097. <sql>software_id</sql>
  3098. <target_class>Software</target_class>
  3099. <is_null_allowed>true</is_null_allowed>
  3100. <on_target_delete>DEL_MANUAL</on_target_delete>
  3101. </field>
  3102. <field id="software_name" xsi:type="AttributeExternalField">
  3103. <extkey_attcode>software_id</extkey_attcode>
  3104. <target_attcode>name</target_attcode>
  3105. </field>
  3106. <field id="softwarelicence_id" xsi:type="AttributeExternalKey">
  3107. <filter><![CDATA[SELECT SoftwareLicence WHERE software_id= :this->software_id]]></filter>
  3108. <dependencies>
  3109. <attribute id="software_id"/>
  3110. </dependencies>
  3111. <sql>softwarelicence_id</sql>
  3112. <target_class>SoftwareLicence</target_class>
  3113. <is_null_allowed>true</is_null_allowed>
  3114. <on_target_delete>DEL_MANUAL</on_target_delete>
  3115. </field>
  3116. <field id="softwarelicence_name" xsi:type="AttributeExternalField">
  3117. <extkey_attcode>softwarelicence_id</extkey_attcode>
  3118. <target_attcode>name</target_attcode>
  3119. </field>
  3120. <field id="path" xsi:type="AttributeString">
  3121. <sql>path</sql>
  3122. <default_value/>
  3123. <is_null_allowed>true</is_null_allowed>
  3124. </field>
  3125. <field id="status" xsi:type="AttributeEnum">
  3126. <values>
  3127. <value>active</value>
  3128. <value>inactive</value>
  3129. </values>
  3130. <sql>status</sql>
  3131. <default_value/>
  3132. <is_null_allowed>true</is_null_allowed>
  3133. <display_style>list</display_style>
  3134. </field>
  3135. </fields>
  3136. <methods>
  3137. <method id="GetRelationQueries">
  3138. <static>true</static>
  3139. <access>public</access>
  3140. <type>Overload-DBObject</type>
  3141. <code><![CDATA[ public static function GetRelationQueries($sRelCode)
  3142. {
  3143. switch ($sRelCode)
  3144. {
  3145. case "impacts":
  3146. $aRels = array(
  3147. // Actually this should be limited to the Software instances based on a DBServer Application type...
  3148. );
  3149. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  3150. break;
  3151. case 'depends on':
  3152. $aRels = array(
  3153. "FunctionalCI" => array("sQuery"=>"SELECT FunctionalCI AS s JOIN SoftwareInstance AS app ON app.system_id = s.id WHERE app.id = :this->id", "bPropagate"=>true, "iDistance"=>10),
  3154. );
  3155. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  3156. break;
  3157. default:
  3158. return parent::GetRelationQueries($sRelCode);
  3159. }
  3160. }]]></code>
  3161. </method>
  3162. </methods>
  3163. <presentation>
  3164. <details>
  3165. <items>
  3166. <item id="name">
  3167. <rank>10</rank>
  3168. </item>
  3169. <item id="org_id">
  3170. <rank>20</rank>
  3171. </item>
  3172. <item id="status">
  3173. <rank>30</rank>
  3174. </item>
  3175. <item id="business_criticity">
  3176. <rank>40</rank>
  3177. </item>
  3178. <item id="system_id">
  3179. <rank>50</rank>
  3180. </item>
  3181. <item id="software_id">
  3182. <rank>60</rank>
  3183. </item>
  3184. <item id="softwarelicence_id">
  3185. <rank>70</rank>
  3186. </item>
  3187. <item id="path">
  3188. <rank>80</rank>
  3189. </item>
  3190. <item id="move2production">
  3191. <rank>90</rank>
  3192. </item>
  3193. <item id="description">
  3194. <rank>100</rank>
  3195. </item>
  3196. <item id="contacts_list">
  3197. <rank>110</rank>
  3198. </item>
  3199. <item id="documents_list">
  3200. <rank>120</rank>
  3201. </item>
  3202. <item id="applicationsolution_list">
  3203. <rank>130</rank>
  3204. </item>
  3205. </items>
  3206. </details>
  3207. <search>
  3208. <items>
  3209. <item id="name">
  3210. <rank>10</rank>
  3211. </item>
  3212. <item id="org_id">
  3213. <rank>20</rank>
  3214. </item>
  3215. <item id="business_criticity">
  3216. <rank>30</rank>
  3217. </item>
  3218. <item id="move2production">
  3219. <rank>40</rank>
  3220. </item>
  3221. </items>
  3222. </search>
  3223. <list>
  3224. <items>
  3225. <item id="finalclass">
  3226. <rank>10</rank>
  3227. </item>
  3228. <item id="org_id">
  3229. <rank>20</rank>
  3230. </item>
  3231. <item id="business_criticity">
  3232. <rank>30</rank>
  3233. </item>
  3234. <item id="system_id">
  3235. <rank>40</rank>
  3236. </item>
  3237. <item id="software_id">
  3238. <rank>50</rank>
  3239. </item>
  3240. </items>
  3241. </list>
  3242. </presentation>
  3243. </class>
  3244. <class id="Middleware" _delta="define">
  3245. <parent>SoftwareInstance</parent>
  3246. <properties>
  3247. <category>bizmodel,searchable</category>
  3248. <abstract>false</abstract>
  3249. <key_type>autoincrement</key_type>
  3250. <db_table>middleware</db_table>
  3251. <db_key_field>id</db_key_field>
  3252. <db_final_class_field/>
  3253. <naming>
  3254. <format>%1$s %2$s</format>
  3255. <attributes>
  3256. <attribute id="name"/>
  3257. <attribute id="system_name"/>
  3258. </attributes>
  3259. </naming>
  3260. <display_template/>
  3261. <icon>images/middleware.png</icon>
  3262. <reconciliation>
  3263. <attributes>
  3264. <attribute id="name"/>
  3265. <attribute id="org_id"/>
  3266. <attribute id="organization_name"/>
  3267. <attribute id="system_id"/>
  3268. <attribute id="system_name"/>
  3269. </attributes>
  3270. </reconciliation>
  3271. </properties>
  3272. <fields>
  3273. <field id="middlewareinstance_list" xsi:type="AttributeLinkedSet">
  3274. <linked_class>MiddlewareInstance</linked_class>
  3275. <ext_key_to_me>middleware_id</ext_key_to_me>
  3276. <edit_mode>in_place</edit_mode>
  3277. <count_min>0</count_min>
  3278. <count_max>0</count_max>
  3279. </field>
  3280. </fields>
  3281. <methods>
  3282. <method id="GetRelationQueries">
  3283. <static>true</static>
  3284. <access>public</access>
  3285. <type>Overload-DBObject</type>
  3286. <code><![CDATA[ public static function GetRelationQueries($sRelCode)
  3287. {
  3288. switch ($sRelCode)
  3289. {
  3290. case "impacts":
  3291. $aRels = array(
  3292. "MiddlewareInstance" => array("sQuery"=>"SELECT MiddlewareInstance AS mi WHERE middleware_id = :this->id", "bPropagate"=>true, "iDistance"=>10),
  3293. );
  3294. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  3295. break;
  3296. case 'depends on':
  3297. $aRels = array(
  3298. );
  3299. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  3300. break;
  3301. default:
  3302. return parent::GetRelationQueries($sRelCode);
  3303. }
  3304. }]]></code>
  3305. </method>
  3306. </methods>
  3307. <presentation>
  3308. <details>
  3309. <items>
  3310. <item id="name">
  3311. <rank>10</rank>
  3312. </item>
  3313. <item id="org_id">
  3314. <rank>20</rank>
  3315. </item>
  3316. <item id="status">
  3317. <rank>30</rank>
  3318. </item>
  3319. <item id="business_criticity">
  3320. <rank>40</rank>
  3321. </item>
  3322. <item id="system_id">
  3323. <rank>50</rank>
  3324. </item>
  3325. <item id="software_id">
  3326. <rank>60</rank>
  3327. </item>
  3328. <item id="softwarelicence_id">
  3329. <rank>70</rank>
  3330. </item>
  3331. <item id="path">
  3332. <rank>80</rank>
  3333. </item>
  3334. <item id="move2production">
  3335. <rank>90</rank>
  3336. </item>
  3337. <item id="description">
  3338. <rank>100</rank>
  3339. </item>
  3340. <item id="contacts_list">
  3341. <rank>110</rank>
  3342. </item>
  3343. <item id="documents_list">
  3344. <rank>120</rank>
  3345. </item>
  3346. <item id="tickets_list">
  3347. <rank>130</rank>
  3348. </item>
  3349. <item id="applicationsolution_list">
  3350. <rank>140</rank>
  3351. </item>
  3352. <item id="middlewareinstance_list">
  3353. <rank>150</rank>
  3354. </item>
  3355. <item id="providercontracts_list">
  3356. <rank>160</rank>
  3357. </item>
  3358. <item id="services_list">
  3359. <rank>170</rank>
  3360. </item>
  3361. </items>
  3362. </details>
  3363. <search>
  3364. <items>
  3365. <item id="name">
  3366. <rank>10</rank>
  3367. </item>
  3368. <item id="org_id">
  3369. <rank>20</rank>
  3370. </item>
  3371. <item id="business_criticity">
  3372. <rank>30</rank>
  3373. </item>
  3374. <item id="move2production">
  3375. <rank>40</rank>
  3376. </item>
  3377. </items>
  3378. </search>
  3379. <list>
  3380. <items>
  3381. <item id="org_id">
  3382. <rank>10</rank>
  3383. </item>
  3384. <item id="business_criticity">
  3385. <rank>20</rank>
  3386. </item>
  3387. <item id="system_id">
  3388. <rank>30</rank>
  3389. </item>
  3390. <item id="software_id">
  3391. <rank>40</rank>
  3392. </item>
  3393. </items>
  3394. </list>
  3395. </presentation>
  3396. </class>
  3397. <class id="DBServer" _delta="define">
  3398. <parent>SoftwareInstance</parent>
  3399. <properties>
  3400. <category>bizmodel,searchable</category>
  3401. <abstract>false</abstract>
  3402. <key_type>autoincrement</key_type>
  3403. <db_table>dbserver</db_table>
  3404. <db_key_field>id</db_key_field>
  3405. <db_final_class_field/>
  3406. <naming>
  3407. <format>%1$s %2$s</format>
  3408. <attributes>
  3409. <attribute id="name"/>
  3410. <attribute id="system_name"/>
  3411. </attributes>
  3412. </naming>
  3413. <display_template/>
  3414. <icon>images/database.png</icon>
  3415. <reconciliation>
  3416. <attributes>
  3417. <attribute id="name"/>
  3418. <attribute id="org_id"/>
  3419. <attribute id="organization_name"/>
  3420. <attribute id="system_id"/>
  3421. <attribute id="system_name"/>
  3422. </attributes>
  3423. </reconciliation>
  3424. </properties>
  3425. <fields>
  3426. <field id="dbschema_list" xsi:type="AttributeLinkedSet">
  3427. <linked_class>DatabaseSchema</linked_class>
  3428. <ext_key_to_me>dbserver_id</ext_key_to_me>
  3429. <edit_mode>in_place</edit_mode>
  3430. <count_min>0</count_min>
  3431. <count_max>0</count_max>
  3432. </field>
  3433. </fields>
  3434. <methods>
  3435. <method id="GetRelationQueries">
  3436. <static>true</static>
  3437. <access>public</access>
  3438. <type>Overload-DBObject</type>
  3439. <code><![CDATA[ public static function GetRelationQueries($sRelCode)
  3440. {
  3441. switch ($sRelCode)
  3442. {
  3443. case "impacts":
  3444. $aRels = array(
  3445. "DatabaseSchema" => array("sQuery"=>"SELECT DatabaseSchema AS db WHERE dbserver_id = :this->id", "bPropagate"=>true, "iDistance"=>10),
  3446. );
  3447. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  3448. break;
  3449. case 'depends on':
  3450. $aRels = array(
  3451. );
  3452. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  3453. break;
  3454. default:
  3455. return parent::GetRelationQueries($sRelCode);
  3456. }
  3457. }]]></code>
  3458. </method>
  3459. </methods>
  3460. <presentation>
  3461. <details>
  3462. <items>
  3463. <item id="name">
  3464. <rank>10</rank>
  3465. </item>
  3466. <item id="org_id">
  3467. <rank>20</rank>
  3468. </item>
  3469. <item id="status">
  3470. <rank>30</rank>
  3471. </item>
  3472. <item id="business_criticity">
  3473. <rank>40</rank>
  3474. </item>
  3475. <item id="system_id">
  3476. <rank>50</rank>
  3477. </item>
  3478. <item id="software_id">
  3479. <rank>60</rank>
  3480. </item>
  3481. <item id="softwarelicence_id">
  3482. <rank>70</rank>
  3483. </item>
  3484. <item id="path">
  3485. <rank>80</rank>
  3486. </item>
  3487. <item id="move2production">
  3488. <rank>90</rank>
  3489. </item>
  3490. <item id="description">
  3491. <rank>100</rank>
  3492. </item>
  3493. <item id="contacts_list">
  3494. <rank>110</rank>
  3495. </item>
  3496. <item id="documents_list">
  3497. <rank>120</rank>
  3498. </item>
  3499. <item id="tickets_list">
  3500. <rank>130</rank>
  3501. </item>
  3502. <item id="applicationsolution_list">
  3503. <rank>140</rank>
  3504. </item>
  3505. <item id="dbschema_list">
  3506. <rank>150</rank>
  3507. </item>
  3508. <item id="providercontracts_list">
  3509. <rank>160</rank>
  3510. </item>
  3511. <item id="services_list">
  3512. <rank>170</rank>
  3513. </item>
  3514. </items>
  3515. </details>
  3516. <search>
  3517. <items>
  3518. <item id="name">
  3519. <rank>10</rank>
  3520. </item>
  3521. <item id="org_id">
  3522. <rank>20</rank>
  3523. </item>
  3524. <item id="business_criticity">
  3525. <rank>30</rank>
  3526. </item>
  3527. <item id="move2production">
  3528. <rank>40</rank>
  3529. </item>
  3530. </items>
  3531. </search>
  3532. <list>
  3533. <items>
  3534. <item id="org_id">
  3535. <rank>10</rank>
  3536. </item>
  3537. <item id="business_criticity">
  3538. <rank>20</rank>
  3539. </item>
  3540. <item id="system_id">
  3541. <rank>30</rank>
  3542. </item>
  3543. <item id="software_id">
  3544. <rank>40</rank>
  3545. </item>
  3546. </items>
  3547. </list>
  3548. </presentation>
  3549. </class>
  3550. <class id="WebServer" _delta="define">
  3551. <parent>SoftwareInstance</parent>
  3552. <properties>
  3553. <category>bizmodel,searchable</category>
  3554. <abstract>false</abstract>
  3555. <key_type>autoincrement</key_type>
  3556. <db_table>webserver</db_table>
  3557. <db_key_field>id</db_key_field>
  3558. <db_final_class_field/>
  3559. <naming>
  3560. <format>%1$s %2$s</format>
  3561. <attributes>
  3562. <attribute id="name"/>
  3563. <attribute id="system_name"/>
  3564. </attributes>
  3565. </naming>
  3566. <display_template/>
  3567. <icon>images/webserver.png</icon>
  3568. <reconciliation>
  3569. <attributes>
  3570. <attribute id="name"/>
  3571. <attribute id="org_id"/>
  3572. <attribute id="organization_name"/>
  3573. <attribute id="system_id"/>
  3574. <attribute id="system_name"/>
  3575. </attributes>
  3576. </reconciliation>
  3577. </properties>
  3578. <fields>
  3579. <field id="webapp_list" xsi:type="AttributeLinkedSet">
  3580. <linked_class>WebApplication</linked_class>
  3581. <ext_key_to_me>webserver_id</ext_key_to_me>
  3582. <edit_mode>in_place</edit_mode>
  3583. <count_min>0</count_min>
  3584. <count_max>0</count_max>
  3585. </field>
  3586. </fields>
  3587. <methods>
  3588. <method id="GetRelationQueries">
  3589. <static>true</static>
  3590. <access>public</access>
  3591. <type>Overload-DBObject</type>
  3592. <code><![CDATA[ public static function GetRelationQueries($sRelCode)
  3593. {
  3594. switch ($sRelCode)
  3595. {
  3596. case "impacts":
  3597. $aRels = array(
  3598. "WebApplication" => array("sQuery"=>"SELECT WebApplication AS db WHERE webserver_id = :this->id", "bPropagate"=>true, "iDistance"=>10),
  3599. );
  3600. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  3601. break;
  3602. case 'depends on':
  3603. $aRels = array(
  3604. );
  3605. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  3606. break;
  3607. default:
  3608. return parent::GetRelationQueries($sRelCode);
  3609. }
  3610. }]]></code>
  3611. </method>
  3612. </methods>
  3613. <presentation>
  3614. <details>
  3615. <items>
  3616. <item id="name">
  3617. <rank>10</rank>
  3618. </item>
  3619. <item id="org_id">
  3620. <rank>20</rank>
  3621. </item>
  3622. <item id="status">
  3623. <rank>30</rank>
  3624. </item>
  3625. <item id="business_criticity">
  3626. <rank>40</rank>
  3627. </item>
  3628. <item id="system_id">
  3629. <rank>50</rank>
  3630. </item>
  3631. <item id="software_id">
  3632. <rank>60</rank>
  3633. </item>
  3634. <item id="softwarelicence_id">
  3635. <rank>70</rank>
  3636. </item>
  3637. <item id="path">
  3638. <rank>80</rank>
  3639. </item>
  3640. <item id="move2production">
  3641. <rank>90</rank>
  3642. </item>
  3643. <item id="description">
  3644. <rank>100</rank>
  3645. </item>
  3646. <item id="contacts_list">
  3647. <rank>110</rank>
  3648. </item>
  3649. <item id="documents_list">
  3650. <rank>120</rank>
  3651. </item>
  3652. <item id="tickets_list">
  3653. <rank>130</rank>
  3654. </item>
  3655. <item id="applicationsolution_list">
  3656. <rank>140</rank>
  3657. </item>
  3658. <item id="webapp_list">
  3659. <rank>150</rank>
  3660. </item>
  3661. <item id="providercontracts_list">
  3662. <rank>160</rank>
  3663. </item>
  3664. <item id="services_list">
  3665. <rank>170</rank>
  3666. </item>
  3667. </items>
  3668. </details>
  3669. <search>
  3670. <items>
  3671. <item id="name">
  3672. <rank>10</rank>
  3673. </item>
  3674. <item id="org_id">
  3675. <rank>20</rank>
  3676. </item>
  3677. <item id="business_criticity">
  3678. <rank>30</rank>
  3679. </item>
  3680. <item id="move2production">
  3681. <rank>40</rank>
  3682. </item>
  3683. </items>
  3684. </search>
  3685. <list>
  3686. <items>
  3687. <item id="org_id">
  3688. <rank>10</rank>
  3689. </item>
  3690. <item id="business_criticity">
  3691. <rank>20</rank>
  3692. </item>
  3693. <item id="system_id">
  3694. <rank>30</rank>
  3695. </item>
  3696. <item id="software_id">
  3697. <rank>40</rank>
  3698. </item>
  3699. </items>
  3700. </list>
  3701. </presentation>
  3702. </class>
  3703. <class id="PCSoftware" _delta="define">
  3704. <parent>SoftwareInstance</parent>
  3705. <properties>
  3706. <category>bizmodel,searchable</category>
  3707. <abstract>false</abstract>
  3708. <key_type>autoincrement</key_type>
  3709. <db_table>pcsoftware</db_table>
  3710. <db_key_field>id</db_key_field>
  3711. <db_final_class_field/>
  3712. <naming>
  3713. <format>%1$s %2$s</format>
  3714. <attributes>
  3715. <attribute id="name"/>
  3716. <attribute id="system_name"/>
  3717. </attributes>
  3718. </naming>
  3719. <display_template/>
  3720. <icon>images/application.png</icon>
  3721. <reconciliation>
  3722. <attributes>
  3723. <attribute id="name"/>
  3724. <attribute id="org_id"/>
  3725. <attribute id="organization_name"/>
  3726. <attribute id="system_id"/>
  3727. <attribute id="system_name"/>
  3728. </attributes>
  3729. </reconciliation>
  3730. </properties>
  3731. <fields/>
  3732. <methods/>
  3733. <presentation>
  3734. <details>
  3735. <items>
  3736. <item id="name">
  3737. <rank>10</rank>
  3738. </item>
  3739. <item id="org_id">
  3740. <rank>20</rank>
  3741. </item>
  3742. <item id="status">
  3743. <rank>30</rank>
  3744. </item>
  3745. <item id="business_criticity">
  3746. <rank>40</rank>
  3747. </item>
  3748. <item id="system_id">
  3749. <rank>50</rank>
  3750. </item>
  3751. <item id="software_id">
  3752. <rank>60</rank>
  3753. </item>
  3754. <item id="softwarelicence_id">
  3755. <rank>70</rank>
  3756. </item>
  3757. <item id="path">
  3758. <rank>80</rank>
  3759. </item>
  3760. <item id="move2production">
  3761. <rank>90</rank>
  3762. </item>
  3763. <item id="description">
  3764. <rank>100</rank>
  3765. </item>
  3766. <item id="contacts_list">
  3767. <rank>110</rank>
  3768. </item>
  3769. <item id="documents_list">
  3770. <rank>120</rank>
  3771. </item>
  3772. <item id="tickets_list">
  3773. <rank>130</rank>
  3774. </item>
  3775. <item id="applicationsolution_list">
  3776. <rank>140</rank>
  3777. </item>
  3778. <item id="providercontracts_list">
  3779. <rank>150</rank>
  3780. </item>
  3781. <item id="services_list">
  3782. <rank>160</rank>
  3783. </item>
  3784. </items>
  3785. </details>
  3786. <search>
  3787. <items>
  3788. <item id="name">
  3789. <rank>10</rank>
  3790. </item>
  3791. <item id="org_id">
  3792. <rank>20</rank>
  3793. </item>
  3794. <item id="business_criticity">
  3795. <rank>30</rank>
  3796. </item>
  3797. <item id="move2production">
  3798. <rank>40</rank>
  3799. </item>
  3800. </items>
  3801. </search>
  3802. <list>
  3803. <items>
  3804. <item id="org_id">
  3805. <rank>10</rank>
  3806. </item>
  3807. <item id="business_criticity">
  3808. <rank>20</rank>
  3809. </item>
  3810. <item id="system_id">
  3811. <rank>30</rank>
  3812. </item>
  3813. <item id="software_id">
  3814. <rank>40</rank>
  3815. </item>
  3816. </items>
  3817. </list>
  3818. </presentation>
  3819. </class>
  3820. <class id="OtherSoftware" _delta="define">
  3821. <parent>SoftwareInstance</parent>
  3822. <properties>
  3823. <category>bizmodel,searchable</category>
  3824. <abstract>false</abstract>
  3825. <key_type>autoincrement</key_type>
  3826. <db_table>othersoftware</db_table>
  3827. <db_key_field>id</db_key_field>
  3828. <db_final_class_field/>
  3829. <naming>
  3830. <format>%1$s %2$s</format>
  3831. <attributes>
  3832. <attribute id="name"/>
  3833. <attribute id="system_name"/>
  3834. </attributes>
  3835. </naming>
  3836. <display_template/>
  3837. <icon>images/application.png</icon>
  3838. <reconciliation>
  3839. <attributes>
  3840. <attribute id="name"/>
  3841. <attribute id="org_id"/>
  3842. <attribute id="organization_name"/>
  3843. <attribute id="system_id"/>
  3844. <attribute id="system_name"/>
  3845. </attributes>
  3846. </reconciliation>
  3847. </properties>
  3848. <fields/>
  3849. <methods/>
  3850. <presentation>
  3851. <details>
  3852. <items>
  3853. <item id="name">
  3854. <rank>10</rank>
  3855. </item>
  3856. <item id="org_id">
  3857. <rank>20</rank>
  3858. </item>
  3859. <item id="status">
  3860. <rank>30</rank>
  3861. </item>
  3862. <item id="business_criticity">
  3863. <rank>40</rank>
  3864. </item>
  3865. <item id="system_id">
  3866. <rank>50</rank>
  3867. </item>
  3868. <item id="software_id">
  3869. <rank>60</rank>
  3870. </item>
  3871. <item id="softwarelicence_id">
  3872. <rank>70</rank>
  3873. </item>
  3874. <item id="path">
  3875. <rank>80</rank>
  3876. </item>
  3877. <item id="move2production">
  3878. <rank>90</rank>
  3879. </item>
  3880. <item id="description">
  3881. <rank>100</rank>
  3882. </item>
  3883. <item id="contacts_list">
  3884. <rank>110</rank>
  3885. </item>
  3886. <item id="documents_list">
  3887. <rank>120</rank>
  3888. </item>
  3889. <item id="tickets_list">
  3890. <rank>130</rank>
  3891. </item>
  3892. <item id="applicationsolution_list">
  3893. <rank>140</rank>
  3894. </item>
  3895. <item id="providercontracts_list">
  3896. <rank>150</rank>
  3897. </item>
  3898. <item id="services_list">
  3899. <rank>160</rank>
  3900. </item>
  3901. </items>
  3902. </details>
  3903. <search>
  3904. <items>
  3905. <item id="name">
  3906. <rank>10</rank>
  3907. </item>
  3908. <item id="org_id">
  3909. <rank>20</rank>
  3910. </item>
  3911. <item id="business_criticity">
  3912. <rank>30</rank>
  3913. </item>
  3914. <item id="move2production">
  3915. <rank>40</rank>
  3916. </item>
  3917. </items>
  3918. </search>
  3919. <list>
  3920. <items>
  3921. <item id="org_id">
  3922. <rank>10</rank>
  3923. </item>
  3924. <item id="business_criticity">
  3925. <rank>20</rank>
  3926. </item>
  3927. <item id="system_id">
  3928. <rank>30</rank>
  3929. </item>
  3930. <item id="software_id">
  3931. <rank>40</rank>
  3932. </item>
  3933. </items>
  3934. </list>
  3935. </presentation>
  3936. </class>
  3937. <class id="MiddlewareInstance" _delta="define">
  3938. <parent>FunctionalCI</parent>
  3939. <properties>
  3940. <category>bizmodel,searchable</category>
  3941. <abstract>false</abstract>
  3942. <key_type>autoincrement</key_type>
  3943. <db_table>middlewareinstance</db_table>
  3944. <db_key_field>id</db_key_field>
  3945. <db_final_class_field/>
  3946. <naming>
  3947. <format>%1$s</format>
  3948. <attributes>
  3949. <attribute id="name"/>
  3950. </attributes>
  3951. </naming>
  3952. <display_template/>
  3953. <icon>images/middleware.png</icon>
  3954. <reconciliation>
  3955. <attributes>
  3956. <attribute id="name"/>
  3957. <attribute id="org_id"/>
  3958. <attribute id="organization_name"/>
  3959. <attribute id="middleware_id"/>
  3960. <attribute id="middleware_name"/>
  3961. </attributes>
  3962. </reconciliation>
  3963. </properties>
  3964. <fields>
  3965. <field id="middleware_id" xsi:type="AttributeExternalKey">
  3966. <sql>middleware_id</sql>
  3967. <target_class>Middleware</target_class>
  3968. <is_null_allowed>false</is_null_allowed>
  3969. <on_target_delete>DEL_MANUAL</on_target_delete>
  3970. </field>
  3971. <field id="middleware_name" xsi:type="AttributeExternalField">
  3972. <extkey_attcode>middleware_id</extkey_attcode>
  3973. <target_attcode>name</target_attcode>
  3974. </field>
  3975. </fields>
  3976. <methods>
  3977. <method id="GetRelationQueries">
  3978. <static>true</static>
  3979. <access>public</access>
  3980. <type>Overload-DBObject</type>
  3981. <code><![CDATA[ public static function GetRelationQueries($sRelCode)
  3982. {
  3983. switch ($sRelCode)
  3984. {
  3985. case "impacts":
  3986. $aRels = array(
  3987. );
  3988. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  3989. break;
  3990. case 'depends on':
  3991. $aRels = array(
  3992. "Middleware" => array("sQuery"=>"SELECT Middleware WHERE id = :this->middleware_id", "bPropagate"=>true, "iDistance"=>10),
  3993. );
  3994. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  3995. break;
  3996. default:
  3997. return parent::GetRelationQueries($sRelCode);
  3998. }
  3999. }]]></code>
  4000. </method>
  4001. </methods>
  4002. <presentation>
  4003. <details>
  4004. <items>
  4005. <item id="name">
  4006. <rank>10</rank>
  4007. </item>
  4008. <item id="org_id">
  4009. <rank>20</rank>
  4010. </item>
  4011. <item id="middleware_id">
  4012. <rank>30</rank>
  4013. </item>
  4014. <item id="business_criticity">
  4015. <rank>40</rank>
  4016. </item>
  4017. <item id="move2production">
  4018. <rank>50</rank>
  4019. </item>
  4020. <item id="description">
  4021. <rank>60</rank>
  4022. </item>
  4023. <item id="contacts_list">
  4024. <rank>70</rank>
  4025. </item>
  4026. <item id="documents_list">
  4027. <rank>80</rank>
  4028. </item>
  4029. <item id="tickets_list">
  4030. <rank>90</rank>
  4031. </item>
  4032. <item id="applicationsolution_list">
  4033. <rank>100</rank>
  4034. </item>
  4035. <item id="providercontracts_list">
  4036. <rank>110</rank>
  4037. </item>
  4038. <item id="services_list">
  4039. <rank>120</rank>
  4040. </item>
  4041. </items>
  4042. </details>
  4043. <search>
  4044. <items>
  4045. <item id="name">
  4046. <rank>10</rank>
  4047. </item>
  4048. <item id="org_id">
  4049. <rank>20</rank>
  4050. </item>
  4051. <item id="business_criticity">
  4052. <rank>30</rank>
  4053. </item>
  4054. <item id="move2production">
  4055. <rank>40</rank>
  4056. </item>
  4057. </items>
  4058. </search>
  4059. <list>
  4060. <items>
  4061. <item id="org_id">
  4062. <rank>10</rank>
  4063. </item>
  4064. <item id="business_criticity">
  4065. <rank>20</rank>
  4066. </item>
  4067. <item id="move2production">
  4068. <rank>30</rank>
  4069. </item>
  4070. </items>
  4071. </list>
  4072. </presentation>
  4073. </class>
  4074. <class id="DatabaseSchema" _delta="define">
  4075. <parent>FunctionalCI</parent>
  4076. <properties>
  4077. <category>bizmodel,searchable</category>
  4078. <abstract>false</abstract>
  4079. <key_type>autoincrement</key_type>
  4080. <db_table>databaseschema</db_table>
  4081. <db_key_field>id</db_key_field>
  4082. <db_final_class_field/>
  4083. <naming>
  4084. <format>%1$s</format>
  4085. <attributes>
  4086. <attribute id="name"/>
  4087. </attributes>
  4088. </naming>
  4089. <display_template/>
  4090. <icon>images/database-schema.png</icon>
  4091. <reconciliation>
  4092. <attributes>
  4093. <attribute id="name"/>
  4094. <attribute id="org_id"/>
  4095. <attribute id="organization_name"/>
  4096. </attributes>
  4097. </reconciliation>
  4098. </properties>
  4099. <fields>
  4100. <field id="dbserver_id" xsi:type="AttributeExternalKey">
  4101. <sql>dbserver_id</sql>
  4102. <target_class>DBServer</target_class>
  4103. <is_null_allowed>false</is_null_allowed>
  4104. <on_target_delete>DEL_MANUAL</on_target_delete>
  4105. </field>
  4106. <field id="dbserver_name" xsi:type="AttributeExternalField">
  4107. <extkey_attcode>dbserver_id</extkey_attcode>
  4108. <target_attcode>name</target_attcode>
  4109. </field>
  4110. </fields>
  4111. <methods>
  4112. <method id="GetRelationQueries">
  4113. <static>true</static>
  4114. <access>public</access>
  4115. <type>Overload-DBObject</type>
  4116. <code><![CDATA[ public static function GetRelationQueries($sRelCode)
  4117. {
  4118. switch ($sRelCode)
  4119. {
  4120. case "impacts":
  4121. $aRels = array(
  4122. );
  4123. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  4124. break;
  4125. case 'depends on':
  4126. $aRels = array(
  4127. "DBServer" => array("sQuery"=>"SELECT DBServer WHERE id = :this->dbserver_id", "bPropagate"=>true, "iDistance"=>10),
  4128. );
  4129. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  4130. break;
  4131. default:
  4132. return parent::GetRelationQueries($sRelCode);
  4133. }
  4134. }]]></code>
  4135. </method>
  4136. </methods>
  4137. <presentation>
  4138. <details>
  4139. <items>
  4140. <item id="name">
  4141. <rank>10</rank>
  4142. </item>
  4143. <item id="org_id">
  4144. <rank>20</rank>
  4145. </item>
  4146. <item id="dbserver_id">
  4147. <rank>30</rank>
  4148. </item>
  4149. <item id="business_criticity">
  4150. <rank>40</rank>
  4151. </item>
  4152. <item id="move2production">
  4153. <rank>50</rank>
  4154. </item>
  4155. <item id="description">
  4156. <rank>60</rank>
  4157. </item>
  4158. <item id="contacts_list">
  4159. <rank>70</rank>
  4160. </item>
  4161. <item id="documents_list">
  4162. <rank>80</rank>
  4163. </item>
  4164. <item id="tickets_list">
  4165. <rank>90</rank>
  4166. </item>
  4167. <item id="applicationsolution_list">
  4168. <rank>100</rank>
  4169. </item>
  4170. <item id="providercontracts_list">
  4171. <rank>110</rank>
  4172. </item>
  4173. <item id="services_list">
  4174. <rank>120</rank>
  4175. </item>
  4176. </items>
  4177. </details>
  4178. <search>
  4179. <items>
  4180. <item id="name">
  4181. <rank>10</rank>
  4182. </item>
  4183. <item id="org_id">
  4184. <rank>20</rank>
  4185. </item>
  4186. <item id="business_criticity">
  4187. <rank>30</rank>
  4188. </item>
  4189. <item id="move2production">
  4190. <rank>40</rank>
  4191. </item>
  4192. </items>
  4193. </search>
  4194. <list>
  4195. <items>
  4196. <item id="org_id">
  4197. <rank>10</rank>
  4198. </item>
  4199. <item id="business_criticity">
  4200. <rank>20</rank>
  4201. </item>
  4202. <item id="move2production">
  4203. <rank>30</rank>
  4204. </item>
  4205. </items>
  4206. </list>
  4207. </presentation>
  4208. </class>
  4209. <class id="WebApplication" _delta="define">
  4210. <parent>FunctionalCI</parent>
  4211. <properties>
  4212. <category>bizmodel,searchable</category>
  4213. <abstract>false</abstract>
  4214. <key_type>autoincrement</key_type>
  4215. <db_table>webapplication</db_table>
  4216. <db_key_field>id</db_key_field>
  4217. <db_final_class_field/>
  4218. <naming>
  4219. <format>%1$s</format>
  4220. <attributes>
  4221. <attribute id="name"/>
  4222. </attributes>
  4223. </naming>
  4224. <display_template/>
  4225. <icon>images/webapp.png</icon>
  4226. <reconciliation>
  4227. <attributes>
  4228. <attribute id="name"/>
  4229. <attribute id="org_id"/>
  4230. <attribute id="organization_name"/>
  4231. </attributes>
  4232. </reconciliation>
  4233. </properties>
  4234. <fields>
  4235. <field id="webserver_id" xsi:type="AttributeExternalKey">
  4236. <sql>webserver_id</sql>
  4237. <target_class>WebServer</target_class>
  4238. <is_null_allowed>false</is_null_allowed>
  4239. <on_target_delete>DEL_MANUAL</on_target_delete>
  4240. </field>
  4241. <field id="webserver_name" xsi:type="AttributeExternalField">
  4242. <extkey_attcode>webserver_id</extkey_attcode>
  4243. <target_attcode>name</target_attcode>
  4244. </field>
  4245. <field id="url" xsi:type="AttributeURL">
  4246. <sql>url</sql>
  4247. <default_value/>
  4248. <is_null_allowed>true</is_null_allowed>
  4249. <target>_blank</target>
  4250. </field>
  4251. </fields>
  4252. <methods>
  4253. <method id="GetRelationQueries">
  4254. <static>true</static>
  4255. <access>public</access>
  4256. <type>Overload-DBObject</type>
  4257. <code><![CDATA[ public static function GetRelationQueries($sRelCode)
  4258. {
  4259. switch ($sRelCode)
  4260. {
  4261. case "impacts":
  4262. $aRels = array(
  4263. );
  4264. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  4265. break;
  4266. case 'depends on':
  4267. $aRels = array(
  4268. "WebServer" => array("sQuery"=>"SELECT WebServer WHERE id = :this->webserver_id", "bPropagate"=>true, "iDistance"=>10),
  4269. );
  4270. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  4271. break;
  4272. default:
  4273. return parent::GetRelationQueries($sRelCode);
  4274. }
  4275. }]]></code>
  4276. </method>
  4277. </methods>
  4278. <presentation>
  4279. <details>
  4280. <items>
  4281. <item id="name">
  4282. <rank>10</rank>
  4283. </item>
  4284. <item id="org_id">
  4285. <rank>20</rank>
  4286. </item>
  4287. <item id="webserver_id">
  4288. <rank>30</rank>
  4289. </item>
  4290. <item id="url">
  4291. <rank>40</rank>
  4292. </item>
  4293. <item id="business_criticity">
  4294. <rank>50</rank>
  4295. </item>
  4296. <item id="move2production">
  4297. <rank>60</rank>
  4298. </item>
  4299. <item id="description">
  4300. <rank>70</rank>
  4301. </item>
  4302. <item id="contacts_list">
  4303. <rank>80</rank>
  4304. </item>
  4305. <item id="documents_list">
  4306. <rank>90</rank>
  4307. </item>
  4308. <item id="tickets_list">
  4309. <rank>100</rank>
  4310. </item>
  4311. <item id="applicationsolution_list">
  4312. <rank>110</rank>
  4313. </item>
  4314. <item id="providercontracts_list">
  4315. <rank>120</rank>
  4316. </item>
  4317. <item id="services_list">
  4318. <rank>130</rank>
  4319. </item>
  4320. </items>
  4321. </details>
  4322. <search>
  4323. <items>
  4324. <item id="name">
  4325. <rank>10</rank>
  4326. </item>
  4327. <item id="org_id">
  4328. <rank>20</rank>
  4329. </item>
  4330. <item id="business_criticity">
  4331. <rank>30</rank>
  4332. </item>
  4333. <item id="move2production">
  4334. <rank>40</rank>
  4335. </item>
  4336. </items>
  4337. </search>
  4338. <list>
  4339. <items>
  4340. <item id="org_id">
  4341. <rank>10</rank>
  4342. </item>
  4343. <item id="business_criticity">
  4344. <rank>20</rank>
  4345. </item>
  4346. <item id="move2production">
  4347. <rank>30</rank>
  4348. </item>
  4349. </items>
  4350. </list>
  4351. </presentation>
  4352. </class>
  4353. <class id="Software" _delta="define">
  4354. <parent>cmdbAbstractObject</parent>
  4355. <properties>
  4356. <category>bizmodel,searchable</category>
  4357. <abstract>false</abstract>
  4358. <key_type>autoincrement</key_type>
  4359. <db_table>software</db_table>
  4360. <db_key_field>id</db_key_field>
  4361. <db_final_class_field/>
  4362. <naming>
  4363. <format>%1$s</format>
  4364. <attributes>
  4365. <attribute id="name"/>
  4366. <attribute id="version"/>
  4367. </attributes>
  4368. </naming>
  4369. <display_template/>
  4370. <icon>images/software.png</icon>
  4371. <reconciliation>
  4372. <attributes>
  4373. <attribute id="name"/>
  4374. </attributes>
  4375. </reconciliation>
  4376. </properties>
  4377. <fields>
  4378. <field id="name" xsi:type="AttributeString">
  4379. <sql>name</sql>
  4380. <default_value/>
  4381. <is_null_allowed>false</is_null_allowed>
  4382. </field>
  4383. <field id="vendor" xsi:type="AttributeString">
  4384. <sql>vendor</sql>
  4385. <default_value/>
  4386. <is_null_allowed>false</is_null_allowed>
  4387. </field>
  4388. <field id="version" xsi:type="AttributeString">
  4389. <sql>version</sql>
  4390. <default_value/>
  4391. <is_null_allowed>false</is_null_allowed>
  4392. </field>
  4393. <field id="documents_list" xsi:type="AttributeLinkedSetIndirect">
  4394. <linked_class>lnkDocumentToSoftware</linked_class>
  4395. <ext_key_to_me>software_id</ext_key_to_me>
  4396. <count_min>0</count_min>
  4397. <count_max>0</count_max>
  4398. <ext_key_to_remote>document_id</ext_key_to_remote>
  4399. <duplicates/>
  4400. </field>
  4401. <field id="type" xsi:type="AttributeEnum">
  4402. <values>
  4403. <value>Middleware</value>
  4404. <value>DBServer</value>
  4405. <value>PCSoftware</value>
  4406. <value>OtherSoftware</value>
  4407. <value>WebServer</value>
  4408. </values>
  4409. <sql>type</sql>
  4410. <default_value/>
  4411. <is_null_allowed>true</is_null_allowed>
  4412. <display_style>list</display_style>
  4413. </field>
  4414. <field id="softwareinstance_list" xsi:type="AttributeLinkedSet">
  4415. <linked_class>SoftwareInstance</linked_class>
  4416. <ext_key_to_me>software_id</ext_key_to_me>
  4417. <edit_mode>add_only</edit_mode>
  4418. <count_min>0</count_min>
  4419. <count_max>0</count_max>
  4420. </field>
  4421. <field id="softwarepatch_list" xsi:type="AttributeLinkedSet">
  4422. <linked_class>SoftwarePatch</linked_class>
  4423. <ext_key_to_me>software_id</ext_key_to_me>
  4424. <edit_mode>add_only</edit_mode>
  4425. <count_min>0</count_min>
  4426. <count_max>0</count_max>
  4427. </field>
  4428. <field id="softwarelicence_list" xsi:type="AttributeLinkedSet">
  4429. <linked_class>SoftwareLicence</linked_class>
  4430. <ext_key_to_me>software_id</ext_key_to_me>
  4431. <edit_mode>add_only</edit_mode>
  4432. <count_min>0</count_min>
  4433. <count_max>0</count_max>
  4434. </field>
  4435. </fields>
  4436. <methods/>
  4437. <presentation>
  4438. <details>
  4439. <items>
  4440. <item id="name">
  4441. <rank>10</rank>
  4442. </item>
  4443. <item id="vendor">
  4444. <rank>20</rank>
  4445. </item>
  4446. <item id="version">
  4447. <rank>30</rank>
  4448. </item>
  4449. <item id="documents_list">
  4450. <rank>40</rank>
  4451. </item>
  4452. <item id="type">
  4453. <rank>50</rank>
  4454. </item>
  4455. <item id="softwareinstance_list">
  4456. <rank>60</rank>
  4457. </item>
  4458. <item id="softwarepatch_list">
  4459. <rank>70</rank>
  4460. </item>
  4461. <item id="softwarelicence_list">
  4462. <rank>80</rank>
  4463. </item>
  4464. </items>
  4465. </details>
  4466. <search>
  4467. <items>
  4468. <item id="name">
  4469. <rank>10</rank>
  4470. </item>
  4471. <item id="vendor">
  4472. <rank>20</rank>
  4473. </item>
  4474. <item id="version">
  4475. <rank>30</rank>
  4476. </item>
  4477. <item id="type">
  4478. <rank>40</rank>
  4479. </item>
  4480. </items>
  4481. </search>
  4482. <list>
  4483. <items>
  4484. <item id="vendor">
  4485. <rank>10</rank>
  4486. </item>
  4487. <item id="version">
  4488. <rank>20</rank>
  4489. </item>
  4490. <item id="type">
  4491. <rank>30</rank>
  4492. </item>
  4493. </items>
  4494. </list>
  4495. </presentation>
  4496. </class>
  4497. <class id="Patch" _delta="define">
  4498. <parent>cmdbAbstractObject</parent>
  4499. <properties>
  4500. <category>bizmodel,searchable</category>
  4501. <abstract>true</abstract>
  4502. <key_type>autoincrement</key_type>
  4503. <db_table>patch</db_table>
  4504. <db_key_field>id</db_key_field>
  4505. <db_final_class_field>finalclass</db_final_class_field>
  4506. <naming>
  4507. <format>%1$s</format>
  4508. <attributes>
  4509. <attribute id="name"/>
  4510. </attributes>
  4511. </naming>
  4512. <display_template/>
  4513. <icon>images/patch.png</icon>
  4514. <reconciliation>
  4515. <attributes>
  4516. <attribute id="name"/>
  4517. </attributes>
  4518. </reconciliation>
  4519. </properties>
  4520. <fields>
  4521. <field id="name" xsi:type="AttributeString">
  4522. <sql>name</sql>
  4523. <default_value/>
  4524. <is_null_allowed>false</is_null_allowed>
  4525. </field>
  4526. <field id="documents_list" xsi:type="AttributeLinkedSetIndirect">
  4527. <linked_class>lnkDocumentToPatch</linked_class>
  4528. <ext_key_to_me>patch_id</ext_key_to_me>
  4529. <count_min>0</count_min>
  4530. <count_max>0</count_max>
  4531. <ext_key_to_remote>document_id</ext_key_to_remote>
  4532. <duplicates/>
  4533. </field>
  4534. <field id="description" xsi:type="AttributeText">
  4535. <sql>description</sql>
  4536. <default_value/>
  4537. <is_null_allowed>true</is_null_allowed>
  4538. </field>
  4539. </fields>
  4540. <methods/>
  4541. <presentation>
  4542. <details>
  4543. <items>
  4544. <item id="name">
  4545. <rank>10</rank>
  4546. </item>
  4547. <item id="documents_list">
  4548. <rank>20</rank>
  4549. </item>
  4550. <item id="description">
  4551. <rank>30</rank>
  4552. </item>
  4553. </items>
  4554. </details>
  4555. <search>
  4556. <items>
  4557. <item id="name">
  4558. <rank>10</rank>
  4559. </item>
  4560. </items>
  4561. </search>
  4562. <list>
  4563. <items>
  4564. <item id="finalclass">
  4565. <rank>10</rank>
  4566. </item>
  4567. <item id="description">
  4568. <rank>20</rank>
  4569. </item>
  4570. </items>
  4571. </list>
  4572. </presentation>
  4573. </class>
  4574. <class id="OSPatch" _delta="define">
  4575. <parent>Patch</parent>
  4576. <properties>
  4577. <category>bizmodel,searchable</category>
  4578. <abstract>false</abstract>
  4579. <key_type>autoincrement</key_type>
  4580. <db_table>ospatch</db_table>
  4581. <db_key_field>id</db_key_field>
  4582. <db_final_class_field/>
  4583. <naming>
  4584. <format>%1$s</format>
  4585. <attributes>
  4586. <attribute id="name"/>
  4587. </attributes>
  4588. </naming>
  4589. <display_template/>
  4590. <icon>images/patch.png</icon>
  4591. <reconciliation>
  4592. <attributes>
  4593. <attribute id="name"/>
  4594. </attributes>
  4595. </reconciliation>
  4596. </properties>
  4597. <fields>
  4598. <field id="functionalcis_list" xsi:type="AttributeLinkedSetIndirect">
  4599. <linked_class>lnkFunctionalCIToOSPatch</linked_class>
  4600. <ext_key_to_me>ospatch_id</ext_key_to_me>
  4601. <count_min>0</count_min>
  4602. <count_max>0</count_max>
  4603. <ext_key_to_remote>functionalci_id</ext_key_to_remote>
  4604. <duplicates/>
  4605. </field>
  4606. <field id="osversion_id" xsi:type="AttributeExternalKey">
  4607. <sql>osversion_id</sql>
  4608. <target_class>OSVersion</target_class>
  4609. <is_null_allowed>false</is_null_allowed>
  4610. <on_target_delete>DEL_MANUAL</on_target_delete>
  4611. </field>
  4612. <field id="osversion_name" xsi:type="AttributeExternalField">
  4613. <extkey_attcode>osversion_id</extkey_attcode>
  4614. <target_attcode>name</target_attcode>
  4615. </field>
  4616. </fields>
  4617. <methods/>
  4618. <presentation>
  4619. <details>
  4620. <items>
  4621. <item id="name">
  4622. <rank>10</rank>
  4623. </item>
  4624. <item id="documents_list">
  4625. <rank>20</rank>
  4626. </item>
  4627. <item id="functionalcis_list">
  4628. <rank>30</rank>
  4629. </item>
  4630. <item id="description">
  4631. <rank>40</rank>
  4632. </item>
  4633. <item id="osversion_id">
  4634. <rank>50</rank>
  4635. </item>
  4636. </items>
  4637. </details>
  4638. <search>
  4639. <items>
  4640. <item id="name">
  4641. <rank>10</rank>
  4642. </item>
  4643. <item id="description">
  4644. <rank>20</rank>
  4645. </item>
  4646. <item id="osversion_id">
  4647. <rank>30</rank>
  4648. </item>
  4649. </items>
  4650. </search>
  4651. <list>
  4652. <items>
  4653. <item id="description">
  4654. <rank>10</rank>
  4655. </item>
  4656. <item id="osversion_id">
  4657. <rank>20</rank>
  4658. </item>
  4659. </items>
  4660. </list>
  4661. </presentation>
  4662. </class>
  4663. <class id="SoftwarePatch" _delta="define">
  4664. <parent>Patch</parent>
  4665. <properties>
  4666. <category>bizmodel,searchable</category>
  4667. <abstract>false</abstract>
  4668. <key_type>autoincrement</key_type>
  4669. <db_table>softwarepatch</db_table>
  4670. <db_key_field>id</db_key_field>
  4671. <db_final_class_field/>
  4672. <naming>
  4673. <format>%1$s</format>
  4674. <attributes>
  4675. <attribute id="name"/>
  4676. </attributes>
  4677. </naming>
  4678. <display_template/>
  4679. <icon>images/patch.png</icon>
  4680. <reconciliation>
  4681. <attributes>
  4682. <attribute id="name"/>
  4683. </attributes>
  4684. </reconciliation>
  4685. </properties>
  4686. <fields>
  4687. <field id="software_id" xsi:type="AttributeExternalKey">
  4688. <sql>software_id</sql>
  4689. <target_class>Software</target_class>
  4690. <is_null_allowed>false</is_null_allowed>
  4691. <on_target_delete>DEL_MANUAL</on_target_delete>
  4692. </field>
  4693. <field id="software_name" xsi:type="AttributeExternalField">
  4694. <extkey_attcode>software_id</extkey_attcode>
  4695. <target_attcode>name</target_attcode>
  4696. </field>
  4697. <field id="softwareinstances_list" xsi:type="AttributeLinkedSetIndirect">
  4698. <linked_class>lnkSoftwareInstanceToSoftwarePatch</linked_class>
  4699. <ext_key_to_me>softwarepatch_id</ext_key_to_me>
  4700. <count_min>0</count_min>
  4701. <count_max>0</count_max>
  4702. <ext_key_to_remote>softwareinstance_id</ext_key_to_remote>
  4703. <duplicates/>
  4704. </field>
  4705. </fields>
  4706. <methods/>
  4707. <presentation>
  4708. <details>
  4709. <items>
  4710. <item id="name">
  4711. <rank>10</rank>
  4712. </item>
  4713. <item id="documents_list">
  4714. <rank>20</rank>
  4715. </item>
  4716. <item id="software_id">
  4717. <rank>30</rank>
  4718. </item>
  4719. <item id="description">
  4720. <rank>40</rank>
  4721. </item>
  4722. <item id="softwareinstances_list">
  4723. <rank>50</rank>
  4724. </item>
  4725. </items>
  4726. </details>
  4727. <search>
  4728. <items>
  4729. <item id="name">
  4730. <rank>10</rank>
  4731. </item>
  4732. <item id="software_id">
  4733. <rank>20</rank>
  4734. </item>
  4735. <item id="description">
  4736. <rank>30</rank>
  4737. </item>
  4738. </items>
  4739. </search>
  4740. <list>
  4741. <items>
  4742. <item id="software_id">
  4743. <rank>10</rank>
  4744. </item>
  4745. <item id="description">
  4746. <rank>20</rank>
  4747. </item>
  4748. </items>
  4749. </list>
  4750. </presentation>
  4751. </class>
  4752. <class id="Licence" _delta="define">
  4753. <parent>cmdbAbstractObject</parent>
  4754. <properties>
  4755. <category>bizmodel,searchable</category>
  4756. <abstract>true</abstract>
  4757. <key_type>autoincrement</key_type>
  4758. <db_table>licence</db_table>
  4759. <db_key_field>id</db_key_field>
  4760. <db_final_class_field>finalclass</db_final_class_field>
  4761. <naming>
  4762. <format>%1$s</format>
  4763. <attributes>
  4764. <attribute id="name"/>
  4765. </attributes>
  4766. </naming>
  4767. <display_template/>
  4768. <icon>images/licence.png</icon>
  4769. <reconciliation>
  4770. <attributes>
  4771. <attribute id="name"/>
  4772. <attribute id="org_id"/>
  4773. <attribute id="organization_name"/>
  4774. </attributes>
  4775. </reconciliation>
  4776. </properties>
  4777. <fields>
  4778. <field id="name" xsi:type="AttributeString">
  4779. <sql>name</sql>
  4780. <default_value/>
  4781. <is_null_allowed>false</is_null_allowed>
  4782. </field>
  4783. <field id="documents_list" xsi:type="AttributeLinkedSetIndirect">
  4784. <linked_class>lnkDocumentToLicence</linked_class>
  4785. <ext_key_to_me>licence_id</ext_key_to_me>
  4786. <count_min>0</count_min>
  4787. <count_max>0</count_max>
  4788. <ext_key_to_remote>document_id</ext_key_to_remote>
  4789. <duplicates/>
  4790. </field>
  4791. <field id="org_id" xsi:type="AttributeExternalKey">
  4792. <sql>org_id</sql>
  4793. <target_class>Organization</target_class>
  4794. <is_null_allowed>false</is_null_allowed>
  4795. <on_target_delete>DEL_MANUAL</on_target_delete>
  4796. </field>
  4797. <field id="organization_name" xsi:type="AttributeExternalField">
  4798. <extkey_attcode>org_id</extkey_attcode>
  4799. <target_attcode>name</target_attcode>
  4800. </field>
  4801. <field id="usage_limit" xsi:type="AttributeString">
  4802. <sql>usage_limit</sql>
  4803. <default_value/>
  4804. <is_null_allowed>true</is_null_allowed>
  4805. </field>
  4806. <field id="description" xsi:type="AttributeText">
  4807. <sql>description</sql>
  4808. <default_value/>
  4809. <is_null_allowed>true</is_null_allowed>
  4810. </field>
  4811. <field id="start_date" xsi:type="AttributeDate">
  4812. <sql>start_date</sql>
  4813. <default_value/>
  4814. <is_null_allowed>true</is_null_allowed>
  4815. </field>
  4816. <field id="end_date" xsi:type="AttributeDate">
  4817. <sql>end_date</sql>
  4818. <default_value/>
  4819. <is_null_allowed>true</is_null_allowed>
  4820. </field>
  4821. <field id="licence_key" xsi:type="AttributeString">
  4822. <sql>licence_key</sql>
  4823. <default_value/>
  4824. <is_null_allowed>true</is_null_allowed>
  4825. </field>
  4826. <field id="perpetual" xsi:type="AttributeEnum">
  4827. <values>
  4828. <value>yes</value>
  4829. <value>no</value>
  4830. </values>
  4831. <sql>perpetual</sql>
  4832. <default_value>no</default_value>
  4833. <is_null_allowed>false</is_null_allowed>
  4834. <display_style>list</display_style>
  4835. </field>
  4836. </fields>
  4837. <methods/>
  4838. <presentation>
  4839. <details>
  4840. <items>
  4841. <item id="name">
  4842. <rank>10</rank>
  4843. </item>
  4844. <item id="documents_list">
  4845. <rank>20</rank>
  4846. </item>
  4847. <item id="org_id">
  4848. <rank>30</rank>
  4849. </item>
  4850. <item id="usage_limit">
  4851. <rank>40</rank>
  4852. </item>
  4853. <item id="description">
  4854. <rank>50</rank>
  4855. </item>
  4856. <item id="perpetual">
  4857. <rank>55</rank>
  4858. </item>
  4859. <item id="start_date">
  4860. <rank>60</rank>
  4861. </item>
  4862. <item id="end_date">
  4863. <rank>70</rank>
  4864. </item>
  4865. <item id="licence_key">
  4866. <rank>80</rank>
  4867. </item>
  4868. </items>
  4869. </details>
  4870. <search>
  4871. <items>
  4872. <item id="name">
  4873. <rank>10</rank>
  4874. </item>
  4875. <item id="perpetual">
  4876. <rank>15</rank>
  4877. </item>
  4878. <item id="start_date">
  4879. <rank>20</rank>
  4880. </item>
  4881. <item id="end_date">
  4882. <rank>30</rank>
  4883. </item>
  4884. <item id="licence_key">
  4885. <rank>40</rank>
  4886. </item>
  4887. </items>
  4888. </search>
  4889. <list>
  4890. <items>
  4891. <item id="finalclass">
  4892. <rank>10</rank>
  4893. </item>
  4894. <item id="org_id">
  4895. <rank>20</rank>
  4896. </item>
  4897. <item id="usage_limit">
  4898. <rank>30</rank>
  4899. </item>
  4900. <item id="description">
  4901. <rank>40</rank>
  4902. </item>
  4903. <item id="start_date">
  4904. <rank>50</rank>
  4905. </item>
  4906. <item id="end_date">
  4907. <rank>60</rank>
  4908. </item>
  4909. <item id="licence_key">
  4910. <rank>70</rank>
  4911. </item>
  4912. </items>
  4913. </list>
  4914. </presentation>
  4915. </class>
  4916. <class id="OSLicence" _delta="define">
  4917. <parent>Licence</parent>
  4918. <properties>
  4919. <category>bizmodel,searchable</category>
  4920. <abstract>false</abstract>
  4921. <key_type>autoincrement</key_type>
  4922. <db_table>oslicence</db_table>
  4923. <db_key_field>id</db_key_field>
  4924. <db_final_class_field/>
  4925. <naming>
  4926. <format>%1$s</format>
  4927. <attributes>
  4928. <attribute id="name"/>
  4929. </attributes>
  4930. </naming>
  4931. <display_template/>
  4932. <icon>images/licence.png</icon>
  4933. <reconciliation>
  4934. <attributes>
  4935. <attribute id="name"/>
  4936. <attribute id="org_id"/>
  4937. <attribute id="organization_name"/>
  4938. </attributes>
  4939. </reconciliation>
  4940. </properties>
  4941. <fields>
  4942. <field id="osversion_id" xsi:type="AttributeExternalKey">
  4943. <sql>osversion_id</sql>
  4944. <target_class>OSVersion</target_class>
  4945. <is_null_allowed>false</is_null_allowed>
  4946. <on_target_delete>DEL_MANUAL</on_target_delete>
  4947. </field>
  4948. <field id="osversion_name" xsi:type="AttributeExternalField">
  4949. <extkey_attcode>osversion_id</extkey_attcode>
  4950. <target_attcode>name</target_attcode>
  4951. </field>
  4952. <field id="virtualmachines_list" xsi:type="AttributeLinkedSet">
  4953. <linked_class>VirtualMachine</linked_class>
  4954. <ext_key_to_me>oslicence_id</ext_key_to_me>
  4955. <edit_mode>none</edit_mode>
  4956. <count_min>0</count_min>
  4957. <count_max>0</count_max>
  4958. </field>
  4959. <field id="servers_list" xsi:type="AttributeLinkedSet">
  4960. <linked_class>Server</linked_class>
  4961. <ext_key_to_me>oslicence_id</ext_key_to_me>
  4962. <edit_mode>none</edit_mode>
  4963. <count_min>0</count_min>
  4964. <count_max>0</count_max>
  4965. </field>
  4966. </fields>
  4967. <methods/>
  4968. <presentation>
  4969. <details>
  4970. <items>
  4971. <item id="name">
  4972. <rank>10</rank>
  4973. </item>
  4974. <item id="documents_list">
  4975. <rank>20</rank>
  4976. </item>
  4977. <item id="osversion_id">
  4978. <rank>30</rank>
  4979. </item>
  4980. <item id="org_id">
  4981. <rank>40</rank>
  4982. </item>
  4983. <item id="usage_limit">
  4984. <rank>50</rank>
  4985. </item>
  4986. <item id="description">
  4987. <rank>60</rank>
  4988. </item>
  4989. <item id="perpetual">
  4990. <rank>65</rank>
  4991. </item>
  4992. <item id="start_date">
  4993. <rank>70</rank>
  4994. </item>
  4995. <item id="end_date">
  4996. <rank>80</rank>
  4997. </item>
  4998. <item id="licence_key">
  4999. <rank>90</rank>
  5000. </item>
  5001. <item id="servers_list">
  5002. <rank>100</rank>
  5003. </item>
  5004. <item id="virtualmachines_list">
  5005. <rank>110</rank>
  5006. </item>
  5007. </items>
  5008. </details>
  5009. <search>
  5010. <items>
  5011. <item id="name">
  5012. <rank>10</rank>
  5013. </item>
  5014. <item id="perpetual">
  5015. <rank>15</rank>
  5016. </item>
  5017. <item id="start_date">
  5018. <rank>20</rank>
  5019. </item>
  5020. <item id="end_date">
  5021. <rank>30</rank>
  5022. </item>
  5023. <item id="licence_key">
  5024. <rank>40</rank>
  5025. </item>
  5026. </items>
  5027. </search>
  5028. <list>
  5029. <items>
  5030. <item id="osversion_id">
  5031. <rank>10</rank>
  5032. </item>
  5033. <item id="org_id">
  5034. <rank>20</rank>
  5035. </item>
  5036. <item id="usage_limit">
  5037. <rank>30</rank>
  5038. </item>
  5039. <item id="description">
  5040. <rank>40</rank>
  5041. </item>
  5042. <item id="start_date">
  5043. <rank>50</rank>
  5044. </item>
  5045. <item id="end_date">
  5046. <rank>60</rank>
  5047. </item>
  5048. <item id="licence_key">
  5049. <rank>70</rank>
  5050. </item>
  5051. </items>
  5052. </list>
  5053. </presentation>
  5054. </class>
  5055. <class id="SoftwareLicence" _delta="define">
  5056. <parent>Licence</parent>
  5057. <properties>
  5058. <category>bizmodel,searchable</category>
  5059. <abstract>false</abstract>
  5060. <key_type>autoincrement</key_type>
  5061. <db_table>softwarelicence</db_table>
  5062. <db_key_field>id</db_key_field>
  5063. <db_final_class_field/>
  5064. <naming>
  5065. <format>%1$s</format>
  5066. <attributes>
  5067. <attribute id="name"/>
  5068. </attributes>
  5069. </naming>
  5070. <display_template/>
  5071. <icon>images/licence.png</icon>
  5072. <reconciliation>
  5073. <attributes>
  5074. <attribute id="name"/>
  5075. <attribute id="org_id"/>
  5076. <attribute id="organization_name"/>
  5077. <attribute id="software_id"/>
  5078. <attribute id="software_name"/>
  5079. </attributes>
  5080. </reconciliation>
  5081. </properties>
  5082. <fields>
  5083. <field id="software_id" xsi:type="AttributeExternalKey">
  5084. <sql>software_id</sql>
  5085. <target_class>Software</target_class>
  5086. <is_null_allowed>false</is_null_allowed>
  5087. <on_target_delete>DEL_MANUAL</on_target_delete>
  5088. </field>
  5089. <field id="software_name" xsi:type="AttributeExternalField">
  5090. <extkey_attcode>software_id</extkey_attcode>
  5091. <target_attcode>name</target_attcode>
  5092. </field>
  5093. <field id="softwareinstance_list" xsi:type="AttributeLinkedSet">
  5094. <linked_class>SoftwareInstance</linked_class>
  5095. <ext_key_to_me>softwarelicence_id</ext_key_to_me>
  5096. <edit_mode>none</edit_mode>
  5097. <count_min>0</count_min>
  5098. <count_max>0</count_max>
  5099. </field>
  5100. </fields>
  5101. <methods/>
  5102. <presentation>
  5103. <details>
  5104. <items>
  5105. <item id="name">
  5106. <rank>10</rank>
  5107. </item>
  5108. <item id="documents_list">
  5109. <rank>20</rank>
  5110. </item>
  5111. <item id="software_id">
  5112. <rank>30</rank>
  5113. </item>
  5114. <item id="org_id">
  5115. <rank>40</rank>
  5116. </item>
  5117. <item id="usage_limit">
  5118. <rank>50</rank>
  5119. </item>
  5120. <item id="description">
  5121. <rank>60</rank>
  5122. </item>
  5123. <item id="perpetual">
  5124. <rank>65</rank>
  5125. </item>
  5126. <item id="start_date">
  5127. <rank>70</rank>
  5128. </item>
  5129. <item id="end_date">
  5130. <rank>80</rank>
  5131. </item>
  5132. <item id="licence_key">
  5133. <rank>90</rank>
  5134. </item>
  5135. <item id="softwareinstance_list">
  5136. <rank>100</rank>
  5137. </item>
  5138. </items>
  5139. </details>
  5140. <search>
  5141. <items>
  5142. <item id="name">
  5143. <rank>10</rank>
  5144. </item>
  5145. <item id="perpetual">
  5146. <rank>15</rank>
  5147. </item>
  5148. <item id="start_date">
  5149. <rank>20</rank>
  5150. </item>
  5151. <item id="end_date">
  5152. <rank>30</rank>
  5153. </item>
  5154. <item id="licence_key">
  5155. <rank>40</rank>
  5156. </item>
  5157. </items>
  5158. </search>
  5159. <list>
  5160. <items>
  5161. <item id="software_id">
  5162. <rank>10</rank>
  5163. </item>
  5164. <item id="org_id">
  5165. <rank>20</rank>
  5166. </item>
  5167. <item id="usage_limit">
  5168. <rank>30</rank>
  5169. </item>
  5170. <item id="description">
  5171. <rank>40</rank>
  5172. </item>
  5173. <item id="start_date">
  5174. <rank>50</rank>
  5175. </item>
  5176. <item id="end_date">
  5177. <rank>60</rank>
  5178. </item>
  5179. <item id="licence_key">
  5180. <rank>70</rank>
  5181. </item>
  5182. </items>
  5183. </list>
  5184. </presentation>
  5185. </class>
  5186. <class id="lnkDocumentToLicence" _delta="define">
  5187. <parent>cmdbAbstractObject</parent>
  5188. <properties>
  5189. <is_link>1</is_link>
  5190. <category>bizmodel</category>
  5191. <abstract>false</abstract>
  5192. <key_type>autoincrement</key_type>
  5193. <db_table>lnkdocumenttolicence</db_table>
  5194. <db_key_field>id</db_key_field>
  5195. <db_final_class_field/>
  5196. <naming>
  5197. <format>%1$s %2$s</format>
  5198. <attributes>
  5199. <attribute id="licence_id"/>
  5200. <attribute id="document_id"/>
  5201. </attributes>
  5202. </naming>
  5203. <display_template/>
  5204. <icon/>
  5205. <reconciliation>
  5206. <attributes>
  5207. <attribute id="licence_id"/>
  5208. <attribute id="document_id"/>
  5209. </attributes>
  5210. </reconciliation>
  5211. </properties>
  5212. <fields>
  5213. <field id="licence_id" xsi:type="AttributeExternalKey">
  5214. <sql>licence_id</sql>
  5215. <target_class>Licence</target_class>
  5216. <is_null_allowed>false</is_null_allowed>
  5217. <on_target_delete>DEL_AUTO</on_target_delete>
  5218. </field>
  5219. <field id="licence_name" xsi:type="AttributeExternalField">
  5220. <extkey_attcode>licence_id</extkey_attcode>
  5221. <target_attcode>name</target_attcode>
  5222. </field>
  5223. <field id="document_id" xsi:type="AttributeExternalKey">
  5224. <sql>document_id</sql>
  5225. <target_class>Document</target_class>
  5226. <is_null_allowed>false</is_null_allowed>
  5227. <on_target_delete>DEL_AUTO</on_target_delete>
  5228. </field>
  5229. <field id="document_name" xsi:type="AttributeExternalField">
  5230. <extkey_attcode>document_id</extkey_attcode>
  5231. <target_attcode>name</target_attcode>
  5232. </field>
  5233. </fields>
  5234. <methods/>
  5235. <presentation>
  5236. <details>
  5237. <items>
  5238. <item id="licence_id">
  5239. <rank>10</rank>
  5240. </item>
  5241. <item id="document_id">
  5242. <rank>20</rank>
  5243. </item>
  5244. </items>
  5245. </details>
  5246. <search>
  5247. <items>
  5248. <item id="licence_id">
  5249. <rank>10</rank>
  5250. </item>
  5251. <item id="document_id">
  5252. <rank>20</rank>
  5253. </item>
  5254. </items>
  5255. </search>
  5256. <list>
  5257. <items>
  5258. <item id="licence_id">
  5259. <rank>10</rank>
  5260. </item>
  5261. <item id="document_id">
  5262. <rank>20</rank>
  5263. </item>
  5264. </items>
  5265. </list>
  5266. </presentation>
  5267. </class>
  5268. <class id="Typology" _delta="define">
  5269. <parent>cmdbAbstractObject</parent>
  5270. <properties>
  5271. <category>bizmodel,searchable</category>
  5272. <abstract>true</abstract>
  5273. <key_type>autoincrement</key_type>
  5274. <db_table>typology</db_table>
  5275. <db_key_field>id</db_key_field>
  5276. <db_final_class_field>finalclass</db_final_class_field>
  5277. <naming>
  5278. <format>%1$s</format>
  5279. <attributes>
  5280. <attribute id="name"/>
  5281. </attributes>
  5282. </naming>
  5283. <display_template/>
  5284. <icon/>
  5285. <reconciliation>
  5286. <attributes>
  5287. <attribute id="name"/>
  5288. </attributes>
  5289. </reconciliation>
  5290. </properties>
  5291. <fields>
  5292. <field id="name" xsi:type="AttributeString">
  5293. <sql>name</sql>
  5294. <default_value/>
  5295. <is_null_allowed>false</is_null_allowed>
  5296. </field>
  5297. </fields>
  5298. <methods/>
  5299. <presentation>
  5300. <details>
  5301. <items>
  5302. <item id="name">
  5303. <rank>10</rank>
  5304. </item>
  5305. </items>
  5306. </details>
  5307. <search>
  5308. <items>
  5309. <item id="name">
  5310. <rank>10</rank>
  5311. </item>
  5312. </items>
  5313. </search>
  5314. <list>
  5315. <items>
  5316. <item id="finalclass">
  5317. <rank>10</rank>
  5318. </item>
  5319. </items>
  5320. </list>
  5321. </presentation>
  5322. </class>
  5323. <class id="OSVersion" _delta="define">
  5324. <parent>Typology</parent>
  5325. <properties>
  5326. <category>bizmodel,searchable</category>
  5327. <abstract>false</abstract>
  5328. <key_type>autoincrement</key_type>
  5329. <db_table>osversion</db_table>
  5330. <db_key_field>id</db_key_field>
  5331. <db_final_class_field/>
  5332. <naming>
  5333. <format>%1$s</format>
  5334. <attributes>
  5335. <attribute id="name"/>
  5336. </attributes>
  5337. </naming>
  5338. <display_template/>
  5339. <icon/>
  5340. <reconciliation>
  5341. <attributes>
  5342. <attribute id="name"/>
  5343. <attribute id="osfamily_id"/>
  5344. <attribute id="osfamily_name"/>
  5345. </attributes>
  5346. </reconciliation>
  5347. </properties>
  5348. <fields>
  5349. <field id="osfamily_id" xsi:type="AttributeExternalKey">
  5350. <sql>osfamily_id</sql>
  5351. <target_class>OSFamily</target_class>
  5352. <is_null_allowed>false</is_null_allowed>
  5353. <on_target_delete>DEL_MANUAL</on_target_delete>
  5354. </field>
  5355. <field id="osfamily_name" xsi:type="AttributeExternalField">
  5356. <extkey_attcode>osfamily_id</extkey_attcode>
  5357. <target_attcode>name</target_attcode>
  5358. </field>
  5359. </fields>
  5360. <methods/>
  5361. <presentation>
  5362. <details>
  5363. <items>
  5364. <item id="name">
  5365. <rank>10</rank>
  5366. </item>
  5367. <item id="osfamily_id">
  5368. <rank>20</rank>
  5369. </item>
  5370. </items>
  5371. </details>
  5372. <search>
  5373. <items>
  5374. <item id="name">
  5375. <rank>10</rank>
  5376. </item>
  5377. </items>
  5378. </search>
  5379. <list>
  5380. <items>
  5381. <item id="name">
  5382. <rank>10</rank>
  5383. </item>
  5384. <item id="osfamily_id">
  5385. <rank>20</rank>
  5386. </item>
  5387. </items>
  5388. </list>
  5389. </presentation>
  5390. </class>
  5391. <class id="OSFamily" _delta="define">
  5392. <parent>Typology</parent>
  5393. <properties>
  5394. <category>bizmodel,searchable</category>
  5395. <abstract>false</abstract>
  5396. <key_type>autoincrement</key_type>
  5397. <db_table>osfamily</db_table>
  5398. <db_key_field>id</db_key_field>
  5399. <db_final_class_field/>
  5400. <naming>
  5401. <format>%1$s</format>
  5402. <attributes>
  5403. <attribute id="name"/>
  5404. </attributes>
  5405. </naming>
  5406. <display_template/>
  5407. <icon/>
  5408. <reconciliation>
  5409. <attributes>
  5410. <attribute id="name"/>
  5411. </attributes>
  5412. </reconciliation>
  5413. </properties>
  5414. <fields/>
  5415. <methods/>
  5416. <presentation>
  5417. <details>
  5418. <items>
  5419. <item id="name">
  5420. <rank>10</rank>
  5421. </item>
  5422. </items>
  5423. </details>
  5424. <search>
  5425. <items>
  5426. <item id="name">
  5427. <rank>10</rank>
  5428. </item>
  5429. </items>
  5430. </search>
  5431. <list>
  5432. <items>
  5433. <item id="name">
  5434. <rank>10</rank>
  5435. </item>
  5436. </items>
  5437. </list>
  5438. </presentation>
  5439. </class>
  5440. <class id="DocumentType" _delta="define">
  5441. <parent>Typology</parent>
  5442. <properties>
  5443. <category>bizmodel,searchable</category>
  5444. <abstract>false</abstract>
  5445. <key_type>autoincrement</key_type>
  5446. <db_table>documenttype</db_table>
  5447. <db_key_field>id</db_key_field>
  5448. <db_final_class_field/>
  5449. <naming>
  5450. <format>%1$s</format>
  5451. <attributes>
  5452. <attribute id="name"/>
  5453. </attributes>
  5454. </naming>
  5455. <display_template/>
  5456. <icon/>
  5457. <reconciliation>
  5458. <attributes>
  5459. <attribute id="name"/>
  5460. </attributes>
  5461. </reconciliation>
  5462. </properties>
  5463. <fields/>
  5464. <methods/>
  5465. <presentation>
  5466. <details>
  5467. <items>
  5468. <item id="name">
  5469. <rank>10</rank>
  5470. </item>
  5471. </items>
  5472. </details>
  5473. <search>
  5474. <items>
  5475. <item id="name">
  5476. <rank>10</rank>
  5477. </item>
  5478. </items>
  5479. </search>
  5480. <list>
  5481. <items>
  5482. <item id="name">
  5483. <rank>10</rank>
  5484. </item>
  5485. </items>
  5486. </list>
  5487. </presentation>
  5488. </class>
  5489. <class id="ContactType" _delta="define">
  5490. <parent>Typology</parent>
  5491. <properties>
  5492. <category>bizmodel,searchable</category>
  5493. <abstract>false</abstract>
  5494. <key_type>autoincrement</key_type>
  5495. <db_table>contacttype</db_table>
  5496. <db_key_field>id</db_key_field>
  5497. <db_final_class_field/>
  5498. <naming>
  5499. <format>%1$s</format>
  5500. <attributes>
  5501. <attribute id="name"/>
  5502. </attributes>
  5503. </naming>
  5504. <display_template/>
  5505. <icon/>
  5506. <reconciliation>
  5507. <attributes>
  5508. <attribute id="name"/>
  5509. </attributes>
  5510. </reconciliation>
  5511. </properties>
  5512. <fields/>
  5513. <methods/>
  5514. <presentation>
  5515. <details>
  5516. <items>
  5517. <item id="name">
  5518. <rank>10</rank>
  5519. </item>
  5520. </items>
  5521. </details>
  5522. <search>
  5523. <items>
  5524. <item id="name">
  5525. <rank>10</rank>
  5526. </item>
  5527. </items>
  5528. </search>
  5529. <list>
  5530. <items>
  5531. <item id="name">
  5532. <rank>10</rank>
  5533. </item>
  5534. </items>
  5535. </list>
  5536. </presentation>
  5537. </class>
  5538. <class id="Brand" _delta="define">
  5539. <parent>Typology</parent>
  5540. <properties>
  5541. <category>bizmodel,searchable</category>
  5542. <abstract>false</abstract>
  5543. <key_type>autoincrement</key_type>
  5544. <db_table>brand</db_table>
  5545. <db_key_field>id</db_key_field>
  5546. <db_final_class_field/>
  5547. <naming>
  5548. <format>%1$s</format>
  5549. <attributes>
  5550. <attribute id="name"/>
  5551. </attributes>
  5552. </naming>
  5553. <display_template/>
  5554. <icon/>
  5555. <reconciliation>
  5556. <attributes>
  5557. <attribute id="name"/>
  5558. </attributes>
  5559. </reconciliation>
  5560. </properties>
  5561. <fields>
  5562. <field id="physicaldevices_list" xsi:type="AttributeLinkedSet">
  5563. <linked_class>PhysicalDevice</linked_class>
  5564. <ext_key_to_me>brand_id</ext_key_to_me>
  5565. <edit_mode>add_only</edit_mode>
  5566. <count_min>0</count_min>
  5567. <count_max>0</count_max>
  5568. <duplicates/>
  5569. </field>
  5570. </fields>
  5571. <methods/>
  5572. <presentation>
  5573. <details>
  5574. <items>
  5575. <item id="name">
  5576. <rank>10</rank>
  5577. </item>
  5578. <item id="physicaldevices_list">
  5579. <rank>20</rank>
  5580. </item>
  5581. </items>
  5582. </details>
  5583. <search>
  5584. <items>
  5585. <item id="name">
  5586. <rank>10</rank>
  5587. </item>
  5588. </items>
  5589. </search>
  5590. <list>
  5591. <items>
  5592. <item id="name">
  5593. <rank>10</rank>
  5594. </item>
  5595. </items>
  5596. </list>
  5597. </presentation>
  5598. </class>
  5599. <class id="Model" _delta="define">
  5600. <parent>Typology</parent>
  5601. <properties>
  5602. <category>bizmodel,searchable</category>
  5603. <abstract>false</abstract>
  5604. <key_type>autoincrement</key_type>
  5605. <db_table>model</db_table>
  5606. <db_key_field>id</db_key_field>
  5607. <db_final_class_field/>
  5608. <naming>
  5609. <format>%1$s</format>
  5610. <attributes>
  5611. <attribute id="name"/>
  5612. </attributes>
  5613. </naming>
  5614. <display_template/>
  5615. <icon/>
  5616. <reconciliation>
  5617. <attributes>
  5618. <attribute id="name"/>
  5619. <attribute id="brand_id"/>
  5620. <attribute id="brand_name"/>
  5621. <attribute id="type"/>
  5622. </attributes>
  5623. </reconciliation>
  5624. </properties>
  5625. <fields>
  5626. <field id="brand_id" xsi:type="AttributeExternalKey">
  5627. <sql>brand_id</sql>
  5628. <target_class>Brand</target_class>
  5629. <is_null_allowed>false</is_null_allowed>
  5630. <on_target_delete>DEL_MANUAL</on_target_delete>
  5631. </field>
  5632. <field id="brand_name" xsi:type="AttributeExternalField">
  5633. <extkey_attcode>brand_id</extkey_attcode>
  5634. <target_attcode>name</target_attcode>
  5635. </field>
  5636. <field id="type" xsi:type="AttributeEnum">
  5637. <values>
  5638. <value>NetworkDevice</value>
  5639. <value>Server</value>
  5640. <value>SANSwitch</value>
  5641. <value>StorageSystem</value>
  5642. <value>Rack</value>
  5643. <value>Enclosure</value>
  5644. <value>PC</value>
  5645. <value>Tablet</value>
  5646. <value>Telephone</value>
  5647. <value>MobilePhone</value>
  5648. <value>Printer</value>
  5649. <value>DiskArray</value>
  5650. <value>NAS</value>
  5651. <value>TapeLibrary</value>
  5652. <value>IPPhone</value>
  5653. <value>Peripheral</value>
  5654. <value>PowerSource</value>
  5655. <value>PDU</value>
  5656. </values>
  5657. <sql>type</sql>
  5658. <default_value/>
  5659. <is_null_allowed>false</is_null_allowed>
  5660. <display_style>list</display_style>
  5661. </field>
  5662. <field id="physicaldevices_list" xsi:type="AttributeLinkedSet">
  5663. <linked_class>PhysicalDevice</linked_class>
  5664. <ext_key_to_me>model_id</ext_key_to_me>
  5665. <edit_mode>add_only</edit_mode>
  5666. <count_min>0</count_min>
  5667. <count_max>0</count_max>
  5668. <duplicates/>
  5669. </field>
  5670. </fields>
  5671. <methods/>
  5672. <presentation>
  5673. <details>
  5674. <items>
  5675. <item id="name">
  5676. <rank>10</rank>
  5677. </item>
  5678. <item id="brand_id">
  5679. <rank>20</rank>
  5680. </item>
  5681. <item id="type">
  5682. <rank>30</rank>
  5683. </item>
  5684. <item id="physicaldevices_list">
  5685. <rank>40</rank>
  5686. </item>
  5687. </items>
  5688. </details>
  5689. <search>
  5690. <items>
  5691. <item id="name">
  5692. <rank>10</rank>
  5693. </item>
  5694. <item id="type">
  5695. <rank>20</rank>
  5696. </item>
  5697. </items>
  5698. </search>
  5699. <list>
  5700. <items>
  5701. <item id="name">
  5702. <rank>10</rank>
  5703. </item>
  5704. <item id="brand_id">
  5705. <rank>20</rank>
  5706. </item>
  5707. <item id="type">
  5708. <rank>30</rank>
  5709. </item>
  5710. </items>
  5711. </list>
  5712. </presentation>
  5713. </class>
  5714. <class id="NetworkDeviceType" _delta="define">
  5715. <parent>Typology</parent>
  5716. <properties>
  5717. <category>bizmodel,searchable</category>
  5718. <abstract>false</abstract>
  5719. <key_type>autoincrement</key_type>
  5720. <db_table>networkdevicetype</db_table>
  5721. <db_key_field>id</db_key_field>
  5722. <db_final_class_field/>
  5723. <naming>
  5724. <format>%1$s</format>
  5725. <attributes>
  5726. <attribute id="name"/>
  5727. </attributes>
  5728. </naming>
  5729. <display_template/>
  5730. <icon/>
  5731. <reconciliation>
  5732. <attributes>
  5733. <attribute id="name"/>
  5734. </attributes>
  5735. </reconciliation>
  5736. </properties>
  5737. <fields>
  5738. <field id="networkdevicesdevices_list" xsi:type="AttributeLinkedSet">
  5739. <linked_class>NetworkDevice</linked_class>
  5740. <ext_key_to_me>networkdevicetype_id</ext_key_to_me>
  5741. <edit_mode>add_only</edit_mode>
  5742. <count_min>0</count_min>
  5743. <count_max>0</count_max>
  5744. <duplicates/>
  5745. </field>
  5746. </fields>
  5747. <methods/>
  5748. <presentation>
  5749. <details>
  5750. <items>
  5751. <item id="name">
  5752. <rank>10</rank>
  5753. </item>
  5754. <item id="networkdevicesdevices_list">
  5755. <rank>20</rank>
  5756. </item>
  5757. </items>
  5758. </details>
  5759. <search>
  5760. <items>
  5761. <item id="name">
  5762. <rank>10</rank>
  5763. </item>
  5764. </items>
  5765. </search>
  5766. <list>
  5767. <items>
  5768. <item id="name">
  5769. <rank>10</rank>
  5770. </item>
  5771. </items>
  5772. </list>
  5773. </presentation>
  5774. </class>
  5775. <class id="IOSVersion" _delta="define">
  5776. <parent>Typology</parent>
  5777. <properties>
  5778. <category>bizmodel,searchable</category>
  5779. <abstract>false</abstract>
  5780. <key_type>autoincrement</key_type>
  5781. <db_table>iosversion</db_table>
  5782. <db_key_field>id</db_key_field>
  5783. <db_final_class_field/>
  5784. <naming>
  5785. <format>%1$s %2$s</format>
  5786. <attributes>
  5787. <attribute id="brand_name"/>
  5788. <attribute id="name"/>
  5789. </attributes>
  5790. </naming>
  5791. <display_template/>
  5792. <icon/>
  5793. <reconciliation>
  5794. <attributes>
  5795. <attribute id="name"/>
  5796. <attribute id="brand_id"/>
  5797. <attribute id="brand_name"/>
  5798. </attributes>
  5799. </reconciliation>
  5800. </properties>
  5801. <fields>
  5802. <field id="brand_id" xsi:type="AttributeExternalKey">
  5803. <sql>brand_id</sql>
  5804. <target_class>Brand</target_class>
  5805. <is_null_allowed>false</is_null_allowed>
  5806. <on_target_delete>DEL_MANUAL</on_target_delete>
  5807. </field>
  5808. <field id="brand_name" xsi:type="AttributeExternalField">
  5809. <extkey_attcode>brand_id</extkey_attcode>
  5810. <target_attcode>name</target_attcode>
  5811. </field>
  5812. </fields>
  5813. <methods/>
  5814. <presentation>
  5815. <details>
  5816. <items>
  5817. <item id="name">
  5818. <rank>10</rank>
  5819. </item>
  5820. <item id="brand_id">
  5821. <rank>20</rank>
  5822. </item>
  5823. </items>
  5824. </details>
  5825. <search>
  5826. <items>
  5827. <item id="name">
  5828. <rank>10</rank>
  5829. </item>
  5830. </items>
  5831. </search>
  5832. <list>
  5833. <items>
  5834. <item id="name">
  5835. <rank>10</rank>
  5836. </item>
  5837. <item id="brand_id">
  5838. <rank>20</rank>
  5839. </item>
  5840. </items>
  5841. </list>
  5842. </presentation>
  5843. </class>
  5844. <class id="lnkDocumentToPatch" _delta="define">
  5845. <parent>cmdbAbstractObject</parent>
  5846. <properties>
  5847. <is_link>1</is_link>
  5848. <category>bizmodel</category>
  5849. <abstract>false</abstract>
  5850. <key_type>autoincrement</key_type>
  5851. <db_table>lnkdocumenttopatch</db_table>
  5852. <db_key_field>id</db_key_field>
  5853. <db_final_class_field/>
  5854. <naming>
  5855. <format>%1$s %2$s</format>
  5856. <attributes>
  5857. <attribute id="patch_id"/>
  5858. <attribute id="document_id"/>
  5859. </attributes>
  5860. </naming>
  5861. <display_template/>
  5862. <icon/>
  5863. <reconciliation>
  5864. <attributes>
  5865. <attribute id="patch_id"/>
  5866. <attribute id="document_id"/>
  5867. </attributes>
  5868. </reconciliation>
  5869. </properties>
  5870. <fields>
  5871. <field id="patch_id" xsi:type="AttributeExternalKey">
  5872. <sql>patch_id</sql>
  5873. <target_class>Patch</target_class>
  5874. <is_null_allowed>false</is_null_allowed>
  5875. <on_target_delete>DEL_AUTO</on_target_delete>
  5876. </field>
  5877. <field id="patch_name" xsi:type="AttributeExternalField">
  5878. <extkey_attcode>patch_id</extkey_attcode>
  5879. <target_attcode>name</target_attcode>
  5880. </field>
  5881. <field id="document_id" xsi:type="AttributeExternalKey">
  5882. <sql>document_id</sql>
  5883. <target_class>Document</target_class>
  5884. <is_null_allowed>false</is_null_allowed>
  5885. <on_target_delete>DEL_AUTO</on_target_delete>
  5886. </field>
  5887. <field id="document_name" xsi:type="AttributeExternalField">
  5888. <extkey_attcode>document_id</extkey_attcode>
  5889. <target_attcode>name</target_attcode>
  5890. </field>
  5891. </fields>
  5892. <methods/>
  5893. <presentation>
  5894. <details>
  5895. <items>
  5896. <item id="patch_id">
  5897. <rank>10</rank>
  5898. </item>
  5899. <item id="document_id">
  5900. <rank>20</rank>
  5901. </item>
  5902. </items>
  5903. </details>
  5904. <search>
  5905. <items>
  5906. <item id="patch_id">
  5907. <rank>10</rank>
  5908. </item>
  5909. <item id="document_id">
  5910. <rank>20</rank>
  5911. </item>
  5912. </items>
  5913. </search>
  5914. <list>
  5915. <items>
  5916. <item id="patch_id">
  5917. <rank>10</rank>
  5918. </item>
  5919. <item id="document_id">
  5920. <rank>20</rank>
  5921. </item>
  5922. </items>
  5923. </list>
  5924. </presentation>
  5925. </class>
  5926. <class id="lnkSoftwareInstanceToSoftwarePatch" _delta="define">
  5927. <parent>cmdbAbstractObject</parent>
  5928. <properties>
  5929. <is_link>1</is_link>
  5930. <category>bizmodel</category>
  5931. <abstract>false</abstract>
  5932. <key_type>autoincrement</key_type>
  5933. <db_table>lnksoftwareinstancetosoftwarepatch</db_table>
  5934. <db_key_field>id</db_key_field>
  5935. <db_final_class_field/>
  5936. <naming>
  5937. <format>%1$s %2$s</format>
  5938. <attributes>
  5939. <attribute id="softwarepatch_id"/>
  5940. <attribute id="softwareinstance_id"/>
  5941. </attributes>
  5942. </naming>
  5943. <display_template/>
  5944. <icon/>
  5945. <reconciliation>
  5946. <attributes>
  5947. <attribute id="softwarepatch_id"/>
  5948. <attribute id="softwareinstance_id"/>
  5949. </attributes>
  5950. </reconciliation>
  5951. </properties>
  5952. <fields>
  5953. <field id="softwarepatch_id" xsi:type="AttributeExternalKey">
  5954. <sql>softwarepatch_id</sql>
  5955. <target_class>SoftwarePatch</target_class>
  5956. <is_null_allowed>false</is_null_allowed>
  5957. <on_target_delete>DEL_AUTO</on_target_delete>
  5958. </field>
  5959. <field id="softwarepatch_name" xsi:type="AttributeExternalField">
  5960. <extkey_attcode>softwarepatch_id</extkey_attcode>
  5961. <target_attcode>name</target_attcode>
  5962. </field>
  5963. <field id="softwareinstance_id" xsi:type="AttributeExternalKey">
  5964. <sql>softwareinstance_id</sql>
  5965. <target_class>SoftwareInstance</target_class>
  5966. <is_null_allowed>false</is_null_allowed>
  5967. <on_target_delete>DEL_AUTO</on_target_delete>
  5968. </field>
  5969. <field id="softwareinstance_name" xsi:type="AttributeExternalField">
  5970. <extkey_attcode>softwareinstance_id</extkey_attcode>
  5971. <target_attcode>name</target_attcode>
  5972. </field>
  5973. </fields>
  5974. <methods/>
  5975. <presentation>
  5976. <details>
  5977. <items>
  5978. <item id="softwarepatch_id">
  5979. <rank>10</rank>
  5980. </item>
  5981. <item id="softwareinstance_id">
  5982. <rank>20</rank>
  5983. </item>
  5984. </items>
  5985. </details>
  5986. <search>
  5987. <items>
  5988. <item id="softwarepatch_id">
  5989. <rank>10</rank>
  5990. </item>
  5991. <item id="softwareinstance_id">
  5992. <rank>20</rank>
  5993. </item>
  5994. </items>
  5995. </search>
  5996. <list>
  5997. <items>
  5998. <item id="softwarepatch_id">
  5999. <rank>10</rank>
  6000. </item>
  6001. <item id="softwareinstance_id">
  6002. <rank>20</rank>
  6003. </item>
  6004. </items>
  6005. </list>
  6006. </presentation>
  6007. </class>
  6008. <class id="lnkFunctionalCIToOSPatch" _delta="define">
  6009. <parent>cmdbAbstractObject</parent>
  6010. <properties>
  6011. <is_link>1</is_link>
  6012. <category>bizmodel</category>
  6013. <abstract>false</abstract>
  6014. <key_type>autoincrement</key_type>
  6015. <db_table>lnkfunctionalcitoospatch</db_table>
  6016. <db_key_field>id</db_key_field>
  6017. <db_final_class_field/>
  6018. <naming>
  6019. <format>%1$s %2$s</format>
  6020. <attributes>
  6021. <attribute id="ospatch_id"/>
  6022. <attribute id="functionalci_id"/>
  6023. </attributes>
  6024. </naming>
  6025. <display_template/>
  6026. <icon/>
  6027. <reconciliation>
  6028. <attributes>
  6029. <attribute id="ospatch_id"/>
  6030. <attribute id="functionalci_id"/>
  6031. </attributes>
  6032. </reconciliation>
  6033. </properties>
  6034. <fields>
  6035. <field id="ospatch_id" xsi:type="AttributeExternalKey">
  6036. <sql>ospatch_id</sql>
  6037. <target_class>OSPatch</target_class>
  6038. <is_null_allowed>false</is_null_allowed>
  6039. <on_target_delete>DEL_AUTO</on_target_delete>
  6040. </field>
  6041. <field id="ospatch_name" xsi:type="AttributeExternalField">
  6042. <extkey_attcode>ospatch_id</extkey_attcode>
  6043. <target_attcode>name</target_attcode>
  6044. </field>
  6045. <field id="functionalci_id" xsi:type="AttributeExternalKey">
  6046. <sql>functionalci_id</sql>
  6047. <target_class>FunctionalCI</target_class>
  6048. <is_null_allowed>false</is_null_allowed>
  6049. <on_target_delete>DEL_AUTO</on_target_delete>
  6050. </field>
  6051. <field id="functionalci_name" xsi:type="AttributeExternalField">
  6052. <extkey_attcode>functionalci_id</extkey_attcode>
  6053. <target_attcode>name</target_attcode>
  6054. </field>
  6055. </fields>
  6056. <methods/>
  6057. <presentation>
  6058. <details>
  6059. <items>
  6060. <item id="ospatch_id">
  6061. <rank>10</rank>
  6062. </item>
  6063. <item id="functionalci_id">
  6064. <rank>20</rank>
  6065. </item>
  6066. </items>
  6067. </details>
  6068. <search>
  6069. <items>
  6070. <item id="ospatch_id">
  6071. <rank>10</rank>
  6072. </item>
  6073. <item id="functionalci_id">
  6074. <rank>20</rank>
  6075. </item>
  6076. </items>
  6077. </search>
  6078. <list>
  6079. <items>
  6080. <item id="ospatch_id">
  6081. <rank>10</rank>
  6082. </item>
  6083. <item id="functionalci_id">
  6084. <rank>20</rank>
  6085. </item>
  6086. </items>
  6087. </list>
  6088. </presentation>
  6089. </class>
  6090. <class id="lnkDocumentToSoftware" _delta="define">
  6091. <parent>cmdbAbstractObject</parent>
  6092. <properties>
  6093. <is_link>1</is_link>
  6094. <category>bizmodel</category>
  6095. <abstract>false</abstract>
  6096. <key_type>autoincrement</key_type>
  6097. <db_table>lnkdocumenttosoftware</db_table>
  6098. <db_key_field>id</db_key_field>
  6099. <db_final_class_field/>
  6100. <naming>
  6101. <format>%1$s %2$s</format>
  6102. <attributes>
  6103. <attribute id="software_id"/>
  6104. <attribute id="document_id"/>
  6105. </attributes>
  6106. </naming>
  6107. <display_template/>
  6108. <icon/>
  6109. <reconciliation>
  6110. <attributes>
  6111. <attribute id="software_id"/>
  6112. <attribute id="document_id"/>
  6113. </attributes>
  6114. </reconciliation>
  6115. </properties>
  6116. <fields>
  6117. <field id="software_id" xsi:type="AttributeExternalKey">
  6118. <sql>software_id</sql>
  6119. <target_class>Software</target_class>
  6120. <is_null_allowed>false</is_null_allowed>
  6121. <on_target_delete>DEL_AUTO</on_target_delete>
  6122. </field>
  6123. <field id="software_name" xsi:type="AttributeExternalField">
  6124. <extkey_attcode>software_id</extkey_attcode>
  6125. <target_attcode>name</target_attcode>
  6126. </field>
  6127. <field id="document_id" xsi:type="AttributeExternalKey">
  6128. <sql>document_id</sql>
  6129. <target_class>Document</target_class>
  6130. <is_null_allowed>false</is_null_allowed>
  6131. <on_target_delete>DEL_AUTO</on_target_delete>
  6132. </field>
  6133. <field id="document_name" xsi:type="AttributeExternalField">
  6134. <extkey_attcode>document_id</extkey_attcode>
  6135. <target_attcode>name</target_attcode>
  6136. </field>
  6137. </fields>
  6138. <methods/>
  6139. <presentation>
  6140. <details>
  6141. <items>
  6142. <item id="software_id">
  6143. <rank>10</rank>
  6144. </item>
  6145. <item id="document_id">
  6146. <rank>20</rank>
  6147. </item>
  6148. </items>
  6149. </details>
  6150. <search>
  6151. <items>
  6152. <item id="software_id">
  6153. <rank>10</rank>
  6154. </item>
  6155. <item id="document_id">
  6156. <rank>20</rank>
  6157. </item>
  6158. </items>
  6159. </search>
  6160. <list>
  6161. <items>
  6162. <item id="software_id">
  6163. <rank>10</rank>
  6164. </item>
  6165. <item id="document_id">
  6166. <rank>20</rank>
  6167. </item>
  6168. </items>
  6169. </list>
  6170. </presentation>
  6171. </class>
  6172. <class id="lnkContactToFunctionalCI" _delta="define">
  6173. <parent>cmdbAbstractObject</parent>
  6174. <properties>
  6175. <is_link>1</is_link>
  6176. <category>bizmodel</category>
  6177. <abstract>false</abstract>
  6178. <key_type>autoincrement</key_type>
  6179. <db_table>lnkcontacttofunctionalci</db_table>
  6180. <db_key_field>id</db_key_field>
  6181. <db_final_class_field/>
  6182. <naming>
  6183. <format>%1$s %2$s</format>
  6184. <attributes>
  6185. <attribute id="functionalci_id"/>
  6186. <attribute id="contact_id"/>
  6187. </attributes>
  6188. </naming>
  6189. <display_template/>
  6190. <icon/>
  6191. <reconciliation>
  6192. <attributes>
  6193. <attribute id="functionalci_id"/>
  6194. <attribute id="contact_id"/>
  6195. </attributes>
  6196. </reconciliation>
  6197. </properties>
  6198. <fields>
  6199. <field id="functionalci_id" xsi:type="AttributeExternalKey">
  6200. <sql>functionalci_id</sql>
  6201. <target_class>FunctionalCI</target_class>
  6202. <is_null_allowed>false</is_null_allowed>
  6203. <on_target_delete>DEL_AUTO</on_target_delete>
  6204. </field>
  6205. <field id="functionalci_name" xsi:type="AttributeExternalField">
  6206. <extkey_attcode>functionalci_id</extkey_attcode>
  6207. <target_attcode>name</target_attcode>
  6208. </field>
  6209. <field id="contact_id" xsi:type="AttributeExternalKey">
  6210. <sql>contact_id</sql>
  6211. <target_class>Contact</target_class>
  6212. <is_null_allowed>false</is_null_allowed>
  6213. <on_target_delete>DEL_AUTO</on_target_delete>
  6214. </field>
  6215. <field id="contact_name" xsi:type="AttributeExternalField">
  6216. <extkey_attcode>contact_id</extkey_attcode>
  6217. <target_attcode>name</target_attcode>
  6218. </field>
  6219. </fields>
  6220. <methods/>
  6221. <presentation>
  6222. <details>
  6223. <items>
  6224. <item id="functionalci_id">
  6225. <rank>10</rank>
  6226. </item>
  6227. <item id="contact_id">
  6228. <rank>20</rank>
  6229. </item>
  6230. </items>
  6231. </details>
  6232. <search>
  6233. <items>
  6234. <item id="functionalci_id">
  6235. <rank>10</rank>
  6236. </item>
  6237. <item id="contact_id">
  6238. <rank>20</rank>
  6239. </item>
  6240. </items>
  6241. </search>
  6242. <list>
  6243. <items>
  6244. <item id="functionalci_id">
  6245. <rank>10</rank>
  6246. </item>
  6247. <item id="contact_id">
  6248. <rank>20</rank>
  6249. </item>
  6250. </items>
  6251. </list>
  6252. </presentation>
  6253. </class>
  6254. <class id="lnkDocumentToFunctionalCI" _delta="define">
  6255. <parent>cmdbAbstractObject</parent>
  6256. <properties>
  6257. <is_link>1</is_link>
  6258. <category>bizmodel</category>
  6259. <abstract>false</abstract>
  6260. <key_type>autoincrement</key_type>
  6261. <db_table>lnkdocumenttofunctionalci</db_table>
  6262. <db_key_field>id</db_key_field>
  6263. <db_final_class_field/>
  6264. <naming>
  6265. <format>%1$s %2$s</format>
  6266. <attributes>
  6267. <attribute id="functionalci_id"/>
  6268. <attribute id="document_id"/>
  6269. </attributes>
  6270. </naming>
  6271. <display_template/>
  6272. <icon/>
  6273. <reconciliation>
  6274. <attributes>
  6275. <attribute id="functionalci_id"/>
  6276. <attribute id="document_id"/>
  6277. </attributes>
  6278. </reconciliation>
  6279. </properties>
  6280. <fields>
  6281. <field id="functionalci_id" xsi:type="AttributeExternalKey">
  6282. <sql>functionalci_id</sql>
  6283. <target_class>FunctionalCI</target_class>
  6284. <is_null_allowed>false</is_null_allowed>
  6285. <on_target_delete>DEL_AUTO</on_target_delete>
  6286. </field>
  6287. <field id="functionalci_name" xsi:type="AttributeExternalField">
  6288. <extkey_attcode>functionalci_id</extkey_attcode>
  6289. <target_attcode>name</target_attcode>
  6290. </field>
  6291. <field id="document_id" xsi:type="AttributeExternalKey">
  6292. <sql>document_id</sql>
  6293. <target_class>Document</target_class>
  6294. <is_null_allowed>false</is_null_allowed>
  6295. <on_target_delete>DEL_AUTO</on_target_delete>
  6296. </field>
  6297. <field id="document_name" xsi:type="AttributeExternalField">
  6298. <extkey_attcode>document_id</extkey_attcode>
  6299. <target_attcode>name</target_attcode>
  6300. </field>
  6301. </fields>
  6302. <methods/>
  6303. <presentation>
  6304. <details>
  6305. <items>
  6306. <item id="functionalci_id">
  6307. <rank>10</rank>
  6308. </item>
  6309. <item id="document_id">
  6310. <rank>20</rank>
  6311. </item>
  6312. </items>
  6313. </details>
  6314. <search>
  6315. <items>
  6316. <item id="functionalci_id">
  6317. <rank>10</rank>
  6318. </item>
  6319. <item id="document_id">
  6320. <rank>20</rank>
  6321. </item>
  6322. </items>
  6323. </search>
  6324. <list>
  6325. <items>
  6326. <item id="functionalci_id">
  6327. <rank>10</rank>
  6328. </item>
  6329. <item id="document_id">
  6330. <rank>20</rank>
  6331. </item>
  6332. </items>
  6333. </list>
  6334. </presentation>
  6335. </class>
  6336. <class id="Subnet" _delta="define">
  6337. <parent>cmdbAbstractObject</parent>
  6338. <properties>
  6339. <category>bizmodel,searchable,configmgmt</category>
  6340. <abstract>false</abstract>
  6341. <key_type>autoincrement</key_type>
  6342. <db_table>subnet</db_table>
  6343. <db_key_field>id</db_key_field>
  6344. <db_final_class_field/>
  6345. <naming>
  6346. <format>%1$s %2$s</format>
  6347. <attributes>
  6348. <attribute id="ip"/>
  6349. <attribute id="ip_mask"/>
  6350. </attributes>
  6351. </naming>
  6352. <display_template/>
  6353. <icon>images/subnet.png</icon>
  6354. <reconciliation>
  6355. <attributes>
  6356. <attribute id="ip"/>
  6357. <attribute id="ip_mask"/>
  6358. <attribute id="org_id"/>
  6359. <attribute id="org_name"/>
  6360. </attributes>
  6361. </reconciliation>
  6362. </properties>
  6363. <fields>
  6364. <field id="description" xsi:type="AttributeText">
  6365. <sql>description</sql>
  6366. <default_value/>
  6367. <is_null_allowed>true</is_null_allowed>
  6368. </field>
  6369. <field id="org_id" xsi:type="AttributeExternalKey">
  6370. <sql>org_id</sql>
  6371. <target_class>Organization</target_class>
  6372. <is_null_allowed>false</is_null_allowed>
  6373. <on_target_delete>DEL_MANUAL</on_target_delete>
  6374. </field>
  6375. <field id="org_name" xsi:type="AttributeExternalField">
  6376. <extkey_attcode>org_id</extkey_attcode>
  6377. <target_attcode>name</target_attcode>
  6378. </field>
  6379. <field id="ip" xsi:type="AttributeIPAddress">
  6380. <sql>ip</sql>
  6381. <default_value/>
  6382. <is_null_allowed>false</is_null_allowed>
  6383. </field>
  6384. <field id="ip_mask" xsi:type="AttributeIPAddress">
  6385. <sql>ip_mask</sql>
  6386. <default_value/>
  6387. <is_null_allowed>false</is_null_allowed>
  6388. </field>
  6389. </fields>
  6390. <methods>
  6391. <method id="DisplayBareRelations">
  6392. <static>false</static>
  6393. <access>public</access>
  6394. <type>Overload-cmdbAbstractObject</type>
  6395. <code><![CDATA[ function DisplayBareRelations(WebPage $oPage, $bEditMode = false)
  6396. {
  6397. parent::DisplayBareRelations($oPage, $bEditMode);
  6398. if (!$bEditMode)
  6399. {
  6400. $oPage->SetCurrentTab(Dict::S('Class:Subnet/Tab:IPUsage'));
  6401. $bit_ip = ip2long($this->Get('ip'));
  6402. $bit_mask = ip2long($this->Get('ip_mask'));
  6403. $iIPMin = sprintf('%u', ($bit_ip & $bit_mask) | 1); // exclude the first one: identifies the subnet itself
  6404. $iIPMax = sprintf('%u', (($bit_ip | (~$bit_mask))) & 0xfffffffe); // exclude the last one : broadcast address
  6405. $sIPMin = long2ip($iIPMin);
  6406. $sIPMax = long2ip($iIPMax);
  6407. $oPage->p(Dict::Format('Class:Subnet/Tab:IPUsage-explain', $sIPMin, $sIPMax));
  6408. $oIfFilter = DBObjectSearch::FromOQL("SELECT IPInterface AS if WHERE INET_ATON(if.ipaddress) >= INET_ATON('$sIPMin') AND INET_ATON(if.ipaddress) <= INET_ATON('$sIPMax')");
  6409. $oIfSet = new CMDBObjectSet($oIfFilter);
  6410. $oBlock = new DisplayBlock($oIfFilter, 'list', false);
  6411. $oBlock->Display($oPage, 'nwif', array('menu' => false));
  6412. $iCountUsed = $oIfSet->Count();
  6413. $iCountRange = $iIPMax - $iIPMin; // On 32-bit systems the substraction will be computed using floats for values greater than PHP_MAX_INT;
  6414. $iFreeCount = $iCountRange - $iCountUsed;
  6415. $oPage->SetCurrentTab(Dict::S('Class:Subnet/Tab:FreeIPs'));
  6416. $oPage->p(Dict::Format('Class:Subnet/Tab:FreeIPs-count', $iFreeCount));
  6417. $oPage->p(Dict::S('Class:Subnet/Tab:FreeIPs-explain'));
  6418. $aUsedIPs = $oIfSet->GetColumnAsArray('ipaddress', false);
  6419. $iAnIP = $iIPMin;
  6420. $iFound = 0;
  6421. while (($iFound < min($iFreeCount, 10)) && ($iAnIP <= $iIPMax))
  6422. {
  6423. $sAnIP = long2ip($iAnIP);
  6424. if (!in_array($sAnIP, $aUsedIPs))
  6425. {
  6426. $iFound++;
  6427. $oPage->p($sAnIP);
  6428. }
  6429. else
  6430. {
  6431. }
  6432. $iAnIP++;
  6433. }
  6434. }
  6435. }]]></code>
  6436. </method>
  6437. </methods>
  6438. <presentation>
  6439. <details>
  6440. <items>
  6441. <item id="ip">
  6442. <rank>10</rank>
  6443. </item>
  6444. <item id="ip_mask">
  6445. <rank>20</rank>
  6446. </item>
  6447. <item id="org_id">
  6448. <rank>30</rank>
  6449. </item>
  6450. <item id="description">
  6451. <rank>40</rank>
  6452. </item>
  6453. </items>
  6454. </details>
  6455. <search>
  6456. <items>
  6457. <item id="ip">
  6458. <rank>10</rank>
  6459. </item>
  6460. <item id="ip_mask">
  6461. <rank>20</rank>
  6462. </item>
  6463. <item id="org_id">
  6464. <rank>30</rank>
  6465. </item>
  6466. <item id="description">
  6467. <rank>40</rank>
  6468. </item>
  6469. </items>
  6470. </search>
  6471. <list>
  6472. <items>
  6473. <item id="ip">
  6474. <rank>10</rank>
  6475. </item>
  6476. <item id="ip_mask">
  6477. <rank>20</rank>
  6478. </item>
  6479. <item id="org_id">
  6480. <rank>30</rank>
  6481. </item>
  6482. <item id="description">
  6483. <rank>40</rank>
  6484. </item>
  6485. </items>
  6486. </list>
  6487. </presentation>
  6488. </class>
  6489. <class id="NetworkInterface" _delta="define">
  6490. <parent>cmdbAbstractObject</parent>
  6491. <properties>
  6492. <category>bizmodel,searchable</category>
  6493. <abstract>true</abstract>
  6494. <key_type>autoincrement</key_type>
  6495. <db_table>networkinterface</db_table>
  6496. <db_key_field>id</db_key_field>
  6497. <db_final_class_field>finalclass</db_final_class_field>
  6498. <naming>
  6499. <format>%1$s</format>
  6500. <attributes>
  6501. <attribute id="name"/>
  6502. </attributes>
  6503. </naming>
  6504. <display_template/>
  6505. <icon>images/interface.png</icon>
  6506. <reconciliation>
  6507. <attributes>
  6508. <attribute id="name"/>
  6509. </attributes>
  6510. </reconciliation>
  6511. </properties>
  6512. <fields>
  6513. <field id="name" xsi:type="AttributeString">
  6514. <sql>name</sql>
  6515. <default_value/>
  6516. <is_null_allowed>false</is_null_allowed>
  6517. </field>
  6518. </fields>
  6519. <methods/>
  6520. <presentation>
  6521. <details>
  6522. <items>
  6523. <item id="name">
  6524. <rank>10</rank>
  6525. </item>
  6526. </items>
  6527. </details>
  6528. <search>
  6529. <items>
  6530. <item id="name">
  6531. <rank>10</rank>
  6532. </item>
  6533. </items>
  6534. </search>
  6535. <list>
  6536. <items>
  6537. <item id="name">
  6538. <rank>10</rank>
  6539. </item>
  6540. </items>
  6541. </list>
  6542. </presentation>
  6543. </class>
  6544. <class id="IPInterface" _delta="define">
  6545. <parent>NetworkInterface</parent>
  6546. <properties>
  6547. <category>bizmodel,searchable</category>
  6548. <abstract>true</abstract>
  6549. <key_type>autoincrement</key_type>
  6550. <db_table>ipinterface</db_table>
  6551. <db_key_field>id</db_key_field>
  6552. <db_final_class_field/>
  6553. <naming>
  6554. <format>%1$s</format>
  6555. <attributes>
  6556. <attribute id="name"/>
  6557. </attributes>
  6558. </naming>
  6559. <display_template/>
  6560. <icon>images/interface.png</icon>
  6561. <reconciliation>
  6562. <attributes>
  6563. <attribute id="name"/>
  6564. </attributes>
  6565. </reconciliation>
  6566. </properties>
  6567. <fields>
  6568. <field id="ipaddress" xsi:type="AttributeIPAddress">
  6569. <sql>ipaddress</sql>
  6570. <default_value/>
  6571. <is_null_allowed>true</is_null_allowed>
  6572. </field>
  6573. <field id="macaddress" xsi:type="AttributeString">
  6574. <sql>macaddress</sql>
  6575. <default_value/>
  6576. <is_null_allowed>true</is_null_allowed>
  6577. </field>
  6578. <field id="comment" xsi:type="AttributeText">
  6579. <sql>comment</sql>
  6580. <default_value/>
  6581. <is_null_allowed>true</is_null_allowed>
  6582. </field>
  6583. <field id="ipgateway" xsi:type="AttributeIPAddress">
  6584. <sql>ipgateway</sql>
  6585. <default_value/>
  6586. <is_null_allowed>true</is_null_allowed>
  6587. </field>
  6588. <field id="ipmask" xsi:type="AttributeIPAddress">
  6589. <sql>ipmask</sql>
  6590. <default_value/>
  6591. <is_null_allowed>true</is_null_allowed>
  6592. </field>
  6593. <field id="speed" xsi:type="AttributeDecimal">
  6594. <sql>speed</sql>
  6595. <default_value/>
  6596. <is_null_allowed>true</is_null_allowed>
  6597. <digits>6</digits>
  6598. <decimals>2</decimals>
  6599. </field>
  6600. </fields>
  6601. <methods/>
  6602. <presentation>
  6603. <details>
  6604. <items>
  6605. <item id="name">
  6606. <rank>10</rank>
  6607. </item>
  6608. <item id="ipaddress">
  6609. <rank>20</rank>
  6610. </item>
  6611. <item id="macaddress">
  6612. <rank>30</rank>
  6613. </item>
  6614. <item id="comment">
  6615. <rank>40</rank>
  6616. </item>
  6617. <item id="ipgateway">
  6618. <rank>50</rank>
  6619. </item>
  6620. <item id="ipmask">
  6621. <rank>60</rank>
  6622. </item>
  6623. <item id="speed">
  6624. <rank>70</rank>
  6625. </item>
  6626. </items>
  6627. </details>
  6628. <search>
  6629. <items>
  6630. <item id="name">
  6631. <rank>10</rank>
  6632. </item>
  6633. <item id="ipaddress">
  6634. <rank>20</rank>
  6635. </item>
  6636. <item id="macaddress">
  6637. <rank>30</rank>
  6638. </item>
  6639. <item id="ipgateway">
  6640. <rank>40</rank>
  6641. </item>
  6642. <item id="ipmask">
  6643. <rank>50</rank>
  6644. </item>
  6645. </items>
  6646. </search>
  6647. <list>
  6648. <items>
  6649. <item id="name">
  6650. <rank>10</rank>
  6651. </item>
  6652. <item id="ipaddress">
  6653. <rank>20</rank>
  6654. </item>
  6655. <item id="macaddress">
  6656. <rank>30</rank>
  6657. </item>
  6658. <item id="comment">
  6659. <rank>40</rank>
  6660. </item>
  6661. <item id="ipgateway">
  6662. <rank>50</rank>
  6663. </item>
  6664. <item id="ipmask">
  6665. <rank>60</rank>
  6666. </item>
  6667. <item id="speed">
  6668. <rank>70</rank>
  6669. </item>
  6670. </items>
  6671. </list>
  6672. </presentation>
  6673. </class>
  6674. <class id="PhysicalInterface" _delta="define">
  6675. <parent>IPInterface</parent>
  6676. <properties>
  6677. <category>bizmodel,searchable</category>
  6678. <abstract>false</abstract>
  6679. <key_type>autoincrement</key_type>
  6680. <db_table>physicalinterface</db_table>
  6681. <db_key_field>id</db_key_field>
  6682. <db_final_class_field/>
  6683. <naming>
  6684. <format>%1$s %2$s</format>
  6685. <attributes>
  6686. <attribute id="name"/>
  6687. <attribute id="connectableci_name"/>
  6688. </attributes>
  6689. </naming>
  6690. <display_template/>
  6691. <icon>images/interface.png</icon>
  6692. <reconciliation>
  6693. <attributes>
  6694. <attribute id="name"/>
  6695. <attribute id="connectableci_id"/>
  6696. <attribute id="connectableci_name"/>
  6697. </attributes>
  6698. </reconciliation>
  6699. </properties>
  6700. <fields>
  6701. <field id="connectableci_id" xsi:type="AttributeExternalKey">
  6702. <sql>connectableci_id</sql>
  6703. <target_class>ConnectableCI</target_class>
  6704. <is_null_allowed>false</is_null_allowed>
  6705. <on_target_delete>DEL_AUTO</on_target_delete>
  6706. </field>
  6707. <field id="connectableci_name" xsi:type="AttributeExternalField">
  6708. <extkey_attcode>connectableci_id</extkey_attcode>
  6709. <target_attcode>name</target_attcode>
  6710. </field>
  6711. </fields>
  6712. <methods/>
  6713. <presentation>
  6714. <details>
  6715. <items>
  6716. <item id="name">
  6717. <rank>10</rank>
  6718. </item>
  6719. <item id="connectableci_id">
  6720. <rank>20</rank>
  6721. </item>
  6722. <item id="ipaddress">
  6723. <rank>30</rank>
  6724. </item>
  6725. <item id="macaddress">
  6726. <rank>40</rank>
  6727. </item>
  6728. <item id="comment">
  6729. <rank>50</rank>
  6730. </item>
  6731. <item id="ipgateway">
  6732. <rank>60</rank>
  6733. </item>
  6734. <item id="ipmask">
  6735. <rank>70</rank>
  6736. </item>
  6737. <item id="speed">
  6738. <rank>80</rank>
  6739. </item>
  6740. </items>
  6741. </details>
  6742. <search>
  6743. <items>
  6744. <item id="ipaddress">
  6745. <rank>10</rank>
  6746. </item>
  6747. <item id="macaddress">
  6748. <rank>20</rank>
  6749. </item>
  6750. <item id="ipgateway">
  6751. <rank>30</rank>
  6752. </item>
  6753. <item id="ipmask">
  6754. <rank>40</rank>
  6755. </item>
  6756. </items>
  6757. </search>
  6758. <list>
  6759. <items>
  6760. <item id="ipaddress">
  6761. <rank>10</rank>
  6762. </item>
  6763. <item id="macaddress">
  6764. <rank>20</rank>
  6765. </item>
  6766. <item id="comment">
  6767. <rank>30</rank>
  6768. </item>
  6769. <item id="ipgateway">
  6770. <rank>40</rank>
  6771. </item>
  6772. <item id="ipmask">
  6773. <rank>50</rank>
  6774. </item>
  6775. <item id="speed">
  6776. <rank>60</rank>
  6777. </item>
  6778. </items>
  6779. </list>
  6780. </presentation>
  6781. </class>
  6782. <class id="lnkConnectableCIToNetworkDevice" _delta="define">
  6783. <parent>cmdbAbstractObject</parent>
  6784. <properties>
  6785. <is_link>1</is_link>
  6786. <category>bizmodel</category>
  6787. <abstract>false</abstract>
  6788. <key_type>autoincrement</key_type>
  6789. <db_table>lnkconnectablecitonetworkdevice</db_table>
  6790. <db_key_field>id</db_key_field>
  6791. <db_final_class_field/>
  6792. <naming>
  6793. <format>%1$s %2$s</format>
  6794. <attributes>
  6795. <attribute id="networkdevice_id"/>
  6796. <attribute id="connectableci_id"/>
  6797. </attributes>
  6798. </naming>
  6799. <display_template/>
  6800. <icon/>
  6801. <reconciliation>
  6802. <attributes>
  6803. <attribute id="networkdevice_id"/>
  6804. <attribute id="connectableci_id"/>
  6805. </attributes>
  6806. </reconciliation>
  6807. </properties>
  6808. <fields>
  6809. <field id="networkdevice_id" xsi:type="AttributeExternalKey">
  6810. <sql>networkdevice_id</sql>
  6811. <target_class>NetworkDevice</target_class>
  6812. <is_null_allowed>false</is_null_allowed>
  6813. <on_target_delete>DEL_AUTO</on_target_delete>
  6814. </field>
  6815. <field id="networkdevice_name" xsi:type="AttributeExternalField">
  6816. <extkey_attcode>networkdevice_id</extkey_attcode>
  6817. <target_attcode>name</target_attcode>
  6818. </field>
  6819. <field id="connectableci_id" xsi:type="AttributeExternalKey">
  6820. <sql>connectableci_id</sql>
  6821. <target_class>ConnectableCI</target_class>
  6822. <is_null_allowed>false</is_null_allowed>
  6823. <on_target_delete>DEL_AUTO</on_target_delete>
  6824. </field>
  6825. <field id="connectableci_name" xsi:type="AttributeExternalField">
  6826. <extkey_attcode>connectableci_id</extkey_attcode>
  6827. <target_attcode>name</target_attcode>
  6828. </field>
  6829. <field id="network_port" xsi:type="AttributeString">
  6830. <sql>network_port</sql>
  6831. <default_value/>
  6832. <is_null_allowed>true</is_null_allowed>
  6833. </field>
  6834. <field id="device_port" xsi:type="AttributeString">
  6835. <sql>device_port</sql>
  6836. <default_value/>
  6837. <is_null_allowed>true</is_null_allowed>
  6838. </field>
  6839. <field id="connection_type" xsi:type="AttributeEnum">
  6840. <values>
  6841. <value>uplink</value>
  6842. <value>downlink</value>
  6843. </values>
  6844. <sql>type</sql>
  6845. <default_value>downlink</default_value>
  6846. <is_null_allowed>false</is_null_allowed>
  6847. <display_style>list</display_style>
  6848. </field>
  6849. </fields>
  6850. <methods>
  6851. <method id="AddConnectedNetworkDevice">
  6852. <static>false</static>
  6853. <access>protected</access>
  6854. <type>Overload-cmdbAbstractObject</type>
  6855. <code><![CDATA[ protected function AddConnectedNetworkDevice()
  6856. {
  6857. $iNetworkDeviceID = $this->Get('networkdevice_id');
  6858. $iDeviceID = $this->Get('connectableci_id');
  6859. $oDevice = MetaModel::GetObject('ConnectableCI', $this->Get('connectableci_id'));
  6860. $sOQL = "SELECT lnkConnectableCIToNetworkDevice WHERE connectableci_id = :device AND networkdevice_id = :network AND network_port = :nwport AND device_port = :devport";
  6861. $oConnectionSet = new DBObjectSet(DBObjectSearch::FromOQL($sOQL),
  6862. array(),
  6863. array(
  6864. 'network' => $this->Get('connectableci_id'),
  6865. 'device' => $this->Get('networkdevice_id'),
  6866. 'devport' => $this->Get('network_port'),
  6867. 'nwport' => $this->Get('device_port'),
  6868. )
  6869. );
  6870. $iAlreadyExist = $oConnectionSet->count();
  6871. if ((get_class($oDevice) == 'NetworkDevice') && ($iAlreadyExist == 0))
  6872. {
  6873. $sLink = $this->Get('connection_type');
  6874. $sConnLink = ($sLink == 'uplink') ? 'downlink' : 'uplink';
  6875. $oNewLink = new lnkConnectableCIToNetworkDevice();
  6876. $oNewLink->Set('networkdevice_id', $this->Get('connectableci_id'));
  6877. $oNewLink->Set('connectableci_id', $this->Get('networkdevice_id'));
  6878. $oNewLink->Set('network_port', $this->Get('device_port'));
  6879. $oNewLink->Set('device_port', $this->Get('network_port'));
  6880. $oNewLink->Set('connection_type', $sConnLink);
  6881. $oMyChange = MetaModel::NewObject("CMDBChange");
  6882. $oMyChange->Set("date", time());
  6883. if (UserRights::IsImpersonated())
  6884. {
  6885. $sUserString = Dict::Format('UI:Archive_User_OnBehalfOf_User', UserRights::GetRealUser(), UserRights::GetUser());
  6886. }
  6887. else
  6888. {
  6889. $sUserString = UserRights::GetUser();
  6890. }
  6891. $oMyChange->Set("userinfo", $sUserString);
  6892. $iChangeId = $oMyChange->DBInsert();
  6893. $oNewLink->DBInsertTracked($oMyChange);
  6894. }
  6895. }]]></code>
  6896. </method>
  6897. <method id="UpdateConnectedNetworkDevice">
  6898. <static>false</static>
  6899. <access>protected</access>
  6900. <type>Overload-cmdbAbstractObject</type>
  6901. <code><![CDATA[ protected function UpdateConnectedNetworkDevice()
  6902. {
  6903. $iNetworkDeviceID = $this->Get('networkdevice_id');
  6904. $iDeviceID = $this->Get('connectableci_id');
  6905. $oDevice = MetaModel::GetObject('ConnectableCI', $this->Get('connectableci_id'));
  6906. $sOQL = "SELECT lnkConnectableCIToNetworkDevice WHERE connectableci_id = :device AND networkdevice_id = :network AND network_port = :nwport AND device_port = :devport";
  6907. $oConnectionSet = new DBObjectSet(DBObjectSearch::FromOQL($sOQL),
  6908. array(),
  6909. array(
  6910. 'network' => $this->Get('connectableci_id'),
  6911. 'device' => $this->Get('networkdevice_id'),
  6912. 'devport' => $this->Get('network_port'),
  6913. 'nwport' => $this->Get('device_port'),
  6914. )
  6915. );
  6916. $iAlreadyExist = $oConnectionSet->count();
  6917. if ((get_class($oDevice) == 'NetworkDevice') && ($iAlreadyExist != 0))
  6918. {
  6919. $sLink = $this->Get('connection_type');
  6920. $sConnLink = ($sLink == 'uplink') ? 'downlink' : 'uplink';
  6921. $oMyChange = MetaModel::NewObject("CMDBChange");
  6922. $oMyChange->Set("date", time());
  6923. if (UserRights::IsImpersonated())
  6924. {
  6925. $sUserString = Dict::Format('UI:Archive_User_OnBehalfOf_User', UserRights::GetRealUser(), UserRights::GetUser());
  6926. }
  6927. else
  6928. {
  6929. $sUserString = UserRights::GetUser();
  6930. }
  6931. $oMyChange->Set("userinfo", $sUserString);
  6932. $iChangeId = $oMyChange->DBInsert();
  6933. $oConnection = $oConnectionSet->Fetch();
  6934. $oConnection->Set('connection_type', $sConnLink);
  6935. $oConnection->DBUpdateTracked($oMyChange);
  6936. }
  6937. }]]></code>
  6938. </method>
  6939. <method id="DeleteConnectedNetworkDevice">
  6940. <static>false</static>
  6941. <access>protected</access>
  6942. <type>Overload-cmdbAbstractObject</type>
  6943. <code><![CDATA[ protected function DeleteConnectedNetworkDevice()
  6944. {
  6945. $iNetworkDeviceID = $this->Get('networkdevice_id');
  6946. $iDeviceID = $this->Get('connectableci_id');
  6947. $oDevice = MetaModel::GetObject('ConnectableCI', $this->Get('connectableci_id'));
  6948. $sOQL = "SELECT lnkConnectableCIToNetworkDevice WHERE connectableci_id = :device AND networkdevice_id = :network AND network_port = :nwport AND device_port = :devport";
  6949. $oConnectionSet = new DBObjectSet(DBObjectSearch::FromOQL($sOQL),
  6950. array(),
  6951. array(
  6952. 'network' => $this->Get('connectableci_id'),
  6953. 'device' => $this->Get('networkdevice_id'),
  6954. 'devport' => $this->Get('network_port'),
  6955. 'nwport' => $this->Get('device_port'),
  6956. )
  6957. );
  6958. $iAlreadyExist = $oConnectionSet->count();
  6959. if ((get_class($oDevice) == 'NetworkDevice') && ($iAlreadyExist != 0))
  6960. {
  6961. $oMyChange = MetaModel::NewObject("CMDBChange");
  6962. $oMyChange->Set("date", time());
  6963. if (UserRights::IsImpersonated())
  6964. {
  6965. $sUserString = Dict::Format('UI:Archive_User_OnBehalfOf_User', UserRights::GetRealUser(), UserRights::GetUser());
  6966. }
  6967. else
  6968. {
  6969. $sUserString = UserRights::GetUser();
  6970. }
  6971. $oMyChange->Set("userinfo", $sUserString);
  6972. $iChangeId = $oMyChange->DBInsert();
  6973. $oConnection = $oConnectionSet->Fetch();
  6974. $oConnection->DBDeleteTracked($oMyChange);
  6975. }
  6976. }]]></code>
  6977. </method>
  6978. <method id="AfterInsert">
  6979. <static>false</static>
  6980. <access>protected</access>
  6981. <type>Overload-DBObject</type>
  6982. <code><![CDATA[ protected function AfterInsert()
  6983. {
  6984. $this->AddConnectedNetworkDevice();
  6985. parent::AfterInsert();
  6986. }]]></code>
  6987. </method>
  6988. <method id="AfterUpdate">
  6989. <static>false</static>
  6990. <access>protected</access>
  6991. <type>Overload-DBObject</type>
  6992. <code><![CDATA[ protected function AfterUpdate()
  6993. {
  6994. $this->UpdateConnectedNetworkDevice();
  6995. parent::AfterUpdate();
  6996. }]]></code>
  6997. </method>
  6998. <method id="AfterDelete">
  6999. <static>false</static>
  7000. <access>protected</access>
  7001. <type>Overload-DBObject</type>
  7002. <code><![CDATA[ protected function AfterDelete()
  7003. {
  7004. $this->DeleteConnectedNetworkDevice();
  7005. parent::AfterDelete();
  7006. }]]></code>
  7007. </method>
  7008. </methods>
  7009. <presentation>
  7010. <details>
  7011. <items>
  7012. <item id="networkdevice_id">
  7013. <rank>10</rank>
  7014. </item>
  7015. <item id="connectableci_id">
  7016. <rank>20</rank>
  7017. </item>
  7018. <item id="network_port">
  7019. <rank>30</rank>
  7020. </item>
  7021. <item id="device_port">
  7022. <rank>40</rank>
  7023. </item>
  7024. <item id="connection_type">
  7025. <rank>50</rank>
  7026. </item>
  7027. </items>
  7028. </details>
  7029. <search>
  7030. <items>
  7031. <item id="networkdevice_id">
  7032. <rank>10</rank>
  7033. </item>
  7034. <item id="connectableci_id">
  7035. <rank>20</rank>
  7036. </item>
  7037. <item id="network_port">
  7038. <rank>30</rank>
  7039. </item>
  7040. <item id="device_port">
  7041. <rank>40</rank>
  7042. </item>
  7043. <item id="connection_type">
  7044. <rank>50</rank>
  7045. </item>
  7046. </items>
  7047. </search>
  7048. <list>
  7049. <items>
  7050. <item id="networkdevice_id">
  7051. <rank>10</rank>
  7052. </item>
  7053. <item id="connectableci_id">
  7054. <rank>20</rank>
  7055. </item>
  7056. <item id="network_port">
  7057. <rank>30</rank>
  7058. </item>
  7059. <item id="device_port">
  7060. <rank>40</rank>
  7061. </item>
  7062. <item id="connection_type">
  7063. <rank>50</rank>
  7064. </item>
  7065. </items>
  7066. </list>
  7067. </presentation>
  7068. </class>
  7069. <class id="lnkApplicationSolutionToFunctionalCI" _delta="define">
  7070. <parent>cmdbAbstractObject</parent>
  7071. <properties>
  7072. <is_link>1</is_link>
  7073. <category>bizmodel</category>
  7074. <abstract>false</abstract>
  7075. <key_type>autoincrement</key_type>
  7076. <db_table>lnkapplicationsolutiontofunctionalci</db_table>
  7077. <db_key_field>id</db_key_field>
  7078. <db_final_class_field/>
  7079. <naming>
  7080. <format>%1$s %2$s</format>
  7081. <attributes>
  7082. <attribute id="applicationsolution_id"/>
  7083. <attribute id="functionalci_id"/>
  7084. </attributes>
  7085. </naming>
  7086. <display_template/>
  7087. <icon/>
  7088. <reconciliation>
  7089. <attributes>
  7090. <attribute id="applicationsolution_id"/>
  7091. <attribute id="functionalci_id"/>
  7092. </attributes>
  7093. </reconciliation>
  7094. </properties>
  7095. <fields>
  7096. <field id="applicationsolution_id" xsi:type="AttributeExternalKey">
  7097. <sql>applicationsolution_id</sql>
  7098. <target_class>ApplicationSolution</target_class>
  7099. <is_null_allowed>false</is_null_allowed>
  7100. <on_target_delete>DEL_AUTO</on_target_delete>
  7101. </field>
  7102. <field id="applicationsolution_name" xsi:type="AttributeExternalField">
  7103. <extkey_attcode>applicationsolution_id</extkey_attcode>
  7104. <target_attcode>name</target_attcode>
  7105. </field>
  7106. <field id="functionalci_id" xsi:type="AttributeExternalKey">
  7107. <sql>functionalci_id</sql>
  7108. <target_class>FunctionalCI</target_class>
  7109. <is_null_allowed>false</is_null_allowed>
  7110. <on_target_delete>DEL_AUTO</on_target_delete>
  7111. </field>
  7112. <field id="functionalci_name" xsi:type="AttributeExternalField">
  7113. <extkey_attcode>functionalci_id</extkey_attcode>
  7114. <target_attcode>name</target_attcode>
  7115. </field>
  7116. </fields>
  7117. <methods/>
  7118. <presentation>
  7119. <details>
  7120. <items>
  7121. <item id="applicationsolution_id">
  7122. <rank>10</rank>
  7123. </item>
  7124. <item id="functionalci_id">
  7125. <rank>20</rank>
  7126. </item>
  7127. </items>
  7128. </details>
  7129. <search>
  7130. <items>
  7131. <item id="applicationsolution_id">
  7132. <rank>10</rank>
  7133. </item>
  7134. <item id="functionalci_id">
  7135. <rank>20</rank>
  7136. </item>
  7137. </items>
  7138. </search>
  7139. <list>
  7140. <items>
  7141. <item id="applicationsolution_id">
  7142. <rank>10</rank>
  7143. </item>
  7144. <item id="functionalci_id">
  7145. <rank>20</rank>
  7146. </item>
  7147. </items>
  7148. </list>
  7149. </presentation>
  7150. </class>
  7151. <class id="lnkApplicationSolutionToBusinessProcess" _delta="define">
  7152. <parent>cmdbAbstractObject</parent>
  7153. <properties>
  7154. <is_link>1</is_link>
  7155. <category>bizmodel</category>
  7156. <abstract>false</abstract>
  7157. <key_type>autoincrement</key_type>
  7158. <db_table>lnkapplicationsolutiontobusinessprocess</db_table>
  7159. <db_key_field>id</db_key_field>
  7160. <db_final_class_field/>
  7161. <naming>
  7162. <format>%1$s %2$s</format>
  7163. <attributes>
  7164. <attribute id="businessprocess_id"/>
  7165. <attribute id="applicationsolution_id"/>
  7166. </attributes>
  7167. </naming>
  7168. <display_template/>
  7169. <icon/>
  7170. <reconciliation>
  7171. <attributes>
  7172. <attribute id="businessprocess_id"/>
  7173. <attribute id="applicationsolution_id"/>
  7174. </attributes>
  7175. </reconciliation>
  7176. </properties>
  7177. <fields>
  7178. <field id="businessprocess_id" xsi:type="AttributeExternalKey">
  7179. <sql>businessprocess_id</sql>
  7180. <target_class>BusinessProcess</target_class>
  7181. <is_null_allowed>false</is_null_allowed>
  7182. <on_target_delete>DEL_AUTO</on_target_delete>
  7183. </field>
  7184. <field id="businessprocess_name" xsi:type="AttributeExternalField">
  7185. <extkey_attcode>businessprocess_id</extkey_attcode>
  7186. <target_attcode>name</target_attcode>
  7187. </field>
  7188. <field id="applicationsolution_id" xsi:type="AttributeExternalKey">
  7189. <sql>applicationsolution_id</sql>
  7190. <target_class>ApplicationSolution</target_class>
  7191. <is_null_allowed>false</is_null_allowed>
  7192. <on_target_delete>DEL_AUTO</on_target_delete>
  7193. </field>
  7194. <field id="applicationsolution_name" xsi:type="AttributeExternalField">
  7195. <extkey_attcode>applicationsolution_id</extkey_attcode>
  7196. <target_attcode>name</target_attcode>
  7197. </field>
  7198. </fields>
  7199. <methods/>
  7200. <presentation>
  7201. <details>
  7202. <items>
  7203. <item id="businessprocess_id">
  7204. <rank>10</rank>
  7205. </item>
  7206. <item id="applicationsolution_id">
  7207. <rank>20</rank>
  7208. </item>
  7209. </items>
  7210. </details>
  7211. <search>
  7212. <items>
  7213. <item id="businessprocess_id">
  7214. <rank>10</rank>
  7215. </item>
  7216. <item id="applicationsolution_id">
  7217. <rank>20</rank>
  7218. </item>
  7219. </items>
  7220. </search>
  7221. <list>
  7222. <items>
  7223. <item id="businessprocess_id">
  7224. <rank>10</rank>
  7225. </item>
  7226. <item id="applicationsolution_id">
  7227. <rank>20</rank>
  7228. </item>
  7229. </items>
  7230. </list>
  7231. </presentation>
  7232. </class>
  7233. <class id="lnkPersonToTeam" _delta="define">
  7234. <parent>cmdbAbstractObject</parent>
  7235. <properties>
  7236. <is_link>1</is_link>
  7237. <category>bizmodel</category>
  7238. <abstract>false</abstract>
  7239. <key_type>autoincrement</key_type>
  7240. <db_table>lnkpersontoteam</db_table>
  7241. <db_key_field>id</db_key_field>
  7242. <db_final_class_field/>
  7243. <naming>
  7244. <format>%1$s %2$s</format>
  7245. <attributes>
  7246. <attribute id="team_id"/>
  7247. <attribute id="person_id"/>
  7248. </attributes>
  7249. </naming>
  7250. <display_template/>
  7251. <icon/>
  7252. <reconciliation>
  7253. <attributes>
  7254. <attribute id="team_id"/>
  7255. <attribute id="person_id"/>
  7256. </attributes>
  7257. </reconciliation>
  7258. </properties>
  7259. <fields>
  7260. <field id="team_id" xsi:type="AttributeExternalKey">
  7261. <sql>team_id</sql>
  7262. <target_class>Team</target_class>
  7263. <is_null_allowed>false</is_null_allowed>
  7264. <on_target_delete>DEL_AUTO</on_target_delete>
  7265. </field>
  7266. <field id="team_name" xsi:type="AttributeExternalField">
  7267. <extkey_attcode>team_id</extkey_attcode>
  7268. <target_attcode>name</target_attcode>
  7269. </field>
  7270. <field id="person_id" xsi:type="AttributeExternalKey">
  7271. <sql>person_id</sql>
  7272. <target_class>Person</target_class>
  7273. <is_null_allowed>false</is_null_allowed>
  7274. <on_target_delete>DEL_AUTO</on_target_delete>
  7275. </field>
  7276. <field id="person_name" xsi:type="AttributeExternalField">
  7277. <extkey_attcode>person_id</extkey_attcode>
  7278. <target_attcode>name</target_attcode>
  7279. </field>
  7280. <field id="role_id" xsi:type="AttributeExternalKey">
  7281. <sql>role_id</sql>
  7282. <target_class>ContactType</target_class>
  7283. <is_null_allowed>true</is_null_allowed>
  7284. <on_target_delete>DEL_MANUAL</on_target_delete>
  7285. </field>
  7286. <field id="role_name" xsi:type="AttributeExternalField">
  7287. <extkey_attcode>role_id</extkey_attcode>
  7288. <target_attcode>name</target_attcode>
  7289. </field>
  7290. </fields>
  7291. <methods/>
  7292. <presentation>
  7293. <details>
  7294. <items>
  7295. <item id="team_id">
  7296. <rank>10</rank>
  7297. </item>
  7298. <item id="person_id">
  7299. <rank>20</rank>
  7300. </item>
  7301. <item id="role_id">
  7302. <rank>30</rank>
  7303. </item>
  7304. </items>
  7305. </details>
  7306. <search>
  7307. <items>
  7308. <item id="team_id">
  7309. <rank>10</rank>
  7310. </item>
  7311. <item id="person_id">
  7312. <rank>20</rank>
  7313. </item>
  7314. <item id="role_id">
  7315. <rank>30</rank>
  7316. </item>
  7317. </items>
  7318. </search>
  7319. <list>
  7320. <items>
  7321. <item id="team_id">
  7322. <rank>10</rank>
  7323. </item>
  7324. <item id="person_id">
  7325. <rank>20</rank>
  7326. </item>
  7327. <item id="role_id">
  7328. <rank>30</rank>
  7329. </item>
  7330. </items>
  7331. </list>
  7332. </presentation>
  7333. </class>
  7334. <class id="Group" _delta="define">
  7335. <parent>cmdbAbstractObject</parent>
  7336. <properties>
  7337. <category>bizmodel,searchable,configmgmt</category>
  7338. <abstract>false</abstract>
  7339. <key_type>autoincrement</key_type>
  7340. <db_table>group</db_table>
  7341. <db_key_field>id</db_key_field>
  7342. <db_final_class_field/>
  7343. <naming>
  7344. <format>%1$s</format>
  7345. <attributes>
  7346. <attribute id="name"/>
  7347. </attributes>
  7348. </naming>
  7349. <display_template/>
  7350. <icon>images/group.png</icon>
  7351. <reconciliation>
  7352. <attributes>
  7353. <attribute id="name"/>
  7354. <attribute id="org_id"/>
  7355. <attribute id="owner_name"/>
  7356. </attributes>
  7357. </reconciliation>
  7358. </properties>
  7359. <fields>
  7360. <field id="name" xsi:type="AttributeString">
  7361. <sql>name</sql>
  7362. <default_value/>
  7363. <is_null_allowed>false</is_null_allowed>
  7364. </field>
  7365. <field id="status" xsi:type="AttributeEnum">
  7366. <values>
  7367. <value>production</value>
  7368. <value>implementation</value>
  7369. <value>obsolete</value>
  7370. </values>
  7371. <sql>status</sql>
  7372. <default_value>implementation</default_value>
  7373. <is_null_allowed>false</is_null_allowed>
  7374. <display_style>list</display_style>
  7375. </field>
  7376. <field id="org_id" xsi:type="AttributeExternalKey">
  7377. <sql>org_id</sql>
  7378. <target_class>Organization</target_class>
  7379. <is_null_allowed>false</is_null_allowed>
  7380. <on_target_delete>DEL_MANUAL</on_target_delete>
  7381. </field>
  7382. <field id="owner_name" xsi:type="AttributeExternalField">
  7383. <extkey_attcode>org_id</extkey_attcode>
  7384. <target_attcode>name</target_attcode>
  7385. </field>
  7386. <field id="description" xsi:type="AttributeText">
  7387. <sql>description</sql>
  7388. <default_value/>
  7389. <is_null_allowed>true</is_null_allowed>
  7390. </field>
  7391. <field id="type" xsi:type="AttributeString">
  7392. <sql>type</sql>
  7393. <default_value/>
  7394. <is_null_allowed>true</is_null_allowed>
  7395. </field>
  7396. <field id="parent_id" xsi:type="AttributeHierarchicalKey">
  7397. <dependencies>
  7398. <attribute id="org_id"/>
  7399. </dependencies>
  7400. <sql>parent_id</sql>
  7401. <is_null_allowed>true</is_null_allowed>
  7402. <on_target_delete>DEL_MANUAL</on_target_delete>
  7403. </field>
  7404. <field id="parent_name" xsi:type="AttributeExternalField">
  7405. <extkey_attcode>parent_id</extkey_attcode>
  7406. <target_attcode>name</target_attcode>
  7407. </field>
  7408. <field id="ci_list" xsi:type="AttributeLinkedSetIndirect">
  7409. <linked_class>lnkGroupToCI</linked_class>
  7410. <ext_key_to_me>group_id</ext_key_to_me>
  7411. <count_min>0</count_min>
  7412. <count_max>0</count_max>
  7413. <ext_key_to_remote>ci_id</ext_key_to_remote>
  7414. <duplicates/>
  7415. </field>
  7416. </fields>
  7417. <methods/>
  7418. <presentation>
  7419. <details>
  7420. <items>
  7421. <item id="name">
  7422. <rank>10</rank>
  7423. </item>
  7424. <item id="status">
  7425. <rank>20</rank>
  7426. </item>
  7427. <item id="org_id">
  7428. <rank>30</rank>
  7429. </item>
  7430. <item id="type">
  7431. <rank>40</rank>
  7432. </item>
  7433. <item id="description">
  7434. <rank>50</rank>
  7435. </item>
  7436. <item id="parent_id">
  7437. <rank>60</rank>
  7438. </item>
  7439. <item id="ci_list">
  7440. <rank>70</rank>
  7441. </item>
  7442. </items>
  7443. </details>
  7444. <search>
  7445. <items>
  7446. <item id="name">
  7447. <rank>10</rank>
  7448. </item>
  7449. <item id="status">
  7450. <rank>20</rank>
  7451. </item>
  7452. <item id="org_id">
  7453. <rank>30</rank>
  7454. </item>
  7455. <item id="type">
  7456. <rank>40</rank>
  7457. </item>
  7458. </items>
  7459. </search>
  7460. <list>
  7461. <items>
  7462. <item id="status">
  7463. <rank>10</rank>
  7464. </item>
  7465. <item id="org_id">
  7466. <rank>20</rank>
  7467. </item>
  7468. <item id="type">
  7469. <rank>30</rank>
  7470. </item>
  7471. <item id="parent_id">
  7472. <rank>40</rank>
  7473. </item>
  7474. </items>
  7475. </list>
  7476. </presentation>
  7477. </class>
  7478. <class id="lnkGroupToCI" _delta="define">
  7479. <parent>cmdbAbstractObject</parent>
  7480. <properties>
  7481. <is_link>1</is_link>
  7482. <category>bizmodel,configmgmt</category>
  7483. <abstract>false</abstract>
  7484. <key_type>autoincrement</key_type>
  7485. <db_table>lnkgrouptoci</db_table>
  7486. <db_key_field>id</db_key_field>
  7487. <db_final_class_field/>
  7488. <naming>
  7489. <format>%1$s</format>
  7490. <attributes>
  7491. <attribute id="group_id"/>
  7492. </attributes>
  7493. </naming>
  7494. <display_template/>
  7495. <icon/>
  7496. <reconciliation>
  7497. <attributes>
  7498. <attribute id="group_id"/>
  7499. <attribute id="ci_id"/>
  7500. </attributes>
  7501. </reconciliation>
  7502. </properties>
  7503. <fields>
  7504. <field id="group_id" xsi:type="AttributeExternalKey">
  7505. <sql>group_id</sql>
  7506. <target_class>Group</target_class>
  7507. <is_null_allowed>false</is_null_allowed>
  7508. <on_target_delete>DEL_AUTO</on_target_delete>
  7509. </field>
  7510. <field id="group_name" xsi:type="AttributeExternalField">
  7511. <extkey_attcode>group_id</extkey_attcode>
  7512. <target_attcode>name</target_attcode>
  7513. </field>
  7514. <field id="ci_id" xsi:type="AttributeExternalKey">
  7515. <sql>ci_id</sql>
  7516. <target_class>FunctionalCI</target_class>
  7517. <is_null_allowed>false</is_null_allowed>
  7518. <on_target_delete>DEL_AUTO</on_target_delete>
  7519. </field>
  7520. <field id="ci_name" xsi:type="AttributeExternalField">
  7521. <extkey_attcode>ci_id</extkey_attcode>
  7522. <target_attcode>name</target_attcode>
  7523. </field>
  7524. <field id="reason" xsi:type="AttributeString">
  7525. <sql>reason</sql>
  7526. <default_value/>
  7527. <is_null_allowed>true</is_null_allowed>
  7528. </field>
  7529. </fields>
  7530. <methods/>
  7531. <presentation>
  7532. <details>
  7533. <items>
  7534. <item id="group_id">
  7535. <rank>10</rank>
  7536. </item>
  7537. <item id="ci_id">
  7538. <rank>20</rank>
  7539. </item>
  7540. <item id="reason">
  7541. <rank>30</rank>
  7542. </item>
  7543. </items>
  7544. </details>
  7545. <search>
  7546. <items>
  7547. <item id="group_id">
  7548. <rank>10</rank>
  7549. </item>
  7550. <item id="ci_id">
  7551. <rank>20</rank>
  7552. </item>
  7553. <item id="reason">
  7554. <rank>30</rank>
  7555. </item>
  7556. </items>
  7557. </search>
  7558. <list>
  7559. <items>
  7560. <item id="group_id">
  7561. <rank>10</rank>
  7562. </item>
  7563. <item id="ci_id">
  7564. <rank>20</rank>
  7565. </item>
  7566. <item id="reason">
  7567. <rank>30</rank>
  7568. </item>
  7569. </items>
  7570. </list>
  7571. </presentation>
  7572. </class>
  7573. </classes>
  7574. <menus>
  7575. <menu id="DataAdministration" xsi:type="MenuGroup" _delta="define">
  7576. <rank>70</rank>
  7577. <enable_class>Organization</enable_class>
  7578. <enable_action>UR_ACTION_MODIFY</enable_action>
  7579. <enable_permission>UR_ALLOWED_YES</enable_permission>
  7580. <enable_stimulus/>
  7581. </menu>
  7582. <menu id="Audit" xsi:type="WebPageMenuNode" _delta="define">
  7583. <rank>33</rank>
  7584. <parent>DataAdministration</parent>
  7585. <url>$pages/audit.php</url>
  7586. </menu>
  7587. <menu id="Catalogs" xsi:type="TemplateMenuNode" _delta="define">
  7588. <rank>50</rank>
  7589. <parent>DataAdministration</parent>
  7590. <template_file/>
  7591. </menu>
  7592. <menu id="Organization" xsi:type="OQLMenuNode" _delta="define">
  7593. <rank>10</rank>
  7594. <parent>Catalogs</parent>
  7595. <oql>SELECT Organization</oql>
  7596. <do_search>1</do_search>
  7597. </menu>
  7598. <menu id="ConfigManagement" xsi:type="MenuGroup" _delta="define">
  7599. <rank>20</rank>
  7600. </menu>
  7601. <menu id="ConfigManagementOverview" xsi:type="DashboardMenuNode" _delta="define">
  7602. <rank>1</rank>
  7603. <parent>ConfigManagement</parent>
  7604. <definition>
  7605. <layout>DashboardLayoutOneCol</layout>
  7606. <title></title>
  7607. <cells>
  7608. <cell id="0">
  7609. <rank>0</rank>
  7610. <dashlets>
  7611. <dashlet id="1" xsi:type="DashletHeaderStatic">
  7612. <rank>0</rank>
  7613. <title>Menu:ConfigManagement:AllDevices</title>
  7614. <icon>itop-config-mgmt/images/server.png</icon>
  7615. <subtitle>Menu_ConfigManagement_AllDevices</subtitle>
  7616. </dashlet>
  7617. <dashlet id="2" xsi:type="DashletBadge">
  7618. <rank>3</rank>
  7619. <class>Server</class>
  7620. </dashlet>
  7621. <dashlet id="3" xsi:type="DashletBadge">
  7622. <rank>4</rank>
  7623. <class>NetworkDevice</class>
  7624. </dashlet>
  7625. </dashlets>
  7626. </cell>
  7627. <cell id="3">
  7628. <rank>3</rank>
  7629. <dashlets>
  7630. <dashlet id="4" xsi:type="DashletHeaderStatic">
  7631. <rank>0</rank>
  7632. <title>Menu:ConfigManagement:SWAndApps</title>
  7633. <icon>itop-config-mgmt/images/application.png</icon>
  7634. </dashlet>
  7635. <dashlet id="5" xsi:type="DashletBadge">
  7636. <rank>1</rank>
  7637. <class>Middleware</class>
  7638. </dashlet>
  7639. <dashlet id="6" xsi:type="DashletBadge">
  7640. <rank>2</rank>
  7641. <class>DBServer</class>
  7642. </dashlet>
  7643. <dashlet id="7" xsi:type="DashletBadge">
  7644. <rank>3</rank>
  7645. <class>WebServer</class>
  7646. </dashlet>
  7647. <dashlet id="8" xsi:type="DashletBadge">
  7648. <rank>4</rank>
  7649. <class>PCSoftware</class>
  7650. </dashlet>
  7651. <dashlet id="9" xsi:type="DashletBadge">
  7652. <rank>5</rank>
  7653. <class>OtherSoftware</class>
  7654. </dashlet>
  7655. <dashlet id="10" xsi:type="DashletBadge">
  7656. <rank>6</rank>
  7657. <class>MiddlewareInstance</class>
  7658. </dashlet>
  7659. <dashlet id="11" xsi:type="DashletBadge">
  7660. <rank>7</rank>
  7661. <class>DatabaseSchema</class>
  7662. </dashlet>
  7663. <dashlet id="12" xsi:type="DashletBadge">
  7664. <rank>7</rank>
  7665. <class>WebApplication</class>
  7666. </dashlet>
  7667. <dashlet id="13" xsi:type="DashletBadge">
  7668. <rank>8</rank>
  7669. <class>Patch</class>
  7670. </dashlet>
  7671. <dashlet id="14" xsi:type="DashletBadge">
  7672. <rank>9</rank>
  7673. <class>Licence</class>
  7674. </dashlet>
  7675. </dashlets>
  7676. </cell>
  7677. <cell id="4">
  7678. <rank>4</rank>
  7679. <dashlets>
  7680. <dashlet id="15" xsi:type="DashletHeaderStatic">
  7681. <rank>0</rank>
  7682. <title>Menu:ConfigManagement:Misc</title>
  7683. <icon>itop-config-mgmt/images/subnet.png</icon>
  7684. </dashlet>
  7685. <dashlet id="16" xsi:type="DashletBadge">
  7686. <rank>1</rank>
  7687. <class>NetworkInterface</class>
  7688. </dashlet>
  7689. <dashlet id="17" xsi:type="DashletBadge">
  7690. <rank>2</rank>
  7691. <class>Subnet</class>
  7692. </dashlet>
  7693. <dashlet id="18" xsi:type="DashletBadge">
  7694. <rank>4</rank>
  7695. <class>BusinessProcess</class>
  7696. </dashlet>
  7697. <dashlet id="19" xsi:type="DashletBadge">
  7698. <rank>5</rank>
  7699. <class>ApplicationSolution</class>
  7700. </dashlet>
  7701. <dashlet id="20" xsi:type="DashletBadge">
  7702. <rank>6</rank>
  7703. <class>Group</class>
  7704. </dashlet>
  7705. </dashlets>
  7706. </cell>
  7707. </cells>
  7708. </definition>
  7709. </menu>
  7710. <menu id="Contact" xsi:type="DashboardMenuNode" _delta="define">
  7711. <rank>2</rank>
  7712. <parent>ConfigManagement</parent>
  7713. <definition>
  7714. <layout>DashboardLayoutOneCol</layout>
  7715. <title></title>
  7716. <cells>
  7717. <cell id="0">
  7718. <rank>0</rank>
  7719. <dashlets>
  7720. <dashlet id="1" xsi:type="DashletHeaderDynamic">
  7721. <rank>1</rank>
  7722. <title>Menu:Contact</title>
  7723. <icon>itop-config-mgmt/images/team.png</icon>
  7724. <subtitle>Menu:Contact:Count</subtitle>
  7725. <query>SELECT Contact</query>
  7726. <group_by>status</group_by>
  7727. <values>active,inactive</values>
  7728. </dashlet>
  7729. <dashlet id="2" xsi:type="DashletBadge">
  7730. <rank>2</rank>
  7731. <class>Team</class>
  7732. </dashlet>
  7733. <dashlet id="3" xsi:type="DashletBadge">
  7734. <rank>3</rank>
  7735. <class>Person</class>
  7736. </dashlet>
  7737. </dashlets>
  7738. </cell>
  7739. </cells>
  7740. </definition>
  7741. </menu>
  7742. <menu id="NewContact" xsi:type="NewObjectMenuNode" _delta="define">
  7743. <rank>3</rank>
  7744. <parent>Contact</parent>
  7745. <class>Contact</class>
  7746. </menu>
  7747. <menu id="SearchContacts" xsi:type="SearchMenuNode" _delta="define">
  7748. <rank>4</rank>
  7749. <parent>Contact</parent>
  7750. <class>Contact</class>
  7751. </menu>
  7752. <menu id="Location" xsi:type="OQLMenuNode" _delta="define">
  7753. <rank>3</rank>
  7754. <parent>ConfigManagement</parent>
  7755. <oql>SELECT Location</oql>
  7756. <do_search>1</do_search>
  7757. </menu>
  7758. <menu id="NewCI" xsi:type="NewObjectMenuNode" _delta="define">
  7759. <rank>4</rank>
  7760. <parent>ConfigManagement</parent>
  7761. <class>FunctionalCI</class>
  7762. </menu>
  7763. <menu id="SearchCIs" xsi:type="SearchMenuNode" _delta="define">
  7764. <rank>5</rank>
  7765. <parent>ConfigManagement</parent>
  7766. <class>FunctionalCI</class>
  7767. </menu>
  7768. <menu id="Document" xsi:type="OQLMenuNode" _delta="define">
  7769. <rank>6</rank>
  7770. <parent>ConfigManagement</parent>
  7771. <oql>SELECT Document</oql>
  7772. <do_search>1</do_search>
  7773. </menu>
  7774. <menu id="Software" xsi:type="OQLMenuNode" _delta="define">
  7775. <rank>7</rank>
  7776. <parent>ConfigManagement</parent>
  7777. <oql>SELECT Software</oql>
  7778. <do_search>1</do_search>
  7779. </menu>
  7780. <menu id="Group" xsi:type="OQLMenuNode" _delta="define">
  7781. <rank>8</rank>
  7782. <parent>ConfigManagement</parent>
  7783. <oql>SELECT Group</oql>
  7784. <do_search>1</do_search>
  7785. </menu>
  7786. <menu id="Typology" xsi:type="DashboardMenuNode" _delta="define">
  7787. <rank>80</rank>
  7788. <parent>Catalogs</parent>
  7789. <definition>
  7790. <layout>DashboardLayoutOneCol</layout>
  7791. <title>Menu:ConfigManagement:Typology</title>
  7792. <cells>
  7793. <cell id="0">
  7794. <rank>0</rank>
  7795. <dashlets>
  7796. <dashlet id="1" xsi:type="DashletHeaderStatic">
  7797. <rank>0</rank>
  7798. <title>Menu:ConfigManagement:Typology</title>
  7799. <icon>itop-config-mgmt/images/typology.png</icon>
  7800. </dashlet>
  7801. <dashlet id="2" xsi:type="DashletBadge">
  7802. <rank>1</rank>
  7803. <class>Brand</class>
  7804. </dashlet>
  7805. <dashlet id="3" xsi:type="DashletBadge">
  7806. <rank>2</rank>
  7807. <class>Model</class>
  7808. </dashlet>
  7809. <dashlet id="4" xsi:type="DashletBadge">
  7810. <rank>3</rank>
  7811. <class>OSFamily</class>
  7812. </dashlet>
  7813. <dashlet id="5" xsi:type="DashletBadge">
  7814. <rank>4</rank>
  7815. <class>OSVersion</class>
  7816. </dashlet>
  7817. <dashlet id="6" xsi:type="DashletBadge">
  7818. <rank>5</rank>
  7819. <class>IOSVersion</class>
  7820. </dashlet>
  7821. <dashlet id="7" xsi:type="DashletBadge">
  7822. <rank>6</rank>
  7823. <class>NetworkDeviceType</class>
  7824. </dashlet>
  7825. <dashlet id="8" xsi:type="DashletBadge">
  7826. <rank>7</rank>
  7827. <class>ContractType</class>
  7828. </dashlet>
  7829. <dashlet id="9" xsi:type="DashletBadge">
  7830. <rank>8</rank>
  7831. <class>ContactType</class>
  7832. </dashlet>
  7833. <dashlet id="10" xsi:type="DashletBadge">
  7834. <rank>9</rank>
  7835. <class>DocumentType</class>
  7836. </dashlet>
  7837. </dashlets>
  7838. </cell>
  7839. </cells>
  7840. </definition>
  7841. </menu>
  7842. </menus>
  7843. </itop_design>