org.sakaiproject.tool.assessment.services
Class ItemService

java.lang.Object
  extended byorg.sakaiproject.tool.assessment.services.ItemService

public class ItemService
extends Object

The ItemService calls persistent service locator to reach the manager on the back end.


Constructor Summary
ItemService()
          Creates a new ItemService object.
 
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
 ItemFacade getItem(Long itemId, String agentId)
          Get a particular item from the backend, with all questions.
 ItemFacade getItem(String itemId)
           
 HashMap getItemsByKeyword(String keyword)
           
 ItemFacade saveItem(ItemFacade item)
          Save a question item.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemService

public ItemService()
Creates a new ItemService object.

Method Detail

getItem

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


deleteItem

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


deleteItemContent

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


deleteItemMetaData

public void deleteItemMetaData(Long itemId,
                               String label,
                               String agentId)
Delete metadata for an item, used for modify param: 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


saveItem

public ItemFacade saveItem(ItemFacade item)
Save a question item.


getItem

public ItemFacade getItem(String itemId)

getItemsByKeyword

public HashMap getItemsByKeyword(String keyword)