@Override public void action( SortRequestContainer container ) throws DecoderException { BerValue value = container.getCurrentTLV().getValue(); String matchingRuleOid = Strings.utf8ToString( value.getData() ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05309_MATCHING_RULE_OID, matchingRuleOid ) ); } container.getCurrentKey().setMatchingRuleId( matchingRuleOid ); container.setGrammarEndAllowed( true ); }
@Override public void action( SortRequestContainer container ) throws DecoderException { BerValue value = container.getCurrentTLV().getValue(); String matchingRuleOid = Strings.utf8ToString( value.getData() ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05309_MATCHING_RULE_OID, matchingRuleOid ) ); } container.getCurrentKey().setMatchingRuleId( matchingRuleOid ); container.setGrammarEndAllowed( true ); }
@Override public void action( SortRequestContainer container ) throws DecoderException { BerValue value = container.getCurrentTLV().getValue(); String matchingRuleOid = Strings.utf8ToString( value.getData() ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05309_MATCHING_RULE_OID, matchingRuleOid ) ); } container.getCurrentKey().setMatchingRuleId( matchingRuleOid ); container.setGrammarEndAllowed( true ); }
@Override public void action( SortRequestContainer container ) throws DecoderException { BerValue value = container.getCurrentTLV().getValue(); String atDesc = Strings.utf8ToString( value.getData() ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05307_ATTRIBUTE_TYPE_DESC, atDesc ) ); } SortKey sk = new SortKey( atDesc ); container.setCurrentKey( sk ); container.getControl().addSortKey( sk ); container.setGrammarEndAllowed( true ); }
@Override public void action( SortRequestContainer container ) throws DecoderException { BerValue value = container.getCurrentTLV().getValue(); String atDesc = Strings.utf8ToString( value.getData() ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05307_ATTRIBUTE_TYPE_DESC, atDesc ) ); } SortKey sk = new SortKey( atDesc ); container.setCurrentKey( sk ); container.getControl().addSortKey( sk ); container.setGrammarEndAllowed( true ); }
@Override public void action( SortRequestContainer container ) throws DecoderException { BerValue value = container.getCurrentTLV().getValue(); try { boolean reverseOrder = BooleanDecoder.parse( value ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05308_REVERSE_ORDER, reverseOrder ) ); } container.getCurrentKey().setReverseOrder( reverseOrder ); container.setGrammarEndAllowed( true ); } catch ( BooleanDecoderException bde ) { throw new DecoderException( bde.getMessage(), bde ); } }
@Override public void action( SortRequestContainer container ) throws DecoderException { BerValue value = container.getCurrentTLV().getValue(); String atDesc = Strings.utf8ToString( value.getData() ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05307_ATTRIBUTE_TYPE_DESC, atDesc ) ); } SortKey sk = new SortKey( atDesc ); container.setCurrentKey( sk ); container.getControl().addSortKey( sk ); container.setGrammarEndAllowed( true ); }
@Override public void action( SortRequestContainer container ) throws DecoderException { BerValue value = container.getCurrentTLV().getValue(); try { boolean reverseOrder = BooleanDecoder.parse( value ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05308_REVERSE_ORDER, reverseOrder ) ); } container.getCurrentKey().setReverseOrder( reverseOrder ); container.setGrammarEndAllowed( true ); } catch ( BooleanDecoderException bde ) { throw new DecoderException( bde.getMessage(), bde ); } }
@Override public void action( SortRequestContainer container ) throws DecoderException { BerValue value = container.getCurrentTLV().getValue(); try { boolean reverseOrder = BooleanDecoder.parse( value ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05308_REVERSE_ORDER, reverseOrder ) ); } container.getCurrentKey().setReverseOrder( reverseOrder ); container.setGrammarEndAllowed( true ); } catch ( BooleanDecoderException bde ) { throw new DecoderException( bde.getMessage(), bde ); } }