|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface InlineSQLHelper
Provides utility methods for filtering SQL queries by the user's permissions.
| Method Summary | |
|---|---|
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. |
java.lang.String |
replacePermissionCheck(java.lang.String sql,
java.lang.String className,
java.lang.String classPKField)
Modifies the SQL query to only match resources that the user has permission to view. |
java.lang.String |
replacePermissionCheck(java.lang.String sql,
java.lang.String className,
java.lang.String classPKField,
long groupId)
Modifies the SQL query to only match resources that the user has permission to view. |
java.lang.String |
replacePermissionCheck(java.lang.String sql,
java.lang.String className,
java.lang.String classPKField,
long[] groupIds)
Modifies the SQL query to only match resources that the user has permission to view. |
java.lang.String |
replacePermissionCheck(java.lang.String sql,
java.lang.String className,
java.lang.String classPKField,
long[] groupIds,
java.lang.String bridgeJoin)
Modifies the SQL query to only match resources that the user has permission to view. |
java.lang.String |
replacePermissionCheck(java.lang.String sql,
java.lang.String className,
java.lang.String classPKField,
long groupId,
java.lang.String bridgeJoin)
Modifies the SQL query to only match resources that the user has permission to view. |
java.lang.String |
replacePermissionCheck(java.lang.String sql,
java.lang.String className,
java.lang.String classPKField,
java.lang.String userIdField)
Modifies the SQL query to only match resources that the user has permission to view. |
java.lang.String |
replacePermissionCheck(java.lang.String sql,
java.lang.String className,
java.lang.String classPKField,
java.lang.String userIdField,
long groupId)
Modifies the SQL query to only match resources that the user has permission to view. |
java.lang.String |
replacePermissionCheck(java.lang.String sql,
java.lang.String className,
java.lang.String classPKField,
java.lang.String userIdField,
long[] groupIds)
Modifies the SQL query to only match resources that the user has permission to view. |
java.lang.String |
replacePermissionCheck(java.lang.String sql,
java.lang.String className,
java.lang.String classPKField,
java.lang.String userIdField,
long[] groupIds,
java.lang.String bridgeJoin)
Modifies the SQL query to only match resources that the user has permission to view. |
java.lang.String |
replacePermissionCheck(java.lang.String sql,
java.lang.String className,
java.lang.String classPKField,
java.lang.String userIdField,
long groupId,
java.lang.String bridgeJoin)
Modifies the SQL query to only match resources that the user has permission to view. |
java.lang.String |
replacePermissionCheck(java.lang.String sql,
java.lang.String className,
java.lang.String classPKField,
java.lang.String userIdField,
java.lang.String bridgeJoin)
Modifies the SQL query to only match resources that the user has permission to view. |
java.lang.String |
replacePermissionCheck(java.lang.String sql,
java.lang.String className,
java.lang.String classPKField,
java.lang.String userIdField,
java.lang.String groupIdField,
long[] groupIds,
java.lang.String bridgeJoin)
Modifies the SQL query to only match resources that the user has permission to view. |
| Method Detail |
|---|
boolean isEnabled()
true if the inline SQL helper is enabled.
true if the inline SQL helper is enabled;
false otherwiseboolean isEnabled(long groupId)
true if the inline SQL helper is enabled for the
group.
groupId - the primary key of the group
true if the inline SQL helper is enabled for the
group; false otherwiseboolean isEnabled(long[] groupIds)
true if the inline SQL helper is enabled for the
groups.
groupIds - the primary keys of the groups
true if the inline SQL helper is enabled for the
groups; false otherwise
java.lang.String replacePermissionCheck(java.lang.String sql,
java.lang.String className,
java.lang.String classPKField)
sql - 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
java.lang.String replacePermissionCheck(java.lang.String sql,
java.lang.String className,
java.lang.String classPKField,
long groupId)
sql - 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)
java.lang.String replacePermissionCheck(java.lang.String sql,
java.lang.String className,
java.lang.String classPKField,
long groupId,
java.lang.String bridgeJoin)
sql - 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)
java.lang.String replacePermissionCheck(java.lang.String sql,
java.lang.String className,
java.lang.String classPKField,
long[] groupIds)
sql - 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)
java.lang.String replacePermissionCheck(java.lang.String sql,
java.lang.String className,
java.lang.String classPKField,
long[] groupIds,
java.lang.String bridgeJoin)
sql - 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)
java.lang.String replacePermissionCheck(java.lang.String sql,
java.lang.String className,
java.lang.String classPKField,
java.lang.String userIdField)
sql - 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)
java.lang.String replacePermissionCheck(java.lang.String sql,
java.lang.String className,
java.lang.String classPKField,
java.lang.String userIdField,
long groupId)
sql - 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)
java.lang.String replacePermissionCheck(java.lang.String sql,
java.lang.String className,
java.lang.String classPKField,
java.lang.String userIdField,
long groupId,
java.lang.String bridgeJoin)
sql - 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)
java.lang.String replacePermissionCheck(java.lang.String sql,
java.lang.String className,
java.lang.String classPKField,
java.lang.String userIdField,
long[] groupIds)
sql - 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)
java.lang.String replacePermissionCheck(java.lang.String sql,
java.lang.String className,
java.lang.String classPKField,
java.lang.String userIdField,
long[] groupIds,
java.lang.String bridgeJoin)
sql - 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)
java.lang.String replacePermissionCheck(java.lang.String sql,
java.lang.String className,
java.lang.String classPKField,
java.lang.String userIdField,
java.lang.String bridgeJoin)
sql - 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)
java.lang.String replacePermissionCheck(java.lang.String sql,
java.lang.String className,
java.lang.String classPKField,
java.lang.String userIdField,
java.lang.String groupIdField,
long[] groupIds,
java.lang.String bridgeJoin)
sql - 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)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||