/** * Set the ignoreRefferal flag for the current operationContext. * * @param opContext The current operationContext * @param ignoreReferral The flag */ private void setReferralHandling( AbstractOperationContext opContext, boolean ignoreReferral ) { if ( ignoreReferral ) { opContext.ignoreReferral(); } else { opContext.throwReferral(); } }
public final void rename( RenameOperationContext renameContext ) throws Exception { store.rename( renameContext.getDn(), renameContext.getNewRdn(), renameContext.getDelOldDn() ); }
public void bind(BindOperationContext opContext) throws Exception { log.debug("bind()::opContext=" + opContext.toString()); }//bind
@Override public void rename( NextInterceptor next, RenameOperationContext renameOpContext ) throws Exception { Operation op = operationFactory.newModifyRn( renameOpContext.getDn(), renameOpContext.getNewRdn(), renameOpContext.getDelOldDn() ); op.execute( nexus, store, renameOpContext.getSession() ); }
@Override public EntryFilteringCursor list( NextInterceptor nextInterceptor, ListOperationContext opContext ) throws Exception { EntryFilteringCursor cursor = nextInterceptor.search( new SearchOperationContext( opContext.getSession(), opContext.getDn(), opContext.getAliasDerefMode(), new PresenceNode( SchemaConstants.OBJECT_CLASS_AT_OID ), new SearchControls() ) ); cursor.addEntryFilter( Constants.DELETED_ENTRIES_FILTER ); return cursor; }
public EntryFilteringCursor list( DN dn, AliasDerefMode aliasDerefMode, Set<AttributeTypeOptions> returningAttributes, long sizeLimit, int timeLimit ) throws Exception { OperationManager operationManager = directoryService.getOperationManager(); ListOperationContext listOperationContext = new ListOperationContext( this, dn, returningAttributes ); listOperationContext.setSizeLimit( sizeLimit ); listOperationContext.setTimeLimit( timeLimit ); listOperationContext.setAliasDerefMode( aliasDerefMode ); return operationManager.list( listOperationContext ); }
public final void modify( ModifyOperationContext modifyContext ) throws Exception { store.modify( modifyContext.getDn(), modifyContext.getModItems() ); }
/** * {@inheritDoc} */ public void add( ServerEntry entry, LogChange log ) throws Exception { AddOperationContext opContext = new AddOperationContext( this, entry ); opContext.setLogChange( log ); OperationManager operationManager = directoryService.getOperationManager(); operationManager.add( opContext ); }
@Override public void delete( NextInterceptor next, DeleteOperationContext deleteContext ) throws Exception { Operation op = operationFactory.newDelete( deleteContext.getDn() ); op.execute( nexus, store, deleteContext.getSession() ); }
/** * {@inheritDoc} */ public void delete( DN dn, LogChange log ) throws Exception { DeleteOperationContext opContext = new DeleteOperationContext( this, dn ); opContext.setLogChange( log ); OperationManager operationManager = directoryService.getOperationManager(); operationManager.delete( opContext ); }
private void ensureNotDeleted( OperationContext opContext, ServerEntry entry ) throws Exception { if ( isDeleted( entry ) ) { LdapNameNotFoundException e = new LdapNameNotFoundException( "Deleted entry: " + opContext.getDn().getUpName() ); e.setResolvedName( nexus.getMatchedName( new GetMatchedNameOperationContext( opContext.getSession(), opContext.getDn() ) ) ); throw e; } }
/** * {@inheritDoc} */ public ClonedServerEntry lookup( DN dn ) throws Exception { OperationManager operationManager = directoryService.getOperationManager(); return operationManager.lookup( new LookupOperationContext( this, dn ) ); }
/** * {@inheritDoc} */ public void moveAndRename( DN dn, DN newParent, RDN newRdn, boolean deleteOldRdn, LogChange log ) throws Exception { MoveAndRenameOperationContext opContext = new MoveAndRenameOperationContext( this, dn, newParent, newRdn, deleteOldRdn ); opContext.setLogChange( log ); OperationManager operationManager = directoryService.getOperationManager(); operationManager.moveAndRename( opContext ); }
/** * {@inheritDoc} */ public void rename( DN dn, RDN newRdn, boolean deleteOldRdn, LogChange log ) throws Exception { RenameOperationContext opContext = new RenameOperationContext( this, dn, newRdn, deleteOldRdn ); opContext.setLogChange( log ); OperationManager operationManager = directoryService.getOperationManager(); operationManager.rename( opContext ); }
/** * {@inheritDoc} */ public void move( DN dn, DN newParent, LogChange log ) throws Exception { MoveOperationContext opContext = new MoveOperationContext( this, dn, newParent ); opContext.setLogChange( log ); OperationManager operationManager = directoryService.getOperationManager(); operationManager.move( opContext ); }
public EntryFilteringCursor list(ListOperationContext opContext) { log.debug("list()::opContext=" + opContext.toString()); return null; }//list
public void unbind(UnbindOperationContext opContext) throws Exception { log.debug("unbind()::opContext=" + opContext.toString()); }//unbind
public void unbind() throws Exception { OperationManager operationManager = directoryService.getOperationManager(); operationManager.unbind( new UnbindOperationContext( this ) ); }
/** * {@inheritDoc} */ public ClonedServerEntry lookup( DN dn, String[] attrId ) throws Exception { OperationManager operationManager = directoryService.getOperationManager(); return operationManager.lookup( new LookupOperationContext( this, dn, attrId ) ); }