public class DefaultInStoreService extends 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() |
List<PointOfServiceModel> |
getPointsOfServiceForCurrentUser() |
protected InStoreSiteSelectorStrategy |
getSiteSelectorStrategy()
Returns injected inStoreSiteSelectorStrategy.
|
List<BaseSiteModel> |
getSitesForCurrentUser() |
protected UserService |
getUserService()
Returns injected userService.
|
void |
setSiteSelectorStrategy(InStoreSiteSelectorStrategy siteSelectorStrategy) |
void |
setUserService(UserService userService) |
public EmployeeModel getCurrentEmployee() throws IllegalStateException
getCurrentEmployee in interface InStoreServiceIllegalStateException - if the current user is not an Employee.public BaseStoreModel getBaseStoreForCurrentUser() throws IllegalStateException
getBaseStoreForCurrentUser in interface InStoreServiceIllegalStateException - if the current user is not an Employee or if no BaseStore is assigned to it.public BaseSiteModel getDefaultSiteForCurrentUser() throws IllegalStateException
getDefaultSiteForCurrentUser in interface InStoreServiceIllegalStateException - 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 IllegalStateException
getDefaultPointOfServiceForCurrentUser in interface InStoreServiceIllegalStateException - 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 List<BaseSiteModel> getSitesForCurrentUser() throws IllegalStateException
getSitesForCurrentUser in interface InStoreServiceIllegalStateException - if the current user is not an Employee or if no BaseStore is assigned to it.public List<PointOfServiceModel> getPointsOfServiceForCurrentUser() throws IllegalStateException
getPointsOfServiceForCurrentUser in interface InStoreServiceIllegalStateException - 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 © 2017 SAP SE. All Rights Reserved.