* @see org.apache.directory.server.core.schema.SchemaPartitionDao#hasAttributeType(java.lang.String)
*/
public boolean hasAttributeType( String oid ) throws Exception
{
BranchNode filter = new AndNode();
filter.addNode( new EqualityNode<String>( OBJECT_CLASS_AT, new StringValue(
MetaSchemaConstants.META_ATTRIBUTE_TYPE_OC ) ) );
if ( NUMERIC_OID_CHECKER.isValidSyntax( oid ) )
{
filter.addNode( new EqualityNode<String>( M_OID_AT, new StringValue( oid ) ) );
}
else
{
filter.addNode( new EqualityNode<String>( M_NAME_AT, new StringValue( oid.toLowerCase() ) ) );
}
SearchControls searchControls = new SearchControls();
searchControls.setSearchScope( SearchControls.SUBTREE_SCOPE );
EntryFilteringCursor cursor = null;