org.apache.directory.server.core.normalization
Class NormalizationInterceptor

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

public class NormalizationInterceptor
extends BaseInterceptor

A name normalization service. This service makes sure all relative and distinguished names are normalized before calls are made against the respective interface methods on DefaultPartitionNexus. The Filters are also normalized. If the RDN AttributeTypes are not present in the entry for an Add request, they will be added.

Version:
$Rev: 928945 $
Author:
Apache Directory Project
XBean

Constructor Summary
NormalizationInterceptor()
           
 
Method Summary
 void add(NextInterceptor nextInterceptor, AddOperationContext opContext)
          Filters Partition.add( AddOperationContext ) call.
 void addContextPartition(NextInterceptor next, AddContextPartitionOperationContext opContext)
          Filters DefaultPartitionNexus#addContextPartition( AddContextPartitionOperationContext ) call.
 void bind(NextInterceptor next, BindOperationContext opContext)
          Filters Partition.bind( BindOperationContext ) call.
 boolean compare(NextInterceptor next, CompareOperationContext opContext)
          Filters DefaultPartitionNexus#compare( CompareOperationContext ) call.
 void delete(NextInterceptor nextInterceptor, DeleteOperationContext opContext)
          Filters Partition.delete( DeleteOperationContext ) call.
 void destroy()
          The destroy method does nothing
 org.apache.directory.shared.ldap.name.DN getMatchedName(NextInterceptor nextInterceptor, GetMatchedNameOperationContext opContext)
          Filters DefaultPartitionNexus#getMatchedName( GetMatchedNameOperationContext ) call.
 org.apache.directory.shared.ldap.name.DN getSuffix(NextInterceptor nextInterceptor, GetSuffixOperationContext opContext)
          Filters DefaultPartitionNexus#getSuffix( GetSuffixOperationContext ) call.
 boolean hasEntry(NextInterceptor nextInterceptor, EntryOperationContext opContext)
          Filters Partition.hasEntry( EntryOperationContext ) call.
 void init(DirectoryService directoryService)
          Initialize the registries, normalizers.
 EntryFilteringCursor list(NextInterceptor nextInterceptor, ListOperationContext opContext)
          Filters Partition.list( ListOperationContext ) call.
 ClonedServerEntry lookup(NextInterceptor nextInterceptor, LookupOperationContext opContext)
          Filters Partition.lookup( LookupOperationContext ) call.
 void modify(NextInterceptor nextInterceptor, ModifyOperationContext opContext)
          Filters Partition.modify( ModifyOperationContext ) call.
 void move(NextInterceptor nextInterceptor, MoveOperationContext opContext)
          Filters Partition.move( MoveOperationContext ) call.
 void moveAndRename(NextInterceptor nextInterceptor, MoveAndRenameOperationContext opContext)
          Filters Partition.moveAndRename( MoveAndRenameOperationContext) call.
 void removeContextPartition(NextInterceptor next, RemoveContextPartitionOperationContext opContext)
          Filters DefaultPartitionNexus#removeContextPartition( RemoveContextPartitionOperationContext ) call.
 void rename(NextInterceptor nextInterceptor, 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
getContext, getName, getPrincipal, getRootDSE, listSuffixes, unbind
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NormalizationInterceptor

public NormalizationInterceptor()
Method Detail

init

public void init(DirectoryService directoryService)
          throws java.lang.Exception
Initialize the registries, normalizers.

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

destroy

public void destroy()
The destroy method does nothing

Specified by:
destroy in interface Interceptor
Overrides:
destroy in class BaseInterceptor

add

public void add(NextInterceptor nextInterceptor,
                AddOperationContext opContext)
         throws java.lang.Exception
Filters Partition.add( AddOperationContext ) call.

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

delete

public void delete(NextInterceptor nextInterceptor,
                   DeleteOperationContext opContext)
            throws java.lang.Exception
Filters Partition.delete( DeleteOperationContext ) call.

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

modify

public void modify(NextInterceptor nextInterceptor,
                   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

rename

public void rename(NextInterceptor nextInterceptor,
                   RenameOperationContext opContext)
            throws java.lang.Exception
Filters Partition.rename( RenameOperationContext ) call.

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

move

public void move(NextInterceptor nextInterceptor,
                 MoveOperationContext opContext)
          throws java.lang.Exception
Filters Partition.move( MoveOperationContext ) call.

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

moveAndRename

public void moveAndRename(NextInterceptor nextInterceptor,
                          MoveAndRenameOperationContext opContext)
                   throws java.lang.Exception
Filters Partition.moveAndRename( MoveAndRenameOperationContext) call.

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

search

public EntryFilteringCursor search(NextInterceptor nextInterceptor,
                                   SearchOperationContext opContext)
                            throws java.lang.Exception
Filters Partition.search( SearchOperationContext ) call.

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

hasEntry

public boolean hasEntry(NextInterceptor nextInterceptor,
                        EntryOperationContext opContext)
                 throws java.lang.Exception
Filters Partition.hasEntry( EntryOperationContext ) call.

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

list

public EntryFilteringCursor list(NextInterceptor nextInterceptor,
                                 ListOperationContext opContext)
                          throws java.lang.Exception
Filters Partition.list( ListOperationContext ) call.

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

lookup

public ClonedServerEntry lookup(NextInterceptor nextInterceptor,
                                LookupOperationContext opContext)
                         throws java.lang.Exception
Filters Partition.lookup( LookupOperationContext ) call.

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

getMatchedName

public org.apache.directory.shared.ldap.name.DN getMatchedName(NextInterceptor nextInterceptor,
                                                               GetMatchedNameOperationContext opContext)
                                                        throws java.lang.Exception
Filters DefaultPartitionNexus#getMatchedName( GetMatchedNameOperationContext ) call.

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

getSuffix

public org.apache.directory.shared.ldap.name.DN getSuffix(NextInterceptor nextInterceptor,
                                                          GetSuffixOperationContext opContext)
                                                   throws java.lang.Exception
Filters DefaultPartitionNexus#getSuffix( GetSuffixOperationContext ) call.

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

compare

public boolean compare(NextInterceptor next,
                       CompareOperationContext opContext)
                throws java.lang.Exception
Filters DefaultPartitionNexus#compare( CompareOperationContext ) call.

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

bind

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

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

addContextPartition

public void addContextPartition(NextInterceptor next,
                                AddContextPartitionOperationContext opContext)
                         throws java.lang.Exception
Filters DefaultPartitionNexus#addContextPartition( AddContextPartitionOperationContext ) call.

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

removeContextPartition

public void removeContextPartition(NextInterceptor next,
                                   RemoveContextPartitionOperationContext opContext)
                            throws java.lang.Exception
Filters DefaultPartitionNexus#removeContextPartition( RemoveContextPartitionOperationContext ) call.

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


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