Package org.codelibs.fess.app.pager
Class FileAuthPager
java.lang.Object
org.codelibs.fess.app.pager.FileAuthPager
- All Implemented Interfaces:
Serializable
A pager class for file authentication entries, providing pagination functionality
for file authentication configurations with search and display capabilities.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe user who created this file authentication entry.The timestamp when this file authentication entry was created.static final intThe default current page number (1-based).static final intThe default number of records to display per page.The file configuration ID associated with this authentication.The unique identifier for the file authentication entry.The port number for the file authentication connection.The username for file authentication.The version number for optimistic locking. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears all pagination and search criteria fields, resetting them to their default values.intGets the total number of pages in the result set.intGets the total number of records in the result set.intGets the current page number (1-based).protected intGets the default current page number.protected intGets the default page size from the Fess configuration.Gets the list of page numbers for navigation.intGets the number of records to display per page.booleanChecks if a next page exists.booleanChecks if a previous page exists.voidsetAllPageCount(int allPageCount) Sets the total number of pages in the result set.voidsetAllRecordCount(int allRecordCount) Sets the total number of records in the result set.voidsetCurrentPageNumber(int currentPageNumber) Sets the current page number (1-based).voidsetExistNextPage(boolean existNextPage) Sets whether a next page exists.voidsetExistPrePage(boolean existPrePage) Sets whether a previous page exists.voidsetPageNumberList(List<Integer> pageNumberList) Sets the list of page numbers for navigation.voidsetPageSize(int pageSize) Sets the number of records to display per page.
-
Field Details
-
DEFAULT_PAGE_SIZE
public static final int DEFAULT_PAGE_SIZEThe default number of records to display per page.- See Also:
-
DEFAULT_CURRENT_PAGE_NUMBER
public static final int DEFAULT_CURRENT_PAGE_NUMBERThe default current page number (1-based).- See Also:
-
id
The unique identifier for the file authentication entry. -
port
The port number for the file authentication connection. -
username
The username for file authentication. -
fileConfigId
The file configuration ID associated with this authentication. -
createdBy
The user who created this file authentication entry. -
createdTime
The timestamp when this file authentication entry was created. -
versionNo
The version number for optimistic locking.
-
-
Constructor Details
-
FileAuthPager
public FileAuthPager()Default constructor for file authentication pager. Creates a new instance with default values.
-
-
Method Details
-
clear
public void clear()Clears all pagination and search criteria fields, resetting them to their default values. -
getDefaultCurrentPageNumber
protected int getDefaultCurrentPageNumber()Gets the default current page number.- Returns:
- the default current page number
-
getAllRecordCount
public int getAllRecordCount()Gets the total number of records in the result set.- Returns:
- the total record count
-
setAllRecordCount
public void setAllRecordCount(int allRecordCount) Sets the total number of records in the result set.- Parameters:
allRecordCount- the total record count
-
getAllPageCount
public int getAllPageCount()Gets the total number of pages in the result set.- Returns:
- the total page count
-
setAllPageCount
public void setAllPageCount(int allPageCount) Sets the total number of pages in the result set.- Parameters:
allPageCount- the total page count
-
isExistPrePage
public boolean isExistPrePage()Checks if a previous page exists.- Returns:
- true if a previous page exists, false otherwise
-
setExistPrePage
public void setExistPrePage(boolean existPrePage) Sets whether a previous page exists.- Parameters:
existPrePage- true if a previous page exists, false otherwise
-
isExistNextPage
public boolean isExistNextPage()Checks if a next page exists.- Returns:
- true if a next page exists, false otherwise
-
setExistNextPage
public void setExistNextPage(boolean existNextPage) Sets whether a next page exists.- Parameters:
existNextPage- true if a next page exists, false otherwise
-
getPageSize
public int getPageSize()Gets the number of records to display per page. If the page size is not set or is invalid, returns the default page size.- Returns:
- the page size
-
setPageSize
public void setPageSize(int pageSize) Sets the number of records to display per page.- Parameters:
pageSize- the page size
-
getCurrentPageNumber
public int getCurrentPageNumber()Gets the current page number (1-based). If the current page number is not set or is invalid, returns the default current page number.- Returns:
- the current page number
-
setCurrentPageNumber
public void setCurrentPageNumber(int currentPageNumber) Sets the current page number (1-based).- Parameters:
currentPageNumber- the current page number
-
getPageNumberList
Gets the list of page numbers for navigation.- Returns:
- the list of page numbers
-
setPageNumberList
Sets the list of page numbers for navigation.- Parameters:
pageNumberList- the list of page numbers
-
getDefaultPageSize
protected int getDefaultPageSize()Gets the default page size from the Fess configuration.- Returns:
- the default page size
-