Class WorkflowRecordAccess

java.lang.Object
com.axelor.workflow.security.WorkflowRecordAccess

public final class WorkflowRecordAccess extends Object
Whether the caller may read the business record a task, run or approval is about. Engine rows reference records by model and id, so every surface answering about a record must check here, whatever id a client sends.
  • Method Details

    • canRead

      public static boolean canRead(String model, Long recordId)
      Whether the current user may read model#recordId. An unknown or non-entity model is allowed, having nothing to enforce; an entity goes through row-level rules.
    • asId

      public static Long asId(Object value)
      A context value that should be a record id, or null when it is not one.