|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.struts2.portlet.interceptor.PortletPrincipalProxy
public class PortletPrincipalProxy
PrincipalProxy implementation for using PortletRequest Principal related methods.
| Constructor Summary | |
|---|---|
PortletPrincipalProxy(javax.portlet.PortletRequest request)
Constructs a proxy |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PortletPrincipalProxy(javax.portlet.PortletRequest request)
request - The underlying request| Method Detail |
|---|
public boolean isUserInRole(String role)
isUserInRole in interface PrincipalProxyrole - The role
public Principal getUserPrincipal()
getUserPrincipal in interface PrincipalProxypublic String getRemoteUser()
getRemoteUser in interface PrincipalProxypublic boolean isRequestSecure()
isRequestSecure in interface PrincipalProxypublic javax.servlet.http.HttpServletRequest getRequest()
servlet.ServletRequestAware, since this method will be dropped in future.
getRequest in interface PrincipalProxyUnsupportedOperationException - not supported in this implementation.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||