Package org.codelibs.fess.app.pager
Class SchedulerPager
java.lang.Object
org.codelibs.fess.app.pager.SchedulerPager
- All Implemented Interfaces:
Serializable
Pager for scheduler management.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionWhether the scheduled job is available.Whether the scheduled job is a crawler job.The user who created the scheduled job.The time when the scheduled job was created.Cron expression for the scheduled job.static final intDefault current page number for pagination.static final intDefault page size for pagination.ID of the scheduled job.Whether logging is enabled for the scheduled job.Name of the scheduled job.Script type of the scheduled job.Sort order of the scheduled job.Target of the scheduled job.Version number of the scheduled job. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears the pager's state.intGets the total number of pages.intGets the total number of records.intGets the current page number.protected intGets the default current page number.protected intGets the default page size from the Fess configuration.Gets the list of page numbers.intGets the page size.booleanChecks if a next page exists.booleanChecks if a previous page exists.voidsetAllPageCount(int allPageCount) Sets the total number of pages.voidsetAllRecordCount(int allRecordCount) Sets the total number of records.voidsetCurrentPageNumber(int currentPageNumber) Sets the current page number.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.voidsetPageSize(int pageSize) Sets the page size.
-
Field Details
-
DEFAULT_PAGE_SIZE
public static final int DEFAULT_PAGE_SIZEDefault page size for pagination.- See Also:
-
DEFAULT_CURRENT_PAGE_NUMBER
public static final int DEFAULT_CURRENT_PAGE_NUMBERDefault current page number for pagination.- See Also:
-
id
ID of the scheduled job. -
name
Name of the scheduled job. -
target
Target of the scheduled job. -
cronExpression
Cron expression for the scheduled job. -
scriptType
Script type of the scheduled job. -
crawler
Whether the scheduled job is a crawler job. -
jobLogging
Whether logging is enabled for the scheduled job. -
available
Whether the scheduled job is available. -
sortOrder
Sort order of the scheduled job. -
createdBy
The user who created the scheduled job. -
createdTime
The time when the scheduled job was created. -
versionNo
Version number of the scheduled job.
-
-
Constructor Details
-
SchedulerPager
public SchedulerPager()Constructor.
-
-
Method Details
-
clear
public void clear()Clears the pager's state. -
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.- Returns:
- The total number of records.
-
setAllRecordCount
public void setAllRecordCount(int allRecordCount) Sets the total number of records.- Parameters:
allRecordCount- The total number of records.
-
getAllPageCount
public int getAllPageCount()Gets the total number of pages.- Returns:
- The total number of pages.
-
setAllPageCount
public void setAllPageCount(int allPageCount) Sets the total number of pages.- Parameters:
allPageCount- The total number of pages.
-
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 page size.- Returns:
- The page size.
-
setPageSize
public void setPageSize(int pageSize) Sets the page size.- Parameters:
pageSize- The page size.
-
getCurrentPageNumber
public int getCurrentPageNumber()Gets the current page number.- Returns:
- The current page number.
-
setCurrentPageNumber
public void setCurrentPageNumber(int currentPageNumber) Sets the current page number.- Parameters:
currentPageNumber- The current page number.
-
getPageNumberList
Gets the list of page numbers.- Returns:
- The list of page numbers.
-
setPageNumberList
Sets the list of page numbers.- 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.
-