|
||||||||||
| 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.DefaultPartitionNexus
public class DefaultPartitionNexus
A nexus for partitions dedicated for storing entries specific to a naming context.
| 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 | |
|---|---|
DefaultPartitionNexus(ServerEntry rootDSE)
Creates the root nexus singleton of the entire system. |
|
| Method Summary | |
|---|---|
void |
add(AddOperationContext addContext)
Looks up the backend corresponding to the entry first, then checks to see if the entry already exists. |
void |
addContextPartition(AddContextPartitionOperationContext opContext)
|
void |
bind(BindOperationContext bindContext)
Represents a bind operation issued to authenticate a client. |
boolean |
compare(CompareOperationContext compareContext)
Performs a comparison check to see if an attribute of an entry has a specified value. |
void |
delete(DeleteOperationContext deleteContext)
Deletes a leaf entry from this ContextPartition: non-leaf entries cannot be deleted until this operation has been applied to their children. |
void |
destroy()
Deinitialized this partition. |
int |
getCacheSize()
Not supported! |
java.lang.String |
getId()
Always returns the string "NEXUS". |
javax.naming.ldap.LdapContext |
getLdapContext()
Gets the LdapContext associated with the calling thread. |
org.apache.directory.shared.ldap.name.LdapDN |
getMatchedName(GetMatchedNameOperationContext matchedNameContext)
Gets the most significant Dn that exists within the server for any Dn. |
Partition |
getPartition(org.apache.directory.shared.ldap.name.LdapDN dn)
Gets the partition associated with a normalized dn. |
ClonedServerEntry |
getRootDSE(GetRootDSEOperationContext getRootDSEContext)
Get's the RootDSE entry for the DSA. |
java.lang.String |
getSuffix()
Always returns the empty String "". |
org.apache.directory.shared.ldap.name.LdapDN |
getSuffix(GetSuffixOperationContext getSuffixContext)
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 |
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. |
void |
init(DirectoryService directoryService)
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. |
java.util.Iterator<java.lang.String> |
listSuffixes(ListSuffixOperationContext emptyContext)
Gets an iteration over the Name suffixes of the partitions managed by this PartitionNexus. |
ClonedServerEntry |
lookup(java.lang.Long id)
|
ClonedServerEntry |
lookup(LookupOperationContext opContext)
Looks up an entry by distinguished/absolute name. |
void |
modify(ModifyOperationContext modifyContext)
Modifies an entry by adding, removing or replacing a set of attributes. |
void |
move(MoveOperationContext opContext)
Transplants a child entry, to a position in the namespace under a new parent entry. |
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 |
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 removeContextPartition)
|
void |
rename(RenameOperationContext opContext)
Modifies an entry by changing its relative name. |
EntryFilteringCursor |
search(SearchOperationContext opContext)
Conducts a search against this ContextPartition. |
void |
setCacheSize(int cacheSize)
Not support! |
void |
setId(java.lang.String id)
Not supported! |
void |
setSuffix(java.lang.String suffix)
Unsupported operation on the Nexus. |
void |
sync()
Flushes any changes made to this partition now. |
void |
unbind(UnbindOperationContext unbindContext)
Represents an unbind operation issued by an authenticated client. |
| 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 DefaultPartitionNexus(ServerEntry rootDSE)
throws java.lang.Exception
rootDSE - the root entry for the DSA
javax.naming.Exception - on failure to initialize
java.lang.Exception| Method Detail |
|---|
public java.lang.String getId()
public void setId(java.lang.String id)
id - the unique identifier for this partition
java.lang.UnsupportedOperationException - everytimepublic java.lang.String getSuffix()
public void setSuffix(java.lang.String suffix)
suffix - the suffix string for this Partition.
java.lang.UnsupportedOperationException - everytimepublic void setCacheSize(int cacheSize)
cacheSize - the size of the cachepublic int getCacheSize()
java.lang.UnsupportedOperationException - always
public void init(DirectoryService directoryService)
throws java.lang.Exception
Partition
directoryService - the directory core for the server.
java.lang.Exception - if initialization fails in any waypublic boolean isInitialized()
Partition
public void destroy()
Partition
public void sync()
throws java.lang.Exception
Partition
java.lang.Exception - if buffers cannot be flushed to diskPartition.sync()
public boolean compare(CompareOperationContext compareContext)
throws java.lang.Exception
PartitionNexus
compare in class PartitionNexuscompareContext - the context used to compare
java.lang.Exception - if there is a problem accessing the entry and its values
public void addContextPartition(AddContextPartitionOperationContext opContext)
throws java.lang.Exception
addContextPartition in class PartitionNexusjava.lang.Exception
public void removeContextPartition(RemoveContextPartitionOperationContext removeContextPartition)
throws java.lang.Exception
removeContextPartition in class PartitionNexusjava.lang.Exceptionpublic Partition getSystemPartition()
getSystemPartition in class PartitionNexuspublic javax.naming.ldap.LdapContext getLdapContext()
PartitionNexus
getLdapContext in class PartitionNexusPartitionNexus.getLdapContext()
public org.apache.directory.shared.ldap.name.LdapDN getMatchedName(GetMatchedNameOperationContext matchedNameContext)
throws java.lang.Exception
PartitionNexus
getMatchedName in class PartitionNexusmatchedNameContext - the context containing the distinguished name
to use for matching.
java.lang.Exception - if there are any problemsPartitionNexus.getMatchedName( GetMatchedNameOperationContext )public org.apache.directory.shared.ldap.name.LdapDN getSuffixDn()
Partition
public org.apache.directory.shared.ldap.name.LdapDN getUpSuffixDn()
Partition
public org.apache.directory.shared.ldap.name.LdapDN getSuffix(GetSuffixOperationContext getSuffixContext)
throws java.lang.Exception
PartitionNexus
getSuffix in class PartitionNexusgetSuffixContext - the Context containing normalized distinguished
name to use for finding a suffix.
java.lang.Exception - if there are any problemsPartitionNexus.getSuffix( GetSuffixOperationContext )
public java.util.Iterator<java.lang.String> listSuffixes(ListSuffixOperationContext emptyContext)
throws java.lang.Exception
PartitionNexusPartitionNexus.
listSuffixes in class PartitionNexusjava.lang.Exception - if there are any problemsPartitionNexus.listSuffixes( ListSuffixOperationContext )public ClonedServerEntry getRootDSE(GetRootDSEOperationContext getRootDSEContext)
PartitionNexus
getRootDSE in class PartitionNexus
public void bind(BindOperationContext bindContext)
throws java.lang.Exception
Partition
bindContext - the bind context, containing all the needed informations to bind
java.lang.Exception - if something goes wrong
public void unbind(UnbindOperationContext unbindContext)
throws java.lang.Exception
Partition
unbindContext - the context used to unbind
java.lang.Exception - if something goes wrong
public void delete(DeleteOperationContext deleteContext)
throws java.lang.Exception
Partition
deleteContext - the context of the entry to
delete from this ContextPartition.
java.lang.Exception - if there are any problemsPartition.delete(DeleteOperationContext)
public void add(AddOperationContext addContext)
throws java.lang.Exception
addContext - the context used to add and entry to this ContextPartition
java.lang.Exception - if there are any problemsPartition.add( AddOperationContext )
public void modify(ModifyOperationContext modifyContext)
throws java.lang.Exception
Partition
modifyContext - 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 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 problemsPartition.list(ListOperationContext)
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 ClonedServerEntry lookup(LookupOperationContext opContext)
throws java.lang.Exception
Partition
opContext - The context containing the parameters
java.lang.Exception - if there are any problems
public boolean hasEntry(EntryOperationContext opContext)
throws java.lang.Exception
Partition
opContext - The context used to pass informations
java.lang.Exception - if there are any problemsPartition.hasEntry(EntryOperationContext)
public void rename(RenameOperationContext opContext)
throws java.lang.Exception
Partition
opContext - the modify DN context
java.lang.Exception - if there are any problemsPartition.rename(RenameOperationContext)
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 problemsPartition.move(MoveOperationContext)
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 Partition getPartition(org.apache.directory.shared.ldap.name.LdapDN dn)
throws java.lang.Exception
getPartition in class PartitionNexusdn - the normalized distinguished name to resolve to a partition
java.lang.Exception - if the name cannot be resolved to a partition
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 | |||||||||