Search in sources :

Example 1 with SyncDeltaBuilder

use of org.identityconnectors.framework.common.objects.SyncDeltaBuilder in project syncope by apache.

the class ConnectorFacadeProxy method filteredReconciliation.

@Transactional
@Override
public void filteredReconciliation(final ObjectClass objectClass, final ReconFilterBuilder filterBuilder, final SyncResultsHandler handler, final OperationOptions options) {
    Filter filter = null;
    OperationOptions actualOptions = options;
    if (filterBuilder != null) {
        filter = filterBuilder.build();
        actualOptions = filterBuilder.build(actualOptions);
    }
    search(objectClass, filter, object -> handler.handle(new SyncDeltaBuilder().setObject(object).setUid(object.getUid()).setDeltaType(SyncDeltaType.CREATE_OR_UPDATE).setToken(new SyncToken("")).build()), actualOptions);
}
Also used : OperationOptions(org.identityconnectors.framework.common.objects.OperationOptions) SyncDeltaBuilder(org.identityconnectors.framework.common.objects.SyncDeltaBuilder) SyncToken(org.identityconnectors.framework.common.objects.SyncToken) Filter(org.identityconnectors.framework.common.objects.filter.Filter) Transactional(org.springframework.transaction.annotation.Transactional)

Aggregations

OperationOptions (org.identityconnectors.framework.common.objects.OperationOptions)1 SyncDeltaBuilder (org.identityconnectors.framework.common.objects.SyncDeltaBuilder)1 SyncToken (org.identityconnectors.framework.common.objects.SyncToken)1 Filter (org.identityconnectors.framework.common.objects.filter.Filter)1 Transactional (org.springframework.transaction.annotation.Transactional)1