blob: ad17b069d62327fce880c4d7ea5f675fdb281920 [file] [log] [blame]
Michael Landoed64b5e2017-06-09 03:19:04 +03001/**
2 * Created by obarda on 2/23/2016.
3 */
4'use strict';
5import {ComponentType} from "../utils/constants";
6
7interface IAvailableIconsService {
8 getIcons(componentType:ComponentType):Array<string>;
9}
10
11export class AvailableIconsService implements IAvailableIconsService {
12 constructor() {
13 }
14
15 public getIcons = (componentType:string):Array<string> => {
16
17 let icons:Array<string>;
18
19 switch (componentType) {
20 case ComponentType.SERVICE:
21 icons = [
22 'call_controll',
23 'mobility',
24 'network_l_1-3',
25 'network_l_4'
26 ];
27 break;
28
29 case ComponentType.RESOURCE:
30 icons = [
31 'router',
32 'database',
33 'network',
34 'objectStorage',
35 'connector',
36 'brocade',
37 'cisco',
38 'ericsson',
39 'tropo',
40 'fortinet',
41 'att',
42 'broadsoft',
43 'alcatelLucent',
44 'metaswitch',
45 'aricent',
46 'mySql',
47 'oracle',
48 'nokia_siemens',
49 'juniper',
50 'call_controll',
51 'borderElement',
52 'applicationServer',
53 'server',
54 'port',
55 'loadBalancer',
56 'compute',
57 'gateway',
58 'cp',
59 'vl',
60 'vfw',
61 'firewall'
62 ];
63 break;
64
65 case ComponentType.PRODUCT:
66 icons = [
67 'vfw',
68 'network',
69 'security',
70 'cloud',
71 'setting',
72 'orphan',
73 'wanx',
74 'vrouter',
75 'ucpe',
76 'mobility'
77
78 ];
79 break;
80
81 }
82 return icons;
83 }
84}
85
86
87