01: /*
02: * (C) Copyright 2000 - 2004 Nabh Information Systems, Inc.
03: *
04: * This program is free software; you can redistribute it and/or
05: * modify it under the terms of the GNU General Public License
06: * as published by the Free Software Foundation; either version 2
07: * of the License, or (at your option) any later version.
08: *
09: * This program is distributed in the hope that it will be useful,
10: * but WITHOUT ANY WARRANTY; without even the implied warranty of
11: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12: * GNU General Public License for more details.
13: *
14: * You should have received a copy of the GNU General Public License
15: * along with this program; if not, write to the Free Software
16: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17: *
18: */
19:
20: package com.nabhinc.portal.container;
21:
22: import java.util.Map;
23:
24: import javax.portlet.PortletMode;
25: import javax.portlet.PortletModeException;
26: import javax.portlet.PortletPreferences;
27: import javax.portlet.PortletSecurityException;
28: import javax.portlet.WindowState;
29: import javax.servlet.http.HttpServletRequest;
30:
31: import com.nabhinc.portal.model.PortletWindowConfig;
32:
33: /**
34: *
35: *
36: * @author Padmanabh Dabke
37: * (c) 2004 Nabh Information Systems, Inc. All Rights Reserved.
38: */
39: public interface PortalInterface {
40:
41: // public void checkWindowState(WindowState wState, String mimeType) throws WindowStateException;
42:
43: public void checkPortletMode(PortletMode pMode, String mimeType,
44: HttpServletRequest req) throws PortletModeException,
45: PortletSecurityException;
46:
47: public PortletPreferences getPreferences(HttpServletRequest req);
48:
49: public String getPortletWindowId();
50:
51: public String getServletRole(String portletRole);
52:
53: public String createRenderURL(boolean isSecure, PortletMode pMode,
54: WindowState wState, Map paramMap, HttpServletRequest req,
55: String displayMode);
56:
57: public String createActionURL(boolean isSecure, PortletMode pMode,
58: WindowState wState, Map paramMap, HttpServletRequest req,
59: String displayMode);
60:
61: public PortletWindowConfig getPortletWindowConfig();
62:
63: public void setPortletWindowConfig(PortletWindowConfig config);
64: }
|