m_acl.addEntry( ae2 );
m_acl.addEntry( ae3 );
m_acl.addEntry( ae4 );
// Foo group includes Alice and Bob
Group foo = m_groupMgr.parseGroup( "FooGroup", "", true );
m_groupMgr.setGroup( m_session, foo );
foo.add( uAlice );
foo.add( uBob );
AclEntry ag1 = new AclEntryImpl();
ag1.setPrincipal( foo.getPrincipal() );
ag1.addPermission( PagePermission.EDIT );
m_aclGroup.addEntry( ag1 );
m_groups.put( "FooGroup", foo );
// Bar group includes Bob and Charlie
Group bar = m_groupMgr.parseGroup( "BarGroup", "", true );
m_groupMgr.setGroup( m_session, bar );
bar.add( uBob );
bar.add( uCharlie );
AclEntry ag2 = new AclEntryImpl();
ag2.setPrincipal( bar.getPrincipal() );
ag2.addPermission( PagePermission.VIEW );
m_aclGroup.addEntry( ag2 );
m_groups.put( "BarGroup", bar );
}