1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.seasar.tuigwaa.plugin;
17
18 import javax.servlet.http.HttpServletRequest;
19 import javax.servlet.http.HttpServletResponse;
20
21 import org.seasar.tuigwaa.cms.core.CmsRequest;
22 import org.seasar.tuigwaa.cms.core.CmsResponse;
23
24
25
26 /***
27 * @author someda
28 */
29 public interface Plugin {
30
31 public boolean isBlockpluginSupported();
32
33 public boolean isInlinepluginSupported();
34
35 public boolean isHtmlSupported();
36
37 public boolean isPdfSupported();
38
39 public Object service(CmsRequest request, CmsResponse response, PluginRequest prequest) throws PluginException;
40
41 public String doHTMLView(CmsRequest request, CmsResponse response, PluginRequest prequest) throws PluginException;
42
43 public Object doPDFView(CmsRequest request, CmsResponse response, PluginRequest prequest) throws PluginException;
44
45 public String doAction(HttpServletRequest request, HttpServletResponse response);
46
47 public void setPluginConfig(PluginConfig pluginConfig);
48
49 public void setWebAppli(WebAppli appli);
50 }