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:

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

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

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

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

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

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

  
114
  private queryChanged($event) {
114
  public queryChanged($event) {
115 115
    var parameters = $event.index;
116 116
    console.info("queryChanged: Execute search query "+parameters);
117 117
    this._getResults(parameters, false, this.searchUtils.page, this.searchUtils.size);
......
145 145

  
146 146

  
147 147

  
148
      private downloadClicked($event) {
148
      public downloadClicked($event) {
149 149
          if(!this.CSVDownloaded) {
150 150
              this.CSVDownloaded = false;
151 151

  

Also available in: Unified diff