Package sk.iway.iwcm.system.datatable
Class DatatablePageImpl<T>
java.lang.Object
org.springframework.data.domain.PageImpl<T>
sk.iway.iwcm.system.datatable.DatatablePageImpl<T>
- All Implemented Interfaces:
Serializable
,Iterable<T>
,Supplier<Stream<T>>
,org.springframework.data.domain.Page<T>
,org.springframework.data.domain.Slice<T>
,org.springframework.data.util.Streamable<T>
public class DatatablePageImpl<T>
extends org.springframework.data.domain.PageImpl<T>
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDatatablePageImpl
(List<T> content) DatatablePageImpl
(org.springframework.data.domain.Page<T> page) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDefaultOption
(String field, String label, String value) Add to output OptionDto valuevoid
Prida do vystupu OptionDtovoid
addOptions
(String field, List<String> options) void
addOptions
(String field, List options, String labelProperty, String valueProperty, boolean includeOriginalObject) Prida do vystupu OptionDto skonvertovane so zadaneho listu objektovvoid
addOptions
(String field, Map<? extends Number, String> options) Add options from map type id:label, id will be converted to string and used as value for optiongetConvertedContent
(Function<? super T, ? extends U> arg0) int
int
org.springframework.data.domain.Pageable
int
getSize()
org.springframework.data.domain.Sort
getSort()
boolean
boolean
boolean
isFirst()
iterator()
org.springframework.data.domain.Pageable
org.springframework.data.domain.Pageable
void
setNotify
(List<NotifyBean> notify) Methods inherited from class org.springframework.data.domain.PageImpl
equals, getTotalElements, getTotalPages, hashCode, hasNext, isLast, map, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
Methods inherited from interface org.springframework.data.domain.Slice
getContent, getNumber, getNumberOfElements, getPageable, getSize, getSort, hasContent, hasPrevious, isFirst, nextOrLastPageable, nextPageable, previousOrFirstPageable, previousPageable
Methods inherited from interface org.springframework.data.util.Streamable
and, and, and, and, filter, flatMap, get, isEmpty, stream, toList, toSet
-
Constructor Details
-
DatatablePageImpl
-
DatatablePageImpl
-
-
Method Details
-
addDefaultOption
Add to output OptionDto value- Parameters:
field
- - name od DT fieldlabel
- - value (text) that will be shownvalue
- - value that will be used on BE
-
addOption
Prida do vystupu OptionDto- Parameters:
field
- - meno DT fieldulabel
-value
-
-
addOptions
public void addOptions(String field, List options, String labelProperty, String valueProperty, boolean includeOriginalObject) Prida do vystupu OptionDto skonvertovane so zadaneho listu objektov- Parameters:
field
- - meno DT fielduoptions
- - list objektov ktore pridavamelabelProperty
- - nazov label property v options listevalueProperty
- - nazov value property v options liste
-
addOptions
-
addOptions
Add options from map type id:label, id will be converted to string and used as value for option- Parameters:
field
-options
-
-
getOptions
-
getNotify
-
setNotify
-
getNumber
public int getNumber()- Specified by:
getNumber
in interfaceorg.springframework.data.domain.Slice<T extends Object>
-
getSize
public int getSize()- Specified by:
getSize
in interfaceorg.springframework.data.domain.Slice<T extends Object>
-
getNumberOfElements
public int getNumberOfElements()- Specified by:
getNumberOfElements
in interfaceorg.springframework.data.domain.Slice<T extends Object>
-
hasPrevious
public boolean hasPrevious()- Specified by:
hasPrevious
in interfaceorg.springframework.data.domain.Slice<T extends Object>
-
isFirst
public boolean isFirst()- Specified by:
isFirst
in interfaceorg.springframework.data.domain.Slice<T extends Object>
-
nextPageable
public org.springframework.data.domain.Pageable nextPageable()- Specified by:
nextPageable
in interfaceorg.springframework.data.domain.Slice<T extends Object>
-
previousPageable
public org.springframework.data.domain.Pageable previousPageable()- Specified by:
previousPageable
in interfaceorg.springframework.data.domain.Slice<T extends Object>
-
hasContent
public boolean hasContent()- Specified by:
hasContent
in interfaceorg.springframework.data.domain.Slice<T extends Object>
-
getContent
- Specified by:
getContent
in interfaceorg.springframework.data.domain.Slice<T extends Object>
-
getPageable
public org.springframework.data.domain.Pageable getPageable()- Specified by:
getPageable
in interfaceorg.springframework.data.domain.Slice<T extends Object>
-
getSort
public org.springframework.data.domain.Sort getSort()- Specified by:
getSort
in interfaceorg.springframework.data.domain.Slice<T extends Object>
-
iterator
-
getConvertedContent
-