"by manipulating the LDAP attributes directly.");
// Managed object table
startTable();
LDAPProfile ldapProfile = LDAPProfile.getInstance();
tableRow("Base DN", getBaseDN(mo, ldapProfile));
tableRow("objectclass name", ldapProfile.getObjectClass(mo));
if (mo.getParent().getName() != null) {
String superior = "";
if (mo.getParent().getName().equals("top")) {
superior = "top";
} else {
if (moList.get(mo.getParent().getName()) != null) {
superior =
ldapProfile.getObjectClass(moList.get(mo.getParent().getName()));
} else {
System.err.println(
"Error: managed object " + mo.getName() + " not found.");
}
}
tableRow("objectclass superior", superior);
} else {
System.err.println(
"Error: objectclass superior not found for " + mo.getName());
}
endTable();
newline();
// Properties table
startTable();
tableRow("Property", "LDAP attribute");
for ( PropertyDefinition prop : getPropertyList(mo).values()) {
tableRow(prop.getName(), ldapProfile.getAttributeName(mo, prop));
}
endTable();
}