Search in sources :

Example 1 with IRefreshService

use of org.jowidgets.cap.common.api.service.IRefreshService in project jo-client-platform by jo-source.

the class BeanSelectionProviderRefreshInterceptor method afterExecutionSuccess.

@Override
public void afterExecutionSuccess(final IExecutionContext executionContext, final RESULT_TYPE result) {
    final IRefreshService refreshService = getRefreshService();
    if (refreshService != null) {
        final BeanListRefreshDelegate<BEAN_TYPE> refreshDelegate = new BeanListRefreshDelegate<BEAN_TYPE>(getListModel(), CapUiToolkit.defaultExceptionConverter(), BeanExecutionPolicy.BATCH, refreshService);
        refreshDelegate.refresh(lastSelection.getSelection());
    }
}
Also used : IRefreshService(org.jowidgets.cap.common.api.service.IRefreshService)

Example 2 with IRefreshService

use of org.jowidgets.cap.common.api.service.IRefreshService in project jo-client-platform by jo-source.

the class RefreshServiceBuilderImpl method build.

@Override
public IRefreshService build() {
    final IAdapterFactoryProvider afp = CapServiceToolkit.adapterFactoryProvider();
    final IAdapterFactory<IRefreshService, ISyncRefreshService> adapterFactory = afp.refresh();
    return adapterFactory.createAdapter(buildSyncService());
}
Also used : ISyncRefreshService(org.jowidgets.cap.service.api.adapter.ISyncRefreshService) IAdapterFactoryProvider(org.jowidgets.cap.service.api.adapter.IAdapterFactoryProvider) IRefreshService(org.jowidgets.cap.common.api.service.IRefreshService)

Aggregations

IRefreshService (org.jowidgets.cap.common.api.service.IRefreshService)2 IAdapterFactoryProvider (org.jowidgets.cap.service.api.adapter.IAdapterFactoryProvider)1 ISyncRefreshService (org.jowidgets.cap.service.api.adapter.ISyncRefreshService)1