161162163164165166167168169170171
} public Tribe getTribe(String name) { Tribe t = null; if (!_groups.containsKey(name)) { try { t = new LDAPTribe(this, name); _groups.put(name, t);
218219220221222223224225226227228
int id = Integer.parseInt(args[0]); if (id >= _nextid) { _nextid = id+1; } String name = Conversions.URLDecode(args[1]); Tribe tribe = createTribe(id, name); _entities.put(new Integer(id), tribe); _tribes.put(name, tribe); } } break;
493494495496497498499500501
public synchronized Tribe createTribe(String name) { load(); Tribe tribe = createTribe(getNextId(), name); save(false); return tribe; }
116117118119120121122123124125
private void getCombinedPermissions0(PermissionCollectionCombiner combiner, Tribe[] tribes) { int n = tribes.length; for(int i=0; i<n; i++) { Tribe tribe = tribes[i]; combiner.combine(tribe.getPermissions()); getCombinedPermissions0(combiner, tribe.getParents()); } }
153154155156157158159160161162