KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > portletcontainer > PortletContainerService


1 package org.exoplatform.services.portletcontainer;
2
3 import java.util.Collection JavaDoc;
4 import java.util.Locale JavaDoc;
5 import java.util.Map JavaDoc;
6 import java.util.ResourceBundle JavaDoc;
7
8 import javax.portlet.PortletMode;
9 import javax.portlet.WindowState;
10 import javax.servlet.ServletContext JavaDoc;
11 import javax.servlet.http.HttpServletRequest JavaDoc;
12 import javax.servlet.http.HttpServletResponse JavaDoc;
13 import org.exoplatform.services.portletcontainer.pci.*;
14 import org.exoplatform.services.portletcontainer.pci.model.PortletApp;
15
16
17 /**
18  * Copyright 2001-2003 The eXo platform SARL All rights reserved.
19  * Please look at license.txt in info directory for more license detail.
20  **/

21
22 /**
23  * Created by the Exo Development team.
24  * Author : Mestrallet Benjamin
25  * benjmestrallet@users.sourceforge.net
26  * Date: 10 nov. 2003
27  * Time: 09:40:23
28  */

29 public interface PortletContainerService {
30
31   public void setPortletContainerName(String JavaDoc containerName);
32
33   public void setMajorVersion(int majorVersion);
34
35   public void setMinorVersion(int minorVersion);
36
37   public void setProperties(Map JavaDoc properties);
38
39   public void setSupportedPortletModesWithDescriptions(Collection JavaDoc portletModes);
40
41   public void setSupportedWindowStatesWithDescriptions(Collection JavaDoc windowStates);
42
43   public Collection JavaDoc getSupportedPortletModes();
44
45   public Collection JavaDoc getSupportedWindowStates();
46
47   public Collection JavaDoc getSupportedPortletModesWithDescriptions();
48
49   public Collection JavaDoc getSupportedWindowStatesWithDescriptions();
50
51   public Collection JavaDoc getPortletModes(String JavaDoc portletAppName, String JavaDoc portletName, String JavaDoc markup);
52
53   public boolean isModeSuported(String JavaDoc portletAppName, String JavaDoc portletName,
54                                 String JavaDoc markup, PortletMode mode);
55
56   public Collection JavaDoc getWindowStates(String JavaDoc portletApplicationName);
57
58   public boolean isStateSupported(WindowState state, String JavaDoc portletApplication);
59
60   public Map JavaDoc getAllPortletMetaData();
61
62   public ResourceBundle JavaDoc getBundle(HttpServletRequest JavaDoc request,
63                                   HttpServletResponse JavaDoc response,
64                                   String JavaDoc portletAppName,
65                                   String JavaDoc portletName,
66                                   Locale JavaDoc locale)
67       throws PortletContainerException;
68
69   public void setPortletPreference(Input input, Map JavaDoc preferences)
70       throws PortletContainerException;
71
72   public Map JavaDoc getPortletPreference(Input input);
73
74   public ActionOutput processAction(HttpServletRequest JavaDoc request,
75                                     HttpServletResponse JavaDoc response,
76                                     ActionInput input)
77       throws PortletContainerException;
78
79   public RenderOutput render(HttpServletRequest JavaDoc request,
80                              HttpServletResponse JavaDoc response,
81                              RenderInput input)
82       throws PortletContainerException;
83
84 }
85
Popular Tags