Class InMemorySchemaPartition

java.lang.Object
org.apache.directory.server.core.api.partition.AbstractPartition
org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition
org.apache.directory.server.core.partition.impl.avl.AvlPartition
org.apache.directory.server.core.partition.ldif.AbstractLdifPartition
org.jboss.as.test.integration.ldap.InMemorySchemaPartition
All Implemented Interfaces:
org.apache.directory.server.core.api.partition.Partition, org.apache.directory.server.xdbm.Store

public class InMemorySchemaPartition extends org.apache.directory.server.core.partition.ldif.AbstractLdifPartition
In-memory schema-only partition which loads the data in the similar way as the org.apache.directory.api.ldap.schemaloader.JarLdifSchemaLoader.
Author:
Josef Cacek
  • Field Summary

    Fields inherited from class org.apache.directory.server.core.partition.ldif.AbstractLdifPartition

    CONF_FILE_EXTN, defaultCSNFactory

    Fields inherited from class org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition

    ADD_CHILD, administrativeRoleAT, adminRoleIdx, aliasCache, aliasedObjectNameAT, aliasIdx, cacheSize, contextCsnAT, DEFAULT_CACHE_SIZE, entryCsnAT, entryCsnIdx, entryDnAT, entryUuidAT, isSyncOnWrite, master, objectClassAT, objectClassIdx, oneAliasIdx, optimizerEnabled, partitionPath, piarCache, presenceAT, presenceIdx, rdnIdx, REMOVE_CHILD, subAliasIdx, systemIndices, userIndices

    Fields inherited from class org.apache.directory.server.core.api.partition.AbstractPartition

    contextEntry, ctxCsnChanged, dnFactory, id, initialized, schemaManager, suffixDn

    Fields inherited from interface org.apache.directory.server.core.api.partition.Partition

    DEFAULT_ID, ROOT_ID

    Fields inherited from interface org.apache.directory.server.xdbm.Store

    SYS_INDEX_OID_ARRAY, SYS_INDEX_OIDS
  • Constructor Summary

    Constructors
    Constructor
    Description
    InMemorySchemaPartition(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager)
    Filesystem path separator pattern, either forward slash or backslash. java.util.regex.Pattern is immutable so only one instance is needed for all uses.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    Partition initialization - loads schema entries from the files on classpath.

    Methods inherited from class org.apache.directory.server.core.partition.ldif.AbstractLdifPartition

    getDefaultId, getPartitionPath, initInstance

    Methods inherited from class org.apache.directory.server.core.partition.impl.avl.AvlPartition

    beginReadTransaction, beginWriteTransaction, convertAndInit, createSystemIndex, doRepair, getCacheSize, getRootId, isSyncOnWrite

    Methods inherited from class org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition

    add, addAliasIndices, addIndex, addIndexedAttributes, addToCache, buildEntryDn, count, delete, delete, doDestroy, dropAliasIndices, dropMovedAliasIndices, dumpIndex, dumpRdnIdx, fetch, fetch, getAdministrativeRoleIndex, getAliasCache, getAliasIndex, getChildCount, getContextCsn, getEntryCsnIndex, getEntryDn, getEntryId, getIndex, getIndexedAttributes, getMasterTable, getObjectClassIndex, getOneAliasIndex, getOptimizer, getParentId, getPresenceIndex, getRdnIndex, getReadWriteLock, getSearchEngine, getSubAliasIndex, getSubordinates, getSuffixId, getSystemIndex, getSystemIndices, getUserIndex, getUserIndices, hasEntry, hasIndexOn, hasSystemIndexOn, hasUserIndexOn, isOptimizerEnabled, loadContextCsn, lookup, lookupCache, modify, modify, move, move, moveAndRename, moveAndRename, rename, rename, repair, saveContextCsn, search, setCacheSize, setIndexedAttributes, setOptimizer, setOptimizerEnabled, setPartitionPath, setSearchEngine, setSyncOnWrite, setupSystemIndices, setupUserIndices, toString, unbind, updateCache, updateRdnIdx

    Methods inherited from class org.apache.directory.server.core.api.partition.AbstractPartition

    checkInitialized, destroy, getContextEntry, getId, getSchemaManager, getSuffixDn, initialize, isInitialized, setContextCsn, setContextEntry, setId, setSchemaManager, setSuffixDn, sync

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • InMemorySchemaPartition

      public InMemorySchemaPartition(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager)
      Filesystem path separator pattern, either forward slash or backslash. java.util.regex.Pattern is immutable so only one instance is needed for all uses.
  • Method Details

    • doInit

      protected void doInit() throws org.apache.directory.api.ldap.model.exception.LdapException
      Partition initialization - loads schema entries from the files on classpath.
      Overrides:
      doInit in class org.apache.directory.server.core.partition.impl.avl.AvlPartition
      Throws:
      org.apache.directory.api.ldap.model.exception.LdapException
      See Also:
      • AvlPartition.doInit()