Class FluentSecurityUtils

java.lang.Object
com.avoka.fc.core.util.FluentSecurityUtils

public class FluentSecurityUtils extends Object
Provides utility methods for handling security through Fluent APIs.
Since:
19.11.0
  • Constructor Details

    • FluentSecurityUtils

      public FluentSecurityUtils()
  • Method Details

    • applyUserOrganisationSecurity

      public static void applyUserOrganisationSecurity(org.apache.cayenne.query.SelectQuery selectQuery, UserAccount userAccount)
      Apply organisation filter to provided select query based on users assigned organisations.
      Parameters:
      selectQuery -
      userAccount -
      Since:
      19.11.0
    • applyClientSecurity

      public static void applyClientSecurity(org.apache.cayenne.query.SelectQuery selectQuery, long clientId)
      Apply organisation filter to provided select query based on provided clientId.
      Parameters:
      selectQuery -
      clientId -
      Since:
      19.11.0
    • applyClientDataSecurityContext

      public static void applyClientDataSecurityContext(org.apache.cayenne.query.SelectQuery selectQuery, String pathSpec)
      Apply client data security context access control or filter based on user's clients
      Parameters:
      selectQuery -
      pathSpec -
      Since:
      23.04.0
    • applyUserClientsFilter

      public static void applyUserClientsFilter(org.apache.cayenne.query.SelectQuery selectQuery, String pathSpec)
      Apply user's client filter
      Parameters:
      selectQuery -
      pathSpec -
      Since:
      23.04.0