01: /*
02: * Copyright 2001 Sun Microsystems, Inc. All rights reserved.
03: * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to license terms.
04: */
05:
06: package com.sun.portal.discussions.providers;
07:
08: import java.net.URL;
09:
10: import javax.servlet.http.HttpServletRequest;
11: import javax.servlet.http.HttpServletResponse;
12:
13: import com.sun.portal.providers.context.ProviderContext;
14: import com.sun.portal.providers.ProviderException;
15: import com.sun.portal.providers.jsp.JSPProvider;
16:
17: /**
18: * This is a DiscussionProvider helper class. The class will have UI helper methods
19: * and portal provider helper methods.
20: * <P>
21: * All search specific requirements will be separate. These can either be taglibrary or moved
22: * to search API or a helper bean
23: */
24: public class DiscussionJSPProvider extends JSPProvider {
25:
26: public String getDbName() throws ProviderException {
27: return getStringProperty("dbname");
28: }
29:
30: // getAnonymousAuthor(docAuthor, DP)
31: // parseRating (DP, UI display)
32: // filterSelection - request param with ui value
33: // viewSelection
34: // createDiscussionUrl - pathinfo
35:
36: /**
37: * Overridden processEdit method, checks for the request parameter
38: * <P>
39: *
40: * @param request the HttpServletRequest.
41: * @param res the HttpServletResponse.
42: * @throws ProviderException if there was a generic Provider error.
43: */
44: /*
45: public URL processEdit(HttpServletRequest request,
46: HttpServletResponse res) throws ProviderException {
47:
48: String editContent = request.getParameter("viewhits");
49: return null;
50: }
51: */
52: // getTitle method
53: }
|