congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
org.apache.directory.server.core.api
Code IndexAdd Tabnine to your IDE (free)

How to use org.apache.directory.server.core.api

Best Java code snippets using org.apache.directory.server.core.api (Showing top 20 results out of 369)

origin: org.apache.directory.server/apacheds-core-api

/**
 * {@inheritDoc}
 */
@Override
public Entry lookup( LookupOperationContext lookupContext ) throws LdapException
{
  return session.getDirectoryService().getOperationManager().lookup( lookupContext );
}
origin: org.apache.directory.server/apacheds-protocol-ldap

/**
 * Creates a new instance of CramMd5CallbackHandler.
 *
 * @param ldapSession the mina IoSession
 * @param adminSession the admin session
 * @param bindRequest the bind message
 */
public CramMd5CallbackHandler( LdapSession ldapSession, CoreSession adminSession, BindRequest bindRequest )
{
  super( adminSession.getDirectoryService(), bindRequest );
  this.ldapSession = ldapSession;
  this.adminSession = adminSession;
  schemaManager = adminSession.getDirectoryService().getSchemaManager();
}
origin: org.apache.directory.server/apacheds-core-api

/**
 * Creates a new instance of UnbindOperationContext.
 * 
 * @param session The session to use
 */
public UnbindOperationContext( CoreSession session )
{
  super( session, session.getEffectivePrincipal().getDn() );
  setInterceptors( session.getDirectoryService().getInterceptors( OperationEnum.UNBIND ) );
}
origin: org.apache.directory.server/apacheds-interceptors-trigger

protected Dn getOperationPrincipal() throws LdapInvalidDnException
{
  Principal principal = opContext.getSession().getEffectivePrincipal();
  return opContext.getSession().getDirectoryService().getDnFactory().create( principal.getName() );
}
origin: org.apache.directory.server/apacheds-core-api

public void setDirectoryService( DirectoryService directoryService )
{
  this.directoryService = directoryService;
  this.schemaManager = directoryService.getSchemaManager();
  this.session = directoryService.getAdminSession();
}
origin: org.apache.directory.server/apacheds-core-integ

public static CoreSession getCoreSession( String principalDn, DirectoryService service, String dn )
  throws LdapException
{
  if ( principalDn == null )
  {
    principalDn = "";
  }
  Dn userDn = new Dn( service.getSchemaManager(), principalDn );
  LdapPrincipal principal = new LdapPrincipal( service.getSchemaManager(), userDn, AuthenticationLevel.SIMPLE );
  CoreSession session = service.getSession( principal );
  
  return session;
}
origin: org.apache.directory.server/apacheds-core-api

public SubentryUtils( DirectoryService directoryService )
{
  this.directoryService = directoryService;
  this.schemaManager = directoryService.getSchemaManager();
}
origin: org.apache.directory.server/apacheds-core-api

/**
 * {@inheritDoc}
 */
@Override
public void delete( Dn dn ) throws LdapException
{
  DeleteOperationContext deleteContext = new DeleteOperationContext( session, dn );
  setup( deleteContext );
  session.getDirectoryService().getOperationManager().delete( deleteContext );
}
origin: org.apache.directory.server/apacheds-core-shared

/**
 * {@inheritDoc}
 */
@Override
public void add( Entry entry, LogChange log ) throws LdapException
{
  AddOperationContext addContext = new AddOperationContext( this, entry );
  addContext.setLogChange( log );
  OperationManager operationManager = directoryService.getOperationManager();
  operationManager.add( addContext );
}
origin: org.apache.directory.server/apacheds-core-shared

/**
 * {@inheritDoc}
 */
@Override
public void delete( Dn dn, LogChange log ) throws LdapException
{
  DeleteOperationContext deleteContext = new DeleteOperationContext( this, dn );
  deleteContext.setLogChange( log );
  OperationManager operationManager = directoryService.getOperationManager();
  operationManager.delete( deleteContext );
}
origin: org.apache.directory.server/apacheds-core-shared

/**
 * {@inheritDoc}
 */
