Class SAPB2BModelService
- java.lang.Object
-
- de.hybris.platform.servicelayer.internal.service.AbstractService
-
- de.hybris.platform.servicelayer.internal.model.impl.AbstractModelService
-
- de.hybris.platform.servicelayer.internal.model.impl.DefaultModelService
-
- com.sap.hybris.sapcustomerb2b.outbound.SAPB2BModelService
-
- All Implemented Interfaces:
ModelService,java.io.Serializable,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean
public class SAPB2BModelService extends DefaultModelService
Handles B2B Customer Models using Site Store and Event services- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
AbstractService.SerializableDTO
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.servicelayer.internal.model.impl.DefaultModelService
ENABLE_TRANSACTIONAL_SAVES
-
Fields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
tenant
-
-
Constructor Summary
Constructors Constructor Description SAPB2BModelService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BaseSiteServicegetBaseSiteService()BaseStoreServicegetBaseStoreService()CommonI18NServicegetCommonI18NService()protected AbstractCommerceUserEvent<BaseSiteModel>initializeEvent(AbstractCommerceUserEvent<BaseSiteModel> event, B2BCustomerModel b2bCustomerModel)initializes anAbstractCommerceUserEventvoidsave(java.lang.Object customerModel)Saves all attribute values from the model to the wrapped source object or creates a new one if no source is mapped yet.voidsetB2bEventService(EventService b2bEventService)voidsetBaseSiteService(BaseSiteService baseSiteService)voidsetBaseStoreService(BaseStoreService baseStoreService)voidsetCommonI18NService(CommonI18NService commonI18NService)-
Methods inherited from class de.hybris.platform.servicelayer.internal.model.impl.DefaultModelService
attach, clearTransactionsSettings, clone, clone, clone, clone, create, create, detach, detach, detachAll, detachViaSource, disableTransactions, doAttach, doCreate, doDetach, doLoad, enableTransactions, get, get, get, getAttributeValue, getAttributeValue, getAttributeValues, getByExample, getConverterRegistry, getInterceptorRegistry, getModelCloningContext, getModelCloningStrategy, getModelContext, getModelConverterByModel, getModelConverterBySource, getModelForPersistentValue, getModelSearchStrategy, getModelType, getModelType, getModelTypeClass, getPersistentValueForModel, getSessionService, getSource, getSourceTypeFromModel, getSourceTypeFromSource, getWithLock, getWritePersistenceGateway, initDefaults, isAttached, isHanaConstraintViolation, isModified, isNew, isRemoved, isSourceAttached, isSpringConcurrencyException, isSpringDuplicateKeyException, isSQLServerConstraintViolation, isTransactional, isUniqueConstraintErrorAsRootCause, isUpToDate, lock, lock, lookupConverterRegistry, lookupInterceptorRegistry, lookupModelCloningContext, lookupModelCloningStrategy, lookupModelSearchStrategy, lookupSessionService, lookupWritePersistenceGateway, notifyLoadInterceptors, preloadItems, prepareObjectsToSave, refresh, remove, remove, removeAll, removeAll, removeAll, saveAll, saveAll, saveAll, saveAll, setAttributeValue, setAttributeValue, setCacheInvalidator, setCascader, setChangeSetBuilder, setEventService, setModelContext, setModelExtractor, setModelPersister, setPersistenceTypeService, setSldDataContainerProvider, setSourceTransformer, setTransactional, setTransactionTemplate
-
Methods inherited from class de.hybris.platform.servicelayer.internal.model.impl.AbstractModelService
getAll, getAll, getAllSources, toModelLayer, toPersistenceLayer
-
Methods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
afterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, writeReplace
-
-
-
-
Method Detail
-
save
public void save(java.lang.Object customerModel)
Description copied from interface:ModelServiceSaves all attribute values from the model to the wrapped source object or creates a new one if no source is mapped yet.- Specified by:
savein interfaceModelService- Overrides:
savein classDefaultModelService- Parameters:
customerModel- the model to save- See Also:
ModelService.saveAll(Collection)
-
initializeEvent
protected AbstractCommerceUserEvent<BaseSiteModel> initializeEvent(AbstractCommerceUserEvent<BaseSiteModel> event, B2BCustomerModel b2bCustomerModel)
initializes anAbstractCommerceUserEvent- Parameters:
event-customerModel-- Returns:
- the event
-
getCommonI18NService
public CommonI18NService getCommonI18NService()
-
setCommonI18NService
public void setCommonI18NService(CommonI18NService commonI18NService)
-
getBaseSiteService
public BaseSiteService getBaseSiteService()
-
setBaseSiteService
public void setBaseSiteService(BaseSiteService baseSiteService)
-
getBaseStoreService
public BaseStoreService getBaseStoreService()
-
setBaseStoreService
public void setBaseStoreService(BaseStoreService baseStoreService)
-
setB2bEventService
public void setB2bEventService(EventService b2bEventService)
-
-