@Named(value="navigationContext") @SessionScoped public class NavigationContext extends Object implements Serializable
| Constructor and Description |
|---|
NavigationContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearContext() |
int |
getCurrentIndex() |
int |
getNextPageNumber() |
Long |
getNextStoryId() |
int |
getPevPageNumber() |
Long |
getPrevStoryId() |
Object |
getSearchParameters() |
String |
getSource() |
int |
getSourceCurrentPage() |
List<Long> |
getStoryIds() |
String |
goToNext(int pageSize) |
String |
goToPrev(int pageSize) |
boolean |
hasNextPageInContext() |
boolean |
isFirstStory() |
boolean |
isLastStory() |
boolean |
isNavigationEnabled() |
boolean |
needsToLoadNextPage() |
boolean |
needsToLoadPrevPage() |
void |
setContext(List<es.uvigo.esei.microstories.dtos.StoryResponseDto> stories,
Long currentStoryId,
String source,
Object params,
int page,
boolean hasNext) |
void |
setCurrentIndex(int currentIndex) |
void |
setHasNextPage(boolean hasNextPage) |
void |
updateContextPage(es.uvigo.esei.microstories.jsf.NavigationContext.PageResult results,
int newPage,
int index) |
public void setContext(List<es.uvigo.esei.microstories.dtos.StoryResponseDto> stories, Long currentStoryId, String source, Object params, int page, boolean hasNext)
public void clearContext()
public boolean isNavigationEnabled()
public Long getNextStoryId()
public Long getPrevStoryId()
public boolean needsToLoadNextPage()
public boolean needsToLoadPrevPage()
public String goToPrev(int pageSize)
public String goToNext(int pageSize)
public boolean isFirstStory()
public boolean isLastStory()
public int getNextPageNumber()
public int getPevPageNumber()
public void setCurrentIndex(int currentIndex)
public int getCurrentIndex()
public Object getSearchParameters()
public String getSource()
public int getSourceCurrentPage()
public boolean hasNextPageInContext()
public void setHasNextPage(boolean hasNextPage)
public void updateContextPage(es.uvigo.esei.microstories.jsf.NavigationContext.PageResult results,
int newPage,
int index)
Copyright © 2025. All rights reserved.