Package org.teiid

Interface PolicyDecider

  • All Known Implementing Classes:
    DataRolePolicyDecider

    public interface PolicyDecider
    A policy decider that reports authorization decisions for further action. A decider may be called many times for a single user command. Typically there will be 1 call for every command/subquery/temp table access/function call.
    • Method Detail

      • hasRole

        boolean hasRole​(String roleName,
                        CommandContext context)
        Called by the system hasRole function to determine role membership.
        Parameters:
        roleName -
        context -
        Returns:
        true if the user has the given role name, otherwise false
      • isLanguageAllowed

        boolean isLanguageAllowed​(String language,
                                  CommandContext commandContext)
        Returns true if the given language is allowed
        Parameters:
        language -
        commandContext -
        Returns:
      • validateCommand

        boolean validateCommand​(CommandContext commandContext)
        Determines if an authorization check should proceed
        Parameters:
        commandContext -
        Returns: