org.sakaiproject.tool.assessment.shared.api.assessment
Interface ItemServiceAPI

All Known Implementing Classes:
ItemServiceImpl

public interface ItemServiceAPI

The ItemServiceAPI declares a shared interface to get/set item information.

Author:
Ed Smiley

Method Summary
 void addItemMetaData(Long itemId, String label, String value, String agentId)
          Add metadata for an item, used for modify param: itemid, label, value, agentId
 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
 ItemDataIfc getItem(Long itemId, String agentId)
          Get a particular item from the backend, with all questions.
 ItemDataIfc getItem(String itemId)
          Get item.
 Map getItemsByKeyword(String keyword)
          Search for items.
 ItemDataIfc saveItem(ItemDataIfc item)
          Save item.
 

Method Detail

getItem

public ItemDataIfc getItem(Long itemId,
                           String agentId)
Get a particular item from the backend, with all questions.

Parameters:
itemId -
agentId -
Returns:

deleteItem

public void deleteItem(Long itemId,
                       String agentId)
Delete a item

Parameters:
itemId -
agentId -

deleteItemContent

public void deleteItemContent(Long itemId,
                              String agentId)
Delete itemtextset for an item, used for modify

Parameters:
itemId -
agentId -

deleteItemMetaData

public void deleteItemMetaData(Long itemId,
                               String label,
                               String agentId)
Delete metadata for an item, used for modify param: itemid, label, agentId

Parameters:
itemId -
label -
agentId -

addItemMetaData

public void addItemMetaData(Long itemId,
                            String label,
                            String value,
                            String agentId)
Add metadata for an item, used for modify param: itemid, label, value, agentId

Parameters:
itemId -
label -
value -
agentId -

saveItem

public ItemDataIfc saveItem(ItemDataIfc item)
Save item.

Parameters:
item - interface
Returns:
item interface

getItem

public ItemDataIfc getItem(String itemId)
Get item.

Parameters:
itemId -
Returns:
item interface

getItemsByKeyword

public Map getItemsByKeyword(String keyword)
Search for items.

Parameters:
keyword -
Returns:
Map of ItemDataIfcs with item idstrings as keys