Files
Repuestera/docs/09_Patrones/diagrams/imagenes/composite.svg
T

1 line
8.9 KiB
XML
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" data-diagram-type="CLASS" style="width:1068px;height:419px;background:#FFFFFF;" width="1068px" height="419px" viewBox="0 0 1068 419" zoomAndPan="magnify" preserveAspectRatio="none" contentStyleType="text/css"><?plantuml 1.2026.10?><defs/><g font-family="sans-serif" lengthAdjust="spacing"><!--class IPermisosComponent--><g class="entity" data-qualified-name="IPermisosComponent" id="ent0001" data-source-line="4"><rect x="7" y="7" width="483.126" height="80.197" fill="#F1F1F1" style="stroke:#181818;stroke-width:0.5;" rx="2.5" ry="2.5"/><ellipse cx="177.006" cy="23" rx="11" ry="11" fill="#B4A7E5" style="stroke:#181818;stroke-width:1;"/><path d="M173.303,17.297 L180.913,17.297 L180.913,19.188 L178.334,19.188 L178.334,26.609 L180.913,26.609 L180.913,28.5 L173.303,28.5 L173.303,26.609 L175.897,26.609 L175.897,19.188 L173.303,19.188 L173.303,17.297 Z " fill="#000"/><text x="197.506" y="28.083" fill="#000" font-size="14" textLength="134.613" font-style="italic">IPermisosComponent</text><line x1="8" y1="39" x2="489.126" y2="39" style="stroke:#181818;stroke-width:0.5;"/><line x1="8" y1="47" x2="489.126" y2="47" style="stroke:#181818;stroke-width:0.5;"/><text x="13" y="64.132" fill="#000" font-size="14" textLength="290.65">+Buscar(id: uint, visitados: map[uint]bool): bool</text><text x="13" y="80.23" fill="#000" font-size="14" textLength="471.126">+ListarPermisos(permisos: map[uint]Permiso, visitados: map[uint]bool): void</text></g><!--class Permiso--><g class="entity" data-qualified-name="Permiso" id="ent0002" data-source-line="9"><rect x="75" y="324" width="483.126" height="80.197" fill="#F1F1F1" style="stroke:#181818;stroke-width:0.5;" rx="2.5" ry="2.5"/><ellipse cx="286.641" cy="340" rx="11" ry="11" fill="#ADD1B2" style="stroke:#181818;stroke-width:1;"/><path d="M284.297,339.844 Q284.297,341.719 284.875,342.734 Q285.453,343.734 286.609,343.734 Q287.953,343.734 288.609,341.719 L290.875,342.141 Q289.766,345.672 286.594,345.672 Q284.25,345.672 283.031,344.188 Q281.813,342.703 281.813,339.844 Q281.813,334.125 286.516,334.125 Q288.063,334.125 289.094,334.938 Q290.141,335.75 290.641,337.359 L288.375,337.906 Q288.141,337.031 287.656,336.547 Q287.172,336.047 286.547,336.047 Q284.297,336.047 284.297,339.844 Z " fill="#000"/><text x="307.141" y="345.083" fill="#000" font-size="14" textLength="51.345">Permiso</text><line x1="76" y1="356" x2="557.126" y2="356" style="stroke:#181818;stroke-width:0.5;"/><line x1="76" y1="364" x2="557.126" y2="364" style="stroke:#181818;stroke-width:0.5;"/><text x="81" y="381.132" fill="#000" font-size="14" textLength="290.65">+Buscar(id: uint, visitados: map[uint]bool): bool</text><text x="81" y="397.23" fill="#000" font-size="14" textLength="471.126">+ListarPermisos(permisos: map[uint]Permiso, visitados: map[uint]bool): void</text></g><!--class Grupo--><g class="entity" data-qualified-name="Grupo" id="ent0003" data-source-line="14"><rect x="282" y="158" width="483.126" height="80.197" fill="#F1F1F1" style="stroke:#181818;stroke-width:0.5;" rx="2.5" ry="2.5"/><ellipse cx="499.858" cy="174" rx="11" ry="11" fill="#ADD1B2" style="stroke:#181818;stroke-width:1;"/><path d="M497.514,173.844 Q497.514,175.719 498.092,176.734 Q498.67,177.734 499.827,177.734 Q501.17,177.734 501.827,175.719 L504.092,176.141 Q502.983,179.672 499.811,179.672 Q497.467,179.672 496.249,178.188 Q495.03,176.703 495.03,173.844 Q495.03,168.125 499.733,168.125 Q501.28,168.125 502.311,168.938 Q503.358,169.75 503.858,171.359 L501.592,171.906 Q501.358,171.031 500.874,170.547 Q500.389,170.047 499.764,170.047 Q497.514,170.047 497.514,173.844 Z " fill="#000"/><text x="520.358" y="179.083" fill="#000" font-size="14" textLength="38.91">Grupo</text><line x1="283" y1="190" x2="764.126" y2="190" style="stroke:#181818;stroke-width:0.5;"/><line x1="283" y1="198" x2="764.126" y2="198" style="stroke:#181818;stroke-width:0.5;"/><text x="288" y="215.132" fill="#000" font-size="14" textLength="290.65">+Buscar(id: uint, visitados: map[uint]bool): bool</text><text x="288" y="231.23" fill="#000" font-size="14" textLength="471.126">+ListarPermisos(permisos: map[uint]Permiso, visitados: map[uint]bool): void</text></g><g class="entity" data-qualified-name="GMN8" id="ent0009" data-source-line="26"><path d="M593,329 L593,360 L558.02,364 L593,368 L593,398.795 A0,0 0 0 0 593,398.795 L759.971,398.795 A0,0 0 0 0 759.971,398.795 L759.971,339 L749.971,329 L593,329 A0,0 0 0 0 593,329" style="stroke:#181818;stroke-width:0.5;" fill="#FEFFDD"/><path d="M749.971,329 L749.971,339 L759.971,339 L749.971,329" style="stroke:#181818;stroke-width:0.5;" fill="#FEFFDD"/><text x="599" y="346.194" fill="#000" font-size="13" textLength="26.73" font-weight="700">Leaf</text><text x="599" y="361.143" fill="#000" font-size="13" textLength="135.846">Busca por su propio ID.</text><text x="599" y="376.091" fill="#000" font-size="13" textLength="145.971">Agrega su propio registro</text><text x="599" y="391.04" fill="#000" font-size="13" textLength="124.281">al mapa de permisos.</text></g><g class="entity" data-qualified-name="GMN11" id="ent0012" data-source-line="33"><path d="M872,148 L872,194 L765.29,198 L872,202 L872,247.692 A0,0 0 0 0 872,247.692 L1053.399,247.692 A0,0 0 0 0 1053.399,247.692 L1053.399,158 L1043.399,148 L872,148 A0,0 0 0 0 872,148" style="stroke:#181818;stroke-width:0.5;" fill="#FEFFDD"/><path d="M1043.399,148 L1043.399,158 L1053.399,158 L1043.399,148" style="stroke:#181818;stroke-width:0.5;" fill="#FEFFDD"/><text x="878" y="165.194" fill="#000" font-size="13" textLength="67.171" font-weight="700">Composite</text><text x="878" y="180.143" fill="#000" font-size="13" textLength="138.715">Recorre recursivamente</text><text x="878" y="195.091" fill="#000" font-size="13" textLength="160.399">los permisos y grupos hijos.</text><text x="878" y="210.04" fill="#000" font-size="13"> </text><text x="878" y="224.989" fill="#000" font-size="13" textLength="119.215">Utiliza visitados para</text><text x="878" y="239.938" fill="#000" font-size="13" textLength="155.34">evitar ciclos y repeticiones.</text></g><!--reverse link IPermisosComponent to Permiso--><g class="link" data-entity-1="ent0001" data-entity-2="ent0002" id="lnk4" data-source-line="19" data-link-type="extension"><path d="M247.725,105.37 C247.805,146.19 250.46,193.52 264.5,248 C271.28,274.31 283.69,302.11 294.69,323.79" style="stroke:#181818;stroke-width:1;stroke-dasharray:7,7;" fill="none" id="IPermisosComponent-backto-Permiso" codeLine="19"/><polygon points="247.69,87.37,241.725,105.382,253.725,105.358,247.69,87.37" fill="none" style="stroke:#181818;stroke-width:1;stroke-linejoin:miter;stroke-miterlimit:10;"/></g><!--reverse link IPermisosComponent to Grupo--><g class="link" data-entity-1="ent0001" data-entity-2="ent0003" id="lnk5" data-source-line="20" data-link-type="extension"><path d="M336.577,95.724 C376.837,117.534 410.99,136.04 451.25,157.86" style="stroke:#181818;stroke-width:1;stroke-dasharray:7,7;" fill="none" id="IPermisosComponent-backto-Grupo" codeLine="20"/><polygon points="320.75,87.15,333.719,100.999,339.435,90.448,320.75,87.15" fill="none" style="stroke:#181818;stroke-width:1;stroke-linejoin:miter;stroke-miterlimit:10;"/></g><!--link Grupo to Permiso--><g class="link" data-entity-1="ent0003" data-entity-2="ent0002" id="lnk6" data-source-line="22" data-link-type="dependency"><path d="M474.18,238.07 C441.42,264.03 402.479,294.885 369.719,320.835" style="stroke:#181818;stroke-width:1;" fill="none" id="Grupo-to-Permiso" codeLine="22"/><polygon points="365.8,323.94,375.339,321.487,369.719,320.835,370.371,315.216,365.8,323.94" fill="#181818" style="stroke:#181818;stroke-width:1;stroke-linejoin:miter;stroke-miterlimit:10;"/><text x="420.5" y="291.194" fill="#000" font-size="13" textLength="54.177">Permisos</text><text x="354.424" y="313.235" fill="#000" font-size="13" textLength="19.513">0..*</text></g><!--link Grupo to Grupo--><g class="link" data-entity-1="ent0003" data-entity-2="ent0003" id="lnk7" data-source-line="23" data-link-type="dependency"><path d="M765.24,186.19 C786.61,188.67 800,192.61 800,198 C800,203.39 791.577,206.754 770.207,209.234" style="stroke:#181818;stroke-width:1;" fill="none" id="Grupo-to-Grupo" codeLine="23"/><polygon points="765.24,209.81,774.641,212.746,770.207,209.234,773.719,204.799,765.24,209.81" fill="#181818" style="stroke:#181818;stroke-width:1;stroke-linejoin:miter;stroke-miterlimit:10;"/><text x="806" y="203.194" fill="#000" font-size="13" textLength="42.631">Grupos</text><text x="773.49" y="208.174" fill="#000" font-size="13" textLength="19.513">0..*</text></g><?plantuml-src pLDDJyCm3BtdLrZZCWghTguGqXW2JTe1WJWX3bdgTMPj7Jbf9GRyTzAlCV5rNYvn_68_lvVMRQcqMdG19jVEpRmNMbKU5uRB1zeXJ9NRNrbfiys4gpATSyu29pVjKefAZxBM1c5nXrAGOpVdmdA9fOSt1M6TmLNbZ9OnfGbKeU0SQdBaTSekWKBRfoRvl6BEJnDejhviISvh6TgERHySrFJOlmrhfbHzADMgXBxY64UxbSeUsM2_lEd5UnmFBlw9jrAKwXHD9fSmciPnDDgxdmoH-tcdIoJTxfGgsIC8PHiFlDup0qJH4lKwYaBOUWKsV9Uk0YjiYM5n7GTabWbc-Y0TZi4XQHhelD6j8KKOR8eLbYaqZDzvEqKDQoirE8SjzJqQ5WaNqLJYgDP5C043aBFRjuLNo5eriA6NXYNWZvvoskclLu3cJmi0rk4iOCZaRQMWHK-6Whs7ytq2?></g></svg>