|
||||||||||
| 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 | |
|---|---|
java.lang.String |
getRemoteUser()
Gets the user id |
javax.servlet.http.HttpServletRequest |
getRequest()
Deprecated. To obtain the HttpServletRequest in your action, use org.apache.struts2.servlet.ServletRequestAware, since this method will be dropped in future. |
java.security.Principal |
getUserPrincipal()
Gets the user principal |
boolean |
isRequestSecure()
Is the request using https? |
boolean |
isUserInRole(java.lang.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(java.lang.String role)
isUserInRole in interface org.apache.struts2.interceptor.PrincipalProxyrole - The role
public java.security.Principal getUserPrincipal()
getUserPrincipal in interface org.apache.struts2.interceptor.PrincipalProxypublic java.lang.String getRemoteUser()
getRemoteUser in interface org.apache.struts2.interceptor.PrincipalProxypublic boolean isRequestSecure()
isRequestSecure in interface org.apache.struts2.interceptor.PrincipalProxypublic javax.servlet.http.HttpServletRequest getRequest()
org.apache.struts2.servlet.ServletRequestAware, since this method will be dropped in future.
getRequest in interface org.apache.struts2.interceptor.PrincipalProxyjava.lang.UnsupportedOperationException - not supported in this implementation.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||