1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.exoplatform.services.wcm.publication;
21
22 import org.exoplatform.services.wcm.core.NodeLocation;
23
24 import javax.jcr.Node;
25 import java.util.HashMap;
26 import java.util.List;
27
28
29
30
31
32
33 public class Result {
34
35 private NodeLocation nodeLocationDescriber;
36
37 private HashMap<String, String> filtersDescriber;
38
39 private List<Node> nodes;
40
41 private long offset;
42
43 private long numTotal;
44
45 public Result(List<Node> nodes, long offset, long numTotal,
46 NodeLocation nodeLocationDescriber,
47 HashMap<String, String> filtersDescriber) {
48 this.nodes = nodes;
49 this.offset = offset;
50 this.numTotal = numTotal;
51 this.filtersDescriber = filtersDescriber;
52 this.nodeLocationDescriber = nodeLocationDescriber;
53 }
54
55 public NodeLocation getNodeLocationDescriber() {
56 return nodeLocationDescriber;
57 }
58
59 public HashMap<String, String> getFiltersDescriber() {
60 return filtersDescriber;
61 }
62
63 public List<Node> getNodes() {
64 return nodes;
65 }
66
67 public long getOffset() {
68 return offset;
69 }
70
71 public long getNumTotal() {
72 return numTotal;
73 }
74
75 public void setNumTotal(long value) {
76 numTotal = value;
77 }
78
79 }