|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.security.permission.InlineSQLHelperImpl
public class InlineSQLHelperImpl
| 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(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(PermissionChecker permissionChecker,
long[] groupIds,
String userIdField)
|
protected long |
getUserId()
|
protected String |
getUserResourceBlockIdsSQL(PermissionChecker permissionChecker,
long checkGroupId,
long[] roleIds,
String className,
Set<Long> userResourceBlockIds)
|
boolean |
isEnabled()
Returns true if the inline SQL helper is enabled. |
boolean |
isEnabled(long groupId)
Returns true if the inline SQL helper is enabled for the
group. |
boolean |
isEnabled(long[] groupIds)
Returns true if the inline SQL helper is enabled for the
groups. |
String |
replacePermissionCheck(String sql,
String className,
String classPKField)
Modifies the SQL query to only match resources that the user has permission to view. |
String |
replacePermissionCheck(String sql,
String className,
String classPKField,
long groupId)
Modifies the SQL query to only match resources that the user has permission to view. |
String |
replacePermissionCheck(String sql,
String className,
String classPKField,
long[] groupIds)
Modifies the SQL query to only match resources that the user has permission to view. |
String |
replacePermissionCheck(String sql,
String className,
String classPKField,
long[] groupIds,
String bridgeJoin)
Modifies the SQL query to only match resources that the user has permission to view. |
String |
replacePermissionCheck(String sql,
String className,
String classPKField,
long groupId,
String bridgeJoin)
Modifies the SQL query to only match resources that the user has permission to view. |
String |
replacePermissionCheck(String sql,
String className,
String classPKField,
String userIdField)
Modifies the SQL query to only match resources that the user has permission to view. |
String |
replacePermissionCheck(String sql,
String className,
String classPKField,
String userIdField,
long groupId)
Modifies the SQL query to only match resources that the user has permission to view. |
String |
replacePermissionCheck(String sql,
String className,
String classPKField,
String userIdField,
long[] groupIds)
Modifies the SQL query to only match resources that the user has permission to view. |
String |
replacePermissionCheck(String sql,
String className,
String classPKField,
String userIdField,
long[] groupIds,
String bridgeJoin)
Modifies the SQL query to only match resources that the user has permission to view. |
String |
replacePermissionCheck(String sql,
String className,
String classPKField,
String userIdField,
long groupId,
String bridgeJoin)
Modifies the SQL query to only match resources that the user has permission to view. |
String |
replacePermissionCheck(String sql,
String className,
String classPKField,
String userIdField,
String bridgeJoin)
Modifies the SQL query to only match resources that the user has permission to view. |
String |
replacePermissionCheck(String sql,
String className,
String classPKField,
String userIdField,
String groupIdField,
long[] groupIds,
String bridgeJoin)
Modifies the SQL query to only match resources that the user has permission to view. |
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 |
|---|
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 JOIN_RESOURCE_PERMISSION
| Constructor Detail |
|---|
public InlineSQLHelperImpl()
| Method Detail |
|---|
public boolean isEnabled()
InlineSQLHelpertrue if the inline SQL helper is enabled.
isEnabled in interface InlineSQLHelpertrue if the inline SQL helper is enabled;
false otherwisepublic boolean isEnabled(long groupId)
InlineSQLHelpertrue if the inline SQL helper is enabled for the
group.
isEnabled in interface InlineSQLHelpergroupId - the primary key of the group
true if the inline SQL helper is enabled for the
group; false otherwisepublic boolean isEnabled(long[] groupIds)
InlineSQLHelpertrue if the inline SQL helper is enabled for the
groups.
isEnabled in interface InlineSQLHelpergroupIds - the primary keys of the groups
true if the inline SQL helper is enabled for the
groups; false otherwise
public String replacePermissionCheck(String sql,
String className,
String classPKField)
InlineSQLHelper
replacePermissionCheck in interface InlineSQLHelpersql - the SQL queryclassName - the fully qualified class name of the resources matched
by the queryclassPKField - the name of the column containing the resource's
primary key
public String replacePermissionCheck(String sql,
String className,
String classPKField,
long groupId)
InlineSQLHelper
replacePermissionCheck in interface InlineSQLHelpersql - the SQL queryclassName - the fully qualified class name of the resources matched
by the queryclassPKField - the name of the column containing the resource's
primary keygroupId - the primary key of the group containing the resources
(optionally null)
public String replacePermissionCheck(String sql,
String className,
String classPKField,
long groupId,
String bridgeJoin)
InlineSQLHelper
replacePermissionCheck in interface InlineSQLHelpersql - the SQL queryclassName - the fully qualified class name of the resources matched
by the queryclassPKField - the name of the column containing the resource's
primary keygroupId - the primary key of the group containing the resources
(optionally null)bridgeJoin - an additional join clause to insert before the
permission join (optionally null)
public String replacePermissionCheck(String sql,
String className,
String classPKField,
long[] groupIds)
InlineSQLHelper
replacePermissionCheck in interface InlineSQLHelpersql - the SQL queryclassName - the fully qualified class name of the resources matched
by the queryclassPKField - the name of the column containing the resource's
primary keygroupIds - the primary keys of the groups containing the resources
(optionally null)
public String replacePermissionCheck(String sql,
String className,
String classPKField,
long[] groupIds,
String bridgeJoin)
InlineSQLHelper
replacePermissionCheck in interface InlineSQLHelpersql - the SQL queryclassName - the fully qualified class name of the resources matched
by the queryclassPKField - the name of the column containing the resource's
primary keygroupIds - the primary keys of the groups containing the resources
(optionally null)bridgeJoin - an additional join clause to insert before the
permission join (optionally null)
public String replacePermissionCheck(String sql,
String className,
String classPKField,
String userIdField)
InlineSQLHelper
replacePermissionCheck in interface InlineSQLHelpersql - the SQL queryclassName - the fully qualified class name of the resources matched
by the queryclassPKField - the name of the column containing the resource's
primary keyuserIdField - the name of the column containing the resource
owner's primary key (optionally null)
public String replacePermissionCheck(String sql,
String className,
String classPKField,
String userIdField,
long groupId)
InlineSQLHelper
replacePermissionCheck in interface InlineSQLHelpersql - the SQL queryclassName - the fully qualified class name of the resources matched
by the queryclassPKField - the name of the column containing the resource's
primary keyuserIdField - the name of the column containing the resource
owner's primary key (optionally null)groupId - the primary key of the group containing the resources
(optionally null)
public String replacePermissionCheck(String sql,
String className,
String classPKField,
String userIdField,
long groupId,
String bridgeJoin)
InlineSQLHelper
replacePermissionCheck in interface InlineSQLHelpersql - the SQL queryclassName - the fully qualified class name of the resources matched
by the queryclassPKField - the name of the column containing the resource's
primary keyuserIdField - the name of the column containing the resource
owner's primary key (optionally null)groupId - the primary key of the group containing the resources
(optionally null)bridgeJoin - an additional join clause to insert before the
permission join (optionally null)
public String replacePermissionCheck(String sql,
String className,
String classPKField,
String userIdField,
long[] groupIds)
InlineSQLHelper
replacePermissionCheck in interface InlineSQLHelpersql - the SQL queryclassName - the fully qualified class name of the resources matched
by the queryclassPKField - the name of the column containing the resource's
primary keyuserIdField - the name of the column containing the resource
owner's primary key (optionally null)groupIds - the primary keys of the groups containing the resources
(optionally null)
public String replacePermissionCheck(String sql,
String className,
String classPKField,
String userIdField,
long[] groupIds,
String bridgeJoin)
InlineSQLHelper
replacePermissionCheck in interface InlineSQLHelpersql - the SQL queryclassName - the fully qualified class name of the resources matched
by the queryclassPKField - the name of the column containing the resource's
primary keyuserIdField - the name of the column containing the resource
owner's primary key (optionally null)groupIds - the primary keys of the groups containing the resources
(optionally null)bridgeJoin - an additional join clause to insert before the
permission join (optionally null)
public String replacePermissionCheck(String sql,
String className,
String classPKField,
String userIdField,
String bridgeJoin)
InlineSQLHelper
replacePermissionCheck in interface InlineSQLHelpersql - the SQL queryclassName - the fully qualified class name of the resources matched
by the queryclassPKField - the name of the column containing the resource's
primary keyuserIdField - the name of the column containing the resource
owner's primary key (optionally null)bridgeJoin - an additional join clause to insert before the
permission join (optionally null)
public String replacePermissionCheck(String sql,
String className,
String classPKField,
String userIdField,
String groupIdField,
long[] groupIds,
String bridgeJoin)
InlineSQLHelper
replacePermissionCheck in interface InlineSQLHelpersql - the SQL queryclassName - the fully qualified class name of the resources matched
by the queryclassPKField - the name of the column containing the resource's
primary keyuserIdField - the name of the column containing the resource
owner's primary key (optionally null)groupIdField - the name of the column containing the resource's
group ID (optionally null)groupIds - the primary keys of the groups containing the resources
(optionally null)bridgeJoin - an additional join clause to insert before the
permission join (optionally null)
protected Set<Long> getOwnerResourceBlockIds(long companyId,
long[] groupIds,
String className)
protected String getOwnerResourceBlockIdsSQL(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(PermissionChecker permissionChecker,
long[] groupIds,
String userIdField)
protected long getUserId()
protected String getUserResourceBlockIdsSQL(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)
|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||