@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(); 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 ); }
SortKey sk = new SortKey( SchemaConstants.ENTRY_DN_AT, "2.5.13.1" ); SortRequest ctrl = new SortRequestControlImpl(); ctrl.addSortKey( sk );
SortKey sk = new SortKey( SchemaConstants.ENTRY_DN_AT, "2.5.13.1" );
SortKey sk = new SortKey( SchemaConstants.ENTRY_DN_AT );
for (org.ldaptive.control.SortKey k : c.getSortKeys()) { ((SortRequestControlImpl) ctl).addSortKey( new SortKey(k.getAttributeDescription(), k.getMatchingRuleId(), k.getReverseOrder()));