ProductCollectionsSavedSearchHandler.java
1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* com.adobe.granite.omnisearch.spi.core.SavedSearchHandler
* com.day.cq.search.QueryBuilder
* org.apache.felix.scr.annotations.Component
* org.apache.felix.scr.annotations.Reference
* org.apache.felix.scr.annotations.Service
*/
package com.adobe.cq.commerce.impl.omnisearch;
import com.adobe.cq.commerce.impl.omnisearch.AbstractCommerceSavedSearchHandler;
import com.adobe.granite.omnisearch.spi.core.SavedSearchHandler;
import com.day.cq.search.QueryBuilder;
import org.apache.felix.scr.annotations.Component;
import org.apache.felix.scr.annotations.Reference;
import org.apache.felix.scr.annotations.Service;
@Component(immediate=1)
@Service(value={SavedSearchHandler.class})
public class ProductCollectionsSavedSearchHandler
extends AbstractCommerceSavedSearchHandler {
private static final String LOCATION = "productcollection";
@Reference
private QueryBuilder queryBuilder = null;
@Override
QueryBuilder getQueryBuilder() {
return this.queryBuilder;
}
public String getID() {
return "productcollection";
}
protected void bindQueryBuilder(QueryBuilder queryBuilder) {
this.queryBuilder = queryBuilder;
}
protected void unbindQueryBuilder(QueryBuilder queryBuilder) {
if (this.queryBuilder == queryBuilder) {
this.queryBuilder = null;
}
}
}