My suggestion is to iterate Asset's Renditions and find the latest one, looking at "jcr:lastModified" property, here is untested code sample:
Rendition lastRendition = null;
Date lastDate = null;
for (Rendition r : asset.getRenditions()) {
Date date = r.getProperties().get(JcrConstants.JCR_LASTMODIFIED);
if (lastDate == null || date.after(lastDate)) {
lastRendition = r;
lastDate = date;
}
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…