Package com.evasion.sam.jaas

Examples of com.evasion.sam.jaas.EvasionPrincipal


    @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 EvasionPrincipal getEvasionPrincipal(String userName) {
        final User user = userDAO.findById(userName);
        EvasionPrincipal userPrincipal = new EvasionPrincipal(userName);
        userPrincipal.setLastLogin(user.getLastLogin());
        return userPrincipal;
    }
View Full Code Here

    @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 EvasionPrincipal getEvasionPrincipal(String userName) {
        final User user = userDAO.findById(userName);
        EvasionPrincipal userPrincipal = new EvasionPrincipal(userName);
        userPrincipal.setLastLogin(user.getLastLogin());
        return userPrincipal;
    }
View Full Code Here

    @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 EvasionPrincipal getEvasionPrincipal(String userName) {
        final User user = userDAO.findById(userName);
        EvasionPrincipal userPrincipal = new EvasionPrincipal(userName);
        userPrincipal.setLastLogin(user.getLastLogin());
        return userPrincipal;
    }
View Full Code Here

    @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 EvasionPrincipal getEvasionPrincipal(String userName) {
        final User user = userDAO.findById(userName);
        EvasionPrincipal userPrincipal = new EvasionPrincipal(userName);
        userPrincipal.setLastLogin(user.getLastLogin());
        return userPrincipal;
    }
View Full Code Here

TOP

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

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.