@Override
public void unbind() throws LdapException
{
  UnbindOperationContext unbindContext = new UnbindOperationContext( this );
  OperationManager operationManager = directoryService.getOperationManager();
  operationManager.unbind( unbindContext );
}
origin: org.apache.directory.server/apacheds-core-api

/**
 * Initialize the CacheService
 *
 * @param layout The place on disk where the cache configuration will be stored
 */
public void initialize( InstanceLayout layout )
{
  initialize( layout, null );
}
origin: org.apache.directory.server/apacheds-core-api

/**
 * {@inheritDoc}
 */
@Override
public Entry getRootDse() throws LdapException
{
  return lookup( Dn.ROOT_DSE, SchemaConstants.ALL_USER_ATTRIBUTES_ARRAY );
}
origin: org.apache.directory.server/apacheds-core-api

/**
 * Moves and renames the given entryDn.The old Rdn will be deleted
 *
 * @see #moveAndRename(org.apache.directory.api.ldap.model.name.Dn, org.apache.directory.api.ldap.model.name.Dn, boolean)
 */
@Override
public void moveAndRename( Dn entryDn, Dn newDn ) throws LdapException
{
  moveAndRename( entryDn, newDn, true );
}
origin: org.apache.directory.server/apacheds-core-api

/**
 * Creates a new instance of InstanceLayout.
 *
 * @param instanceDirectory the instance directory
 */
public InstanceLayout( File instanceDirectory )
{
  super( instanceDirectory );
  init();
}
origin: org.apache.directory.server/apacheds-core-api

/**
 * {@inheritDoc}
 */
@Override
public ExtendedResponse extended( Oid oid, byte[] value ) throws LdapException
{
  return extended( ( String ) null );
}
origin: org.apache.directory.server/apacheds-interceptors-trigger

  public Object inject( OperationContext opContext, StoredProcedureParameter param )
    throws LdapInvalidDnException
  {
    // Return a safe copy constructed with user provided name.
    return opContext.getSession().getDirectoryService().getDnFactory().create( oldDn.getName() );
  }
};
origin: org.apache.directory.server/apacheds-protocol-ldap

/**
 * Creates a new instance of DigestMd5CallbackHandler.
 *
 * @param ldapSession the mina IoSession
 * @param adminSession the admin session
 * @param bindRequest the bind message
 */
public DigestMd5CallbackHandler( LdapSession ldapSession, CoreSession adminSession, BindRequest bindRequest )
{
  super( adminSession.getDirectoryService(), bindRequest );
  this.ldapSession = ldapSession;
  this.adminSession = adminSession;
  schemaManager = adminSession.getDirectoryService().getSchemaManager();
}
origin: org.apache.directory.server/apacheds-core-api

/**
 * {@inheritDoc}
 */
@Override
public Entry lookup( Dn dn ) throws LdapException
{
  return lookup( dn, ( String[] ) null );
}
origin: org.apache.directory.server/apacheds-interceptors-trigger

  public Object inject( OperationContext opContext, StoredProcedureParameter param )
    throws LdapInvalidDnException
  {
    // Return a safe copy constructed with user provided name.
    return opContext.getSession().getDirectoryService().getDnFactory().create( oldSuperiorDn.getName() );
  }
};
org.apache.directory.server.core.api

Most used classes

  • DirectoryService
    All the features a DirectroyService instance must implement. This gives a control of the Directory b
  • CoreSession
    An interface representing a session with the core DirectoryService. These sessions may either be rea
  • InstanceLayout
    Convenience class to encapsulate paths to various directories and files within an instance. The defa
  • AddOperationContext
    A Add context used for Interceptors. It contains all the informations needed for the add operation,
  • ModifyOperationContext
    A Modify context used for Interceptors. It contains all the informations needed for the modify opera
  • CacheService,
  • SchemaPartition,
  • ClonedServerEntry,
  • LookupOperationContext,
  • DeleteOperationContext,
  • DnFactory,
  • LdapPrincipal,
  • EntryFilteringCursor,
  • BaseInterceptor,
  • MoveAndRenameOperationContext,
  • MoveOperationContext,
  • RenameOperationContext,
  • PartitionNexus,
  • AttributeTypeProvider
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now