Interface DitStructureRuleRegistry

    • Method Detail

      • contains

        boolean contains​(int ruleId)
        Checks to see if an DitStructureRule exists in the registry, by its ruleId.
        Parameters:
        ruleId - the rule identifier of the DitStructureRule
        Returns:
        true if a DitStructureRule definition exists for the ruleId, false otherwise
      • ruleIdIterator

        Iterator<Integer> ruleIdIterator()
        Gets an iterator over the registered ruleId in the registry.
        Returns:
        an Iterator of ruleId
      • getSchemaName

        String getSchemaName​(int ruleId)
                      throws LdapException
        Gets the name of the schema this schema object is associated with.
        Parameters:
        ruleId - the object identifier
        Returns:
        the schema name
        Throws:
        LdapException - if the schema object does not exist
      • lookup

        DitStructureRule lookup​(int ruleId)
                         throws LdapException
        Looks up an dITStructureRule by its unique Object IDentifier or by its name.
        Parameters:
        ruleId - the rule identifier for the DitStructureRule
        Returns:
        the DitStructureRule instance for rule identifier
        Throws:
        LdapException - if the DitStructureRule does not exist
      • unregister

        void unregister​(int ruleId)
                 throws LdapException
        Unregisters a DitStructureRule using it's rule identifier.
        Parameters:
        ruleId - the rule identifier for the DitStructureRule to unregister
        Throws:
        LdapException - if no such DitStructureRule exists