|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HippoFolderBean
This is a base interface for all beans that represent a folder should implement. When developers implement their own bean which does not extend the standard HippoFolder bean, they should implement this interface.
Method Summary | ||
---|---|---|
|
getDocumentIterator(Class<T> beanMappingClass)
Lazy loading iterator that fetches Documents only when asked for it. |
|
List<HippoDocumentBean> |
getDocuments()
This method returns the List of HippoDocumentBean s in the order they are in the repository. |
|
List<HippoDocumentBean> |
getDocuments(boolean sorted)
This method enables to get the List of HippoDocumentBean s according their HippoBean#compareTo(HippoBean) . |
|
|
getDocuments(Class<T> beanMappingClass)
Facility method to get all documents directly below this folder that result in a HippoBean of class or subclass clazz. |
|
List<HippoDocumentBean> |
getDocuments(int from,
int to)
Returns a view of the portion of the list of HippoDocumentBean between the specified from , inclusive, and to |
|
List<HippoDocumentBean> |
getDocuments(int from,
int to,
boolean sorted)
Returns a view of the portion of the list of HippoDocumentBean between the specified from , inclusive, and to |
|
int |
getDocumentSize()
|
|
List<HippoFolderBean> |
getFolders()
|
|
List<HippoFolderBean> |
getFolders(boolean sorted)
|
Methods inherited from interface org.hippoecm.hst.content.beans.standard.HippoBean |
---|
equalCompare, getAvailableTranslationsBean, getBean, getBean, getCanonicalPath, getCanonicalUUID, getChildBeans, getChildBeans, getChildBeansByName, getChildBeansByName, getContextualBean, getContextualParentBean, getEqualComparator, getLinkedBean, getLinkedBeans, getLocalizedName, getName, getNode, getParentBean, getPath, getProperties, getProperty, getProperty, getProperty, getValueProvider, isAncestor, isDescendant, isHippoDocumentBean, isHippoFolderBean, isLeaf, isSelf |
Methods inherited from interface org.hippoecm.hst.content.beans.NodeAware |
---|
setNode |
Methods inherited from interface org.hippoecm.hst.content.beans.manager.ObjectConverterAware |
---|
getObjectConverter, setObjectConverter |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Methods inherited from interface org.hippoecm.hst.content.beans.standard.HippoTranslated |
---|
getLocale, getLocaleString |
Method Detail |
---|
List<HippoFolderBean> getFolders()
HippoFolderBean
below this HippoFolderBean
and an empty list of no folders presentList<HippoFolderBean> getFolders(boolean sorted)
sorted
- if true, the list of folder will be returned sorted by their default HippoBean#compareTo(HippoBean)
HippoFolderBean
below this HippoFolderBean
and an empty list if no folders presentint getDocumentSize()
List<HippoDocumentBean> getDocuments()
List
of HippoDocumentBean
s in the order they are in the repository. If you need the List
to be sorted according
the HippoDocumentBean#compareTo(HippoBean)
, use #getDocuments(boolean))
with arg true
note when only a subset of the documents is needed, and the total number is large, better use getDocumentIterator(Class)
as this is a lazy proxied iterator
HippoDocumentBean
s below this HippoFolderBean
and an empty list if no documents presentList<HippoDocumentBean> getDocuments(int from, int to)
from
, inclusive, and to, exclusive. (If from and to are equal, the returned list is empty.)
note when only a subset of the documents is needed, and the total number is large, better use getDocumentIterator(Class)
as this is a lazy proxied iterator
- Parameters:
from
- (inclusive)to
- (exclusive)
- Returns:
- the sublist of
HippoDocumentBean
below this HippoFolderBean
and an empty list when original list is empty or invalid range
List<HippoDocumentBean> getDocuments(int from, int to, boolean sorted)
from
, inclusive, and to, exclusive. (If from and to are equal, the returned list is empty.)
note when only a subset of unsorted documents is needed, and the total number is large, better use getDocumentIterator(Class)
as this is a lazy proxied iterator
- Parameters:
from
- (inclusive)to
- (exclusive)sorted
- boolean whether list to get sublist from needs to be sorted
- Returns:
- the sublist of possibly sorted of
HippoDocumentBean
below this HippoFolderBean
and an empty list when original list is empty or invalid range
List<HippoDocumentBean> getDocuments(boolean sorted)
List
of HippoDocumentBean
s according their HippoBean#compareTo(HippoBean)
. If you need the List
to be ordered the way the documents are ordered in the repository, use getDocuments()
.
note when only a subset of unsorted documents is needed, and the total number is large, better use getDocumentIterator(Class)
as this is a lazy proxied iterator
sorted
- indicates whether the List should be sorted
sorted
is true, the sorted list of HippoDocumentBean
s below this HippoFolderBean
, where the sorting is according HippoBean#compareTo(HippoBean)
, If sorted
is false, the same list as getDocuments()
is returned. An empty list is returned if no documents are present.<T> List<T> getDocuments(Class<T> beanMappingClass)
getDocumentIterator(Class)
as this is a lazy proxied iterator
T
- Any Object that implements a HippoDocumentBeanbeanMappingClass
- a class implementing HippoDocumentBean
. This functions as a filter
- Returns:
- the list documents in this folder of type
<T> HippoDocumentIterator<T> getDocumentIterator(Class<T> beanMappingClass)
getDocuments()
methods (also with arguments) as they fetch all HippoDocumentBeans directly.
T
- Any Object that implements a HippoDocumentBeanbeanMappingClass
- a class implementing HippoDocumentBean
. This functions as a filter
- Returns:
- A lazy loading iterator returning documents in this folder of type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |