public class DefaultInStoreService extends java.lang.Object implements InStoreService
InStoreService, which uses a InStoreSiteSelectorStrategy to determine
default site for the current EmployeeModel.| Constructor and Description |
|---|
DefaultInStoreService() |
| Modifier and Type | Method and Description |
|---|---|
BaseStoreModel |
getBaseStoreForCurrentUser() |
EmployeeModel |
getCurrentEmployee() |
PointOfServiceModel |
getDefaultPointOfServiceForCurrentUser() |
BaseSiteModel |
getDefaultSiteForCurrentUser() |
java.util.List<PointOfServiceModel> |
getPointsOfServiceForCurrentUser() |
protected InStoreSiteSelectorStrategy |
getSiteSelectorStrategy()
Returns injected inStoreSiteSelectorStrategy.
|
java.util.List<BaseSiteModel> |
getSitesForCurrentUser() |
protected UserService |
getUserService()
Returns injected userService.
|
void |
setSiteSelectorStrategy(InStoreSiteSelectorStrategy siteSelectorStrategy) |
void |
setUserService(UserService userService) |
public EmployeeModel getCurrentEmployee() throws java.lang.IllegalStateException
getCurrentEmployee in interface InStoreServicejava.lang.IllegalStateException - if the current user is not an Employee.public BaseStoreModel getBaseStoreForCurrentUser() throws java.lang.IllegalStateException
getBaseStoreForCurrentUser in interface InStoreServicejava.lang.IllegalStateException - if the current user is not an Employee or if no BaseStore is assigned to it.public BaseSiteModel getDefaultSiteForCurrentUser() throws java.lang.IllegalStateException
getDefaultSiteForCurrentUser in interface InStoreServicejava.lang.IllegalStateException - if the current user is not an Employee or if no BaseStore is assigned to it or if no BaseSite is set at
the BaseStore.public PointOfServiceModel getDefaultPointOfServiceForCurrentUser() throws java.lang.IllegalStateException
getDefaultPointOfServiceForCurrentUser in interface InStoreServicejava.lang.IllegalStateException - if the current user is not an Employee or if no BaseStore is assigned to it or if no PointOfService is
set at the BaseStore.public java.util.List<BaseSiteModel> getSitesForCurrentUser() throws java.lang.IllegalStateException
getSitesForCurrentUser in interface InStoreServicejava.lang.IllegalStateException - if the current user is not an Employee or if no BaseStore is assigned to it.public java.util.List<PointOfServiceModel> getPointsOfServiceForCurrentUser() throws java.lang.IllegalStateException
getPointsOfServiceForCurrentUser in interface InStoreServicejava.lang.IllegalStateException - if the current user is not an Employee or if no BaseStore is assigned to it.protected UserService getUserService()
UserServicepublic void setUserService(UserService userService)
protected InStoreSiteSelectorStrategy getSiteSelectorStrategy()
InStoreSiteSelectorStrategypublic void setSiteSelectorStrategy(InStoreSiteSelectorStrategy siteSelectorStrategy)
Copyright © 2018 SAP SE. All Rights Reserved.