Class ContentMultiPageParams.ContentPageParams
java.lang.Object
de.espirit.firstspirit.access.store.PageParams
de.espirit.firstspirit.access.store.sitestore.ContentMultiPageParams.ContentPageParams
- Enclosing class:
- ContentMultiPageParams
public class ContentMultiPageParams.ContentPageParams
extends PageParams
implements Iterable<Entity>
Specialized page parameters on records.
- Since:
- 4.0.17
-
Field Summary
Fields inherited from class de.espirit.firstspirit.access.store.PageParams
SINGLE_PAGE_PARAMS
-
Method Summary
Modifier and TypeMethodDescriptionget
(int index) Provides a single record stored at the given position.getAll()
Provides all records for the overall parameters definition.getData()
Provides the records defined by this range restricted parameters definition.long
getLastChangeDate
(long after) Calculate the last change date after the provided timestamp.int
Provides the offset.int
getSize()
A single page may render multiple containers, e.g. datasets, on one page - this method delivers the number of instances.boolean
isLast()
Indicates this parameters container to represent the last range of parameters.iterator()
Provides an iterator over records retrieved with use of this parameters.Methods inherited from class de.espirit.firstspirit.access.store.PageParams
getIndex, getLastChangeDate, getPageSuffix, getPreviewSuffix, isFirst
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
isLast
public boolean isLast()Indicates this parameters container to represent the last range of parameters.- Overrides:
isLast
in classPageParams
- Returns:
true
, if it is the last.- Since:
- 4.0.17
-
getOffset
public int getOffset()Provides the offset.- Returns:
- The offset.
- Since:
- 4.0.17
-
getAll
Provides all records for the overall parameters definition.- Returns:
- A list of records.
- Since:
- 4.0.19
-
getData
Provides the records defined by this range restricted parameters definition.- Returns:
- A list of records.
- Since:
- 4.0.17
-
getSize
public int getSize()A single page may render multiple containers, e.g. datasets, on one page - this method delivers the number of instances.- Overrides:
getSize
in classPageParams
- Returns:
- number of inner elements
- Since:
- 5.0.3
-
getLastChangeDate
public long getLastChangeDate(long after) Calculate the last change date after the provided timestamp. The default implementation returns the provided timestamp.- Overrides:
getLastChangeDate
in classPageParams
- Since:
- 4.2.
- See Also:
-
iterator
Provides an iterator over records retrieved with use of this parameters. -
get
Provides a single record stored at the given position.- Parameters:
index
- The index.- Returns:
- A record.
- Since:
- 4.0.17
-