/** * {@inheritDoc} */ @Override public CodecControl<SyncRequestValue> newCodecControl( SyncRequestValue control ) { return new SyncRequestValueDecorator( codec, control ); } }
/** * {@inheritDoc} */ @Override public CodecControl<SyncRequestValue> newCodecControl() { return new SyncRequestValueDecorator( codec ); }
/** * {@inheritDoc} */ @Override public CodecControl<SyncRequestValue> newCodecControl() { return new SyncRequestValueDecorator( codec ); }
/** * {@inheritDoc} */ @Override public CodecControl<SyncRequestValue> newCodecControl( SyncRequestValue control ) { return new SyncRequestValueDecorator( codec, control ); } }
/** * {@inheritDoc} */ @Override public CodecControl<SyncRequestValue> newCodecControl() { return new SyncRequestValueDecorator( codec ); }
/** * {@inheritDoc} */ @Override public CodecControl<SyncRequestValue> newCodecControl( SyncRequestValue control ) { return new SyncRequestValueDecorator( codec, control ); } }
SyncRequestValue syncReq = new SyncRequestValueDecorator( directoryService.getLdapCodecService() );
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 !"); } }
control = new SyncRequestValueDecorator( getDirectoryService().getLdapCodecService() );