Class InlineSQLHelperUtil
Object
com.liferay.portal.kernel.security.permission.InlineSQLHelperUtil
- Author:
- Raymond Augé
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends com.liferay.petra.sql.dsl.Table<T>>
com.liferay.petra.sql.dsl.expression.PredicategetPermissionWherePredicate(Class<?> modelClass, com.liferay.petra.sql.dsl.Column<T, Long> classPKColumn, long... groupIds) static booleanstatic booleanisEnabled(long groupId) static booleanisEnabled(long[] groupIds) static booleanisEnabled(long companyId, long groupId) static <T extends com.liferay.petra.sql.dsl.Table<T>>
com.liferay.petra.sql.dsl.query.DSLQueryreplacePermissionCheck(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery, Class<?> modelClass, com.liferay.petra.sql.dsl.Column<T, Long> classPKColumn, long... groupIds) static StringreplacePermissionCheck(String sql, String className, String classPKField) static StringreplacePermissionCheck(String sql, String className, String classPKField, long groupId) static StringreplacePermissionCheck(String sql, String className, String classPKField, long[] groupIds)
-
Constructor Details
-
InlineSQLHelperUtil
public InlineSQLHelperUtil()
-
-
Method Details
-
getPermissionWherePredicate
-
isEnabled
public static boolean isEnabled() -
isEnabled
public static boolean isEnabled(long groupId) -
isEnabled
public static boolean isEnabled(long companyId, long groupId) -
isEnabled
public static boolean isEnabled(long[] groupIds) -
replacePermissionCheck
-
replacePermissionCheck
-
replacePermissionCheck
-
replacePermissionCheck
-