Class SuperUserDistinctInventoryItemService
java.lang.Object
dev.getelements.elements.service.inventory.SuperUserDistinctInventoryItemService
- All Implemented Interfaces:
DistinctInventoryItemService
public class SuperUserDistinctInventoryItemService
extends Object
implements DistinctInventoryItemService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateDistinctInventoryItem(String userId, String profileId, String itemId, Map<String, Object> metadata) Creates a distinct inventory item, specifying the user, profile, and item id.voiddeleteInventoryItem(String inventoryItemId) Deletes a specific distinct inventory item id.getDistinctInventoryItem(String itemNameOrId) Gets a specific distinct inventory item from the database.getDistinctInventoryItems(int offset, int count, String userId, String profileId) Gets a listing of distinct inventory items from the database.getDistinctInventoryItems(int offset, int count, String userId, String profileId, String query) Gets a listing of distinct inventory items from the database.getUser()voidsetDistinctInventoryItemDao(DistinctInventoryItemDao distinctInventoryItemDao) voidsetItemDao(ItemDao itemDao) voidsetLargeObjectCdnUtils(LargeObjectCdnUtils largeObjectCdnUtils) voidsetProfileDao(ProfileDao profileDao) voidvoidsetUserDao(UserDao userDao) voidsetUserProfileUtility(UserProfileUtility userProfileUtility) updateDistinctInventoryItem(String distinctInventoryItemId, String userId, String profileId, Map<String, Object> metadata) Updates a distinct inventory item.
-
Constructor Details
-
SuperUserDistinctInventoryItemService
public SuperUserDistinctInventoryItemService()
-
-
Method Details
-
createDistinctInventoryItem
public DistinctInventoryItem createDistinctInventoryItem(String userId, String profileId, String itemId, Map<String, Object> metadata) Description copied from interface:DistinctInventoryItemServiceCreates a distinct inventory item, specifying the user, profile, and item id. Distinct inventory items may be owned at either the profile or the user level and may be transferred. When creating one, another, or both may be specified. However the profile, when specified, must match the user id.- Specified by:
createDistinctInventoryItemin interfaceDistinctInventoryItemService- Parameters:
userId- the user id owning the item, may be null if profile id is specifiedprofileId- the profile of the profile owning the item, may be null if hte user id is specifieditemId- the item id, must not be nullmetadata- the metadata, may be null- Returns:
- the
DistinctInventoryItemas it was written to the database.
-
getDistinctInventoryItem
Description copied from interface:DistinctInventoryItemServiceGets a specific distinct inventory item from the database.- Specified by:
getDistinctInventoryItemin interfaceDistinctInventoryItemService- Parameters:
itemNameOrId- the item name or id- Returns:
- the distinct item
-
getDistinctInventoryItems
public Pagination<DistinctInventoryItem> getDistinctInventoryItems(int offset, int count, String userId, String profileId) Description copied from interface:DistinctInventoryItemServiceGets a listing of distinct inventory items from the database.- Specified by:
getDistinctInventoryItemsin interfaceDistinctInventoryItemService- Parameters:
offset- the offset from the beginning of the datasetcount- the countuserId- the userid, may be null,- Returns:
- a pagination of inventory items.
-
getDistinctInventoryItems
public Pagination<DistinctInventoryItem> getDistinctInventoryItems(int offset, int count, String userId, String profileId, String query) Description copied from interface:DistinctInventoryItemServiceGets a listing of distinct inventory items from the database.- Specified by:
getDistinctInventoryItemsin interfaceDistinctInventoryItemService- Parameters:
offset- the offset from the beginning of the datasetcount- the countuserId- the userid, may be null,- Returns:
- a pagination of inventory items.
-
updateDistinctInventoryItem
public DistinctInventoryItem updateDistinctInventoryItem(String distinctInventoryItemId, String userId, String profileId, Map<String, Object> metadata) Description copied from interface:DistinctInventoryItemServiceUpdates a distinct inventory item.- Specified by:
updateDistinctInventoryItemin interfaceDistinctInventoryItemService- Parameters:
distinctInventoryItemId-userId-profileId-metadata-- Returns:
-
deleteInventoryItem
Description copied from interface:DistinctInventoryItemServiceDeletes a specific distinct inventory item id.- Specified by:
deleteInventoryItemin interfaceDistinctInventoryItemService- Parameters:
inventoryItemId-
-
getItemDao
-
setItemDao
-
getUserProfileUtility
-
setUserProfileUtility
-
getDistinctInventoryItemDao
-
setDistinctInventoryItemDao
-
getLargeObjectCdnUtils
-
setLargeObjectCdnUtils
-
getUserDao
-
setUserDao
-
getUser
-
setUser
-
getProfileDao
-
setProfileDao
-