Module bus.pager

Interface PermissionProvider


public interface PermissionProvider
Data permission provider interface that defines the logic for generating data permission SQL segments.
Since:
Java 17+
Author:
Kimi Liu
  • Method Summary

    Modifier and Type
    Method
    Description
    default net.sf.jsqlparser.expression.Expression
    getSqlSegment(net.sf.jsqlparser.schema.Table table, net.sf.jsqlparser.expression.Expression where, String mappedStatementId)
    Retrieves the data permission SQL segment.
  • Method Details

    • getSqlSegment

      default net.sf.jsqlparser.expression.Expression getSqlSegment(net.sf.jsqlparser.schema.Table table, net.sf.jsqlparser.expression.Expression where, String mappedStatementId)
      Retrieves the data permission SQL segment.
      Parameters:
      table - the database table information, including table name and alias
      where - the original WHERE condition
      mappedStatementId - the MyBatis MappedStatement ID, used to determine the specific execution method
      Returns:
      a JSqlParser conditional expression that will be appended to the original WHERE condition, not overwriting it