public class RelatedProtectedItemFilter extends java.lang.Object implements ACITupleFilter
ACITupleFilter that discards all tuples whose ProtectedItems
are not related with the operation. (18.8.3.2, X.501)| Modifier and Type | Field and Description |
|---|---|
private Evaluator |
entryEvaluator |
private RefinementEvaluator |
refinementEvaluator |
private org.apache.directory.api.ldap.model.schema.SchemaManager |
schemaManager |
ACI_LOG| Constructor and Description |
|---|
RelatedProtectedItemFilter(RefinementEvaluator refinementEvaluator,
Evaluator entryEvaluator,
org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<org.apache.directory.api.ldap.aci.ACITuple> |
filter(AciContext aciContext,
OperationScope scope,
org.apache.directory.api.ldap.model.entry.Entry userEntry)
Returns the collection of the filtered tuples using the specified
extra information.
|
private boolean |
isRelated(org.apache.directory.api.ldap.aci.ACITuple tuple,
OperationScope scope,
org.apache.directory.api.ldap.model.name.Dn userName,
org.apache.directory.api.ldap.model.name.Dn entryName,
org.apache.directory.api.ldap.model.schema.AttributeType attributeType,
org.apache.directory.api.ldap.model.entry.Value<?> attrValue,
org.apache.directory.api.ldap.model.entry.Entry entry) |
private final RefinementEvaluator refinementEvaluator
private final Evaluator entryEvaluator
private final org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager
public RelatedProtectedItemFilter(RefinementEvaluator refinementEvaluator, Evaluator entryEvaluator, org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager)
public java.util.Collection<org.apache.directory.api.ldap.aci.ACITuple> filter(AciContext aciContext, OperationScope scope, org.apache.directory.api.ldap.model.entry.Entry userEntry) throws org.apache.directory.api.ldap.model.exception.LdapException
ACITupleFilterfilter in interface ACITupleFilteraciContext - the container for ACI itemsscope - the scope of the operation to be performeduserEntry - the Entry of the current user entry in the DITorg.apache.directory.api.ldap.model.exception.LdapException - if failed to filter the specific tuplesprivate boolean isRelated(org.apache.directory.api.ldap.aci.ACITuple tuple,
OperationScope scope,
org.apache.directory.api.ldap.model.name.Dn userName,
org.apache.directory.api.ldap.model.name.Dn entryName,
org.apache.directory.api.ldap.model.schema.AttributeType attributeType,
org.apache.directory.api.ldap.model.entry.Value<?> attrValue,
org.apache.directory.api.ldap.model.entry.Entry entry)
throws org.apache.directory.api.ldap.model.exception.LdapException,
java.lang.InternalError
org.apache.directory.api.ldap.model.exception.LdapExceptionjava.lang.InternalError