public class DefaultSessionSearchRestrictionDisabler extends java.lang.Object implements SessionSearchRestrictionsDisabler
SessionSearchRestrictionsDisabler by calling
SearchRestrictionService.disableSearchRestrictions() before executing the supplier code and re-enabling the search
restrictions upon supplier completion.| Constructor and Description |
|---|
DefaultSessionSearchRestrictionDisabler() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
execute(java.util.function.Supplier<T> supplier)
Execute the supplier function while the search restrictions are disabled.
|
protected SearchRestrictionService |
getSearchRestrictionService() |
protected SessionService |
getSessionService() |
void |
setSearchRestrictionService(SearchRestrictionService searchRestrictionService) |
void |
setSessionService(SessionService sessionService) |
public DefaultSessionSearchRestrictionDisabler()
public <T> T execute(java.util.function.Supplier<T> supplier)
SessionSearchRestrictionsDisablerexecute in interface SessionSearchRestrictionsDisablersupplier - - the function to be executedprotected SearchRestrictionService getSearchRestrictionService()
public void setSearchRestrictionService(SearchRestrictionService searchRestrictionService)
protected SessionService getSessionService()
public void setSessionService(SessionService sessionService)
Copyright © 2018 SAP SE. All Rights Reserved.