Package com.avoka.fc.core.util
Class FluentSecurityUtils
java.lang.Object
com.avoka.fc.core.util.FluentSecurityUtils
Provides utility methods for handling security through Fluent APIs.
- Since:
- 19.11.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
applyClientSecurity
(org.apache.cayenne.query.SelectQuery selectQuery, long clientId) Apply organisation filter to provided select query based on provided clientId.static void
applyUserOrganisationSecurity
(org.apache.cayenne.query.SelectQuery selectQuery, UserAccount userAccount) Apply organisation filter to provided select query based on users assigned organisations.
-
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
-