org.jboss.portlet
Class JBossActionRequest

java.lang.Object
  extended by org.jboss.portal.portlet.impl.PortletRequestImpl
      extended by org.jboss.portal.portlet.impl.ActionRequestImpl
          extended by org.jboss.portlet.JBossActionRequest
All Implemented Interfaces:
ActionRequest, PortletRequest

public class JBossActionRequest
extends ActionRequestImpl


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
JBossActionRequest(UserContext userContext, PortletPreferences preferences, Window window, WindowContext windowCtx, PortalRequest req, PortalResponse resp, javax.servlet.http.HttpServletRequest dreq)
           
 
Method Summary
protected  PortletPreferences createPreferences()
           
 java.lang.Boolean getIdempotent()
           
 java.util.Map getInformations()
          Returns a modifiable map of user informations or null if the user is not authenticated.
 Parameters getParameters()
           
 PortalServer getServer()
          Deprecated.  
 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.
 boolean hasPermission(java.lang.String[] path, java.lang.String permission)
          Return true if the given role has the local permission.
 boolean hasPermission(java.lang.String domain, java.lang.String permission)
          Return true if the given role has the global permission on the specified 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 on the specified domain.
 void logout()
          Perform a logout.
 void setIdempotent(java.lang.Boolean idempotent)
           
 
Methods inherited from class org.jboss.portal.portlet.impl.ActionRequestImpl
getCharacterEncoding, getContentLength, getContentType, getParameter, getParameterMap, getParameterNames, getParameterValues, getPortletInputStream, getReader, setCharacterEncoding
 
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

JBossActionRequest

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

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()

getIdempotent

public java.lang.Boolean getIdempotent()

setIdempotent

public void setIdempotent(java.lang.Boolean idempotent)

hasPermission

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


hasPermission

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


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 on the specified domain.


hasPermission

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


createPreferences

protected PortletPreferences createPreferences()

getServer

public PortalServer getServer()
Deprecated. 

Exposed temporarily.


logout

public void logout()
Perform a logout.