org.apache.directory.server.core.schema
Interface DITContentRuleRegistry

All Known Implementing Classes:
BootstrapDitContentRuleRegistry, GlobalDitContentRuleRegistry

public interface DITContentRuleRegistry

An DITContentRule registry's service interface.

Version:
$Rev: 434579 $
Author:
Apache Directory Project

Method Summary
 java.lang.String getSchemaName(java.lang.String id)
          Gets the name of the schema this schema object is associated with.
 boolean hasDITContentRule(java.lang.String id)
          Checks to see if a DITContentRule exists.
 java.util.Iterator list()
          Lists all the DITContentRules within this registry.
 org.apache.directory.shared.ldap.schema.DITContentRule lookup(java.lang.String id)
          Looks up a DITContentRule by its object identifier or by its name.
 void register(java.lang.String schema, org.apache.directory.shared.ldap.schema.DITContentRule dITContentRule)
          Registers a DITContentRule with this registry.
 

Method Detail

register

void register(java.lang.String schema,
              org.apache.directory.shared.ldap.schema.DITContentRule dITContentRule)
              throws javax.naming.NamingException
Registers a DITContentRule with this registry.

Parameters:
schema - the name of the schema the DITContentRule is associated with
dITContentRule - the DITContentRule to register
Throws:
javax.naming.NamingException - if the DITContentRule is already registered or the registration operation is not supported

lookup

org.apache.directory.shared.ldap.schema.DITContentRule lookup(java.lang.String id)
                                                              throws javax.naming.NamingException
Looks up a DITContentRule by its object identifier or by its name.

Parameters:
id - the object identifier or name of the DITContentRule
Returns:
the DITContentRule instance for the id
Throws:
javax.naming.NamingException - if the DITContentRule does not exist

getSchemaName

java.lang.String getSchemaName(java.lang.String id)
                               throws javax.naming.NamingException
Gets the name of the schema this schema object is associated with.

Parameters:
id - the object identifier or the name
Returns:
the schema name
Throws:
javax.naming.NamingException - if the schema object does not exist

hasDITContentRule

boolean hasDITContentRule(java.lang.String id)
Checks to see if a DITContentRule exists.

Parameters:
id - the object identifier or name of the DITContentRule
Returns:
true if a DITContentRule definition exists for the id, false otherwise

list

java.util.Iterator list()
Lists all the DITContentRules within this registry.

Returns:
Iterator over all the DITContentRules within this registry


Copyright © 2003-2012 Apache Software Foundation. All Rights Reserved.