org.apache.directory.server.core.schema
Class SchemaInterceptor

java.lang.Object
  extended by org.apache.directory.server.core.interceptor.BaseInterceptor
      extended by org.apache.directory.server.core.schema.SchemaInterceptor
All Implemented Interfaces:
Interceptor

public class SchemaInterceptor
extends BaseInterceptor

An Interceptor that manages and enforces schemas.

Version:
$Rev: 928945 $, $Date: 2010-03-30 01:59:49 +0200 (Tue, 30 Mar 2010) $
Author:
Apache Directory Project
XBean
TODO
Better interceptor description required.

Constructor Summary
SchemaInterceptor()
           
 
Method Summary
 void add(NextInterceptor next, AddOperationContext addContext)
          Check that all the attributes exist in the schema for this entry.
 void init(DirectoryService directoryService)
          Initialize the Schema Service
 EntryFilteringCursor list(NextInterceptor nextInterceptor, ListOperationContext opContext)
          Filters Partition.list( ListOperationContext ) call.
 ClonedServerEntry lookup(NextInterceptor nextInterceptor, LookupOperationContext opContext)
          Search for an entry, using its DN.
 void modify(NextInterceptor next, ModifyOperationContext opContext)
          Filters Partition.modify( ModifyOperationContext ) call.
 void rename(NextInterceptor next, RenameOperationContext opContext)
          Filters Partition.rename( RenameOperationContext ) call.
 EntryFilteringCursor search(NextInterceptor nextInterceptor, SearchOperationContext opContext)
          Filters Partition.search( SearchOperationContext ) call.
 
Methods inherited from class org.apache.directory.server.core.interceptor.BaseInterceptor
addContextPartition, bind, compare, delete, destroy, getContext, getMatchedName, getName, getPrincipal, getRootDSE, getSuffix, hasEntry, listSuffixes, move, moveAndRename, removeContextPartition, unbind
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaInterceptor

public SchemaInterceptor()
Method Detail

init

public void init(DirectoryService directoryService)
          throws java.lang.Exception
Initialize the Schema Service

Specified by:
init in interface Interceptor
Overrides:
init in class BaseInterceptor
Parameters:
directoryService - the directory service core
Throws:
java.lang.Exception - if there are problems during initialization

list

public EntryFilteringCursor list(NextInterceptor nextInterceptor,
                                 ListOperationContext opContext)
                          throws java.lang.Exception
Description copied from interface: Interceptor
Filters Partition.list( ListOperationContext ) call.

Specified by:
list in interface Interceptor
Overrides:
list in class BaseInterceptor
Throws:
java.lang.Exception

search

public EntryFilteringCursor search(NextInterceptor nextInterceptor,
                                   SearchOperationContext opContext)
                            throws java.lang.Exception
Description copied from interface: Interceptor
Filters Partition.search( SearchOperationContext ) call.

Specified by:
search in interface Interceptor
Overrides:
search in class BaseInterceptor
Throws:
java.lang.Exception

lookup

public ClonedServerEntry lookup(NextInterceptor nextInterceptor,
                                LookupOperationContext opContext)
                         throws java.lang.Exception
Search for an entry, using its DN. Binary attributes and ObjectClass attribute are removed.

Specified by:
lookup in interface Interceptor
Overrides:
lookup in class BaseInterceptor
Throws:
java.lang.Exception

rename

public void rename(NextInterceptor next,
                   RenameOperationContext opContext)
            throws java.lang.Exception
Description copied from interface: Interceptor
Filters Partition.rename( RenameOperationContext ) call.

Specified by:
rename in interface Interceptor
Overrides:
rename in class BaseInterceptor
Throws:
java.lang.Exception

modify

public void modify(NextInterceptor next,
                   ModifyOperationContext opContext)
            throws java.lang.Exception
Filters Partition.modify( ModifyOperationContext ) call.

Specified by:
modify in interface Interceptor
Overrides:
modify in class BaseInterceptor
Throws:
java.lang.Exception

add

public void add(NextInterceptor next,
                AddOperationContext addContext)
         throws java.lang.Exception
Check that all the attributes exist in the schema for this entry.

Specified by:
add in interface Interceptor
Overrides:
add in class BaseInterceptor
Throws:
java.lang.Exception


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