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.void
deleteInventoryItem
(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()
void
setDistinctInventoryItemDao
(DistinctInventoryItemDao distinctInventoryItemDao) void
setItemDao
(ItemDao itemDao) void
setLargeObjectCdnUtils
(LargeObjectCdnUtils largeObjectCdnUtils) void
setProfileDao
(ProfileDao profileDao) void
void
setUserDao
(UserDao userDao) void
setUserProfileUtility
(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:DistinctInventoryItemService
Creates 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:
createDistinctInventoryItem
in 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
DistinctInventoryItem
as it was written to the database.
-
getDistinctInventoryItem
Description copied from interface:DistinctInventoryItemService
Gets a specific distinct inventory item from the database.- Specified by:
getDistinctInventoryItem
in 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:DistinctInventoryItemService
Gets a listing of distinct inventory items from the database.- Specified by:
getDistinctInventoryItems
in 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:DistinctInventoryItemService
Gets a listing of distinct inventory items from the database.- Specified by:
getDistinctInventoryItems
in 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:DistinctInventoryItemService
Updates a distinct inventory item.- Specified by:
updateDistinctInventoryItem
in interfaceDistinctInventoryItemService
- Parameters:
distinctInventoryItemId
-userId
-profileId
-metadata
-- Returns:
-
deleteInventoryItem
Description copied from interface:DistinctInventoryItemService
Deletes a specific distinct inventory item id.- Specified by:
deleteInventoryItem
in interfaceDistinctInventoryItemService
- Parameters:
inventoryItemId
-
-
getItemDao
-
setItemDao
-
getUserProfileUtility
-
setUserProfileUtility
-
getDistinctInventoryItemDao
-
setDistinctInventoryItemDao
-
getLargeObjectCdnUtils
-
setLargeObjectCdnUtils
-
getUserDao
-
setUserDao
-
getUser
-
setUser
-
getProfileDao
-
setProfileDao
-