public class InlineSQLHelperUtil
extends Object
InlineSQLHelper
Constructor and Description |
---|
InlineSQLHelperUtil() |
Modifier and Type | Method and Description |
---|---|
static InlineSQLHelper |
getInlineSQLHelper() |
static boolean |
isEnabled() |
static boolean |
isEnabled(long groupId) |
static boolean |
isEnabled(long[] groupIds) |
static boolean |
isEnabled(long companyId,
long groupId) |
static String |
replacePermissionCheck(String sql,
String className,
String classPKField) |
static String |
replacePermissionCheck(String sql,
String className,
String classPKField,
long groupId) |
static String |
replacePermissionCheck(String sql,
String className,
String classPKField,
long[] groupIds) |
static String |
replacePermissionCheck(String sql,
String className,
String classPKField,
long[] groupIds,
String bridgeJoin) |
static String |
replacePermissionCheck(String sql,
String className,
String classPKField,
long groupId,
String bridgeJoin) |
static String |
replacePermissionCheck(String sql,
String className,
String classPKField,
String userIdField) |
static String |
replacePermissionCheck(String sql,
String className,
String classPKField,
String userIdField,
long groupId) |
static String |
replacePermissionCheck(String sql,
String className,
String classPKField,
String userIdField,
long[] groupIds) |
static String |
replacePermissionCheck(String sql,
String className,
String classPKField,
String userIdField,
long[] groupIds,
String bridgeJoin) |
static String |
replacePermissionCheck(String sql,
String className,
String classPKField,
String userIdField,
long groupId,
String bridgeJoin) |
static String |
replacePermissionCheck(String sql,
String className,
String classPKField,
String userIdField,
String bridgeJoin) |
static String |
replacePermissionCheck(String sql,
String className,
String classPKField,
String userIdField,
String groupIdField,
long[] groupIds,
String bridgeJoin) |
void |
setInlineSQLHelper(InlineSQLHelper inlineSQLPermission) |
public static InlineSQLHelper getInlineSQLHelper()
public static boolean isEnabled()
public static boolean isEnabled(long groupId)
public static boolean isEnabled(long companyId, long groupId)
public static boolean isEnabled(long[] groupIds)
public static String replacePermissionCheck(String sql, String className, String classPKField)
public static String replacePermissionCheck(String sql, String className, String classPKField, long groupId)
public static String replacePermissionCheck(String sql, String className, String classPKField, long groupId, String bridgeJoin)
public static String replacePermissionCheck(String sql, String className, String classPKField, long[] groupIds)
public static String replacePermissionCheck(String sql, String className, String classPKField, long[] groupIds, String bridgeJoin)
public static String replacePermissionCheck(String sql, String className, String classPKField, String userIdField)
public static String replacePermissionCheck(String sql, String className, String classPKField, String userIdField, long groupId)
public static String replacePermissionCheck(String sql, String className, String classPKField, String userIdField, long groupId, String bridgeJoin)
public static String replacePermissionCheck(String sql, String className, String classPKField, String userIdField, long[] groupIds)
public static String replacePermissionCheck(String sql, String className, String classPKField, String userIdField, long[] groupIds, String bridgeJoin)
public static String replacePermissionCheck(String sql, String className, String classPKField, String userIdField, String bridgeJoin)
public static String replacePermissionCheck(String sql, String className, String classPKField, String userIdField, String groupIdField, long[] groupIds, String bridgeJoin)
public void setInlineSQLHelper(InlineSQLHelper inlineSQLPermission)