certificateField.addOption(certificatValue,"true");
// Buttons to reset, delete or login as
identity.addItem().addHighlight("italic").addContent(T_special_help);
Item special = identity.addItem();
special.addButton("submit_reset_password").setValue(T_submit_reset_password);
Button submitDelete = special.addButton("submit_delete");
submitDelete.setValue(T_submit_delete);
Button submitLoginAs = special.addButton("submit_login_as");
submitLoginAs.setValue(T_submit_login_as);
if (!ConfigurationManager.getBooleanProperty("webui.user.assumelogin", false))
{
submitLoginAs.setDisabled();
}
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();
if (admin)
{
buttons.addButton("submit_save").setValue(T_submit_save);
}
buttons.addButton("submit_cancel").setValue(T_submit_cancel);
if (admin)
{
List member = edit.addList("eperson-member-of");
member.setHead(T_member_head);
Group[] groups = Group.allMemberGroups(context, eperson);
for (Group group : groups)
{
String url = contextPath + "/admin/groups?administrative-continue="+knot.getId()+"&submit_edit_group&groupID="+group.getID();
Item item = member.addItem();
item.addXref(url,group.getName());
// Check if this membership is via another group or not, if so then add a note.
Group via = findViaGroup(eperson, group);
if (via != null)
{
item.addHighlight("fade").addContent(T_indirect_member.parameterize(via.getName()));
}
}
if (groups.length <= 0)
{