");
String img;
if (getDictionaryService().isSubClass(node.getType(), ContentModel.TYPE_FOLDER))
{
String icon = (String)node.getProperties().get("app:icon");
img = "/images/icons/" + (icon != null ? icon + "-16.gif" : BrowseBean.SPACE_SMALL_DEFAULT + ".gif");
}
else
{
img = FileTypeImageUtils.getFileTypeImage(node.getName(), true);
}
buf.append(" ");
buf.append(" | ");
buf.append(Utils.encode(node.getName()));
buf.append(" | ");
if (report)
{
buf.append("");
String msg;
switch ((RestoreStatus)node.getProperties().get(PROP_RECOVERSTATUS))
{
case FAILURE_INVALID_PARENT:
msg = MSG_RECOVERED_ITEM_PARENT_S;
break;
case FAILURE_PERMISSION:
msg = MSG_RECOVERED_ITEM_PERMISSION_S;
break;
case FAILURE_INTEGRITY:
msg = MSG_RECOVERED_ITEM_INTEGRITY_S;
break;
default:
msg = MSG_RECOVERED_ITEM_FAILURE_S;
break;
}
buf.append(Application.getMessage(fc, msg));
buf.append(" | ");
}
else
{
buf.append("");
if (archivedPath)
{
ChildAssociationRef childRef = (ChildAssociationRef)node.getProperties().get(ContentModel.PROP_ARCHIVED_ORIGINAL_PARENT_ASSOC);
if (getNodeService().exists(childRef.getParentRef()))
{
buf.append(Utils.encode(Repository.getNamePath(getNodeService(), getNodeService().getPath(childRef.getParentRef()), null, "/", null)));
}
}
else
{
buf.append(Utils.encode(Repository.getNamePath(getNodeService(), getNodeService().getPath(node.getNodeRef()), null, "/", null)));
}
buf.append(" | ");
}
buf.append("
");
}
// end table
buf.append("