public abstract class AbstractDataSecurityProviderImpl extends java.lang.Object implements DataSecurityProvider
| Constructor and Description | 
|---|
AbstractDataSecurityProviderImpl()  | 
| Modifier and Type | Method and Description | 
|---|---|
oracle.adf.share.security.authorization.PrivilegeHolder | 
checkPrivilege(Row row,
              java.lang.String privToCheck,
              AttributeDef attrDef,
              StructureDef defObject)
Checks row instance privilege. 
 | 
java.util.Map.Entry<java.lang.String,java.lang.Class> | 
getImplicitSecurityAttrSQLExpressionAndDomain(java.util.List<java.lang.String> 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()  | 
java.lang.String | 
getUserActionAllowedCondition(Row row,
                             java.lang.String privToCheck,
                             AttributeDef attrDef,
                             StructureDef defObject)
Gets user operation allowed condition. 
 | 
void | 
initAndAttachElevatedSession(java.lang.String userName)  | 
void | 
initElevatedSubject(java.lang.String elevatedUser,
                   javax.security.auth.Subject elevatedSubject)  | 
void | 
restoreOriginalSession()  | 
void | 
restoreOriginalSubject(java.lang.String userName,
                      javax.security.auth.Subject subject)  | 
void | 
setTransaction(DBTransaction dbTransaction)
Internal: Applications should not use this method. 
 | 
@Restricted public Transaction getTransaction()
getTransaction in interface DataSecurityProviderTransaction@Restricted public void setTransaction(DBTransaction dbTransaction)
public oracle.adf.share.security.authorization.PrivilegeHolder checkPrivilege(Row row, java.lang.String privToCheck, AttributeDef attrDef, StructureDef defObject)
DataSecurityProvidercheckPrivilege in interface DataSecurityProviderrow - The row instance to be checked for privilege.privToCheck - The privilege to be checked.attrDef - The attribute definition.defObject - The entity or view def.PrivilegeHoder for the privilege checked.StructureDef, 
oracle.jbo.PrivilegeHolderpublic java.lang.String getPrivilegeFilterWhereClause(java.lang.String privsRequiredToView,
                                                      StructureDef defObject,
                                                      java.lang.String entityRefName)
DataSecurityProvidernull.getPrivilegeFilterWhereClause in interface DataSecurityProviderprivsRequiredToView - 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.StructureDefpublic java.util.Map.Entry<java.lang.String,java.lang.Class> getImplicitSecurityAttrSQLExpressionAndDomain(java.util.List<java.lang.String> privsToCheck,
                                                                                                           StructureDef defObject)
DataSecurityProvidergetImplicitSecurityAttrSQLExpression return an expression.getImplicitSecurityAttrSQLExpressionAndDomain in interface DataSecurityProviderprivsToCheck - The privileges for the SQL expression.defObject - The entity or view definition.Map of SQL expression and domain class of security attributes.StructureDefpublic void initAndAttachElevatedSession(java.lang.String userName)
public void restoreOriginalSession()
public java.lang.String getUserActionAllowedCondition(Row row, java.lang.String privToCheck, AttributeDef attrDef, StructureDef defObject)
row - he row instance to be checked for privilege.privToCheck - he privilege to be checked.attrDef - The attribute definition.defObject - The entity or view def.@Restricted
public void initElevatedSubject(java.lang.String elevatedUser,
                                            javax.security.auth.Subject elevatedSubject)
elevatedUser - the name of elevated userelevatedSubject - the elevated user Subject@Restricted
public void restoreOriginalSubject(java.lang.String userName,
                                               javax.security.auth.Subject subject)
userName - the user to be restoredsubject - the subject to be restored