Package org.apache.jetspeed.security.impl

Examples of org.apache.jetspeed.security.impl.TransientRole


            combo.append(role.getName());
            count++;                       
        }
        Set principals = new HashSet();
        principals.add(SubjectHelper.getBestPrincipal(currentSubject, User.class));
        principals.add(new TransientRole(combo.toString()));
        Subject subject =
            new Subject(true, principals, new HashSet(), new HashSet());
        return subject;
    }
View Full Code Here


        if (roleNames != null)
        {
            StringTokenizer toke = new StringTokenizer(roleNames, ",");
            while (toke.hasMoreTokens())
            {
                principals.add(new TransientRole(toke.nextToken()));
                count++;
            }               
        }
        pm.grantPermissionOnlyTo(permission, JetspeedPrincipalType.ROLE, principals);
        return count;
View Full Code Here

            combo.append(role.getName());
            count++;                       
        }
        Set principals = new HashSet();
        principals.add(SubjectHelper.getBestPrincipal(currentSubject, User.class));
        principals.add(new TransientRole(combo.toString()));
        Subject subject =
            new Subject(true, principals, new HashSet(), new HashSet());
        return subject;
    }
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.security.impl.TransientRole

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.