01: package org.gridsphere.portletcontainer;
02:
03: import javax.servlet.http.HttpServletRequest;
04: import javax.servlet.http.HttpServletResponse;
05: import javax.portlet.PortalContext;
06: import javax.portlet.Portlet;
07: import javax.portlet.PortletMode;
08: import java.util.Locale;
09: import java.util.List;
10: import java.util.SortedSet;
11: import java.util.Set;
12: import java.io.IOException;
13:
14: /**
15: * @author <a href="mailto:novotny@gridsphere.org">Jason Novotny</a>
16: * @version $Id: ApplicationPortlet.java 6385 2007-10-25 14:02:26Z wehrens $
17: */
18: public interface ApplicationPortlet {
19:
20: public String getWebApplicationName();
21:
22: public String getApplicationPortletID();
23:
24: public PortletDispatcher getPortletDispatcher(
25: HttpServletRequest req, HttpServletResponse res);
26:
27: public String getApplicationPortletName();
28:
29: public String getApplicationPortletClassName();
30:
31: public PortalContext getPortalContext();
32:
33: public String getPortletDescription(Locale locale);
34:
35: public String getPortletDisplayName(Locale locale);
36:
37: public int getExpirationCache();
38:
39: public Locale[] getSupportedLocales();
40:
41: public PortletPreferencesManager getPortletPreferencesManager(
42: String portletId, String userId, boolean isRender);
43:
44: public Portlet getPortletInstance();
45:
46: public void setApplicationPortletStatus(PortletStatus status);
47:
48: public void setApplicationPortletStatusMessage(String statusMessage);
49:
50: public PortletStatus getApplicationPortletStatus();
51:
52: public String getApplicationPortletStatusMessage();
53:
54: public String getPortletName();
55:
56: public List<javax.portlet.WindowState> getAllowedWindowStates();
57:
58: public Set<String> getSupportedModes(String markup);
59:
60: public SortedSet<String> getSupportedMimeTypes(PortletMode mode);
61:
62: public long getCacheExpires();
63:
64: public String getConcretePortletID();
65:
66: public String getDefaultLocale();
67:
68: public String getDescription(Locale loc);
69:
70: public String getDisplayName(Locale loc);
71:
72: public String getRequiredRole();
73:
74: public void setRequiredRole(String role);
75:
76: public void save() throws IOException;
77: }
|