|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.server.core.partition.PartitionNexus
org.apache.directory.server.core.partition.PartitionNexusProxy
public class PartitionNexusProxy
A decorator that wraps other PartitionNexus to enable
InterceptorChain and InvocationStack support.
All Invocations made to this nexus is automatically pushed to
InvocationStack of the current thread, and popped when
the operation ends. All invocations are filtered by InterceptorChain.
| Field Summary |
|---|
| Fields inherited from class org.apache.directory.server.core.partition.PartitionNexus |
|---|
ADMIN_PASSWORD_BYTES, ADMIN_PASSWORD_STRING, ADMIN_UID |
| Fields inherited from interface org.apache.directory.server.core.partition.Partition |
|---|
DEFAULT_CACHE_SIZE, DEFAULT_PARTITION_IMPLEMENTATION, SYSTEM_PARTITION_NAME |
| Constructor Summary | |
|---|---|
PartitionNexusProxy(DirectoryService service)
Creates a new instance. |
|
| Method Summary | |
|---|---|
void |
add(AddOperationContext opContext)
Adds an entry to this ContextPartition. |
void |
add(AddOperationContext opContext,
java.util.Collection<java.lang.String> byPassed)
|
void |
addContextPartition(AddContextPartitionOperationContext opContext)
|
void |
addContextPartition(AddContextPartitionOperationContext opContext,
java.util.Collection<java.lang.String> byPassed)
|
void |
bind(BindOperationContext opContext)
Represents a bind operation issued to authenticate a client. |
void |
bind(BindOperationContext opContext,
java.util.Collection<java.lang.String> byPassed)
TODO : check if we can find another way to protect ourselves from recursion. |
void |
close()
|
boolean |
compare(CompareOperationContext opContext)
Performs a comparison check to see if an attribute of an entry has a specified value. |
boolean |
compare(CompareOperationContext opContext,
java.util.Collection<java.lang.String> byPassed)
|
void |
delete(DeleteOperationContext opContext)
Deletes a leaf entry from this ContextPartition: non-leaf entries cannot be deleted until this operation has been applied to their children. |
void |
delete(DeleteOperationContext opContext,
java.util.Collection<java.lang.String> byPassed)
|
void |
destroy()
Deinitialized this partition. |
int |
getCacheSize()
Gets the entry cache size for this partition. |
ClonedServerEntry |
getContextEntry()
|
java.lang.String |
getId()
Gets the unique identifier for this partition. |
javax.naming.ldap.LdapContext |
getLdapContext()
Gets the LdapContext associated with the calling thread. |
org.apache.directory.shared.ldap.name.LdapDN |
getMatchedName(GetMatchedNameOperationContext opContext)
Gets the most significant Dn that exists within the server for any Dn. |
org.apache.directory.shared.ldap.name.LdapDN |
getMatchedName(GetMatchedNameOperationContext opContext,
java.util.Collection<java.lang.String> byPassed)
|
Partition |
getPartition(org.apache.directory.shared.ldap.name.LdapDN dn)
Get's the partition corresponding to a distinguished name. |
ClonedServerEntry |
getRootDSE(GetRootDSEOperationContext opContext)
Get's the RootDSE entry for the DSA. |
ClonedServerEntry |
getRootDSE(GetRootDSEOperationContext opContext,
java.util.Collection<java.lang.String> byPassed)
|
java.lang.String |
getSuffix()
Gets the non-normalized suffix for this Partition as a string. |
org.apache.directory.shared.ldap.name.LdapDN |
getSuffix(GetSuffixOperationContext opContext)
Gets the distinguished name of the suffix that would hold an entry with the supplied distinguished name parameter. |
org.apache.directory.shared.ldap.name.LdapDN |
getSuffix(GetSuffixOperationContext opContext,
java.util.Collection<java.lang.String> byPassed)
|
org.apache.directory.shared.ldap.name.LdapDN |
getSuffixDn()
Gets the distinguished/absolute name of the suffix for all entries stored within this ContextPartition. |
Partition |
getSystemPartition()
|
org.apache.directory.shared.ldap.name.LdapDN |
getUpSuffixDn()
Gets the distinguished/absolute name of the suffix for all entries stored within this ContextPartition. |
boolean |
hasEntry(EntryOperationContext opContext)
Fast operation to check and see if a particular entry exists. |
boolean |
hasEntry(EntryOperationContext opContext,
java.util.Collection<java.lang.String> byPassed)
|
void |
init(DirectoryService core)
Initializes this partition. |
boolean |
isInitialized()
Checks to see if this partition is initialized or not. |
EntryFilteringCursor |
list(ListOperationContext opContext)
A specialized form of one level search used to return a minimal set of information regarding child entries under a base. |
EntryFilteringCursor |
list(ListOperationContext opContext,
java.util.Collection<java.lang.String> byPassed)
|
java.util.Iterator<java.lang.String> |
listSuffixes(ListSuffixOperationContext opContext)
Gets an iteration over the Name suffixes of the partitions managed by this PartitionNexus. |
java.util.Iterator<java.lang.String> |
listSuffixes(ListSuffixOperationContext opContext,
java.util.Collection<java.lang.String> byPassed)
|
ClonedServerEntry |
lookup(java.lang.Long id)
|
ClonedServerEntry |
lookup(LookupOperationContext opContext)
Looks up an entry by distinguished/absolute name. |
ClonedServerEntry |
lookup(LookupOperationContext opContext,
java.util.Collection<java.lang.String> byPassed)
|
void |
modify(ModifyOperationContext opContext)
Modifies an entry by adding, removing or replacing a set of attributes. |
void |
modify(ModifyOperationContext opContext,
java.util.Collection<java.lang.String> byPassed)
|
void |
move(MoveOperationContext opContext)
Transplants a child entry, to a position in the namespace under a new parent entry. |
void |
move(MoveOperationContext opContext,
java.util.Collection<java.lang.String> byPassed)
|
void |
moveAndRename(MoveAndRenameOperationContext opContext)
Transplants a child entry, to a position in the namespace under a new parent entry and changes the RN of the child entry which can optionally have its old RN attributes removed. |
void |
moveAndRename(MoveAndRenameOperationContext opContext,
java.util.Collection<java.lang.String> byPassed)
|
void |
registerSupportedExtensions(java.util.Set<java.lang.String> extensionOids)
Adds a set of supportedExtension (OID Strings) to the RootDSE. |
void |
registerSupportedSaslMechanisms(java.util.Set<java.lang.String> supportedSaslMechanisms)
|
void |
removeContextPartition(RemoveContextPartitionOperationContext opContext)
|
void |
removeContextPartition(RemoveContextPartitionOperationContext opContext,
java.util.Collection<java.lang.String> byPassed)
|
void |
rename(RenameOperationContext opContext)
Modifies an entry by changing its relative name. |
void |
rename(RenameOperationContext opContext,
java.util.Collection<java.lang.String> byPassed)
|
EntryFilteringCursor |
search(SearchOperationContext opContext)
Conducts a search against this ContextPartition. |
EntryFilteringCursor |
search(SearchOperationContext opContext,
java.util.Collection<java.lang.String> byPassed)
|
void |
setCacheSize(int cacheSize)
Used to specify the entry cache size for a Partition. |
void |
setContextEntry(ServerEntry contextEntry)
|
void |
setId(java.lang.String id)
Sets the unique identifier for this partition. |
void |
setSuffix(java.lang.String suffix)
Sets the non-normalized suffix for this Partition as a string. |
void |
sync()
Flushes any changes made to this partition now. |
void |
unbind(UnbindOperationContext opContext)
Represents an unbind operation issued by an authenticated client. |
void |
unbind(UnbindOperationContext opContext,
java.util.Collection<java.lang.String> byPassed)
|
| Methods inherited from class org.apache.directory.server.core.partition.PartitionNexus |
|---|
getAdminName, getGroupsBaseName, getUsersBaseName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PartitionNexusProxy(DirectoryService service)
throws java.lang.Exception
caller - a JNDI Context object that will call this proxyservice - a JNDI service
java.lang.Exception| Method Detail |
|---|
public javax.naming.ldap.LdapContext getLdapContext()
PartitionNexus
getLdapContext in class PartitionNexuspublic java.lang.String getId()
Partition
public void setId(java.lang.String id)
Partition
id - the unique identifier for this partitionpublic ClonedServerEntry getContextEntry()
public void setContextEntry(ServerEntry contextEntry)
public java.lang.String getSuffix()
Partition
public void setSuffix(java.lang.String suffix)
Partition
suffix - the suffix string for this Partition.public void setCacheSize(int cacheSize)
Partition
cacheSize - the size of the cachepublic int getCacheSize()
Partition
public void init(DirectoryService core)
throws java.lang.Exception
Partition
core - the directory core for the server.
java.lang.Exception - if initialization fails in any waypublic void destroy()
Partition
public Partition getSystemPartition()
getSystemPartition in class PartitionNexus
public Partition getPartition(org.apache.directory.shared.ldap.name.LdapDN dn)
throws java.lang.Exception
PartitionNexus
getPartition in class PartitionNexusdn - the normalized distinguished name to get a partition for
java.lang.Exception - if there is no partition for the dn
public org.apache.directory.shared.ldap.name.LdapDN getSuffixDn()
throws java.lang.Exception
Partition
java.lang.Exception - if access or suffix parsing fails
public org.apache.directory.shared.ldap.name.LdapDN getUpSuffixDn()
throws java.lang.Exception
Partition
java.lang.Exception - if access or suffix parsing fails
public void sync()
throws java.lang.Exception
Partition
java.lang.Exception - if buffers cannot be flushed to disk
public void close()
throws java.lang.Exception
java.lang.Exceptionpublic boolean isInitialized()
Partition
public org.apache.directory.shared.ldap.name.LdapDN getMatchedName(GetMatchedNameOperationContext opContext)
throws java.lang.Exception
PartitionNexus
getMatchedName in class PartitionNexusopContext - the context containing the distinguished name
to use for matching.
java.lang.Exception - if there are any problems
public org.apache.directory.shared.ldap.name.LdapDN getMatchedName(GetMatchedNameOperationContext opContext,
java.util.Collection<java.lang.String> byPassed)
throws java.lang.Exception
java.lang.Exception
public org.apache.directory.shared.ldap.name.LdapDN getSuffix(GetSuffixOperationContext opContext)
throws java.lang.Exception
PartitionNexus
getSuffix in class PartitionNexusopContext - the Context containing normalized distinguished
name to use for finding a suffix.
java.lang.Exception - if there are any problems
public org.apache.directory.shared.ldap.name.LdapDN getSuffix(GetSuffixOperationContext opContext,
java.util.Collection<java.lang.String> byPassed)
throws java.lang.Exception
java.lang.Exception
public java.util.Iterator<java.lang.String> listSuffixes(ListSuffixOperationContext opContext)
throws java.lang.Exception
PartitionNexusPartitionNexus.
listSuffixes in class PartitionNexusjava.lang.Exception - if there are any problems
public java.util.Iterator<java.lang.String> listSuffixes(ListSuffixOperationContext opContext,
java.util.Collection<java.lang.String> byPassed)
throws java.lang.Exception
java.lang.Exception
public boolean compare(CompareOperationContext opContext)
throws java.lang.Exception
PartitionNexus
compare in class PartitionNexusopContext - the context used to compare
java.lang.Exception - if there is a problem accessing the entry and its values
public boolean compare(CompareOperationContext opContext,
java.util.Collection<java.lang.String> byPassed)
throws java.lang.Exception
java.lang.Exception
public void delete(DeleteOperationContext opContext)
throws java.lang.Exception
Partition
opContext - the context of the entry to
delete from this ContextPartition.
java.lang.Exception - if there are any problems
public void delete(DeleteOperationContext opContext,
java.util.Collection<java.lang.String> byPassed)
throws java.lang.Exception
java.lang.Exception
public void add(AddOperationContext opContext)
throws java.lang.Exception
Partition
opContext - the context used to add and entry to this ContextPartition
java.lang.Exception - if there are any problems
public void add(AddOperationContext opContext,
java.util.Collection<java.lang.String> byPassed)
throws java.lang.Exception
java.lang.Exception
public void modify(ModifyOperationContext opContext)
throws java.lang.Exception
Partition
opContext - The contetx containin the modification operation
to perform on the entry which is one of constants specified by the
DirContext interface:
ADD_ATTRIBUTE, REMOVE_ATTRIBUTE, REPLACE_ATTRIBUTE.
java.lang.Exception - if there are any problemsDirContext,
DirContext.ADD_ATTRIBUTE,
DirContext.REMOVE_ATTRIBUTE,
DirContext.REPLACE_ATTRIBUTE
public void modify(ModifyOperationContext opContext,
java.util.Collection<java.lang.String> byPassed)
throws java.lang.Exception
java.lang.Exception
public EntryFilteringCursor list(ListOperationContext opContext)
throws java.lang.Exception
Partition
opContext - the context containing the distinguished/absolute name for the search/listing
ServerSearchResult
java.lang.Exception - if there are any problems
public EntryFilteringCursor list(ListOperationContext opContext,
java.util.Collection<java.lang.String> byPassed)
throws java.lang.Exception
java.lang.Exception
public EntryFilteringCursor search(SearchOperationContext opContext)
throws java.lang.Exception
Partition
opContext - The context containing the information used by the operation
java.lang.Exception - if there are any problems
public EntryFilteringCursor search(SearchOperationContext opContext,
java.util.Collection<java.lang.String> byPassed)
throws java.lang.Exception
java.lang.Exception
public ClonedServerEntry lookup(LookupOperationContext opContext)
throws java.lang.Exception
Partition
opContext - The context containing the parameters
java.lang.Exception - if there are any problems
public ClonedServerEntry lookup(LookupOperationContext opContext,
java.util.Collection<java.lang.String> byPassed)
throws java.lang.Exception
java.lang.Exception
public boolean hasEntry(EntryOperationContext opContext)
throws java.lang.Exception
Partition
opContext - The context used to pass informations
java.lang.Exception - if there are any problems
public boolean hasEntry(EntryOperationContext opContext,
java.util.Collection<java.lang.String> byPassed)
throws java.lang.Exception
java.lang.Exception
public void rename(RenameOperationContext opContext)
throws java.lang.Exception
Partition
opContext - the modify DN context
java.lang.Exception - if there are any problems
public void rename(RenameOperationContext opContext,
java.util.Collection<java.lang.String> byPassed)
throws java.lang.Exception
java.lang.Exception
public void move(MoveOperationContext opContext)
throws java.lang.Exception
Partition
opContext - The context containing the DNs to move
java.lang.Exception - if there are any problems
public void move(MoveOperationContext opContext,
java.util.Collection<java.lang.String> byPassed)
throws java.lang.Exception
java.lang.Exception
public void moveAndRename(MoveAndRenameOperationContext opContext)
throws java.lang.Exception
Partition
opContext - The context contain all the information about
the modifyDN operation
java.lang.Exception - if there are any problems
public void moveAndRename(MoveAndRenameOperationContext opContext,
java.util.Collection<java.lang.String> byPassed)
throws java.lang.Exception
java.lang.Exception
public void bind(BindOperationContext opContext,
java.util.Collection<java.lang.String> byPassed)
throws java.lang.Exception
opContext - The operation contextbyPassed - bypass instructions to skip interceptors
java.lang.Exception - if bind fails
public void unbind(UnbindOperationContext opContext,
java.util.Collection<java.lang.String> byPassed)
throws java.lang.Exception
java.lang.Exception
public void bind(BindOperationContext opContext)
throws java.lang.Exception
Partition
opContext - the bind context, containing all the needed informations to bind
java.lang.Exception - if something goes wrong
public void unbind(UnbindOperationContext opContext)
throws java.lang.Exception
Partition
opContext - the context used to unbind
java.lang.Exception - if something goes wrong
public ClonedServerEntry getRootDSE(GetRootDSEOperationContext opContext)
throws java.lang.Exception
PartitionNexus
getRootDSE in class PartitionNexusjava.lang.Exception
public ClonedServerEntry getRootDSE(GetRootDSEOperationContext opContext,
java.util.Collection<java.lang.String> byPassed)
throws java.lang.Exception
java.lang.Exception
public void addContextPartition(AddContextPartitionOperationContext opContext)
throws java.lang.Exception
addContextPartition in class PartitionNexusjava.lang.Exception
public void addContextPartition(AddContextPartitionOperationContext opContext,
java.util.Collection<java.lang.String> byPassed)
throws java.lang.Exception
java.lang.Exception
public void removeContextPartition(RemoveContextPartitionOperationContext opContext)
throws java.lang.Exception
removeContextPartition in class PartitionNexusjava.lang.Exception
public void removeContextPartition(RemoveContextPartitionOperationContext opContext,
java.util.Collection<java.lang.String> byPassed)
throws java.lang.Exception
java.lang.Exception
public void registerSupportedExtensions(java.util.Set<java.lang.String> extensionOids)
throws java.lang.Exception
PartitionNexus
registerSupportedExtensions in class PartitionNexusextensionOids - a set of OID strings to add to the supportedExtension
attribute in the RootDSE
java.lang.Exception
public void registerSupportedSaslMechanisms(java.util.Set<java.lang.String> supportedSaslMechanisms)
throws java.lang.Exception
registerSupportedSaslMechanisms in class PartitionNexusjava.lang.Exception
public ClonedServerEntry lookup(java.lang.Long id)
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||