/** * Tells if an attribute is present in the list of attribute to return * * @param schemaManager The SchemaManager instance * @param attribute The attribute we are looking for * @return true if the attribute is present */ public boolean contains( SchemaManager schemaManager, String attribute ) { if ( isNoAttributes() ) { return false; } try { AttributeType attributeType = schemaManager.lookupAttributeTypeRegistry( attribute ); return contains( schemaManager, attributeType ); } catch ( LdapException le ) { return false; } }
/** * Checks whether or not the ManageDsaITControl is present. If not * present then the filter is modified to force the return of all referral * entries regardless of whether or not the filter matches the referral * entry. * * @return <tt>true</tt> if the ManageDSAIt control is present */ public boolean hasManageDsaItControl() { return super.hasRequestControl( ManageDsaIT.OID ); }
boolean typesOnly = operationContext.isTypesOnly(); boolean returnAll = ( operationContext.isAllOperationalAttributes() && operationContext.isAllUserAttributes() ) && ( !typesOnly ); if ( operationContext.isNoAttributes() ) if ( operationContext.isReferralThrown() && attributeType.equals( refType ) ) if ( operationContext.isAllUserAttributes() ) if ( operationContext.isReferralThrown() && attributeType.equals( refType ) ) if ( !operationContext.contains( schemaManager, attributeType ) ) if ( !operationContext.contains( schemaManager, entryDnType ) ) if ( operationContext.isAllOperationalAttributes() ) if ( !operationContext.contains( schemaManager, attributeType ) ) if ( !operationContext.contains( schemaManager, entryDnType ) ) if ( operationContext.getReturningAttributes() != null ) if ( operationContext.isReferralThrown() && attributeType.equals( refType ) ) if ( !operationContext.contains( schemaManager, attributeType ) )
throws LdapException CoreSession session = opContext.getSession(); lookupContext.setPartition( opContext.getPartition() ); lookupContext.setTransaction( opContext.getTransaction() ); if ( !opContext.isAllUserAttributes() && !opContext.contains( schemaManager, attributeType ) )
Set<String> attributesString = new HashSet<String>(); Set<AttributeTypeOptions> collectedAttributes = collectAttributeTypes( attributeIds );