Interface User

    • Method Detail

      • getPassword

        String getPassword()
        Get the user's password.
        Returns:
        password
      • getGlobalPrivileges

        Set<GlobalPrivilege> getGlobalPrivileges()
        Get the systemPrivileges of the user.
        Returns:
        system privileges
      • grantAllAccess

        User grantAllAccess​(DatabaseObject object)
        Grant the user access to all aspects of a database schema.
        Parameters:
        object - database object
        Returns:
        User instance for fluent programming
      • grant

        User grant​(DatabaseObject object,
                   ObjectPrivilege... privileges)
        Grant the user access to a database schema with the given privileges.
        Parameters:
        object - database object
        privileges - privileges to grant the user
        Returns:
        User instance for fluent programming
      • grant

        User grant​(GlobalPrivilege... privileges)
        Grant system privileges to a user.
        Parameters:
        privileges - system privileges
        Returns:
        User instance for fluent programming
      • getType

        default String getType()
        Description copied from interface: DatabaseObject
        Get the type of the database object.
        Specified by:
        getType in interface DatabaseObject
        Returns:
        type of the database object
      • hasParent

        default boolean hasParent()
        Description copied from interface: DatabaseObject
        Check if this object has a parent object that sets the scope within the database
        Specified by:
        hasParent in interface DatabaseObject
        Returns:
        true if the object has a parent