public class PortletPrincipalProxy extends Object implements PrincipalProxy
Constructor and Description |
---|
PortletPrincipalProxy(javax.portlet.PortletRequest request)
Constructs a proxy
|
Modifier and Type | Method and Description |
---|---|
String |
getRemoteUser()
Gets the user id
|
javax.servlet.http.HttpServletRequest |
getRequest()
Deprecated.
To obtain the HttpServletRequest in your action, use
servlet.ServletRequestAware , since this method will be dropped in future. |
Principal |
getUserPrincipal()
Gets the user principal
|
boolean |
isRequestSecure()
Is the request using https?
|
boolean |
isUserInRole(String role)
True if the user is in the given role
|
public PortletPrincipalProxy(javax.portlet.PortletRequest request)
request
- The underlying requestpublic boolean isUserInRole(String role)
isUserInRole
in interface PrincipalProxy
role
- The rolepublic Principal getUserPrincipal()
getUserPrincipal
in interface PrincipalProxy
public String getRemoteUser()
getRemoteUser
in interface PrincipalProxy
public boolean isRequestSecure()
isRequestSecure
in interface PrincipalProxy
public javax.servlet.http.HttpServletRequest getRequest()
servlet.ServletRequestAware
, since this method will be dropped in future.getRequest
in interface PrincipalProxy
UnsupportedOperationException
- not supported in this implementation.Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.