Class DefaultLocalViewExecutor
- java.lang.Object
-
- de.hybris.platform.webservicescommons.util.impl.DefaultLocalViewExecutor
-
- All Implemented Interfaces:
LocalViewExecutor
public class DefaultLocalViewExecutor extends java.lang.Object implements LocalViewExecutor
Default implementation of LocalViewExecutor.
-
-
Constructor Summary
Constructors Constructor Description DefaultLocalViewExecutor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> TexecuteInLocalView(java.util.function.Supplier<T> action)Executes action in local view.<T> TexecuteWithAllCatalogs(java.util.function.Supplier<T> action)Executes action in local view which has all catalogs set in session.CatalogVersionServicegetCatalogVersionService()SearchRestrictionServicegetSearchRestrictionService()SessionServicegetSessionService()protected voidsetAllCatalogs()voidsetCatalogVersionService(CatalogVersionService catalogVersionService)voidsetSearchRestrictionService(SearchRestrictionService searchRestrictionService)voidsetSessionService(SessionService sessionService)
-
-
-
Method Detail
-
executeInLocalView
public <T> T executeInLocalView(java.util.function.Supplier<T> action)
Description copied from interface:LocalViewExecutorExecutes action in local view.- Specified by:
executeInLocalViewin interfaceLocalViewExecutor- Parameters:
action- to be executed- Returns:
- result of action execution
-
executeWithAllCatalogs
public <T> T executeWithAllCatalogs(java.util.function.Supplier<T> action)
Description copied from interface:LocalViewExecutorExecutes action in local view which has all catalogs set in session.- Specified by:
executeWithAllCatalogsin interfaceLocalViewExecutor- Parameters:
action- to be executed- Returns:
- result of action execution
-
setAllCatalogs
protected void setAllCatalogs()
-
setCatalogVersionService
public void setCatalogVersionService(CatalogVersionService catalogVersionService)
-
getCatalogVersionService
public CatalogVersionService getCatalogVersionService()
-
setSearchRestrictionService
public void setSearchRestrictionService(SearchRestrictionService searchRestrictionService)
-
getSearchRestrictionService
public SearchRestrictionService getSearchRestrictionService()
-
setSessionService
public void setSessionService(SessionService sessionService)
-
getSessionService
public SessionService getSessionService()
-
-