Package org.jboss.dashboard.security.principals

Examples of org.jboss.dashboard.security.principals.UserPrincipal


    protected Set<Principal> calculateUserPrincipals() {
        if (log.isDebugEnabled()) log.debug("Calculating principals for current user.");

        Set<Principal> principals = new HashSet<Principal>();
        if (userLogin != null) principals.add(new UserPrincipal(userLogin));
        if (!isRootUser()) {
            RolesManager rolesManager = SecurityServices.lookup().getRolesManager();
            for (Role role : rolesManager.getAllRoles()) {
                Principal rolePrincipal = null;
                if (userRoleIds.contains(role.getName())) rolePrincipal = new RolePrincipal(role);
View Full Code Here


    protected Set<Principal> calculateUserPrincipals() {
        if (log.isDebugEnabled()) log.debug("Calculating principals for current user.");

        Set<Principal> principals = new HashSet<Principal>();
        if (userLogin != null) principals.add(new UserPrincipal(userLogin));
        if (!isRootUser()) {
            RolesManager rolesManager = SecurityServices.lookup().getRolesManager();
            for (Role role : rolesManager.getAllRoles()) {
                Principal rolePrincipal = null;
                if (userRoleIds.contains(role.getName())) rolePrincipal = new RolePrincipal(role);
View Full Code Here

TOP

Related Classes of org.jboss.dashboard.security.principals.UserPrincipal

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.