public class DefaultImpersonationService extends java.lang.Object implements ImpersonationService
ImpersonationService.Executor in the context of user,
currency, language, site, etc.ImpersonationService.Executor<R,T extends java.lang.Throwable>, ImpersonationService.Nothing| Constructor and Description |
|---|
DefaultImpersonationService() |
public <R,T extends java.lang.Throwable> R executeInContext(ImpersonationContext context, ImpersonationService.Executor<R,T> wrapper) throws T extends java.lang.Throwable
ImpersonationServiceexecuteInContext in interface ImpersonationServiceR - The type of the return valueT - The type of the exception thrown by the wrappercontext - The context to execute inwrapper - The code to execute in that contextT - The exception thrown by the wrapper if an error occursT extends java.lang.Throwableprotected void configureSession(ImpersonationContext context)
context - The context to impersonateprotected BaseSiteModel determineSessionBaseSite(ImpersonationContext context)
context - The context to impersonateprotected CurrencyModel determineSessionCurrency(ImpersonationContext context)
context - The context to impersonateprotected LanguageModel determineSessionLanguage(ImpersonationContext context)
context - The context to impersonateprotected java.util.Collection<CatalogVersionModel> determineSessionCatalogVersions(ImpersonationContext context)
context - The context to impersonateprotected UserTaxGroup determineSessionTaxGroup(ImpersonationContext context)
context - The context to impersonateprotected UserModel determineSessionUser(ImpersonationContext context)
context - The context to impersonateprotected java.util.Set<CatalogVersionModel> getSessionCatalogVersionsForUser(UserModel user)
user - The userprotected java.util.Collection<CatalogVersionModel> getActiveCatalogVersions()
protected SessionService getSessionService()
public void setSessionService(SessionService sessionService)
protected CatalogVersionService getCatalogVersionService()
public void setCatalogVersionService(CatalogVersionService catalogVersionService)
protected UserService getUserService()
public void setUserService(UserService userService)
protected SearchRestrictionService getSearchRestrictionService()
public void setSearchRestrictionService(SearchRestrictionService searchRestrictionService)
protected FlexibleSearchService getFlexibleSearchService()
public void setFlexibleSearchService(FlexibleSearchService flexibleSearchService)
protected CommonI18NService getI18nService()
public void setI18nService(CommonI18NService i18nService)
protected BaseStoreService getBaseStoreService()
public void setBaseStoreService(BaseStoreService baseStoreService)
protected BaseSiteService getBaseSiteService()
public void setBaseSiteService(BaseSiteService baseSiteService)
Copyright © 2018 SAP SE. All Rights Reserved.