Blame view

js/app/stores/ExplorerReader.js 1.88 KB
16035364   Benjamin Renard   First commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/** 
 * Project  : AMDA-NG4
 * Name     : ExplorerReader.js
 * @class   amdaReader.ExplorerReader
 * @extends amdaReader.AmdaTreeReader 
 * @brief    
 * @author  CDA
 * @version $Id: ExplorerReader.js
 */

Ext.define('amdaReader.ExplorerReader', {
    extend: 'amdaReader.AmdaTreeReader',
        
    alias: 'reader.explorer',
    
    /**
     * @override amdaReader.AmdaTreeReader.getType
     */

	getType: function(node){
16035364   Benjamin Renard   First commit
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
        switch (node.nodeType) {
        
            case 'derivedParam':
                return amdaModel.DerivedParamNode; 
            case 'localParam':
                return amdaModel.LocalParamNode; 
            case 'remoteParam':
                return amdaModel.RemoteParamNode; 
            case 'remoteSimuParam':
                return amdaModel.RemoteSimuParamNode; 
            case 'myDataParam':
                return amdaModel.MyDataParamNode; 
            case 'myData':
                return amdaModel.MyDataNode;
            case 'alias':
            	return amdaModel.AliasNode;
            case 'timeTable' :
                return amdaModel.TimeTableNode;
98c92bbf   Erdogan Furkan   #10557 - Done (Ma...
39
	        case 'catalog' :
f792a3de   elena   catalog ihm
40
                return amdaModel.CatalogNode;
16035364   Benjamin Renard   First commit
41
42
            case 'sharedtimeTable' :
            	return amdaModel.sharedTimeTableNode;
169f14d2   Benjamin Renard   Add shared object...
43
44
            case 'sharedcatalog' :
            	return amdaModel.sharedCatalogNode;
16035364   Benjamin Renard   First commit
45
46
47
            case 'condition' :
                return amdaModel.SearchNode; 
            case 'request' :
f569bae5   Benjamin Renard   Save download
48
49
                return amdaModel.PlotNode;
            case 'download' :
2e7079bb   Benjamin Renard   First implementat...
50
51
52
                return amdaModel.DownloadNode;
            case 'statistic' :
                return amdaModel.StatisticsNode;
16035364   Benjamin Renard   First commit
53
            case 'bkgWorks' :
b0f72ee0   Erdogan Furkan   #10557 For now
54
55
                return amdaModel.BkgJobNode;
            case 'specialParam':
98c92bbf   Erdogan Furkan   #10557 - Done (Ma...
56
                return amdaModel.SpecialParamNode; 	  
16035364   Benjamin Renard   First commit
57
58
59
60
61
62
63
            default:
                return amdaModel.InteractiveNode;

        }

        
    }
f569bae5   Benjamin Renard   Save download
64
});