public class SchemaInterceptor extends BaseInterceptor
Interceptor
that manages and enforces schemas.
TODO Better interceptor description required.directoryService, dnFactory, PWD_POLICY_STATE_ATTRIBUTE_TYPES, schemaManager
Constructor and Description |
---|
SchemaInterceptor()
Creates a new instance of a SchemaInterceptor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(AddOperationContext addContext)
Filters
Partition.add( AddOperationContext ) call. |
boolean |
compare(CompareOperationContext compareContext)
Filters Compare call.
|
void |
init(DirectoryService directoryService)
Initialize the Schema Service
|
org.apache.directory.api.ldap.model.entry.Entry |
lookup(LookupOperationContext lookupContext)
Filters
Partition.lookup( LookupOperationContext ) call. |
void |
modify(ModifyOperationContext modifyContext)
Filters
Partition.modify( ModifyOperationContext ) call. |
void |
moveAndRename(MoveAndRenameOperationContext moveAndRenameContext)
Filters MoveAndRename call.
|
void |
rename(RenameOperationContext renameContext)
Filters
Partition.rename( RenameOperationContext ) call. |
EntryFilteringCursor |
search(SearchOperationContext searchContext)
Filters
Partition.search( SearchOperationContext ) call. |
public SchemaInterceptor()
public void init(DirectoryService directoryService) throws org.apache.directory.api.ldap.model.exception.LdapException
init
in interface Interceptor
init
in class BaseInterceptor
directoryService
- the directory service coreorg.apache.directory.api.ldap.model.exception.LdapException
- if there are problems during initializationpublic void add(AddOperationContext addContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition.add( AddOperationContext )
call.add
in interface Interceptor
add
in class BaseInterceptor
addContext
- The AddOperationContext
instanceorg.apache.directory.api.ldap.model.exception.LdapException
- If we had some error while processing the Add operationpublic boolean compare(CompareOperationContext compareContext) throws org.apache.directory.api.ldap.model.exception.LdapException
compare
in interface Interceptor
compare
in class BaseInterceptor
compareContext
- The CompareOperationContext
instanceorg.apache.directory.api.ldap.model.exception.LdapException
- If we had some error while processing the Compare operationpublic org.apache.directory.api.ldap.model.entry.Entry lookup(LookupOperationContext lookupContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition.lookup( LookupOperationContext )
call.lookup
in interface Interceptor
lookup
in class BaseInterceptor
lookupContext
- The LookupOperationContext
instanceorg.apache.directory.api.ldap.model.exception.LdapException
- If we had some error while processing the Lookup operationpublic void modify(ModifyOperationContext modifyContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition.modify( ModifyOperationContext )
call.modify
in interface Interceptor
modify
in class BaseInterceptor
modifyContext
- The ModifyOperationContext
instanceorg.apache.directory.api.ldap.model.exception.LdapException
- If we had some error while processing the Modify operationpublic void moveAndRename(MoveAndRenameOperationContext moveAndRenameContext) throws org.apache.directory.api.ldap.model.exception.LdapException
moveAndRename
in interface Interceptor
moveAndRename
in class BaseInterceptor
moveAndRenameContext
- The MoveAndRenameOperationContext
instanceorg.apache.directory.api.ldap.model.exception.LdapException
- If we had some error while processing the MoveAndRename operationpublic void rename(RenameOperationContext renameContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition.rename( RenameOperationContext )
call.rename
in interface Interceptor
rename
in class BaseInterceptor
renameContext
- The RenameOperationContext
instanceorg.apache.directory.api.ldap.model.exception.LdapException
- If we had some error while processing the Rename operationpublic EntryFilteringCursor search(SearchOperationContext searchContext) throws org.apache.directory.api.ldap.model.exception.LdapException
Partition.search( SearchOperationContext )
call.search
in interface Interceptor
search
in class BaseInterceptor
searchContext
- The SearchOperationContext
instanceorg.apache.directory.api.ldap.model.exception.LdapException
- If we had some error while processing the Search operationCopyright © 2003–2023 The Apache Software Foundation. All rights reserved.