org.jboss.portlet
Class JBossRenderRequest

java.lang.Object
  extended by org.jboss.portal.portlet.impl.PortletRequestImpl
      extended by org.jboss.portal.portlet.impl.RenderRequestImpl
          extended by org.jboss.portlet.JBossRenderRequest
All Implemented Interfaces:
PortletRequest, RenderRequest

public class JBossRenderRequest
extends RenderRequestImpl


Field Summary
 
Fields inherited from class org.jboss.portal.portlet.impl.PortletRequestImpl
component, contentTypes, dreq, instance, instanceCtx, log, portalContext, preferences, psession, req, resp, sessionStatus, userContext, userInfo, window, windowCtx
 
Fields inherited from interface javax.portlet.PortletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH, USER_INFO
 
Constructor Summary
JBossRenderRequest(UserContext userContext, PortletPreferences preferences, Window window, WindowContext windowContext, PortalRequest req, PortalResponse resp, javax.servlet.http.HttpServletRequest dreq)
           
 
Method Summary
protected  PortletPreferences createPreferences()
           
 AuthorizationRealm getAuthorizationRealm()
          Returns the authorization manager for this request.
 java.util.Map getInformations()
          Returns a modifiable map of user informations or null if the user is not authenticated.
 Parameters getParameters()
           
 java.util.Iterator getPortalObjects()
          Returns an internal iterator over the internal link available from this portlet.
 PortalServer getServer()
          Deprecated.  
 java.lang.String getURL()
           
 java.lang.String getURL(java.lang.Boolean wantAuthenticated, java.lang.Boolean wantSecure)
           
 User getUser()
          Returns the current authenticated user or null if the user is not authenticated
 boolean hasPermission(java.lang.String permission)
          Return true if the given role has the global permission on the given domain.
 boolean hasPermission(java.lang.String[] path, java.lang.String permission)
          Return true if the given role has the global permission on the given domain.
 boolean hasPermission(java.lang.String domain, java.lang.String permission)
          Return true if the given role has the global permission on the given domain.
 boolean hasPermission(java.lang.String domain, java.lang.String[] path, java.lang.String permission)
          Return true if the given role has the local permission.
 
Methods inherited from class org.jboss.portal.portlet.impl.RenderRequestImpl
getParameter, getParameterMap, getParameterNames, getParameterValues
 
Methods inherited from class org.jboss.portal.portlet.impl.PortletRequestImpl
getAttribute, getAttributeNames, getAuthType, getContextPath, getLocale, getLocales, getPortalContext, getPortletMode, getPortletSession, getPortletSession, getPreferences, getProperties, getProperty, getPropertyNames, getRemoteUser, getRequestedSessionId, getResponseContentType, getResponseContentTypes, getScheme, getServerName, getServerPort, getUserPrincipal, getWindowState, isPortletModeAllowed, isRequestedSessionIdValid, isSecure, isUserInRole, isWindowStateAllowed, removeAttribute, setAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.portlet.PortletRequest
getAttribute, getAttributeNames, getAuthType, getContextPath, getLocale, getLocales, getPortalContext, getPortletMode, getPortletSession, getPortletSession, getPreferences, getProperties, getProperty, getPropertyNames, getRemoteUser, getRequestedSessionId, getResponseContentType, getResponseContentTypes, getScheme, getServerName, getServerPort, getUserPrincipal, getWindowState, isPortletModeAllowed, isRequestedSessionIdValid, isSecure, isUserInRole, isWindowStateAllowed, removeAttribute, setAttribute
 

Constructor Detail

JBossRenderRequest

public JBossRenderRequest(UserContext userContext,
                          PortletPreferences preferences,
                          Window window,
                          WindowContext windowContext,
                          PortalRequest req,
                          PortalResponse resp,
                          javax.servlet.http.HttpServletRequest dreq)
Method Detail

getPortalObjects

public java.util.Iterator getPortalObjects()
Returns an internal iterator over the internal link available from this portlet. This API is subject to change.


getServer

public PortalServer getServer()
Deprecated. 

Exposed temporarily.


getInformations

public java.util.Map getInformations()
Returns a modifiable map of user informations or null if the user is not authenticated.


getUser

public User getUser()
Returns the current authenticated user or null if the user is not authenticated


getParameters

public Parameters getParameters()

getURL

public java.lang.String getURL()

getURL

public java.lang.String getURL(java.lang.Boolean wantAuthenticated,
                               java.lang.Boolean wantSecure)

hasPermission

public boolean hasPermission(java.lang.String domain,
                             java.lang.String permission)
Return true if the given role has the global permission on the given domain.


hasPermission

public boolean hasPermission(java.lang.String permission)
Return true if the given role has the global permission on the given domain.


hasPermission

public boolean hasPermission(java.lang.String domain,
                             java.lang.String[] path,
                             java.lang.String permission)
Return true if the given role has the local permission.


hasPermission

public boolean hasPermission(java.lang.String[] path,
                             java.lang.String permission)
Return true if the given role has the global permission on the given domain.


createPreferences

protected PortletPreferences createPreferences()

getAuthorizationRealm

public AuthorizationRealm getAuthorizationRealm()
Returns the authorization manager for this request.