Class FluentSecurityUtils


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

      • FluentSecurityUtils

        public FluentSecurityUtils()
    • Method Detail

      • 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