Class AnyUsersDataManager

java.lang.Object
eu.c6.gibraltar.api.common.AbstractManager
eu.c6.gibraltar.api.managers.userdata.AnyUsersDataManager

public class AnyUsersDataManager extends AbstractManager
The Class AnyUsersDataManager to manage user preferences.

User identifier is the login.

  • Constructor Details

    • AnyUsersDataManager

      public AnyUsersDataManager(AnySession anySession)
      Instantiates a new any users data manager.
      Parameters:
      anySession - the any session
  • Method Details

    • resetColumns

      public boolean resetColumns(String userId) throws Exception
      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

      public boolean resetAllColumns() throws Exception
      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