stmt = m_sqlManager.getPreparedStatement(conn, "C_HISTORY_PRINCIPAL_CREATE"); stmt.setString(1, principal.getId().toString()); stmt.setString(2, principal.getSimpleName()); String desc = principal.getDescription(); desc = CmsStringUtil.isEmptyOrWhitespaceOnly(desc) ? "-" : desc;
name = ((CmsHistoryPrincipal)principal).getDescription() + " (" + principal.getSimpleName() + ")"; image = "commons/group.png"; name = ((CmsGroup)principal).getDescription(getLocale()) + " (" + principal.getSimpleName() + ")"; image = "commons/group.png";
stmt = m_sqlManager.getPreparedStatement(conn, "C_HISTORY_PRINCIPAL_CREATE"); stmt.setString(1, principal.getId().toString()); stmt.setString(2, principal.getSimpleName()); String desc = principal.getDescription(); desc = CmsStringUtil.isEmptyOrWhitespaceOnly(desc) ? "-" : desc;
name = key(org.opencms.security.Messages.GUI_ORGUNIT_DISPLAY_NAME_2, new Object[] { ((CmsGroup)principal).getDescription(getLocale()), principal.getSimpleName()}); ou = CmsOrganizationalUnit.getParentFqn(id); flags = CmsAccessControlEntry.ACCESS_FLAGS_GROUP;
name = ((CmsGroup)principal).getDescription(getLocale()) + " (" + principal.getSimpleName() + ")"; image = "commons/group.png";
CmsListItem item = getList().newItem(principal.getId().toString()); item.set(LIST_COLUMN_NAME, principal.getName()); item.set(LIST_COLUMN_DISPLAY, principal.getSimpleName()); if (principal.isUser()) { if (principal.getId().equals(CmsAccessControlEntry.PRINCIPAL_ALL_OTHERS_ID)
item.set(LIST_COLUMN_DISPLAY, translation.translateGroupName(principal.getName(), false)); } else { item.set(LIST_COLUMN_DISPLAY, principal.getSimpleName());
CmsDAOHistoryPrincipals hp = new CmsDAOHistoryPrincipals(); hp.setPrincipalId(principal.getId().toString()); hp.setPrincipalName(principal.getSimpleName()); String desc = principal.getDescription(); desc = CmsStringUtil.isEmptyOrWhitespaceOnly(desc) ? "-" : desc;