Liferay 7.0-ce-b8 portal-impl

com.liferay.portal.security.permission
Class InlineSQLHelperImpl

java.lang.Object
  extended by com.liferay.portal.security.permission.InlineSQLHelperImpl
All Implemented Interfaces:
com.liferay.portal.kernel.security.permission.InlineSQLHelper

public class InlineSQLHelperImpl
extends Object
implements com.liferay.portal.kernel.security.permission.InlineSQLHelper


Field Summary
static String FILTER_BY_RESOURCE_BLOCK_ID
           
static String FILTER_BY_RESOURCE_BLOCK_ID_OWNER
           
static String FIND_BY_RESOURCE_BLOCK_ID
           
static String JOIN_RESOURCE_PERMISSION
           
 
Constructor Summary
InlineSQLHelperImpl()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILTER_BY_RESOURCE_BLOCK_ID

public static final String FILTER_BY_RESOURCE_BLOCK_ID

FILTER_BY_RESOURCE_BLOCK_ID_OWNER

public static final String FILTER_BY_RESOURCE_BLOCK_ID_OWNER

FIND_BY_RESOURCE_BLOCK_ID

public static final String FIND_BY_RESOURCE_BLOCK_ID

JOIN_RESOURCE_PERMISSION

public static final String JOIN_RESOURCE_PERMISSION
Constructor Detail

InlineSQLHelperImpl

public InlineSQLHelperImpl()
Method Detail

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface com.liferay.portal.kernel.security.permission.InlineSQLHelper

isEnabled

public boolean isEnabled(long groupId)
Specified by:
isEnabled in interface com.liferay.portal.kernel.security.permission.InlineSQLHelper

isEnabled

public boolean isEnabled(long companyId,
                         long groupId)
Specified by:
isEnabled in interface com.liferay.portal.kernel.security.permission.InlineSQLHelper

isEnabled

public boolean isEnabled(long[] groupIds)
Specified by:
isEnabled in interface com.liferay.portal.kernel.security.permission.InlineSQLHelper

replacePermissionCheck

public String replacePermissionCheck(String sql,
                                     String className,
                                     String classPKField)
Specified by:
replacePermissionCheck in interface com.liferay.portal.kernel.security.permission.InlineSQLHelper

replacePermissionCheck

public String replacePermissionCheck(String sql,
                                     String className,
                                     String classPKField,
                                     long groupId)
Specified by:
replacePermissionCheck in interface com.liferay.portal.kernel.security.permission.InlineSQLHelper

replacePermissionCheck

public String replacePermissionCheck(String sql,
                                     String className,
                                     String classPKField,
                                     long groupId,
                                     String bridgeJoin)
Specified by:
replacePermissionCheck in interface com.liferay.portal.kernel.security.permission.InlineSQLHelper

replacePermissionCheck

public String replacePermissionCheck(String sql,
                                     String className,
                                     String classPKField,
                                     long[] groupIds)
Specified by:
replacePermissionCheck in interface com.liferay.portal.kernel.security.permission.InlineSQLHelper

replacePermissionCheck

public String replacePermissionCheck(String sql,
                                     String className,
                                     String classPKField,
                                     long[] groupIds,
                                     String bridgeJoin)
Specified by:
replacePermissionCheck in interface com.liferay.portal.kernel.security.permission.InlineSQLHelper

replacePermissionCheck

public String replacePermissionCheck(String sql,
                                     String className,
                                     String classPKField,
                                     String userIdField)
Specified by:
replacePermissionCheck in interface com.liferay.portal.kernel.security.permission.InlineSQLHelper

replacePermissionCheck

public String replacePermissionCheck(String sql,
                                     String className,
                                     String classPKField,
                                     String userIdField,
                                     long groupId)
Specified by:
replacePermissionCheck in interface com.liferay.portal.kernel.security.permission.InlineSQLHelper

replacePermissionCheck

public String replacePermissionCheck(String sql,
                                     String className,
                                     String classPKField,
                                     String userIdField,
                                     long groupId,
                                     String bridgeJoin)
Specified by:
replacePermissionCheck in interface com.liferay.portal.kernel.security.permission.InlineSQLHelper

replacePermissionCheck

public String replacePermissionCheck(String sql,
                                     String className,
                                     String classPKField,
                                     String userIdField,
                                     long[] groupIds)
Specified by:
replacePermissionCheck in interface com.liferay.portal.kernel.security.permission.InlineSQLHelper

replacePermissionCheck

public String replacePermissionCheck(String sql,
                                     String className,
                                     String classPKField,
                                     String userIdField,
                                     long[] groupIds,
                                     String bridgeJoin)
Specified by:
replacePermissionCheck in interface com.liferay.portal.kernel.security.permission.InlineSQLHelper

replacePermissionCheck

public String replacePermissionCheck(String sql,
                                     String className,
                                     String classPKField,
                                     String userIdField,
                                     String bridgeJoin)
Specified by:
replacePermissionCheck in interface com.liferay.portal.kernel.security.permission.InlineSQLHelper

replacePermissionCheck

public String replacePermissionCheck(String sql,
                                     String className,
                                     String classPKField,
                                     String userIdField,
                                     String groupIdField,
                                     long[] groupIds,
                                     String bridgeJoin)
Specified by:
replacePermissionCheck in interface com.liferay.portal.kernel.security.permission.InlineSQLHelper

getOwnerResourceBlockIds

protected Set<Long> getOwnerResourceBlockIds(long companyId,
                                             long[] groupIds,
                                             String className)

getOwnerResourceBlockIdsSQL

protected String getOwnerResourceBlockIdsSQL(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker,
                                             long checkGroupId,
                                             String className,
                                             Set<Long> ownerResourceBlockIds)

getResourceBlockIds

protected Set<Long> getResourceBlockIds(long companyId,
                                        long[] groupIds,
                                        String className)

getRoleIds

protected long[] getRoleIds(long groupId)

getRoleIds

protected long[] getRoleIds(long[] groupIds)

getRoleIdsOrOwnerIdSQL

protected String getRoleIdsOrOwnerIdSQL(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker,
                                        long[] groupIds,
                                        String userIdField)

getUserId

protected long getUserId()

getUserResourceBlockIdsSQL

protected String getUserResourceBlockIdsSQL(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker,
                                            long checkGroupId,
                                            long[] roleIds,
                                            String className,
                                            Set<Long> userResourceBlockIds)

replacePermissionCheckBlocks

protected String replacePermissionCheckBlocks(String sql,
                                              String className,
                                              String classPKField,
                                              String userIdField,
                                              long[] groupIds,
                                              String bridgeJoin)

replacePermissionCheckJoin

protected String replacePermissionCheckJoin(String sql,
                                            String className,
                                            String classPKField,
                                            String userIdField,
                                            String groupIdField,
                                            long[] groupIds,
                                            String bridgeJoin)

Liferay 7.0-ce-b8 portal-impl