org.apache.directory.server.core.authz
Class AciAuthorizationInterceptor

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

public class AciAuthorizationInterceptor
extends BaseInterceptor

An ACI based authorization service.

Version:
$Rev: 686082 $
Author:
Apache Directory Project
'XBean'

Field Summary
static javax.naming.directory.SearchControls DEFAULT_SEARCH_CONTROLS
           
 
Constructor Summary
AciAuthorizationInterceptor()
           
 
Method Summary
 void add(NextInterceptor next, AddOperationContext addContext)
          Filters Partition.add( AddOperationContext ) call.
 void cacheNewGroup(org.apache.directory.shared.ldap.name.LdapDN name, ServerEntry entry)
           
 boolean compare(NextInterceptor next, CompareOperationContext opContext)
          Filters PartitionNexus.compare( CompareOperationContext ) call.
 void delete(NextInterceptor next, DeleteOperationContext deleteContext)
          Filters Partition.delete( DeleteOperationContext ) call.
 org.apache.directory.shared.ldap.name.LdapDN getMatchedName(NextInterceptor next, GetMatchedNameOperationContext opContext)
          Filters PartitionNexus.getMatchedName( GetMatchedNameOperationContext ) call.
 boolean hasEntry(NextInterceptor next, EntryOperationContext entryContext)
          Filters Partition.hasEntry( EntryOperationContext ) call.
 void init(DirectoryService directoryService)
          Initializes this interceptor based service by getting a handle on the nexus, setting up the tupe and group membership caches and the ACIItem parser and the ACDF engine.
 boolean isPrincipalAnAdministrator(org.apache.directory.shared.ldap.name.LdapDN principalDn)
           
 EntryFilteringCursor list(NextInterceptor next, ListOperationContext opContext)
          Filters Partition.list( ListOperationContext ) call.
 ClonedServerEntry lookup(NextInterceptor next, LookupOperationContext lookupContext)
          Filters Partition.lookup( LookupOperationContext ) call.
 void modify(NextInterceptor next, ModifyOperationContext opContext)
          Filters Partition.modify( ModifyOperationContext ) call.
 void move(NextInterceptor next, MoveOperationContext moveContext)
          Filters Partition.move( MoveOperationContext ) call.
 void moveAndRename(NextInterceptor next, MoveAndRenameOperationContext moveAndRenameContext)
          Filters Partition.moveAndRename( MoveAndRenameOperationContext) call.
 void rename(NextInterceptor next, RenameOperationContext renameContext)
          Filters Partition.rename( RenameOperationContext ) call.
 EntryFilteringCursor search(NextInterceptor next, SearchOperationContext opContext)
          Filters Partition.search( SearchOperationContext ) call.
 
Methods inherited from class org.apache.directory.server.core.interceptor.BaseInterceptor
addContextPartition, bind, destroy, getContext, getName, getPrincipal, getRootDSE, getSuffix, listSuffixes, removeContextPartition, unbind
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_SEARCH_CONTROLS

public static final javax.naming.directory.SearchControls DEFAULT_SEARCH_CONTROLS
Constructor Detail

AciAuthorizationInterceptor

public AciAuthorizationInterceptor()
Method Detail

init

public void init(DirectoryService directoryService)
          throws java.lang.Exception
Initializes this interceptor based service by getting a handle on the nexus, setting up the tupe and group membership caches and the ACIItem parser and the ACDF engine.

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

add

public void add(NextInterceptor next,
                AddOperationContext addContext)
         throws java.lang.Exception
Description copied from interface: Interceptor
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 next,
                   DeleteOperationContext deleteContext)
            throws java.lang.Exception
Description copied from interface: Interceptor
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 next,
                   ModifyOperationContext opContext)
            throws java.lang.Exception
Description copied from interface: Interceptor
Filters Partition.modify( ModifyOperationContext ) call.

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

hasEntry

public boolean hasEntry(NextInterceptor next,
                        EntryOperationContext entryContext)
                 throws java.lang.Exception
Description copied from interface: Interceptor
Filters Partition.hasEntry( EntryOperationContext ) call.

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

lookup

public ClonedServerEntry lookup(NextInterceptor next,
                                LookupOperationContext lookupContext)
                         throws java.lang.Exception
Description copied from interface: Interceptor
Filters Partition.lookup( LookupOperationContext ) call.

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

rename

public void rename(NextInterceptor next,
                   RenameOperationContext renameContext)
            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

moveAndRename

public void moveAndRename(NextInterceptor next,
                          MoveAndRenameOperationContext moveAndRenameContext)
                   throws java.lang.Exception
Description copied from interface: Interceptor
Filters Partition.moveAndRename( MoveAndRenameOperationContext) call.

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

move

public void move(NextInterceptor next,
                 MoveOperationContext moveContext)
          throws java.lang.Exception
Description copied from interface: Interceptor
Filters Partition.move( MoveOperationContext ) call.

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

list

public EntryFilteringCursor list(NextInterceptor next,
                                 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 next,
                                   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

isPrincipalAnAdministrator

public final boolean isPrincipalAnAdministrator(org.apache.directory.shared.ldap.name.LdapDN principalDn)

compare

public boolean compare(NextInterceptor next,
                       CompareOperationContext opContext)
                throws java.lang.Exception
Description copied from interface: Interceptor
Filters PartitionNexus.compare( CompareOperationContext ) call.

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

getMatchedName

public org.apache.directory.shared.ldap.name.LdapDN getMatchedName(NextInterceptor next,
                                                                   GetMatchedNameOperationContext opContext)
                                                            throws java.lang.Exception
Description copied from interface: Interceptor
Filters PartitionNexus.getMatchedName( GetMatchedNameOperationContext ) call.

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

cacheNewGroup

public void cacheNewGroup(org.apache.directory.shared.ldap.name.LdapDN name,
                          ServerEntry entry)
                   throws java.lang.Exception
Throws:
java.lang.Exception


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