/** * This bean is only to map a hippo:translation to a bean: Normally, you never use this bean at all, as translations are * available through {@link HippoNode#getLocalizedName()} * */ @Node(jcrType="hippo:translation") public class HippoTranslation extends HippoItem { }
@Node(jcrType="hippostd:html") public class HippoHtml extends HippoItem implements HippoHtmlBean{ public String getContent(){ return getProperty("hippostd:content"); } }
@Node(jcrType="hippostd:html") public class HippoHtml extends HippoItem implements HippoHtmlBean{ @IndexField(name="hippostdContent") public String getContent(){ return getProperty("hippostd:content"); } }
@Node(jcrType="hippogallery:exampleAssetSet") public class HippoAsset extends HippoDocument implements HippoAssetBean{ public HippoResourceBean getAsset(){ return getBean("hippogallery:asset", HippoResourceBean.class); } }
/** * hippo:facetselect has the same methods as for hippo:mirror * */ @Node(jcrType="hippo:facetselect") public class HippoFacetSelect extends HippoMirror{ }
@Node(jcrType="hippo:facetresult") public class HippoFacetResult extends HippoFolder implements HippoResultSetBean { public Long getCount() { return this.getProperty(HippoNodeType.HIPPO_COUNT); } }
/** * [selection:valuelist] > selection:basedocument orderable * + selection:listitem (selection:listitem) multiple */ @Node(jcrType = "selection:valuelist") public class ValueList extends HippoDocument { /** * Get the value list items. */ public List<ValueListItem> getItems() { return getChildBeans("selection:listitem"); } }
@Node(jcrType="hippostd:directory") public class HippoDirectory extends HippoFolder{ }
@Node(jcrType="hippostd:fixeddirectory") public class HippoFixedDirectory extends HippoFolder{ }
@Node(jcrType="hippo:facetsearch") public class HippoFacetSearch extends HippoFolder{ }
@Node(jcrType="hippofacnav:facetnavigation") public class HippoFacetNavigation extends HippoFolder { }
/** * [selection:valuelist] > selection:basedocument orderable * + selection:listitem (selection:listitem) multiple */ @Node(jcrType = "selection:valuelist") public class ValueList extends HippoDocument { /** * Get the value list items. */ public List<ValueListItem> getItems() { return getChildBeans("selection:listitem"); } }
@Node(jcrType="hippostd:directory") public class HippoDirectory extends HippoFolder{ }
/** * [selection:listitem] * - selection:key (string) * - selection:label (string) */ @Node(jcrType = "selection:listitem") public class ValueListItem extends HippoItem { public String getKey() { return getProperty("selection:key"); } public String getLabel() { return getProperty("selection:label"); } }
@Node(jcrType="hippostd:fixeddirectory") public class HippoFixedDirectory extends HippoFolder{ }
/** * [selection:listitem] * - selection:key (string) * - selection:label (string) */ @Node(jcrType = "selection:listitem") public class ValueListItem extends HippoItem { public String getKey() { return getProperty("selection:key"); } public String getLabel() { return getProperty("selection:label"); } }
/** * hippo:facetselect has the same methods as for hippo:mirror * */ @Indexable(ignore = true) @Node(jcrType="hippo:facetselect") public class HippoFacetSelect extends HippoMirror { }
/** * This bean is only to map a hippo:translation to a bean: Normally, you never use this bean at all, as translations are * available through {@link HippoNode#getLocalizedName()} * */ @Indexable(ignore = true) @Node(jcrType="hippo:translation") public class HippoTranslation extends HippoItem { }
@Indexable(ignore = true) @Node(jcrType="hippo:facetsearch") public class HippoFacetSearch extends HippoFolder{ }
@Indexable(ignore = true) @Node(jcrType="hippo:facetresult") public class HippoFacetResult extends HippoFolder implements HippoResultSetBean { public Long getCount() { return this.getProperty(HippoNodeType.HIPPO_COUNT); } @Override public int getDocumentSize() { /* * do not get from HippoFolder as that one fetches all docs first which is very inefficient. Use getCount */ return getCount().intValue(); } }