Class DefaultSessionSearchRestrictionDisabler
java.lang.Object
de.hybris.platform.cms2.common.service.impl.DefaultSessionSearchRestrictionDisabler
- All Implemented Interfaces:
SessionSearchRestrictionsDisabler
public class DefaultSessionSearchRestrictionDisabler
extends Object
implements SessionSearchRestrictionsDisabler
Default implementation of
SessionSearchRestrictionsDisabler by calling
SearchRestrictionService.disableSearchRestrictions() before executing the supplier code and re-enabling the search
restrictions upon supplier completion.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TExecute the supplier function while the search restrictions are disabled.protected SearchRestrictionServiceprotected SessionServicevoidsetSearchRestrictionService(SearchRestrictionService searchRestrictionService) voidsetSessionService(SessionService sessionService)
-
Constructor Details
-
DefaultSessionSearchRestrictionDisabler
public DefaultSessionSearchRestrictionDisabler()
-
-
Method Details
-
execute
Description copied from interface:SessionSearchRestrictionsDisablerExecute the supplier function while the search restrictions are disabled.- Specified by:
executein interfaceSessionSearchRestrictionsDisabler- Parameters:
supplier- - the function to be executed- Returns:
- data returned by the supplier
-
getSearchRestrictionService
-
setSearchRestrictionService
-
getSessionService
-
setSessionService
-