Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

oracle.jbo
Interface DataSecurityProvider


public interface DataSecurityProvider


Method Summary
 java.util.Hashtable getImplicitSecurityAttrSQLExpressionAndDomain(ArrayList privsToCheck, StructureDef defObject)
          Optional: XDB data security requires additional sql attribute sys_get_aclids(table_alias, privsToCheck) for getting aclids of row instances in the query.
 java.lang.String getPrivilegeFilterWhereClause(java.lang.String privsRequiredToView, StructureDef defObject, java.lang.String entityRefName)
          Gets the where clause for read restriction.
 Transaction getTransaction()
           
 

Method Detail

getTransaction

Transaction getTransaction()
Returns:
The DB Transaction that the view or entity object is using.
See Also:
Transaction

getImplicitSecurityAttrSQLExpressionAndDomain

java.util.Hashtable getImplicitSecurityAttrSQLExpressionAndDomain(ArrayList privsToCheck,
                                                                  StructureDef defObject)
Optional: XDB data security requires additional sql attribute sys_get_aclids(table_alias, privsToCheck) for getting aclids of row instances in the query. The return type of this is XMLType and require a special java type to retrieve data from query result. This method is not call unless getImplicitSecurityAttrSQLExpression return an expression.

Parameters:
privsToCheck - The privileges for the SQL expression.
defObject - The entity or view definition.
Returns:
The a Map of SQL expression and domain class of security attributes.
See Also:
StructureDef

getPrivilegeFilterWhereClause

java.lang.String getPrivilegeFilterWhereClause(java.lang.String privsRequiredToView,
                                               StructureDef defObject,
                                               java.lang.String entityRefName)
Gets the where clause for read restriction. XDB security with read enabled in the database should return null.

Parameters:
privsRequiredToView - The row filter privileges for read.
defObject - The definition object in which the filter apply.
entityRefName - The name of the entiry reference in which the filter apply.
Returns:
A string containing the sql expression for read restriction where clause fragment.
See Also:
StructureDef

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.