1 48 49 package com.caucho.portal.generic; 50 51 import javax.portlet.*; 52 import java.io.IOException ; 53 import java.util.ArrayList ; 54 import java.util.Locale ; 55 import java.util.Map ; 56 import java.util.Set ; 57 58 63 public interface Window 64 { 65 public PortletConfig getPortletConfig(); 66 67 public Renderer getRenderer(); 68 69 72 public int getExpirationCache(); 73 74 84 public boolean isPrivate(); 85 86 90 public PortletPreferences getDefaultPreferences(); 91 92 96 public ArrayList <PreferencesValidator> getPreferencesValidators(); 97 98 103 public Map <String , String > getRoleRefMap(); 104 105 110 public ArrayList <Constraint> getConstraints(); 111 112 116 public Set <String > getSupportedContentTypes(PortletMode portletMode); 117 118 121 public Set <Locale > getSupportedLocales(); 122 123 129 public int getBufferSize(); 130 131 137 public boolean isWindowStateAllowed(PortletRequest request, 138 WindowState windowState); 139 140 146 public boolean isPortletModeAllowed(PortletRequest request, 147 PortletMode portletMode); 148 149 161 public PortletMode handlePortletModeFailure( PortletRequest request, 162 PortletMode notAllowed ); 163 164 176 public WindowState handleWindowStateFailure( PortletRequest request, 177 WindowState notAllowed ); 178 179 200 public void handleConstraintFailure( RenderRequest request, 201 RenderResponse response, 202 ConstraintFailureEvent event) 203 throws IOException , PortletException; 204 205 206 280 public void handleException( RenderRequest renderRequest, 281 RenderResponse renderResponse, 282 ExceptionEvent exceptionEvent) 283 throws IOException , PortletException; 284 285 } 286 287 | Popular Tags |