Interface TmaGenericItemService
- All Known Implementing Classes:
DefaultTmaGenericItemService
public interface TmaGenericItemService
Service responsible for handling
ItemModel related operations.- Since:
- 2202
-
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 parametersvoidSaves the given item model to the database.
-
Method Details
-
getItem
Retrieves an item model of a specific typeCode with the given id- Parameters:
typeCode- the typeCode of the modelid- the id- Returns:
- the model found, null otherwise
-
getItem
Retrieves an item model of a specific typeCode with the given parameters- Parameters:
typeCode- the typeCode of the modelparams- the key-value pairs to filter the response- Returns:
- the item found
-
createItem
Creates a new item model of the given class.- Parameters:
itemClass- the class of the item to be created.- Returns:
- the created item.
-
saveItem
Saves the given item model to the database.- Parameters:
item- the item model
-