public class UserPrivateController extends Object
User| Constructor and Description |
|---|
UserPrivateController() |
| Modifier and Type | Method and Description |
|---|---|
List<es.uvigo.esei.dgss.letta.domain.entities.Event> |
getAttendingEvents()
Returns a
List of Event that were created by the current
user |
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.Event> |
getOwnEvents()
Returns a
List of Event that were created by the current
user |
int |
getPageIndex()
Returns the value of the variable pageIndex
|
int |
getPages()
Returns the value of the variable pages
|
ArrayList<String> |
getPagesLinks()
Returns the value of the variable pagesLinks
|
void |
init()
Initialize the number of page in the paginated page
|
boolean |
isAtUserLocation(es.uvigo.esei.dgss.letta.domain.entities.Event event) |
boolean |
isPassed(es.uvigo.esei.dgss.letta.domain.entities.Event event)
|
void |
jumpToPage(String pageNumber)
This method changes the page to the selected number
|
void |
listCreatedEventsNext()
This method change the page to the next valid page
|
void |
listCreatedEventsPrev()
This method change the page to the previous valid page
|
void |
setPageIndex(int pageIndex)
Setter method for the pageIndex variable
|
void |
setPages(int pages)
Setter method of pages variable.
|
void |
setPagesLinks(ArrayList<String> pagesLinks)
Setter method for the pagesLinks variable
|
@PostConstruct public void init()
public void listCreatedEventsNext()
public void listCreatedEventsPrev()
public void jumpToPage(String pageNumber)
pageNumber - the number of the selected pagepublic List<es.uvigo.esei.dgss.letta.domain.entities.Event> getOwnEvents()
List of Event that were created by the current
userList of Eventpublic List<es.uvigo.esei.dgss.letta.domain.entities.Event> getAttendingEvents()
List of Event that were created by the current
userList of Eventpublic 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 boolean isPassed(es.uvigo.esei.dgss.letta.domain.entities.Event event)
public boolean isAtUserLocation(es.uvigo.esei.dgss.letta.domain.entities.Event event)
public int getPages()
public void setPages(int pages)
pages - number of pages of events.public int getPageIndex()
public void setPageIndex(int pageIndex)
pageIndex - The number of the current page of events.public ArrayList<String> getPagesLinks()
Copyright © 2015. All rights reserved.