1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.portals.gems.browser;
18
19 import java.util.List;
20
21 import javax.portlet.PortletRequest;
22
23
24 import org.apache.velocity.context.Context;
25
26 /***
27 * Browser Query Fetch Interface
28 *
29 * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
30 * @version $Id: BrowserQuery.java 516448 2007-03-09 16:25:47Z ate $
31 *
32 */
33 public interface BrowserQuery
34 {
35
36 /***
37 * This method returns the query to be executed to get the results which will
38 * be opened in the browser.
39 *
40 */
41 public String getQueryString(PortletRequest request, Context context);
42
43 /***
44 * Filter the row programmatically on a query.
45 * By returning true, instruct the database browser to filter the row.
46 * By returning false, instruct the database browser to keep the row.
47 * (Filtering means removing the row from the final result set).
48 *
49 * @param row The row being inspected for filtration.
50 * @return True to filter the row, false to keep it.
51 */
52 public boolean filter(List row, PortletRequest request);
53
54
55
56
57
58
59
60 public void setSQLParameters(List parameters);
61
62 public List getSQLParameters();
63
64
65 }