public void action( PersistentSearchContainer container ) throws DecoderException { Value value = container.getCurrentTLV().getValue(); try { boolean changesOnly = BooleanDecoder.parse( value ); if ( IS_DEBUG ) { LOG.debug( "changesOnly = " + changesOnly ); } container.getPersistentSearchDecorator().setChangesOnly( changesOnly ); } catch ( BooleanDecoderException e ) { String msg = I18n.err( I18n.ERR_04052 ); LOG.error( msg, e ); throw new DecoderException( msg ); } } } );
public void action( SyncDoneValueContainer container ) throws DecoderException { Value value = container.getCurrentTLV().getValue(); try { boolean refreshDeletes = BooleanDecoder.parse( value ); if ( IS_DEBUG ) { LOG.debug( "refreshDeletes = {}", refreshDeletes ); } container.getSyncDoneValueControl().setRefreshDeletes( refreshDeletes ); // the END transition for grammar container.setGrammarEndAllowed( true ); } catch ( BooleanDecoderException be ) { String msg = I18n.err( I18n.ERR_04024 ); LOG.error( msg, be ); throw new DecoderException( msg ); } } };
public void action( PersistentSearchContainer container ) throws DecoderException { Value value = container.getCurrentTLV().getValue(); try { boolean returnECs = BooleanDecoder.parse( value ); if ( IS_DEBUG ) { LOG.debug( "returnECs = " + returnECs ); } container.getPersistentSearchDecorator().setReturnECs( returnECs ); // We can have an END transition container.setGrammarEndAllowed( true ); } catch ( BooleanDecoderException e ) { String msg = I18n.err( I18n.ERR_04053 ); LOG.error( msg, e ); throw new DecoderException( msg ); } } } );
public void action( SyncInfoValueContainer container ) throws DecoderException { SyncInfoValueDecorator control = container.getSyncInfoValueControl(); Value value = container.getCurrentTLV().getValue(); try { boolean refreshDeletes = BooleanDecoder.parse( value ); if ( IS_DEBUG ) { LOG.debug( "refreshDeletes = {}", refreshDeletes ); } control.setRefreshDeletes( refreshDeletes ); container.setSyncInfoValueControl( control ); } catch ( BooleanDecoderException be ) { String msg = I18n.err( I18n.ERR_04024 ); LOG.error( msg, be ); throw new DecoderException( msg ); } } } );
public void action( SyncRequestValueContainer container ) throws DecoderException { Value value = container.getCurrentTLV().getValue(); try { boolean reloadHint = BooleanDecoder.parse(value); if ( IS_DEBUG ) { LOG.debug( "reloadHint = " + reloadHint ); } container.getSyncRequestValueControl().setReloadHint( reloadHint ); // We can have an END transition container.setGrammarEndAllowed( true ); } catch ( BooleanDecoderException e ) { String msg = I18n.err( I18n.ERR_04029 ); LOG.error( msg, e ); throw new DecoderException( msg ); } } } );
public void action( SyncInfoValueContainer container ) throws DecoderException { SyncInfoValueDecorator control = container.getSyncInfoValueControl(); Value value = container.getCurrentTLV().getValue(); try { boolean refreshDeletes = BooleanDecoder.parse( value ); if ( IS_DEBUG ) { LOG.debug( "refreshDeletes = {}", refreshDeletes ); } control.setRefreshDeletes( refreshDeletes ); container.setSyncInfoValueControl( control ); } catch ( BooleanDecoderException be ) { String msg = I18n.err( I18n.ERR_04026 ); LOG.error( msg, be ); throw new DecoderException( msg ); } } } );
public void action( SyncRequestValueContainer container ) throws DecoderException { Value value = container.getCurrentTLV().getValue(); try { boolean reloadHint = BooleanDecoder.parse( value ); if ( IS_DEBUG ) { LOG.debug( "reloadHint = " + reloadHint ); } container.getSyncRequestValueControl().setReloadHint( reloadHint ); // We can have an END transition container.setGrammarEndAllowed( true ); } catch ( BooleanDecoderException e ) { String msg = I18n.err( I18n.ERR_04029 ); LOG.error( msg, e ); throw new DecoderException( msg ); } } } );
public void action( SyncInfoValueContainer container ) throws DecoderException { SyncInfoValueDecorator control = container.getSyncInfoValueControl(); Value value = container.getCurrentTLV().getValue(); try { boolean refreshDone = BooleanDecoder.parse( value ); if ( IS_DEBUG ) { LOG.debug( "refreshDone = {}", refreshDone ); } control.setRefreshDone( refreshDone ); container.setSyncInfoValueControl( control ); // the END transition for grammar container.setGrammarEndAllowed( true ); } catch ( BooleanDecoderException be ) { String msg = I18n.err( I18n.ERR_04025 ); LOG.error( msg, be ); throw new DecoderException( msg ); } // We can have an END transition container.setGrammarEndAllowed( true ); } } );
public void action( SyncInfoValueContainer container ) throws DecoderException { SyncInfoValueDecorator control = container.getSyncInfoValueControl(); Value value = container.getCurrentTLV().getValue(); try { boolean refreshDone = BooleanDecoder.parse( value ); if ( IS_DEBUG ) { LOG.debug( "refreshDone = {}", refreshDone ); } control.setRefreshDone( refreshDone ); container.setSyncInfoValueControl( control ); // the END transition for grammar container.setGrammarEndAllowed( true ); } catch ( BooleanDecoderException be ) { String msg = I18n.err( I18n.ERR_04025 ); LOG.error( msg, be ); throw new DecoderException( msg ); } // We can have an END transition container.setGrammarEndAllowed( true ); } } );
public void action( SyncInfoValueContainer container ) throws DecoderException { SyncInfoValueDecorator control = container.getSyncInfoValueControl(); Value value = container.getCurrentTLV().getValue(); try { boolean refreshDone = BooleanDecoder.parse( value ); if ( IS_DEBUG ) { LOG.debug( "refreshDone = {}", refreshDone ); } control.setRefreshDone( refreshDone ); container.setSyncInfoValueControl( control ); // the END transition for grammar container.setGrammarEndAllowed( true ); } catch ( BooleanDecoderException be ) { String msg = I18n.err( I18n.ERR_04025 ); LOG.error( msg, be ); throw new DecoderException( msg ); } // We can have an END transition container.setGrammarEndAllowed( true ); } } );
public void action( SyncInfoValueContainer container ) throws DecoderException { SyncInfoValueDecorator control = container.getSyncInfoValueControl(); Value value = container.getCurrentTLV().getValue(); try { boolean refreshDone = BooleanDecoder.parse( value ); if ( IS_DEBUG ) { LOG.debug( "refreshDone = {}", refreshDone ); } control.setRefreshDone( refreshDone ); container.setSyncInfoValueControl( control ); // the END transition for grammar container.setGrammarEndAllowed( true ); } catch ( BooleanDecoderException be ) { String msg = I18n.err( I18n.ERR_04025 ); LOG.error( msg, be ); throw new DecoderException( msg ); } // We can have an END transition container.setGrammarEndAllowed( true ); } } );
extensibleMatchFilter.setDnAttributes( BooleanDecoder.parse( value ) );
modifyDnRequest.setDeleteOldRdn( BooleanDecoder.parse( value ) );
public void action( LdapMessageContainer<SearchRequestDecorator> container ) throws DecoderException { SearchRequest searchRequest = container.getMessage().getDecorated(); TLV tlv = container.getCurrentTLV(); // We get the value. If it's a 0, it's a FALSE. If it's // a FF, it's a TRUE. Any other value should be an error, // but we could relax this constraint. So if we have // something // which is not 0, it will be interpreted as TRUE, but we // will generate a warning. Value value = tlv.getValue(); try { searchRequest.setTypesOnly( BooleanDecoder.parse( value ) ); } catch ( BooleanDecoderException bde ) { LOG.error( I18n .err( I18n.ERR_04105, Strings.dumpBytes(value.getData()), bde.getMessage() ) ); throw new DecoderException( bde.getMessage() ); } if ( IS_DEBUG ) { LOG.debug( "The search will return {}", ( searchRequest.getTypesOnly() ? "only attributs type" : "attributes types and values" ) ); } } } );
control.setCritical( BooleanDecoder.parse( value ) );
public void action( SubentriesContainer container ) throws DecoderException { TLV tlv = container.getCurrentTLV(); // We get the value. If it's a 0, it's a FALSE. If it's // a FF, it's a TRUE. Any other value should be an error, // but we could relax this constraint. So if we have // something // which is not 0, it will be interpreted as TRUE, but we // will generate a warning. Value value = tlv.getValue(); try { container.getSubentriesControl().setVisibility( BooleanDecoder.parse( value ) ); // We can have an END transition container.setGrammarEndAllowed( true ); } catch ( BooleanDecoderException bde ) { LOG.error( I18n.err( I18n.ERR_04054, Strings.dumpBytes( value.getData()), bde.getMessage() ) ); // This will generate a PROTOCOL_ERROR throw new DecoderException( bde.getMessage() ); } } } );