Package org.apache.jetspeed.om.security

Examples of org.apache.jetspeed.om.security.BaseJetspeedGroupRole


            for (Enumeration enum1 = user.getGroupRoles().elements(); enum1.hasMoreElements();)
            {
                st = new StringTokenizer((String)enum1.nextElement(), ",");
                LDAPGroup group = new LDAPGroup(st.nextToken(),false);
                LDAPRole role = new LDAPRole(st.nextToken(),false);
                BaseJetspeedGroupRole groupRole = new BaseJetspeedGroupRole();
                groupRole.setGroup(group);
                groupRole.setRole(role);
                roles.put(group.getName() + role.getName(), groupRole);
            }
        }
        catch(Exception e)
        {
View Full Code Here


   * @param role
   * @param group
   */
  public void addRole(Role role, Group group)
  {
    GroupRole gr = new BaseJetspeedGroupRole();
    gr.setRole(role);
    gr.setGroup(group);
    String key = getGroupRoleKey(group.getName(), role.getName());
    groupRoles.put(key, gr);
  }
View Full Code Here

    public Iterator getRoles(String username)
        throws JetspeedSecurityException
    {
        // give everyone the "user" role
        Vector v = new Vector(1);
        BaseJetspeedGroupRole gr = new BaseJetspeedGroupRole();
        //r.setNew(false);
       
        BaseJetspeedRole r = new BaseJetspeedRole();
        r.setName(JetspeedSecurity.JETSPEED_ROLE_USER);
        r.setId(JetspeedSecurity.JETSPEED_ROLE_USER);
       
        BaseJetspeedGroup g = new BaseJetspeedGroup();
        g.setId(JetspeedSecurity.JETSPEED_GROUP_ID);
        g.setName(JetspeedSecurity.JETSPEED_GROUP);
       
        gr.setGroup(g);
        gr.setRole(r);
       
        v.add(gr);
        return v.iterator();
    }
View Full Code Here

            for (int ix = 0; ix < rels.size(); ix++)
            {
        TurbineUserGroupRole rel = (TurbineUserGroupRole) rels.get(ix);
        Role role = rel.getTurbineRole();
        Group group = rel.getTurbineGroup();
        GroupRole groupRole = new BaseJetspeedGroupRole();
        groupRole.setGroup(group);
        groupRole.setRole(role);
        roles.put(group.getName() + role.getName(), groupRole);
            }
        }
        catch(Exception e)
        {
View Full Code Here

            for (int ix = 0; ix < rels.size(); ix++)
            {
        TurbineUserGroupRole rel = (TurbineUserGroupRole) rels.get(ix);
        Role role = rel.getTurbineRole();
        Group group = rel.getTurbineGroup();
        GroupRole groupRole = new BaseJetspeedGroupRole();
        groupRole.setGroup(group);
        groupRole.setRole(role);
        roles.put(group.getName() + role.getName(), groupRole);
            }
        }
        catch(Exception e)
        {
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.om.security.BaseJetspeedGroupRole

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.