use of org.hippoecm.hst.content.beans.standard.HippoHtml in project hippo by NHS-digital-website.
the class Checklist method getListentriesJson.
@JsonProperty("listentries")
public List<String> getListentriesJson() {
List<HippoHtml> entries = getChildBeansByName("website:listentries", HippoHtml.class);
List<String> entriesStrings = new ArrayList<>();
for (HippoHtml entry : entries) {
if (entry != null) {
entriesStrings.add(entry.getContent());
} else {
entriesStrings.add((String) null);
}
}
return entriesStrings;
}
use of org.hippoecm.hst.content.beans.standard.HippoHtml in project hippo by NHS-digital-website.
the class NotesForEditors method getHtmlnotes.
public List<HippoHtml> getHtmlnotes() {
List<HippoHtml> notes = new ArrayList<>();
for (HippoBean bean : getPreparednotes()) {
EditorsNotes note = (EditorsNotes) bean;
notes.add(note.getEditorsnote());
}
notes.addAll(this.getCustomnotes());
return notes;
}
Aggregations