1(function() 2{ 3 Sidebar.prototype.addActiveDirectoryPalette = function() 4 { 5 var d = 50; 6 var dt = 'ibm'; 7 var sb = this; 8 var s = 'aspect=fixed;perimeter=ellipsePerimeter;html=1;align=center;shadow=0;dashed=0;spacingTop=3;image;image=img/lib/active_directory/'; 9 var gn = 'ms active directory '; 10 this.setCurrentSearchEntryLibrary('active_directory'); 11 12 var fns = [ 13 this.createVertexTemplateEntry(s + 'active_directory.svg;', 14 d, d * 0.85, '', 'Active Directory', false, null, this.getTagsForStencil(gn, 'active directory', dt).join(' ')), 15 this.createVertexTemplateEntry(s + 'cd_dvd.svg;', 16 d, d, '', 'CD / DVD', false, null, this.getTagsForStencil(gn, 'cd dvd compact digital video disc', dt).join(' ')), 17 this.createVertexTemplateEntry(s + 'cell_phone.svg;', 18 d * 0.42, d, '', 'Cell Phone', false, null, this.getTagsForStencil(gn, 'cell phone', dt).join(' ')), 19 this.createVertexTemplateEntry(s + 'cluster_server.svg;', 20 d, d, '', 'Cluster Server', false, null, this.getTagsForStencil(gn, 'active', dt).join(' ')), 21 this.createVertexTemplateEntry(s + 'community_discussion.svg;', 22 d, d * 0.9, '', 'Community Discussion', false, null, this.getTagsForStencil(gn, 'community discussion', dt).join(' ')), 23 this.createVertexTemplateEntry(s + 'data_jack.svg;', 24 d * 0.55, d, '', 'Data Jack', false, null, this.getTagsForStencil(gn, 'data jack', dt).join(' ')), 25 this.createVertexTemplateEntry(s + 'database.svg;', 26 d, d * 0.74, '', 'Database', false, null, this.getTagsForStencil(gn, 'database', dt).join(' ')), 27 this.createVertexTemplateEntry(s + 'database_cube.svg;', 28 d * 0.9, d, '', 'Database Cube', false, null, this.getTagsForStencil(gn, 'database cube', dt).join(' ')), 29 this.createVertexTemplateEntry(s + 'database_partition_2.svg;', 30 d, d * 0.74, '', 'Database Partition 2', false, null, this.getTagsForStencil(gn, 'database partition two', dt).join(' ')), 31 this.createVertexTemplateEntry(s + 'database_partition_3.svg;', 32 d, d * 0.74, '', 'Database Partition 3', false, null, this.getTagsForStencil(gn, 'database partition three', dt).join(' ')), 33 this.createVertexTemplateEntry(s + 'database_partition_4.svg;', 34 d, d * 0.74, '', 'Database Partition 4', false, null, this.getTagsForStencil(gn, 'database partition four', dt).join(' ')), 35 this.createVertexTemplateEntry(s + 'database_partition_5.svg;', 36 d, d * 0.74, '', 'Database Partition 5', false, null, this.getTagsForStencil(gn, 'database partition five', dt).join(' ')), 37 this.createVertexTemplateEntry(s + 'database_server.svg;', 38 d * 0.82, d, '', 'Database Server', false, null, this.getTagsForStencil(gn, 'database server', dt).join(' ')), 39 this.createVertexTemplateEntry(s + 'databases.svg;', 40 d, d * 0.98, '', 'Databases', false, null, this.getTagsForStencil(gn, 'databases', dt).join(' ')), 41 this.createVertexTemplateEntry(s + 'documents.svg;', 42 d * 0.66, d, '', 'Documents', false, null, this.getTagsForStencil(gn, 'documents', dt).join(' ')), 43 this.createVertexTemplateEntry(s + 'domain_controller.svg;', 44 d * 0.7, d, '', 'Domain Controller', false, null, this.getTagsForStencil(gn, 'domain controller', dt).join(' ')), 45 this.createVertexTemplateEntry(s + 'fax.svg;', 46 d, d * 0.75, '', 'Fax', false, null, this.getTagsForStencil(gn, 'fax', dt).join(' ')), 47 this.createVertexTemplateEntry(s + 'firewall.svg;', 48 d * 0.61, d, '', 'Firewall', false, null, this.getTagsForStencil(gn, 'firewall', dt).join(' ')), 49 this.createVertexTemplateEntry(s + 'folder.svg;', 50 d * 0.73, d, '', 'Folder', false, null, this.getTagsForStencil(gn, 'folder', dt).join(' ')), 51 this.createVertexTemplateEntry(s + 'folder_open.svg;', 52 d * 0.92, d, '', 'Folder Open', false, null, this.getTagsForStencil(gn, 'folder open', dt).join(' ')), 53 this.createVertexTemplateEntry(s + 'generic_node.svg;', 54 d, d * 0.98, '', 'Generic Node', false, null, this.getTagsForStencil(gn, 'generic node', dt).join(' ')), 55 this.createVertexTemplateEntry(s + 'generic_server.svg;', 56 d * 0.56, d, '', 'Generic Server', false, null, this.getTagsForStencil(gn, 'generic server', dt).join(' ')), 57 this.createVertexTemplateEntry(s + 'hard_disk.svg;', 58 d, d * 0.54, '', 'Hard Disk', false, null, this.getTagsForStencil(gn, 'hard disk', dt).join(' ')), 59 this.createVertexTemplateEntry(s + 'home.svg;', 60 d, d * 0.97, '', 'Home', false, null, this.getTagsForStencil(gn, 'home', dt).join(' ')), 61 this.createVertexTemplateEntry(s + 'home_page.svg;', 62 d, d * 0.9, '', 'Home Page', false, null, this.getTagsForStencil(gn, 'home page', dt).join(' ')), 63 this.createVertexTemplateEntry(s + 'input_output_filter.svg;', 64 d * 0.67, d, '', 'Input/Output Filter', false, null, this.getTagsForStencil(gn, 'input output filter io', dt).join(' ')), 65 this.createVertexTemplateEntry(s + 'interface.svg;', 66 d, d * 0.47, '', 'Interface', false, null, this.getTagsForStencil(gn, 'active', dt).join(' ')), 67 this.createVertexTemplateEntry(s + 'internet_cloud.svg;', 68 d, d * 0.63, '', 'Internet Cloud', false, null, this.getTagsForStencil(gn, 'internet cloud', dt).join(' ')), 69 this.createVertexTemplateEntry(s + 'internet_globe.svg;', 70 d, d, '', 'Internet Globe', false, null, this.getTagsForStencil(gn, 'internet globe', dt).join(' ')), 71 this.createVertexTemplateEntry(s + 'key.svg;', 72 d, d * 0.74, '', 'Key', false, null, this.getTagsForStencil(gn, 'key', dt).join(' ')), 73 this.createVertexTemplateEntry(s + 'laptop_client.svg;', 74 d * 0.9, d, '', 'Laptop Client', false, null, this.getTagsForStencil(gn, 'laptop client', dt).join(' ')), 75 this.createVertexTemplateEntry(s + 'list.svg;', 76 d * 0.7, d, '', 'List', false, null, this.getTagsForStencil(gn, 'list', dt).join(' ')), 77 this.createVertexTemplateEntry(s + 'mac_client.svg;', 78 d * 0.94, d, '', 'Mac Client', false, null, this.getTagsForStencil(gn, 'mac macintosh client', dt).join(' ')), 79 this.createVertexTemplateEntry(s + 'mainframe.svg;', 80 d, d * 0.95, '', 'Mainframe', false, null, this.getTagsForStencil(gn, 'mainframe', dt).join(' ')), 81 this.createVertexTemplateEntry(s + 'mainframe_host.svg;', 82 d * 0.72, d, '', 'Mainframe Host', false, null, this.getTagsForStencil(gn, 'mainframe host', dt).join(' ')), 83 this.createVertexTemplateEntry(s + 'meeting.svg;', 84 d, d * 0.91, '', 'Meeting', false, null, this.getTagsForStencil(gn, 'meeting', dt).join(' ')), 85 this.createVertexTemplateEntry(s + 'modem.svg;', 86 d, d * 0.83, '', 'Modem', false, null, this.getTagsForStencil(gn, 'modem', dt).join(' ')), 87 this.createVertexTemplateEntry(s + 'my_sites.svg;', 88 d, d * 0.9, '', 'My Sites', false, null, this.getTagsForStencil(gn, 'my sites', dt).join(' ')), 89 this.createVertexTemplateEntry(s + 'not_secure.svg;', 90 d * 0.88, d, '', 'Not Secure', false, null, this.getTagsForStencil(gn, 'not secure', dt).join(' ')), 91 this.createVertexTemplateEntry(s + 'pda.svg;', 92 d * 0.54, d, '', 'PDA', false, null, this.getTagsForStencil(gn, 'pda personal digital assistant', dt).join(' ')), 93 this.createVertexTemplateEntry(s + 'phone.svg;', 94 d, d * 0.79, '', 'Phone', false, null, this.getTagsForStencil(gn, 'phone', dt).join(' ')), 95 this.createVertexTemplateEntry(s + 'printer.svg;', 96 d, d * 0.66, '', 'Printer', false, null, this.getTagsForStencil(gn, 'printer', dt).join(' ')), 97 this.createVertexTemplateEntry(s + 'router.svg;', 98 d, d * 0.76, '', 'Router', false, null, this.getTagsForStencil(gn, 'router', dt).join(' ')), 99 this.createVertexTemplateEntry(s + 'secure.svg;', 100 d * 0.64, d, '', 'Secure', false, null, this.getTagsForStencil(gn, 'secure', dt).join(' ')), 101 this.createVertexTemplateEntry(s + 'security.svg;', 102 d * 0.63, d, '', 'Security', false, null, this.getTagsForStencil(gn, 'security', dt).join(' ')), 103 this.createVertexTemplateEntry(s + 'server_farm.svg;', 104 d, d, '', 'Server Farm', false, null, this.getTagsForStencil(gn, 'server farm', dt).join(' ')), 105 this.createVertexTemplateEntry(s + 'shadowed_router.svg;', 106 d * 0.82, d, '', 'Shadowed Router', false, null, this.getTagsForStencil(gn, 'shadowed router', dt).join(' ')), 107 this.createVertexTemplateEntry(s + 'site_collection.svg;', 108 d, d * 0.94, '', 'Site Collection', false, null, this.getTagsForStencil(gn, 'site collection', dt).join(' ')), 109 this.createVertexTemplateEntry(s + 'sql_server.svg;', 110 d * 0.77, d, '', 'SQL Server', false, null, this.getTagsForStencil(gn, 'sql server', dt).join(' ')), 111 this.createVertexTemplateEntry(s + 'sub_site.svg;', 112 d, d * 0.86, '', 'Sub-site', false, null, this.getTagsForStencil(gn, 'sub site', dt).join(' ')), 113 this.createVertexTemplateEntry(s + 'switch.svg;', 114 d, d, '', 'Switch', false, null, this.getTagsForStencil(gn, 'switch', dt).join(' ')), 115 this.createVertexTemplateEntry(s + 'tablet_pc.svg;', 116 d * 0.73, d, '', 'Tablet PC', false, null, this.getTagsForStencil(gn, 'tablet pc', dt).join(' ')), 117 this.createVertexTemplateEntry(s + 'tunnel.svg;', 118 d, d * 0.2, '', 'Tunnel', false, null, this.getTagsForStencil(gn, 'tunnel', dt).join(' ')), 119 this.createVertexTemplateEntry(s + 'user.svg;', 120 d * 0.37, d, '', 'User', false, null, this.getTagsForStencil(gn, 'user', dt).join(' ')), 121 this.createVertexTemplateEntry(s + 'user_accounts.svg;', 122 d, d * 0.97, '', 'User Accounts', false, null, this.getTagsForStencil(gn, 'user accounts', dt).join(' ')), 123 this.createVertexTemplateEntry(s + 'users.svg;', 124 d * 0.66, d, '', 'Users', false, null, this.getTagsForStencil(gn, 'users', dt).join(' ')), 125 this.createVertexTemplateEntry(s + 'vista_client.svg;', 126 d * 0.76, d, '', 'Vista Client', false, null, this.getTagsForStencil(gn, 'vista client', dt).join(' ')), 127 this.createVertexTemplateEntry(s + 'vista_terminal.svg;', 128 d * 0.65, d, '', 'Vista Terminal', false, null, this.getTagsForStencil(gn, 'vista terminal', dt).join(' ')), 129 this.createVertexTemplateEntry(s + 'web_server.svg;', 130 d * 0.8, d, '', 'Web Server', false, null, this.getTagsForStencil(gn, 'web server', dt).join(' ')), 131 this.createVertexTemplateEntry(s + 'wiki_site.svg;', 132 d, d, '', 'Wiki Site', false, null, this.getTagsForStencil(gn, 'wiki site', dt).join(' ')), 133 this.createVertexTemplateEntry(s + 'windows_domain.svg;', 134 d, d * 0.85, '', 'Windows Domain', false, null, this.getTagsForStencil(gn, 'windows domain', dt).join(' ')), 135 this.createVertexTemplateEntry(s + 'windows_router.svg;', 136 d * 0.8, d, '', 'Windows Router', false, null, this.getTagsForStencil(gn, 'windows router', dt).join(' ')), 137 this.createVertexTemplateEntry(s + 'windows_server.svg;', 138 d * 0.82, d, '', 'Windows Server', false, null, this.getTagsForStencil(gn, 'windows server', dt).join(' ')), 139 this.createVertexTemplateEntry(s + 'windows_server_2.svg;', 140 d * 0.8, d, '', 'Windows Server', false, null, this.getTagsForStencil(gn, 'windows server', dt).join(' ')), 141 this.createVertexTemplateEntry(s + 'wiring_hub.svg;', 142 d, d * 0.68, '', 'Wiring Hub', false, null, this.getTagsForStencil(gn, 'wiring hub', dt).join(' ')), 143 this.createVertexTemplateEntry(s + 'workspace_site.svg;', 144 d, d * 0.97, '', 'Workspace Site', false, null, this.getTagsForStencil(gn, 'workspace site', dt).join(' ')), 145 this.createVertexTemplateEntry(s + 'workstation_client.svg;', 146 d * 0.85, d, '', 'Workstation Client', false, null, this.getTagsForStencil(gn, 'workstation client', dt).join(' ')), 147 this.createVertexTemplateEntry(s + 'writer.svg;', 148 d * 0.96, d, '', 'Writer', false, null, this.getTagsForStencil(gn, 'writer', dt).join(' ')), 149 this.createVertexTemplateEntry(s + 'writing.svg;', 150 d * 0.98, d, '', 'Writing', false, null, this.getTagsForStencil(gn, 'writing', dt).join(' ')) 151 ]; 152 153 this.addPalette('active_directory', 'Active Directory', false, mxUtils.bind(this, function(content) 154 { 155 for (var i = 0; i < fns.length; i++) 156 { 157 content.appendChild(fns[i](content)); 158 } 159 })); 160 161 this.setCurrentSearchEntryLibrary(); 162 }; 163})(); 164