Class DatabaseHandler


  • public class DatabaseHandler
    extends Object
    Author:
    scf
    • Method Detail

      • init

        public static void init​(CoreSettings coreSettings)
      • isValidUser

        public boolean isValidUser​(String userName,
                                   String password)
      • userHasRole

        public boolean userHasRole​(String userName,
                                   String userPass,
                                   String roleName)
        This method checks if the given user exists with the given password and has the given role.
        Parameters:
        userName - The username of the user to check the role for.
        userPass - The password of the user to check the role for.
        roleName - The role to check.
        Returns:
        true if the user exists AND has the given password AND has the given role.
      • userHasRole

        public boolean userHasRole​(String userName,
                                   String roleName)
        This method checks if the given user exists and has the given role.
        Parameters:
        userName - The username of the user to check the role for.
        roleName - The role to check.
        Returns:
        true if the user exists AND has the given password AND has the given role.
      • checkForUpgrades

        public String checkForUpgrades()