|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.server.core.DefaultDirectoryService
public class DefaultDirectoryService
Default implementation of DirectoryService.
| Field Summary | |
|---|---|
static int |
MAX_SIZE_LIMIT_DEFAULT
The default timeLimit : 100 entries |
static int |
MAX_TIME_LIMIT_DEFAULT
The default timeLimit : 10 seconds |
| Fields inherited from interface org.apache.directory.server.core.DirectoryService |
|---|
JNDI_KEY |
| Constructor Summary | |
|---|---|
DefaultDirectoryService()
Creates a new instance of the directory service. |
|
| Method Summary | |
|---|---|
void |
addPartition(Partition partition)
|
CoreSession |
getAdminSession()
|
ChangeLog |
getChangeLog()
|
org.apache.directory.shared.ldap.csn.Csn |
getCSN()
Get a new CSN |
EventService |
getEventService()
|
java.lang.String |
getInstanceId()
|
Interceptor |
getInterceptor(java.lang.String interceptorName)
|
InterceptorChain |
getInterceptorChain()
|
java.util.List<Interceptor> |
getInterceptors()
Returns interceptors in the server. |
Journal |
getJournal()
|
int |
getMaxPDUSize()
|
OperationManager |
getOperationManager()
|
DefaultPartitionNexus |
getPartitionNexus()
|
java.util.Set<? extends Partition> |
getPartitions()
Gets the Partitions used by this DirectoryService. |
ReferralManager |
getReferralManager()
|
int |
getReplicaId()
|
ReplicationConfiguration |
getReplicationConfiguration()
|
org.apache.directory.shared.ldap.schema.SchemaManager |
getSchemaManager()
|
SchemaService |
getSchemaService()
|
CoreSession |
getSession()
|
CoreSession |
getSession(org.apache.directory.shared.ldap.name.DN principalDn,
byte[] credentials)
|
CoreSession |
getSession(org.apache.directory.shared.ldap.name.DN principalDn,
byte[] credentials,
java.lang.String saslMechanism,
java.lang.String saslAuthId)
|
CoreSession |
getSession(LdapPrincipal principal)
|
long |
getSyncPeriodMillis()
|
Partition |
getSystemPartition()
|
java.util.List<org.apache.directory.shared.ldap.ldif.LdifEntry> |
getTestEntries()
Returns test directory entries( LdifEntry) to be loaded while
bootstrapping. |
java.io.File |
getWorkingDirectory()
Returns working directory (counterpart of var/lib) where partitions are stored by default. |
boolean |
isAccessControlEnabled()
Returns true if access control checks are enabled. |
boolean |
isAllowAnonymousAccess()
Returns true if anonymous access is allowed on entries besides the RootDSE. |
boolean |
isDenormalizeOpAttrsEnabled()
return true if the operational attributes must be normalized when returned |
boolean |
isExitVmOnShutdown()
|
boolean |
isFirstStart()
|
boolean |
isPasswordHidden()
|
boolean |
isShutdownHookEnabled()
|
boolean |
isStarted()
|
org.apache.directory.shared.ldap.entry.ServerEntry |
newEntry(org.apache.directory.shared.ldap.name.DN dn)
|
org.apache.directory.shared.ldap.entry.ServerEntry |
newEntry(java.lang.String ldif,
java.lang.String dn)
Create a new ServerEntry |
void |
removePartition(Partition partition)
|
long |
revert()
|
long |
revert(long revision)
|
void |
setAccessControlEnabled(boolean accessControlEnabled)
Sets whether to enable basic access control checks or not. |
void |
setAllowAnonymousAccess(boolean enableAnonymousAccess)
Sets whether to allow anonymous access to entries other than the RootDSE. |
void |
setChangeLog(ChangeLog changeLog)
|
void |
setDenormalizeOpAttrsEnabled(boolean denormalizeOpAttrsEnabled)
Sets whether the operational attributes are denormalized when returned |
void |
setEventService(EventService eventService)
|
void |
setExitVmOnShutdown(boolean exitVmOnShutdown)
|
void |
setInstanceId(java.lang.String instanceId)
|
void |
setInterceptors(java.util.List<Interceptor> interceptors)
Sets the interceptors in the server. |
void |
setJournal(Journal journal)
|
void |
setMaxPDUSize(int maxPDUSize)
Set the maximum allowed size for an incoming PDU |
void |
setPartitions(java.util.Set<? extends Partition> partitions)
Sets Partitions used by this DirectoryService. |
void |
setPasswordHidden(boolean passwordHidden)
|
void |
setReferralManager(ReferralManager referralManager)
Set the referralManager |
void |
setReplicaId(int replicaId)
|
void |
setReplicationConfiguration(ReplicationConfiguration replicationConfig)
|
void |
setSchemaManager(org.apache.directory.shared.ldap.schema.SchemaManager schemaManager)
Set the SchemaManager instance. |
void |
setSchemaService(SchemaService schemaService)
|
void |
setShutdownHookEnabled(boolean shutdownHookEnabled)
|
void |
setSyncPeriodMillis(long syncPeriodMillis)
|
void |
setSystemPartition(Partition systemPartition)
|
void |
setTestEntries(java.util.List<? extends org.apache.directory.shared.ldap.ldif.LdifEntry> testEntries)
Sets test directory entries( Attributes) to be loaded while
bootstrapping. |
void |
setWorkingDirectory(java.io.File workingDirectory)
Sets working directory (counterpart of var/lib) where partitions are stored by default. |
void |
shutdown()
|
void |
startup()
|
void |
sync()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MAX_SIZE_LIMIT_DEFAULT
public static final int MAX_TIME_LIMIT_DEFAULT
| Constructor Detail |
|---|
public DefaultDirectoryService()
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public void setInstanceId(java.lang.String instanceId)
setInstanceId in interface DirectoryServicepublic java.lang.String getInstanceId()
getInstanceId in interface DirectoryServicepublic java.util.Set<? extends Partition> getPartitions()
Partitions used by this DirectoryService.
getPartitions in interface DirectoryServicepublic void setPartitions(java.util.Set<? extends Partition> partitions)
Partitions used by this DirectoryService.
setPartitions in interface DirectoryServicepartitions - the partitions to usedpublic boolean isAccessControlEnabled()
isAccessControlEnabled in interface DirectoryServicepublic void setAccessControlEnabled(boolean accessControlEnabled)
setAccessControlEnabled in interface DirectoryServiceaccessControlEnabled - true to enable access control checks, false otherwisepublic boolean isAllowAnonymousAccess()
isAllowAnonymousAccess in interface DirectoryServicepublic void setAllowAnonymousAccess(boolean enableAnonymousAccess)
setAllowAnonymousAccess in interface DirectoryServiceenableAnonymousAccess - true to enable anonymous access, false to disable itpublic java.util.List<Interceptor> getInterceptors()
getInterceptors in interface DirectoryServicepublic void setInterceptors(java.util.List<Interceptor> interceptors)
setInterceptors in interface DirectoryServiceinterceptors - the interceptors to be used in the server.public java.util.List<org.apache.directory.shared.ldap.ldif.LdifEntry> getTestEntries()
LdifEntry) to be loaded while
bootstrapping.
getTestEntries in interface DirectoryServicepublic void setTestEntries(java.util.List<? extends org.apache.directory.shared.ldap.ldif.LdifEntry> testEntries)
Attributes) to be loaded while
bootstrapping.
setTestEntries in interface DirectoryServicetestEntries - the test entries to load while bootstrappingpublic java.io.File getWorkingDirectory()
getWorkingDirectory in interface DirectoryServicepublic void setWorkingDirectory(java.io.File workingDirectory)
setWorkingDirectory in interface DirectoryServiceworkingDirectory - the directory where the server's partitions are stored by default.public void setShutdownHookEnabled(boolean shutdownHookEnabled)
setShutdownHookEnabled in interface DirectoryServicepublic boolean isShutdownHookEnabled()
isShutdownHookEnabled in interface DirectoryServicepublic void setExitVmOnShutdown(boolean exitVmOnShutdown)
setExitVmOnShutdown in interface DirectoryServicepublic boolean isExitVmOnShutdown()
isExitVmOnShutdown in interface DirectoryServicepublic void setSystemPartition(Partition systemPartition)
setSystemPartition in interface DirectoryServicepublic Partition getSystemPartition()
getSystemPartition in interface DirectoryServicepublic boolean isDenormalizeOpAttrsEnabled()
isDenormalizeOpAttrsEnabled in interface DirectoryServicepublic void setDenormalizeOpAttrsEnabled(boolean denormalizeOpAttrsEnabled)
setDenormalizeOpAttrsEnabled in interface DirectoryServicedenormalizeOpAttrsEnabled - The flag valuepublic ChangeLog getChangeLog()
getChangeLog in interface DirectoryServicepublic Journal getJournal()
getJournal in interface DirectoryServicepublic void setChangeLog(ChangeLog changeLog)
setChangeLog in interface DirectoryServicepublic void setJournal(Journal journal)
setJournal in interface DirectoryService
public void addPartition(Partition partition)
throws java.lang.Exception
addPartition in interface DirectoryServicejava.lang.Exception
public void removePartition(Partition partition)
throws java.lang.Exception
removePartition in interface DirectoryServicejava.lang.Exceptionpublic CoreSession getAdminSession()
getAdminSession in interface DirectoryServicepublic CoreSession getSession()
getSession in interface DirectoryServicepublic CoreSession getSession(LdapPrincipal principal)
getSession in interface DirectoryService
public CoreSession getSession(org.apache.directory.shared.ldap.name.DN principalDn,
byte[] credentials)
throws java.lang.Exception
getSession in interface DirectoryServicejava.lang.Exception
public CoreSession getSession(org.apache.directory.shared.ldap.name.DN principalDn,
byte[] credentials,
java.lang.String saslMechanism,
java.lang.String saslAuthId)
throws java.lang.Exception
getSession in interface DirectoryServicejava.lang.Exception
public long revert()
throws java.lang.Exception
revert in interface DirectoryServicejava.lang.Exception
public long revert(long revision)
throws java.lang.Exception
revert in interface DirectoryServicejava.lang.Exceptionpublic OperationManager getOperationManager()
getOperationManager in interface DirectoryService
public void startup()
throws java.lang.Exception
startup in interface DirectoryServicejava.lang.Exception - if the LDAP server cannot be started
public void sync()
throws java.lang.Exception
sync in interface DirectoryServicejava.lang.Exception
public void shutdown()
throws java.lang.Exception
shutdown in interface DirectoryServicejava.lang.Exceptionpublic ReferralManager getReferralManager()
getReferralManager in interface DirectoryServicepublic void setReferralManager(ReferralManager referralManager)
setReferralManager in interface DirectoryServicereferralManager - The initialized referralManagerpublic org.apache.directory.shared.ldap.schema.SchemaManager getSchemaManager()
getSchemaManager in interface DirectoryServicepublic void setSchemaManager(org.apache.directory.shared.ldap.schema.SchemaManager schemaManager)
setSchemaManager in interface DirectoryServiceschemaManager - The schemaManagerpublic SchemaService getSchemaService()
getSchemaService in interface DirectoryServicepublic void setSchemaService(SchemaService schemaService)
setSchemaService in interface DirectoryServicepublic DefaultPartitionNexus getPartitionNexus()
getPartitionNexus in interface DirectoryServicepublic InterceptorChain getInterceptorChain()
getInterceptorChain in interface DirectoryServicepublic boolean isFirstStart()
public boolean isStarted()
isStarted in interface DirectoryServicepublic org.apache.directory.shared.ldap.entry.ServerEntry newEntry(org.apache.directory.shared.ldap.name.DN dn)
newEntry in interface ServerEntryFactory
public org.apache.directory.shared.ldap.entry.ServerEntry newEntry(java.lang.String ldif,
java.lang.String dn)
newEntry in interface DirectoryServiceldif - The String representing the attributes, as a LDIF filedn - The DN for this new entrypublic EventService getEventService()
getEventService in interface DirectoryServicepublic void setEventService(EventService eventService)
setEventService in interface DirectoryServicepublic boolean isPasswordHidden()
isPasswordHidden in interface DirectoryServicepublic void setPasswordHidden(boolean passwordHidden)
setPasswordHidden in interface DirectoryServicepublic int getMaxPDUSize()
getMaxPDUSize in interface DirectoryServicepublic void setMaxPDUSize(int maxPDUSize)
setMaxPDUSize in interface DirectoryServicemaxPDUSize - A positive number of bytes for the PDU. A negative or
null value will be transformed to Integer.MAX_VALUEpublic Interceptor getInterceptor(java.lang.String interceptorName)
getInterceptor in interface DirectoryServicepublic org.apache.directory.shared.ldap.csn.Csn getCSN()
getCSN in interface DirectoryServicepublic int getReplicaId()
getReplicaId in interface DirectoryServicepublic void setReplicaId(int replicaId)
setReplicaId in interface DirectoryServicereplicaId - the replicaId to setpublic void setReplicationConfiguration(ReplicationConfiguration replicationConfig)
setReplicationConfiguration in interface DirectoryServicepublic ReplicationConfiguration getReplicationConfiguration()
getReplicationConfiguration in interface DirectoryServicepublic long getSyncPeriodMillis()
public void setSyncPeriodMillis(long syncPeriodMillis)
syncPeriodMillis - the syncPeriodMillis to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||