Class ResultSetPaginatedData
- java.lang.Object
-
- org.gcube.application.geoportalcommon.shared.ResultSetPaginatedData
-
- All Implemented Interfaces:
Serializable
public class ResultSetPaginatedData extends Object implements Serializable
The Class ResultSetPaginatedData.- Author:
- Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it Aug 6, 2021
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResultSetPaginatedData()Instantiates a new searched folder.ResultSetPaginatedData(int offset, int limit, boolean isServerSearchFinished)Instantiates a new result set paginated data.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetClientStartIndex()Gets the client start index.List<? extends DocumentDV>getData()Gets the data.intgetLimit()Gets the limit.intgetOffset()Gets the offset.static longgetSerialversionuid()Gets the serialversionuid.longgetTotalItems()Gets the total items.booleanisServerSearchFinished()Checks if is server search finished.voidsetClientStartIndex(int clientStartIndex)Sets the client start index.voidsetData(List<ResultDocumentDV> data)Sets the data.voidsetLimit(int limit)Sets the limit.voidsetOffset(int offset)Sets the offset.voidsetServerSearchFinished(boolean isServerSearchFinished)Sets the server search finished.voidsetTotalItems(long totalItems)Sets the total items.StringtoString()
-
-
-
Constructor Detail
-
ResultSetPaginatedData
public ResultSetPaginatedData()
Instantiates a new searched folder.
-
ResultSetPaginatedData
public ResultSetPaginatedData(int offset, int limit, boolean isServerSearchFinished)Instantiates a new result set paginated data.- Parameters:
offset- the offsetlimit- the limitisServerSearchFinished- the is server search finished
-
-
Method Detail
-
getData
public List<? extends DocumentDV> getData()
Gets the data.- Returns:
- the data
-
getClientStartIndex
public int getClientStartIndex()
Gets the client start index.- Returns:
- the client start index
-
getLimit
public int getLimit()
Gets the limit.- Returns:
- the limit
-
isServerSearchFinished
public boolean isServerSearchFinished()
Checks if is server search finished.- Returns:
- true, if is server search finished
-
setData
public void setData(List<ResultDocumentDV> data)
Sets the data.- Parameters:
data- the new data
-
setClientStartIndex
public void setClientStartIndex(int clientStartIndex)
Sets the client start index.- Parameters:
clientStartIndex- the new client start index
-
setLimit
public void setLimit(int limit)
Sets the limit.- Parameters:
limit- the new limit
-
setServerSearchFinished
public void setServerSearchFinished(boolean isServerSearchFinished)
Sets the server search finished.- Parameters:
isServerSearchFinished- the new server search finished
-
getTotalItems
public long getTotalItems()
Gets the total items.- Returns:
- the total items
-
setTotalItems
public void setTotalItems(long totalItems)
Sets the total items.- Parameters:
totalItems- the new total items
-
getSerialversionuid
public static long getSerialversionuid()
Gets the serialversionuid.- Returns:
- the serialversionuid
-
getOffset
public int getOffset()
Gets the offset.- Returns:
- the offset
-
setOffset
public void setOffset(int offset)
Sets the offset.- Parameters:
offset- the new offset
-
-