Package net.datacrow.core.web.beans

Examples of net.datacrow.core.web.beans.Security


public class DcSecured {
   
    protected boolean isLoggedIn() {
        FacesContext fc = FacesContext.getCurrentInstance();
        VariableResolver vr = fc.getApplication().getVariableResolver();
        Security security = (Security) vr.resolveVariable(fc, "security");
        return security.isLoggedIn();
    }
View Full Code Here


    }
   
    public SecuredUser getUser() {
        FacesContext fc = FacesContext.getCurrentInstance();
        VariableResolver vr = fc.getApplication().getVariableResolver();
        Security security = (Security) vr.resolveVariable(fc, "security");
        return security.getUser();
    }
View Full Code Here

TOP

Related Classes of net.datacrow.core.web.beans.Security

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.