public class DefaultB2BCustomerService extends AbstractBusinessService implements B2BCustomerService<B2BCustomerModel,B2BUnitModel>
B2BCustomerServiceAbstractService.SerializableDTOmodelService, sessionService, txManagertenant| Constructor and Description |
|---|
DefaultB2BCustomerService() |
getModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManagerafterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, setTenantScope, writeReplacepublic void addMember(PrincipalModel member, PrincipalGroupModel group)
addMember in interface B2BCustomerService<B2BCustomerModel,B2BUnitModel>member - A user to be added to a group, like B2BCustomerModel for examplegroup - A user group to which a member is going to be added, like a B2BUnitModel for examplepublic void setParentB2BUnit(B2BCustomerModel member, B2BUnitModel parentB2BUnit)
B2BCustomerServiceB2BUnitService.updateBranchInSession(de.hybris.platform.servicelayer.session.Session, de.hybris.platform.core.model.user.UserModel)
after calling this method to make sure the session breach is refreshed.setParentB2BUnit in interface B2BCustomerService<B2BCustomerModel,B2BUnitModel>member - the customer who will be assigned to the parent unitparentB2BUnit - the parent b2b unitpublic B2BCustomerModel getUserForUID(String userId)
B2BCustomerServiceUserService.getUserForUID(String, Class) if the user was
not found return null rather than throwing up
de.hybris.platform.servicelayer.exceptions.UnknownIdentifierExceptiongetUserForUID in interface B2BCustomerService<B2BCustomerModel,B2BUnitModel>userId - The unique identifier of the userpublic B2BCustomerModel getCurrentB2BCustomer()
B2BCustomerServicegetCurrentB2BCustomer in interface B2BCustomerService<B2BCustomerModel,B2BUnitModel>public List<B2BCustomerModel> getAllUsers()
B2BCustomerServicegetAllUsers in interface B2BCustomerService<B2BCustomerModel,B2BUnitModel>List of userspublic List<B2BUserGroupModel> getAllB2BUserGroups()
B2BCustomerServicegetAllB2BUserGroups in interface B2BCustomerService<B2BCustomerModel,B2BUnitModel>List of B2BUserGroupModel@Deprecated public boolean principalExists(String uid)
B2BCustomerServiceprincipalExists in interface B2BCustomerService<B2BCustomerModel,B2BUnitModel>public void setUserService(UserService userService)
protected UserService getUserService()
protected BaseDao getBaseDao()
public void setBaseDao(BaseDao baseDao)
protected SearchRestrictionService getSearchRestrictionService()
public void setSearchRestrictionService(SearchRestrictionService searchRestrictionService)
Copyright © 2017 SAP SE. All Rights Reserved.