@Override public boolean isUserInRole(String role) { return getFacesContext().getExternalContext().isUserInRole(role); }
public static boolean ifGranted(String role) { return FacesContext.getCurrentInstance().getExternalContext().isUserInRole(role); }
@Override public boolean isUserInRole(String role) { return getFacesContext().getExternalContext().isUserInRole(role); }
/** * {@inheritDoc} */ public boolean isUserInRole(String s) { return wrapped.isUserInRole(s); }
public boolean isUserInRole(String s) { return original.isUserInRole(s); }
@Override public boolean isUserInRole(String role) { return wrapped.isUserInRole(role); }
public boolean isUserInRole(String role) { return _delegate.isUserInRole(role); }
/** * Warning: Calling this method from a JSFUnit test could yield unexpected results. */ @Override public boolean isUserInRole(String string) { return delegate.isUserInRole(string); }
/** * @see Faces#isUserInRole(String) */ public static boolean isUserInRole(FacesContext context, String role) { return context.getExternalContext().isUserInRole(role); }
/** * @see Faces#isUserInRole(String) */ public static boolean isUserInRole(FacesContext context, String role) { return context.getExternalContext().isUserInRole(role); }
/** * Test security context isUserInRole * * @param aRoleName * @return */ public boolean isUserInRole(String aRoleName) { ExternalContext ectx = FacesContext.getCurrentInstance().getExternalContext(); if (aRoleName == null || aRoleName.isEmpty()) return false; return ectx.isUserInRole(aRoleName); }
/** * <p>The default behavior of this method is to * call {@link ExternalContext#isUserInRole(String)} * on the wrapped {@link ExternalContext} object.</p> * * @see javax.faces.context.ExternalContext#isUserInRole(String) */ @Override public boolean isUserInRole(String role) { return getWrapped().isUserInRole(role); }
@Override protected Boolean isUserInRole(String role) { FacesContext facesContext = FacesContext.getCurrentInstance(); if ( facesContext != null ) { return facesContext.getExternalContext().isUserInRole(role); } return super.isUserInRole(role); } }
@Override public boolean isUserInRole(String role) { return getWrapped().isUserInRole(role); }
/** * <p>The default behavior of this method is to * call {@link ExternalContext#isUserInRole(String)} * on the wrapped {@link ExternalContext} object.</p> * * @see javax.faces.context.ExternalContext#isUserInRole(String) */ @Override public boolean isUserInRole(String role) { return getWrapped().isUserInRole(role); }
/** * <p>The default behavior of this method is to * call {@link ExternalContext#isUserInRole(String)} * on the wrapped {@link ExternalContext} object.</p> * * @see javax.faces.context.ExternalContext#isUserInRole(String) */ @Override public boolean isUserInRole(String role) { return getWrapped().isUserInRole(role); }
/** * <p>The default behavior of this method is to * call {@link ExternalContext#isUserInRole(String)} * on the wrapped {@link ExternalContext} object.</p> * * @see javax.faces.context.ExternalContext#isUserInRole(String) */ @Override public boolean isUserInRole(String role) { return getWrapped().isUserInRole(role); }
/** * <p>The default behavior of this method is to * call {@link ExternalContext#isUserInRole(String)} * on the wrapped {@link ExternalContext} object.</p> * * @see javax.faces.context.ExternalContext#isUserInRole(String) */ @Override public boolean isUserInRole(String role) { return getWrapped().isUserInRole(role); }
/** * <p>The default behavior of this method is to * call {@link ExternalContext#isUserInRole(String)} * on the wrapped {@link ExternalContext} object.</p> * * @see javax.faces.context.ExternalContext#isUserInRole(String) */ @Override public boolean isUserInRole(String role) { return getWrapped().isUserInRole(role); }
/** * <p>The default behavior of this method is to * call {@link ExternalContext#isUserInRole(String)} * on the wrapped {@link ExternalContext} object.</p> * * @see javax.faces.context.ExternalContext#isUserInRole(String) */ public boolean isUserInRole(String role) { return getWrapped().isUserInRole(role); }