Package com.evasion.sam.jaas

Examples of com.evasion.sam.jaas.EvasionGroup


     * {@inheritDoc }
     */
    @Override
    public EvasionGroup getAllRoles(String userName) {
        final List<Authority> rolesResult = authorityDAO.getAllAuthorityByUser(userName);
        EvasionGroup roles = new EvasionGroup("Roles");
        for (Authority authority : rolesResult) {
            roles.addMember(new EvasionPrincipal(authority.getAuthorityName()));
        }
        return roles;
    }
View Full Code Here


        for (Principal p : clientSubject.getPrincipals()) {
            String tmp = p.getName();
            LOGGER.fine("Principal utilisé: " + tmp);
            if (p instanceof EvasionGroup && "Roles".equals(tmp)) {

                EvasionGroup evasionGroup = (EvasionGroup) p;

                for (Principal grp : Collections.list(evasionGroup.members())) {
                    groups.add(grp.getName());
                    LOGGER.fine("Groupe associe: " + grp.getName());

                }
                assignedGroups = new String[groups.size()];
View Full Code Here

        for (Principal p : clientSubject.getPrincipals()) {
            String tmp = p.getName();
            LOGGER.log(Level.FINE, "Principal utilis\u00e9: {0}", tmp);
            if (p instanceof EvasionGroup && "Roles".equals(tmp)) {

                EvasionGroup evasionGroup = (EvasionGroup) p;

                for (Principal grp : Collections.list(evasionGroup.members())) {
                    groups.add(grp.getName());
                    LOGGER.log(Level.FINE, "Groupe associe: {0}", grp.getName());

                }
                assignedGroups = new String[groups.size()];
View Full Code Here

        for (Principal p : clientSubject.getPrincipals()) {
            String tmp = p.getName();
            LOGGER.log(Level.FINE, "Principal utilis\u00e9: {0}", tmp);
            if (p instanceof EvasionGroup && "Roles".equals(tmp)) {

                EvasionGroup evasionGroup = (EvasionGroup) p;

                for (Principal grp : Collections.list(evasionGroup.members())) {
                    groups.add(grp.getName());
                    LOGGER.log(Level.FINE, "Groupe associe: {0}", grp.getName());

                }
                assignedGroups = new String[groups.size()];
View Full Code Here

     * {@inheritDoc }
     */
    @Override
    public EvasionGroup getAllRoles(String userName) {
        final List<Authority> rolesResult = authorityDAO.getAllAuthorityByUser(userName);
        EvasionGroup roles = new EvasionGroup("Roles");
        for (Authority authority : rolesResult) {
            roles.addMember(new EvasionPrincipal(authority.getAuthorityName()));
        }
        return roles;
    }
View Full Code Here

     * {@inheritDoc }
     */
    @Override
    public EvasionGroup getAllRoles(String userName) {
        final List<Authority> rolesResult = authorityDAO.getAllAuthorityByUser(userName);
        EvasionGroup roles = new EvasionGroup("Roles");
        for (Authority authority : rolesResult) {
            roles.addMember(new EvasionPrincipal(authority.getAuthorityName()));
        }
        return roles;
    }
View Full Code Here

     * {@inheritDoc }
     */
    @Override
    public EvasionGroup getAllRoles(String userName) {
        final List<Authority> rolesResult = authorityDAO.getAllAuthorityByUser(userName);
        EvasionGroup roles = new EvasionGroup("Roles");
        for (Authority authority : rolesResult) {
            roles.addMember(new EvasionPrincipal(authority.getAuthorityName()));
        }
        return roles;
    }
View Full Code Here

        for (Principal p : clientSubject.getPrincipals()) {
            String tmp = p.getName();
            LOGGER.fine("Principal utilisé: " + tmp);
            if (p instanceof EvasionGroup && "Roles".equals(tmp)) {

                EvasionGroup evasionGroup = (EvasionGroup) p;

                for (Principal grp : Collections.list(evasionGroup.members())) {
                    groups.add(grp.getName());
                    LOGGER.fine("Groupe associe: " + grp.getName());

                }
                assignedGroups = new String[groups.size()];
View Full Code Here

TOP

Related Classes of com.evasion.sam.jaas.EvasionGroup

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.