Class AnyUsersDataManager
java.lang.Object
eu.c6.gibraltar.api.common.AbstractManager
eu.c6.gibraltar.api.managers.userdata.AnyUsersDataManager
The Class AnyUsersDataManager to manage user preferences.
User identifier is the login.
-
Field Summary
Fields inherited from class eu.c6.gibraltar.api.common.AbstractManager
APPLICATION_XLS, APPLICATION_XLS_TYPE, APPLICATION_XLSX, APPLICATION_XLSX_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionAnyUsersDataManager(AnySession anySession) Instantiates a new any users data manager. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReset columns preferences ( Rooms, Search, Favorites, Offline ) of all usersbooleanresetColumns(String userId) Reset columns preferences ( Rooms, Search, Favorites, Offline ) of specified user.
-
Constructor Details
-
AnyUsersDataManager
Instantiates a new any users data manager.- Parameters:
anySession- the any session
-
-
Method Details
-
resetColumns
Reset columns preferences ( Rooms, Search, Favorites, Offline ) of specified user.- Parameters:
userId- the user identifier (login)- Returns:
- true, if successful
- Throws:
Exception- the exception if current user do not have permission to update users or user is not found
-
resetAllColumns
Reset columns preferences ( Rooms, Search, Favorites, Offline ) of all users- Returns:
- true, if successful
- Throws:
Exception- the exception if current user do not have permission to update users
-