}
private void listSecurityMapDetails(SecurityMap sm, ActionReport.MessagePart mp) {
List<String> principalList = sm.getPrincipal();
List<String> groupList = sm.getUserGroup();
BackendPrincipal bp = sm.getBackendPrincipal();
final ActionReport.MessagePart partSM = mp.addChild();
partSM.setMessage(sm.getName());
final ActionReport.MessagePart partPG = partSM.addChild();
if (!principalList.isEmpty()) {
partPG.setMessage(localStrings.getLocalString(
"list.connector.security.maps.principals","\tPrincipal(s)"));
}
if (!groupList.isEmpty()) {
partPG.setMessage(localStrings.getLocalString(
"list.connector.security.maps.groups","\tUser Group(s)"));
}
for (String principal : principalList) {
final ActionReport.MessagePart partP = partPG.addChild();
partP.setMessage(localStrings.getLocalString(
"list.connector.security.maps.eisPrincipal",
"\t\t"+principal, principal));
}
for (String group : groupList) {
final ActionReport.MessagePart partG = partPG.addChild();
partG.setMessage(localStrings.getLocalString(
"list.connector.security.maps.eisGroup",
"\t\t"+group, group));
}
final ActionReport.MessagePart partBP = partPG.addChild();
partBP.setMessage(localStrings.getLocalString(
"list.connector.security.maps.backendPrincipal",
"\t"+"Backend Principal"));
final ActionReport.MessagePart partBPU = partBP.addChild();
partBPU.setMessage(localStrings.getLocalString(
"list.connector.security.maps.username",
"\t\t"+"User Name = "+bp.getUserName(), bp.getUserName()));
if (bp.getPassword() != null && !bp.getPassword().isEmpty()) {
final String rawPassword = ConfigBean.unwrap(bp).rawAttribute("password");
final String passwordOutput = RelativePathResolver.getAlias(rawPassword) == null ? "****" : rawPassword;
final ActionReport.MessagePart partBPP = partBP.addChild();
partBPP.setMessage(localStrings.getLocalString(
"list.connector.security.maps.password",