Project

General

Profile

« Previous | Next » 

Revision 44826

Make class fields public for ngfactory | use new refine fields in order to display names - not

View differences:

compatibleDataProviders.component.ts
27 27
})
28 28
export class SearchCompatibleDataprovidersComponent {
29 29
  public results =[];
30
  private filters =[];
31
  // public totalResults:number  = 0 ;
32
  private baseUrl:string;
33
  private searchUtils:SearchUtilsClass = new SearchUtilsClass();
34
  private sub: any; private subResults: any;
35
  private _location:Location;
36
  private searchFields:SearchFields = new SearchFields();
37
  private refineFields: string[] =  this.searchFields.DATAPROVIDER_INDEX;
38
  private indexIdsMap: { [key:string]:string } = this.searchFields.DATAPROVIDER_INDEX_PARAM_MAP;
39
  private fieldIdsMap:  { [key:string]:{ name:string, operator:string, type:string, indexField:string, equalityOperator:string  }} = this.searchFields.DATAPROVIDER_FIELDS_MAP;
40
  private _prefixQueryFields: {field:string,opName:string,opValue:string,values:string[]}[] =[{field:"compatibility",opName:"cm",opValue:"not", values:["UNKNOWN","hostedBy","notCompatible"]},{field:"type",opName:"tp",opValue:"not",values: ["other"]}];
30
  public filters =[];
31
  public baseUrl:string;
32
  public searchUtils:SearchUtilsClass = new SearchUtilsClass();
33
  public sub: any; public subResults: any;
34
  public _location:Location;
35
  public searchFields:SearchFields = new SearchFields();
36
  public refineFields: string[] =  this.searchFields.DATAPROVIDER_INDEX;
37
  public indexIdsMap: { [key:string]:string } = this.searchFields.DATAPROVIDER_INDEX_PARAM_MAP;
38
  public fieldIdsMap:  { [key:string]:{ name:string, operator:string, type:string, indexField:string, equalityOperator:string  }} = this.searchFields.DATAPROVIDER_FIELDS_MAP;
39
  public _prefixQueryFields: {field:string,opName:string,opValue:string,values:string[]}[] =[{field:"compatibility",opName:"cm",opValue:"not", values:["UNKNOWN","hostedBy","notCompatible"]},{field:"type",opName:"tp",opValue:"not",values: ["other"]}];
41 40
  // ["entityregistry","entityregistry::projects","entityregistry::repositories"]}];
42
  private _prefixQuery: string = "";
41
  public _prefixQuery: string = "";
43 42

  
44
  private CSV: any = {  "columnNames":  [ "Title", "Type", "Coutries", "Compatibility" ],
43
  public CSV: any = {  "columnNames":  [ "Title", "Type", "Coutries", "Compatibility" ],
45 44
                        "export":[]
46 45
                     };
47
  private CSVDownloaded = false;
46
  public CSVDownloaded = false;
48 47

  
49 48
  @ViewChild (SearchPageComponent) searchPage : SearchPageComponent ;
50 49

  
......
62 61
    this._prefixQuery+="&";
63 62
  }
64 63

  
65
  private ngOnInit() {
64
  public ngOnInit() {
66 65
    this.searchPage.refineFields = this.refineFields;
67 66
    this.searchPage.indexIdsMap = this.indexIdsMap;
68 67
    this.searchPage.fieldIdsMap = this.fieldIdsMap;
......
75 74
    });
76 75
  }
77 76

  
78
  private ngOnDestroy() {
77
  public ngOnDestroy() {
79 78
    if(this.sub){
80 79
      this.sub.unsubscribe();
81 80
    }
......
112 111
    //TODO set filters from
113 112
  }
114 113

  
115
  private queryChanged($event) {
114
  public queryChanged($event) {
116 115
    var parameters = $event.index;
117 116
    console.info("queryChanged: Execute search query "+parameters);
118 117

  
......
148 147
    return filters;
149 148
    }
150 149

  
151
    private downloadClicked($event) {
150
    public downloadClicked($event) {
152 151
        if(!this.CSVDownloaded) {
153 152
            this.CSVDownloaded = false;
154 153

  

Also available in: Unified diff