Package com.almis.awe.service
Class FavouriteService
java.lang.Object
com.almis.awe.service.FavouriteService
Service to manage favourite options for user
-
Constructor Summary
ConstructorDescriptionFavouriteService
(QueryService queryService, QueryUtil queryUtil, MaintainService maintainService) -
Method Summary
Modifier and TypeMethodDescriptioncheckFavourites
(String user, String option) Check favourite option to keep button state updatedclickFavourite
(String user, String option) Click on favourite button: Add/Remove option from favourites and refresh menugetFavourites
(String user) Get favourite list of screens
-
Constructor Details
-
FavouriteService
public FavouriteService(QueryService queryService, QueryUtil queryUtil, MaintainService maintainService)
-
-
Method Details
-
clickFavourite
Click on favourite button: Add/Remove option from favourites and refresh menu- Parameters:
user
- User nameoption
- Option to add/remove- Returns:
- Service data
- Throws:
AWException
-
checkFavourites
Check favourite option to keep button state updated- Parameters:
user
- User nameoption
- Option to check- Returns:
- Service data
- Throws:
AWException
-
getFavourites
Get favourite list of screens- Parameters:
user
- User to retrieve the list- Returns:
- List of favourites
- Throws:
AWException
-