Class ContentMultiPageParams
java.lang.Object
de.espirit.firstspirit.access.store.MultiPageParams
de.espirit.firstspirit.access.store.sitestore.ContentMultiPageParams
Definition of information for multi page output of data records.
- Since:
- 4.0.17
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassSpecialized page parameters on records. -
Field Summary
FieldsFields inherited from class de.espirit.firstspirit.access.store.MultiPageParams
EMPTY_PAGE_PARAMS, FIRST_PAGE, SINGLE_PAGE_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionContentMultiPageParams(@NotNull Session session, @NotNull Select select, int entitiesPerPage, int maxPageCount, @Nullable Date time) Constructor based on some restrictions. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidadjustTime(Select select, Date time) Adjusts the time constraint.get(int index) Provides the record stored at the given index.@NotNull EntityListgetData()Provides the records for output.intProvides the number of records to put out per page.intProvides the number of pages that will be generated.getPageParams(int index) Provides the parameters stored for the given index.@NotNull PageParamsgetPageParams(Map<String, ?> params) Provides the parameters based on the given options.getType()Provides the type of parameters.iterator()Enables to iterate over the records retrieved via these parameters.booleanRenders a record identified by the given options.booleanrendersEntityId(long entityId) Will the entity with specified id be rendered by the multi page?Methods inherited from class de.espirit.firstspirit.access.store.MultiPageParams
createDefaultMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
PARAMETER_CONTENT_ID
Content ID.- Since:
- 4.0.17
- See Also:
-
-
Constructor Details
-
ContentMultiPageParams
public ContentMultiPageParams(@NotNull @NotNull Session session, @NotNull @NotNull Select select, int entitiesPerPage, int maxPageCount, @Nullable @Nullable Date time) Constructor based on some restrictions.- Parameters:
session- The session.select- The select statement.entitiesPerPage- Records put out per page.maxPageCount- The maximum number of pages to create.time- A time constraint for records to look up.- Since:
- 4.1.7
-
-
Method Details
-
adjustTime
Adjusts the time constraint.- Parameters:
time- The time constraint.- Since:
- 4.1.7
-
getType
Provides the type of parameters.- Specified by:
getTypein classMultiPageParams- Returns:
- The parameters' type.
- Since:
- 4.0.19
-
getEntitiesPerPage
public int getEntitiesPerPage()Provides the number of records to put out per page.- Returns:
- The number of records to put out.
- Since:
- 4.0.17
-
getData
Provides the records for output.- Returns:
- A list of records.
- Since:
- 4.0.19
-
getPageCount
public int getPageCount()Provides the number of pages that will be generated.- Specified by:
getPageCountin classMultiPageParams- Returns:
- The page count.
- Since:
- 4.0.17
-
getPageParams
Provides the parameters stored for the given index.- Specified by:
getPageParamsin classMultiPageParams- Parameters:
index- The index.- Returns:
- The matching parameters.
- Since:
- 4.0.20
-
getPageParams
Provides the parameters based on the given options.- Overrides:
getPageParamsin classMultiPageParams- Parameters:
params- A map of options.- Returns:
- the PageParams object for the given params
- Since:
- 4.1.12
- See Also:
-
renders
Renders a record identified by the given options.- Parameters:
params- A map of options.- Since:
- 4.1.12
- See Also:
-
rendersEntityId
public boolean rendersEntityId(long entityId) Will the entity with specified id be rendered by the multi page?- Since:
- 5.0.100
-
iterator
Enables to iterate over the records retrieved via these parameters. -
get
Provides the record stored at the given index.- Parameters:
index- The index.- Returns:
- A record or null.
- Since:
- 4.0.17
-