nameMap = new HashMap<String, JetspeedPrincipalType>();
classNameMap = new HashMap<String, JetspeedPrincipalType>();
managersMap = new HashMap<String, JetspeedPrincipalManager>();
for (JetspeedPrincipalManager m : managers)
{
JetspeedPrincipalType type = m.getPrincipalType();
if (nameMap.containsKey(type.getName()))
{
throw new IllegalArgumentException("Duplicate JetspeedPrincipalType.name "+type.getName());
}
if (classNameMap.containsKey(type.getClassName()))
{
throw new IllegalArgumentException("Duplicate JetspeedPrincipalType.className "+type.getClassName());
}
nameMap.put(type.getName(), type);
classNameMap.put(type.getClassName(), type);
managersMap.put(type.getName(), m);
}
this.nameMap = Collections.unmodifiableMap(nameMap);
}