* @deprecated This method was deprecated because it uses the presentation name of the field
* we encourage the use of the logical name of the field instead @see getFieldByLogicalName
*/
public List<Contentlet> getContents(String structureType, String categoryName) throws DotDataException, DotSecurityException {
Category category = categoryAPI.findByName(categoryName, user, true);
Structure structure = StructureCache.getStructureByType(structureType);
StringBuffer buffy = new StringBuffer();
buffy.append("+live:true +deleted:false +structureInode:" + structure.getInode() + " +c" + category.getInode() + "c:on");
return conAPI.search(buffy.toString(), 0, -1, "mod_date", user, true);
}