Examples of BrokenSecurityContext


Examples of org.jasig.portal.security.provider.BrokenSecurityContext

            if (ownerId == -1) {
                String msg = "No userId for username=" + ownerUsername;
                throw new RuntimeException(msg);
            }
            person.setID(ownerId);
            person.setSecurityContext(new BrokenSecurityContext());
            profile = this.getUserProfileByFname(person, "default");
        } catch (Throwable t) {
            String msg = "Unrecognized user " + person.getUserName() + "; you must import users before their layouts.";
            throw new RuntimeException(msg, t);
        }
View Full Code Here

Examples of org.jasig.portal.security.provider.BrokenSecurityContext

     */
    public void testNoCasSecurityContextPresent() {
       
        PersonImpl person = new PersonImpl();
        // not a CAS security context
        BrokenSecurityContext brokenContext = new BrokenSecurityContext();
       
        person.setSecurityContext(brokenContext);
       
        ChannelStaticData staticData = new ChannelStaticData();
        staticData.setPerson(person);
View Full Code Here

Examples of org.jasig.portal.security.provider.BrokenSecurityContext

       
        //Setup empty IPerson used to interact with the layout store
        final PersonImpl person = new PersonImpl();
        person.setUserName(userName);
        person.setID(userId);
        person.setSecurityContext(new BrokenSecurityContext());
       

        try {
            this.userLayoutStore.setProfileImportExportCache(layoutCache);
            this.userLayoutStore.setLayoutImportExportCache(profileCache);
View Full Code Here

Examples of org.jasig.portal.security.provider.BrokenSecurityContext

                return null;
            }
        }
     
        person.setID(userId);
        person.setSecurityContext(new BrokenSecurityContext());
        return person;
    }
View Full Code Here

Examples of org.jasig.portal.security.provider.BrokenSecurityContext

        }
        person.setID(ownerId);

        IUserProfile profile = null;
        try {
            person.setSecurityContext(new BrokenSecurityContext());
            profile = this.getUserProfileByFname(person, "default");
        }
        catch (final Throwable t) {
            throw new RuntimeException("Failed to load profile for " + person.getUserName()
                    + "; This user must have a profile for import to continue.", t);
View Full Code Here

Examples of org.jasig.portal.security.provider.BrokenSecurityContext

    /* TODO:  make private */ Tuple<String, DistributedUserLayout> getUserLayoutTuple(String userName, int userId) {
       
        final PersonImpl person = new PersonImpl();
        person.setUserName(userName);
        person.setID(userId);
        person.setSecurityContext(new BrokenSecurityContext());

        final IUserProfile profile = layoutStore.getUserProfileByFname(person, UserProfile.DEFAULT_PROFILE_FNAME);
        final DistributedUserLayout userLayout = layoutStore.getUserLayout(person, (UserProfile) profile);

        return new Tuple<String, DistributedUserLayout>(userName, userLayout);
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.