Class RowLevelPolicy

java.lang.Object
io.jmix.security.model.RowLevelPolicy
All Implemented Interfaces:
Serializable

public class RowLevelPolicy extends Object implements Serializable
Defines a constraint that restricts data a user can read or modify. There are two row-level policy types: in-memory and JPQL.
See Also:
  • Constructor Details

  • Method Details

    • getEntityName

      public String getEntityName()
      Returns a name of the associated entity
    • getAction

      public RowLevelPolicyAction getAction()
      Returns entity CRUD operation
      Returns:
      entity CRUD operation
    • getBiPredicate

      @Nullable public RowLevelBiPredicate<Object,org.springframework.context.ApplicationContext> getBiPredicate()
      Returns a predicate for in-memory row-level policy
      Returns:
      a predicate
    • getScript

      @Nullable public String getScript()
      Returns a script for predicate for in-memory row-level policy
      Returns:
      a script
    • getWhereClause

      public String getWhereClause()
      Returns "where" clause for JPQL policy
      Returns:
      JPQL "where" clause
    • getJoinClause

      public String getJoinClause()
      Returns "join" clause for JPQL policy
      Returns:
      JPQL "join" clause
    • getType

      public RowLevelPolicyType getType()
      Returns row-level policy type. It may be in-memory predicate or JPQL policy
      Returns:
      row-level policy type
    • getCustomProperties

      public Map<String,String> getCustomProperties()