@Override public Principal getUserPrincipal() { return ((PortletRequest)wrapped).getUserPrincipal(); }
@Override public Principal getUserPrincipal() { if (isClosed) return null; return preq.getUserPrincipal(); }
@Override public Principal getUserPrincipal() { return mPortletRequest.getUserPrincipal(); }
/** * The default behavior of this method is to call * <code>getUserPrincipal()</code> on the wrapped request object. */ public Principal getUserPrincipal() { return request.getUserPrincipal(); }
@Override public Principal getUserPrincipal() { if (userPrincipal == null) { userPrincipal = portletRequest.getUserPrincipal(); } return userPrincipal; } }
@Override public Principal getUserPrincipal() { return _portletRequest.getUserPrincipal(); }
/** * @see javax.servlet.http.HttpServletRequest#getUserPrincipal() */ public Principal getUserPrincipal() { return portletRequest.getUserPrincipal(); }
@Override public Principal getUserPrincipal() { if (userPrincipal == null) { userPrincipal = portletRequest.getUserPrincipal(); } return userPrincipal; } }
@Override public void onRequestStart(PortletRequest request, PortletResponse response) { try { this.setUser(request.getUserPrincipal().getName()); } catch (Exception e) { this.setUser("anonymous"); } }
public Principal getUserPrincipal() { return request.getUserPrincipal(); }
public Principal getUserPrincipal() { return request.getUserPrincipal(); }
public Principal getUserPrincipal() { return portletRequest.getUserPrincipal(); }
public final Principal getUserPrincipal() { return preq.getUserPrincipal(); }
private String replacePlaceHolder(String buffer, PortletRequest request){ String userName=""; if(request.getUserPrincipal()!=null) { userName = request.getUserPrincipal().getName(); }else{ userName = "guest"; } buffer = buffer.replace("$USER", "'" + userName + "'"); return buffer; }
public boolean isAdminUser(PortletRequest request) { if (adminUser == null) { throw new IllegalStateException("PortalAdministration component is not started or misconfigured for the default admin user."); } Principal principal = request.getUserPrincipal(); if (null != principal) { return adminUser.equals(principal.getName()); } return false; }
public static Principal getUserPrincipal() { PortletRequest portletRequest = getPortletRequest(); if (portletRequest == null) { throw new IllegalStateException( "The request is not PortletRequest."); } return portletRequest.getUserPrincipal(); }
@Override public Principal getUserPrincipal() { return getWrapped().getUserPrincipal(); }
@Override public Principal getUserPrincipal() { return getRequest().getUserPrincipal(); }
@Override public Principal getUserPrincipal() { return getWrapped().getUserPrincipal(); }
/** * For Pluto 2.0 */ public Map<String, String> getUserInfo(PortletRequest request, org.apache.pluto.container.PortletWindow window) { if ( request.getUserPrincipal() == null ) { return null; } PortletWindow portletWindow = (PortletWindow)window; return getUserInfoMap(portletWindow.getPortletDefinition().getApplication().getName(), portletWindow.getRequestContext()); } }