Package com.avoka.fc.core.util
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 Summary
Constructors Constructor Description FluentSecurityUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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.
-
-
-
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
-
-