|
1 |
| -// import { IBag } from '../IBag'; |
| 1 | +// import { Bag } from '../Bag'; |
2 | 2 | // import { ILocalCache } from '../caching/ILocalCache';
|
3 | 3 | // import { IGithubClient } from '../github/IGithubClient';
|
4 | 4 | // import { IFileReference } from '../github/IFileReference';
|
|
18 | 18 | // private readonly githubClient: IGithubClient;
|
19 | 19 | // private readonly indexFileName: string;
|
20 | 20 |
|
21 |
| -// public index: IBag<IFileReference>; |
| 21 | +// public index: Bag<IFileReference>; |
22 | 22 |
|
23 | 23 | // constructor(localCache: ILocalCache, githubClient: IGithubClient) {
|
24 | 24 | // this.localCache = localCache;
|
|
31 | 31 | // this.indexFileName = githubClient.repositoryName;
|
32 | 32 | // }
|
33 | 33 |
|
34 |
| -// private getIndex(): Promise<IBag<IFileReference>> { |
| 34 | +// private getIndex(): Promise<Bag<IFileReference>> { |
35 | 35 | // if (!this.index[this.indexFileName]) {
|
36 | 36 | // let indexFileContent = this.localCache.getItem<string>(this.indexFileName);
|
37 | 37 |
|
|
143 | 143 | // }
|
144 | 144 | // }
|
145 | 145 |
|
146 |
| -// // addObject<T>(path:string, content:T, metadata:Paperbits.IBag<string>) { |
| 146 | +// // addObject<T>(path:string, content:T, metadata:Paperbits.Bag<string>) { |
147 | 147 | // // this.localCache.setItem(path, content);
|
148 | 148 | // //
|
149 | 149 | // // this.index[path] = {
|
|
162 | 162 | // }
|
163 | 163 |
|
164 | 164 | // public searchObjectsByMetadata(path: string, metadataKey: Array<string>, metadataValue: string, exactSearch: boolean): Promise<Array<IFileReference>> {
|
165 |
| -// return this.getIndex().then((index: IBag<IFileReference>) => { |
| 165 | +// return this.getIndex().then((index: Bag<IFileReference>) => { |
166 | 166 | // let result = new Array<IFileReference>();
|
167 | 167 |
|
168 | 168 | // for (let key in index) {
|
|
229 | 229 | // // }
|
230 | 230 | // // }
|
231 | 231 |
|
232 |
| -// public updateObjectsMetadata(path: string, metadata: IBag<string>) { |
| 232 | +// public updateObjectsMetadata(path: string, metadata: Bag<string>) { |
233 | 233 | // let reference: IFileReference = this.index[path];
|
234 | 234 | // $.extend(reference.metadata, metadata);
|
235 | 235 | // }
|
|
0 commit comments