Class DefaultTmaGenericItemService
java.lang.Object
de.hybris.platform.b2ctelcoservices.services.impl.DefaultTmaGenericItemService
- All Implemented Interfaces:
TmaGenericItemService
Default implementation of
TmaGenericItemService.- Since:
- 2202
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultTmaGenericItemService(de.hybris.platform.servicelayer.model.ModelService modelService, TmaGenericItemDao tmaGenericItemDao) -
Method Summary
Modifier and TypeMethodDescriptioncreateItem(Class itemClass) Creates a new item model of the given class.Retrieves an item model of a specific typeCode with the given idRetrieves an item model of a specific typeCode with the given parametersprotected de.hybris.platform.servicelayer.model.ModelServiceprotected TmaGenericItemDaovoidSaves the given item model to the database.
-
Constructor Details
-
DefaultTmaGenericItemService
public DefaultTmaGenericItemService(de.hybris.platform.servicelayer.model.ModelService modelService, TmaGenericItemDao tmaGenericItemDao)
-
-
Method Details
-
getItem
Description copied from interface:TmaGenericItemServiceRetrieves an item model of a specific typeCode with the given id- Specified by:
getItemin interfaceTmaGenericItemService- Parameters:
typeCode- the typeCode of the modelid- the id- Returns:
- the model found, null otherwise
-
getItem
Description copied from interface:TmaGenericItemServiceRetrieves an item model of a specific typeCode with the given parameters- Specified by:
getItemin interfaceTmaGenericItemService- Parameters:
typeCode- the typeCode of the modelparams- the key-value pairs to filter the response- Returns:
- the item found
-
createItem
Description copied from interface:TmaGenericItemServiceCreates a new item model of the given class.- Specified by:
createItemin interfaceTmaGenericItemService- Parameters:
itemClass- the class of the item to be created.- Returns:
- the created item.
-
saveItem
Description copied from interface:TmaGenericItemServiceSaves the given item model to the database.- Specified by:
saveItemin interfaceTmaGenericItemService- Parameters:
item- the item model
-
getModelService
protected de.hybris.platform.servicelayer.model.ModelService getModelService() -
getTmaGenericItemDao
-