public class ListUserNotifications extends Object
| Constructor and Description |
|---|
ListUserNotifications() |
| Modifier and Type | Method and Description |
|---|---|
Long |
countUnreadNotifications()
Count the unread
ListUserNotifications by the current User. |
es.uvigo.esei.dgss.letta.domain.entities.UserNotifications |
getCurrentNotification()
Get the current
UserNotifications |
String |
getIconFor(es.uvigo.esei.dgss.letta.domain.entities.Event.Category eventType)
Returns a
String representing the path to the corresponding
Event.Category icon image. |
List<es.uvigo.esei.dgss.letta.domain.entities.UserNotifications> |
getNotifications()
Get a list of
UserNotifications. |
int |
getPageIndex() |
int |
getPages() |
ArrayList<String> |
getPagesLinks() |
void |
init()
Initialize the number of pages in a paginated page.
|
boolean |
isAfter(LocalDateTime d) |
void |
jumpToPage(String pageNumber)
Update the value of pageIndex and redirect.
|
void |
listUserNotificationsNext()
Method to be called when the next command button is pressed
|
void |
listUserNotificationsPrev()
Method to be called when the previous command button is pressed
|
void |
setPageIndex(int pageIndex) |
void |
setPages(int pages) |
void |
setPagesLinks(ArrayList<String> pagesLinks) |
public int getPages()
public void setPages(int pages)
public int getPageIndex()
public void setPageIndex(int pageIndex)
@PostConstruct public void init()
public List<es.uvigo.esei.dgss.letta.domain.entities.UserNotifications> getNotifications()
UserNotifications.UserNotifications.public void listUserNotificationsNext()
public void listUserNotificationsPrev()
public String getIconFor(es.uvigo.esei.dgss.letta.domain.entities.Event.Category eventType)
String representing the path to the corresponding
Event.Category icon image.eventType - the Event.Category to be translated into a icon path.public void jumpToPage(String pageNumber)
pageNumber, - number of page topublic boolean isAfter(LocalDateTime d)
public es.uvigo.esei.dgss.letta.domain.entities.UserNotifications getCurrentNotification()
throws IOException
UserNotificationsUserNotifications.IOExceptionpublic Long countUnreadNotifications()
ListUserNotifications by the current User.ListUserNotificationsCopyright © 2017. All rights reserved.