Examples of SSOUserImpl


Examples of org.apache.jetspeed.sso.impl.SSOUserImpl

        return (List<SSOUser>) getPrincipals(nameFilter, domainId);
    }

    public SSOUser newUser(String name, Long domainId)
    {
        SSOUserImpl user = new SSOUserImpl();
        user.setDomainId(domainId);
        user.setName(name);
        return user;
    }
View Full Code Here

Examples of org.apache.jetspeed.sso.impl.SSOUserImpl

        ssoManager.addAssociation(addedUser, anotherTestgroup);
       
        Collection<JetspeedPrincipal> fetchedPrincipals = ssoManager.getPortalPrincipals(addedUser);
        assertEquals(4,fetchedPrincipals.size());

        SSOUserImpl nonExistingUser = new SSOUserImpl();
        nonExistingUser.setName("fake");
        nonExistingUser.setDomainId(addedUser.getDomainId());
        fetchedPrincipals = ssoManager.getPortalPrincipals(nonExistingUser);
        assertEquals(0,fetchedPrincipals.size());
       

    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.