View Javadoc
1   /*
2    * Copyright (C) 2010 Egg Prod (by benjamin paillereau)
3    *
4    * This is free software; you can redistribute it and/or modify it
5    * under the terms of the GNU Lesser General Public License as
6    * published by the Free Software Foundation; either version 2.1 of
7    * the License, or (at your option) any later version.
8    *
9    * This software is distributed in the hope that it will be useful,
10   * but WITHOUT ANY WARRANTY; without even the implied warranty of
11   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12   * Lesser General Public License for more details.
13   *
14   * You should have received a copy of the GNU Lesser General Public
15   * License along with this software; if not, write to the Free
16   * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
17   * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
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   * Date: 12/05/11
30   * 
31   * @author <a href="mailto:bpaillereau@gmail.com">Benjamin Paillereau</a>
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  }