asi.setLinkActionName("edit");
asi.addLinkParameter("contentId", content.getId());
asi.setLinkAuthGroup(content.getMainGroup());
asi.setLinkAuthPermission(Permission.CONTENT_EDITOR);
}
<BUG>List<String> groupCodes = new ArrayList<String>();
groupCodes.add(content.getMainGroup());
groupCodes.addAll(content.getGroups());</BUG>
asi.setGroups(groupCodes);
return asi;

asi.setLinkActionName("edit");
asi.addLinkParameter("contentId", content.getId());
asi.setLinkAuthGroup(content.getMainGroup());
asi.setLinkAuthPermission(Permission.CONTENT_EDITOR);
}
List<String> groupCodes = new ArrayList<String>();
if (null != content.getMainGroup()) {
groupCodes.addAll(content.getGroups());
}
groupCodes.add(content.getMainGroup());
asi.setGroups(groupCodes);
return asi;
