Package org.apache.jetspeed.sso.impl

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


        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

Related Classes of org.apache.jetspeed.sso.impl.SSOUserImpl

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.