if (deleteConstraints != null && deleteConstraints.size() > 0)
{
submitDelete.setDisabled();
Highlight hi = identity.addItem("eperson-delete-constraint","eperson-delete-constraint").addHighlight("error");
hi.addContent(T_delete_constraint);
hi.addContent(" ");
for (String constraint : deleteConstraints)
{
int idx = deleteConstraints.indexOf(constraint);
if (idx > 0 && idx == deleteConstraints.size() -1 )
{
hi.addContent(", ");
hi.addContent(T_constraint_last_conjunction);
hi.addContent(" ");
}
else if (idx > 0)
hi.addContent(", ");
if ("item".equals(constraint))
hi.addContent(T_constraint_item);
else if ("workflowitem".equals(constraint))
hi.addContent(T_constraint_workflowitem);
else if ("tasklistitem".equals(constraint))
hi.addContent(T_constraint_tasklistitem);
else
hi.addContent(T_constraint_unknown);
}
hi.addContent(".");
}
}
Item buttons = identity.addItem();