public class ItemService extends Object
| Modifier and Type | Field and Description |
|---|---|
protected RubricsService |
rubricsService |
protected TagService |
tagService |
| Constructor and Description |
|---|
ItemService()
Creates a new ItemService object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addItemMetaData(Long itemId,
String label,
String value,
String agentId)
Add metadata for an item, used for modify
param: itemid, label, value, agentId
|
BackfillItemHashResult |
backfillItemHashes(int batchSize,
boolean backfillBaselineHashes) |
ItemData |
cloneItem(ItemDataIfc item) |
void |
deleteItem(Long itemId,
String agentId)
Delete a item
|
void |
deleteItemContent(Long itemId,
String agentId)
Delete itemtextset for an item, used for modify
|
void |
deleteItemMetaData(Long itemId,
String label,
String agentId)
Delete metadata for an item, used for modify
param: itemid, label, agentId
|
void |
deleteItemTagBindingsHavingTagCollectionId(String tagCollectionId) |
void |
deleteItemTagBindingsHavingTagId(String tagId) |
Long |
getAssessmentId(Long itemId) |
ItemFacade |
getItem(Long itemId,
String agentId)
Deprecated.
|
ItemFacade |
getItem(String itemId)
Get a particular item from the backend, with all questions.
|
Map |
getItemsByHash(String hash) |
Map |
getItemsByKeyword(String keyword) |
List<Long> |
getItemsIdsByHash(String hash) |
Long |
getItemTextId(Long publishedItemId) |
void |
saveFavoriteColumnChoices(FavoriteColChoices choices)
Save favorite column choices for matrix survey question.
|
ItemFacade |
saveItem(ItemFacade item)
Save a question item.
|
List<ItemFacade> |
saveItems(List<ItemFacade> items)
Save question items (in a single transaction for improved performance over sequential saveItem() invocations)
|
void |
saveTagsInHashedQuestions(ItemFacade itemOrigin)
Update all the items in the items with the same hash...
|
void |
updateItemTagBindingsHavingTag(TagServiceHelper.TagView tagView) |
void |
updateItemTagBindingsHavingTagCollection(TagServiceHelper.TagCollectionView tagCollectionView) |
protected TagService tagService
protected RubricsService rubricsService
public ItemFacade getItem(Long itemId, String agentId)
itemId - agentId - public void deleteItemContent(Long itemId, String agentId)
public void deleteItemMetaData(Long itemId, String label, String agentId)
public void addItemMetaData(Long itemId, String label, String value, String agentId)
public ItemFacade saveItem(ItemFacade item)
public List<ItemFacade> saveItems(List<ItemFacade> items)
public ItemFacade getItem(String itemId)
itemId - public ItemData cloneItem(ItemDataIfc item)
public void saveFavoriteColumnChoices(FavoriteColChoices choices)
public void updateItemTagBindingsHavingTag(TagServiceHelper.TagView tagView)
public void deleteItemTagBindingsHavingTagId(String tagId)
public void updateItemTagBindingsHavingTagCollection(TagServiceHelper.TagCollectionView tagCollectionView)
public void deleteItemTagBindingsHavingTagCollectionId(String tagCollectionId)
public BackfillItemHashResult backfillItemHashes(int batchSize, boolean backfillBaselineHashes)
public void saveTagsInHashedQuestions(ItemFacade itemOrigin)
itemOrigin - the item that we have changed the Tags.Copyright © 2003–2021 Sakai Project. All rights reserved.