public class InlineSQLHelperImpl
extends Object
implements com.liferay.portal.kernel.security.permission.InlineSQLHelper
Modifier and Type | Field and Description |
---|---|
static String |
FILTER_BY_RESOURCE_BLOCK_ID |
static String |
FILTER_BY_RESOURCE_BLOCK_ID_OWNER |
static String |
FIND_BY_RESOURCE_BLOCK_ID |
static String |
FIND_BY_RESOURCE_PERMISSION |
Constructor and Description |
---|
InlineSQLHelperImpl() |
Modifier and Type | Method and Description |
---|---|
protected Set<Long> |
getOwnerResourceBlockIds(long companyId,
long[] groupIds,
String className) |
protected String |
getOwnerResourceBlockIdsSQL(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker,
long checkGroupId,
String className,
Set<Long> ownerResourceBlockIds) |
protected Set<Long> |
getResourceBlockIds(long companyId,
long[] groupIds,
String className) |
protected long[] |
getRoleIds(long groupId) |
protected long[] |
getRoleIds(long[] groupIds) |
protected String |
getRoleIdsOrOwnerIdSQL(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker,
long[] groupIds,
String userIdField) |
protected long |
getUserId() |
protected String |
getUserResourceBlockIdsSQL(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker,
long checkGroupId,
long[] roleIds,
String className,
Set<Long> userResourceBlockIds) |
boolean |
isEnabled() |
boolean |
isEnabled(long groupId) |
boolean |
isEnabled(long[] groupIds) |
boolean |
isEnabled(long companyId,
long groupId) |
String |
replacePermissionCheck(String sql,
String className,
String classPKField) |
String |
replacePermissionCheck(String sql,
String className,
String classPKField,
long groupId) |
String |
replacePermissionCheck(String sql,
String className,
String classPKField,
long[] groupIds) |
String |
replacePermissionCheck(String sql,
String className,
String classPKField,
long[] groupIds,
String bridgeJoin) |
String |
replacePermissionCheck(String sql,
String className,
String classPKField,
long groupId,
String bridgeJoin) |
String |
replacePermissionCheck(String sql,
String className,
String classPKField,
String userIdField) |
String |
replacePermissionCheck(String sql,
String className,
String classPKField,
String userIdField,
long groupId) |
String |
replacePermissionCheck(String sql,
String className,
String classPKField,
String userIdField,
long[] groupIds) |
String |
replacePermissionCheck(String sql,
String className,
String classPKField,
String userIdField,
long[] groupIds,
String bridgeJoin) |
String |
replacePermissionCheck(String sql,
String className,
String classPKField,
String userIdField,
long groupId,
String bridgeJoin) |
String |
replacePermissionCheck(String sql,
String className,
String classPKField,
String userIdField,
String bridgeJoin) |
String |
replacePermissionCheck(String sql,
String className,
String classPKField,
String userIdField,
String groupIdField,
long[] groupIds,
String bridgeJoin) |
protected String |
replacePermissionCheckBlocks(String sql,
String className,
String classPKField,
String userIdField,
long[] groupIds,
String bridgeJoin) |
protected String |
replacePermissionCheckJoin(String sql,
String className,
String classPKField,
String userIdField,
String groupIdField,
long[] groupIds,
String bridgeJoin) |
public static final String FILTER_BY_RESOURCE_BLOCK_ID
public static final String FILTER_BY_RESOURCE_BLOCK_ID_OWNER
public static final String FIND_BY_RESOURCE_BLOCK_ID
public static final String FIND_BY_RESOURCE_PERMISSION
public boolean isEnabled()
isEnabled
in interface com.liferay.portal.kernel.security.permission.InlineSQLHelper
public boolean isEnabled(long groupId)
isEnabled
in interface com.liferay.portal.kernel.security.permission.InlineSQLHelper
public boolean isEnabled(long companyId, long groupId)
isEnabled
in interface com.liferay.portal.kernel.security.permission.InlineSQLHelper
public boolean isEnabled(long[] groupIds)
isEnabled
in interface com.liferay.portal.kernel.security.permission.InlineSQLHelper
public String replacePermissionCheck(String sql, String className, String classPKField)
replacePermissionCheck
in interface com.liferay.portal.kernel.security.permission.InlineSQLHelper
public String replacePermissionCheck(String sql, String className, String classPKField, long groupId)
replacePermissionCheck
in interface com.liferay.portal.kernel.security.permission.InlineSQLHelper
public String replacePermissionCheck(String sql, String className, String classPKField, long groupId, String bridgeJoin)
replacePermissionCheck
in interface com.liferay.portal.kernel.security.permission.InlineSQLHelper
public String replacePermissionCheck(String sql, String className, String classPKField, long[] groupIds)
replacePermissionCheck
in interface com.liferay.portal.kernel.security.permission.InlineSQLHelper
public String replacePermissionCheck(String sql, String className, String classPKField, long[] groupIds, String bridgeJoin)
replacePermissionCheck
in interface com.liferay.portal.kernel.security.permission.InlineSQLHelper
public String replacePermissionCheck(String sql, String className, String classPKField, String userIdField)
replacePermissionCheck
in interface com.liferay.portal.kernel.security.permission.InlineSQLHelper
public String replacePermissionCheck(String sql, String className, String classPKField, String userIdField, long groupId)
replacePermissionCheck
in interface com.liferay.portal.kernel.security.permission.InlineSQLHelper
public String replacePermissionCheck(String sql, String className, String classPKField, String userIdField, long groupId, String bridgeJoin)
replacePermissionCheck
in interface com.liferay.portal.kernel.security.permission.InlineSQLHelper
public String replacePermissionCheck(String sql, String className, String classPKField, String userIdField, long[] groupIds)
replacePermissionCheck
in interface com.liferay.portal.kernel.security.permission.InlineSQLHelper
public String replacePermissionCheck(String sql, String className, String classPKField, String userIdField, long[] groupIds, String bridgeJoin)
replacePermissionCheck
in interface com.liferay.portal.kernel.security.permission.InlineSQLHelper
public String replacePermissionCheck(String sql, String className, String classPKField, String userIdField, String bridgeJoin)
replacePermissionCheck
in interface com.liferay.portal.kernel.security.permission.InlineSQLHelper
public String replacePermissionCheck(String sql, String className, String classPKField, String userIdField, String groupIdField, long[] groupIds, String bridgeJoin)
replacePermissionCheck
in interface com.liferay.portal.kernel.security.permission.InlineSQLHelper
protected Set<Long> getOwnerResourceBlockIds(long companyId, long[] groupIds, String className)
protected String getOwnerResourceBlockIdsSQL(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker, long checkGroupId, String className, Set<Long> ownerResourceBlockIds)
protected Set<Long> getResourceBlockIds(long companyId, long[] groupIds, String className)
protected long[] getRoleIds(long groupId)
protected long[] getRoleIds(long[] groupIds)
protected String getRoleIdsOrOwnerIdSQL(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker, long[] groupIds, String userIdField)
protected long getUserId()
protected String getUserResourceBlockIdsSQL(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker, long checkGroupId, long[] roleIds, String className, Set<Long> userResourceBlockIds)
protected String replacePermissionCheckBlocks(String sql, String className, String classPKField, String userIdField, long[] groupIds, String bridgeJoin)
protected String replacePermissionCheckJoin(String sql, String className, String classPKField, String userIdField, String groupIdField, long[] groupIds, String bridgeJoin)