Interface Schema

All Known Implementing Classes:
DefaultSchema

public interface Schema
Base schema interface.
Author:
Apache Directory Project
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addDependencies(String... dependencies)
    Add a set of dependencies this schema uses.
    void
    Disable the schema
    void
    Enable the schema
    Gets the set of SchemaObject elements declared in this schema
    Gets the names of other schemas that the objects within this Schema depends upon.
    Gets the name of the owner of the schema objects within this Schema.
    Gets the SchemaLoader this Schema has to be loaded with
    Gets the name of the logical schema the objects of this Schema belong to: e.g. krb5-kdc may be the logical LDAP schema name.
    boolean
    Checks whether or not this schema is enabled or disabled.
    boolean
    Checks whether or not this schema is enabled or disabled.
  • Method Details

    • isDisabled

      boolean isDisabled()
      Checks whether or not this schema is enabled or disabled.
      Returns:
      true if this schema is disabled, false otherwise
    • disable

      void disable()
      Disable the schema
    • isEnabled

      boolean isEnabled()
      Checks whether or not this schema is enabled or disabled.
      Returns:
      true if this schema is enabled, false otherwise
    • enable

      void enable()
      Enable the schema
    • getOwner

      String getOwner()
      Gets the name of the owner of the schema objects within this Schema.
      Returns:
      the identifier for the owner of this set's objects
    • getSchemaName

      String getSchemaName()
      Gets the name of the logical schema the objects of this Schema belong to: e.g. krb5-kdc may be the logical LDAP schema name.
      Returns:
      the name of the logical schema
    • getDependencies

      String[] getDependencies()
      Gets the names of other schemas that the objects within this Schema depends upon.
      Returns:
      the String names of schema dependencies
    • addDependencies

      void addDependencies(String... dependencies)
      Add a set of dependencies this schema uses.
      Parameters:
      dependencies - The dependencies to add
    • getContent

      Set<SchemaObjectWrapper> getContent()
      Gets the set of SchemaObject elements declared in this schema
      Returns:
      The Set of associated SchemaObjects
    • getSchemaLoader

      SchemaLoader getSchemaLoader()
      Gets the SchemaLoader this Schema has to be loaded with
      Returns:
      The SchemaLoader in use