/** * {@inheritDoc} */ @Override public CodecControl<SyncRequestValue> newCodecControl( SyncRequestValue control ) { return new SyncRequestValueDecorator( codec, control ); } }
/** * {@inheritDoc} */ @Override public void setReloadHint( boolean reloadHint ) { getDecorated().setReloadHint( reloadHint ); }
computeLength(); ByteBuffer buffer = ByteBuffer.allocate( valueLength ); buffer.put( BerValue.getBytes( getMode().getValue() ) ); if ( getCookie() != null ) BerValue.encode( buffer, getCookie() ); if ( isReloadHint() ) BerValue.encode( buffer, isReloadHint() );
buffer.put( BerValue.getBytes( getMode().getValue() ) ); if ( getCookie() != null ) BerValue.encode( buffer, getCookie() ); if ( isReloadHint() ) BerValue.encode( buffer, isReloadHint() );
if ( getCookie() != null ) syncRequestValueLength += 1 + TLV.getNbBytes( getCookie().length ) + getCookie().length; if ( isReloadHint() )
public static Control getSearchContinuationControl(LdapServerType serverType) throws LscServiceConfigurationException { switch(serverType) { case OPEN_LDAP: case APACHE_DS: DefaultLdapCodecService codec = new DefaultLdapCodecService(); SyncRequestValueDecorator syncControl = new SyncRequestValueDecorator(codec); syncControl.setMode(SynchronizationModeEnum.REFRESH_AND_PERSIST); return syncControl; case OPEN_DS: case OPEN_DJ: case ORACLE_DS: case SUN_DS: case NETSCAPE_DS: case NOVELL_E_DIRECTORY: PersistentSearchImpl searchControl = new PersistentSearchImpl(); searchControl.setCritical(true); searchControl.setChangesOnly(true); searchControl.setReturnECs(false); searchControl.setChangeTypes(PersistentSearch.CHANGE_TYPES_MAX); return searchControl; case ACTIVE_DIRECTORY: return new AbstractControl("1.2.840.113556.1.4.528", true) {}; default: throw new LscServiceConfigurationException("Unknown or unsupported server type !"); } }
computeLength(); ByteBuffer buffer = ByteBuffer.allocate( valueLength ); buffer.put( BerValue.getBytes( getMode().getValue() ) ); if ( getCookie() != null ) BerValue.encode( buffer, getCookie() ); if ( isReloadHint() ) BerValue.encode( buffer, isReloadHint() );
buffer.put( BerValue.getBytes( getMode().getValue() ) ); if ( getCookie() != null ) BerValue.encode( buffer, getCookie() ); if ( isReloadHint() ) BerValue.encode( buffer, isReloadHint() );
if ( getCookie() != null ) syncRequestValueLength += 1 + TLV.getNbBytes( getCookie().length ) + getCookie().length; if ( isReloadHint() )
computeLength(); ByteBuffer buffer = ByteBuffer.allocate( valueLength ); buffer.put( BerValue.getBytes( getMode().getValue() ) ); if ( getCookie() != null ) BerValue.encode( buffer, getCookie() ); if ( isReloadHint() ) BerValue.encode( buffer, isReloadHint() );
/** * {@inheritDoc} */ @Override public CodecControl<SyncRequestValue> newCodecControl() { return new SyncRequestValueDecorator( codec ); }
buffer.put( BerValue.getBytes( getMode().getValue() ) ); if ( getCookie() != null ) BerValue.encode( buffer, getCookie() ); if ( isReloadHint() ) BerValue.encode( buffer, isReloadHint() );
/** * {@inheritDoc} */ @Override public SynchronizationModeEnum getMode() { return getDecorated().getMode(); }
if ( getCookie() != null ) syncRequestValueLength += 1 + TLV.getNbBytes( getCookie().length ) + getCookie().length; if ( isReloadHint() )
/** * {@inheritDoc} */ @Override public CodecControl<SyncRequestValue> newCodecControl( SyncRequestValue control ) { return new SyncRequestValueDecorator( codec, control ); } }
/** * {@inheritDoc} */ @Override public boolean isReloadHint() { return getDecorated().isReloadHint(); }
/** * {@inheritDoc} */ @Override public CodecControl<SyncRequestValue> newCodecControl() { return new SyncRequestValueDecorator( codec ); }
/** * {@inheritDoc} */ @Override public boolean isReloadHint() { return getDecorated().isReloadHint(); }
/** * {@inheritDoc} */ @Override public CodecControl<SyncRequestValue> newCodecControl() { return new SyncRequestValueDecorator( codec ); }
/** * {@inheritDoc} */ @Override public void setMode( SynchronizationModeEnum mode ) { getDecorated().setMode( mode ); }