Home » struts-2.1.8.1-src » org.apache » struts2 » portlet » interceptor » [javadoc | source]
org.apache.struts2.portlet.interceptor
public class: PortletPrincipalProxy [javadoc | source]
java.lang.Object
   org.apache.struts2.portlet.interceptor.PortletPrincipalProxy

All Implemented Interfaces:
    PrincipalProxy

PrincipalProxy implementation for using PortletRequest Principal related methods.
Constructor:
 public PortletPrincipalProxy(PortletRequest request) 
    Constructs a proxy
    Parameters:
    request - The underlying request
Method from org.apache.struts2.portlet.interceptor.PortletPrincipalProxy Summary:
getRemoteUser,   getRequest,   getUserPrincipal,   isRequestSecure,   isUserInRole
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.struts2.portlet.interceptor.PortletPrincipalProxy Detail:
 public String getRemoteUser() 
    Gets the user id
 public HttpServletRequest getRequest() 
Deprecated! To - obtain the HttpServletRequest in your action, use org.apache.struts2.servlet.ServletRequestAware , since this method will be dropped in future.

    Gets the request.
 public Principal getUserPrincipal() 
    Gets the user principal
 public boolean isRequestSecure() 
    Is the request using https?
 public boolean isUserInRole(String role) 
    True if the user is in the given role