org.sakaiproject.tool.assessment.facade
Interface ItemFacadeQueriesAPI

All Known Implementing Classes:
ItemFacadeQueries

public interface ItemFacadeQueriesAPI


Method Summary
 Long add()
           
 void addItemMetaData(Long itemId, String label, String value)
           
 void deleteItem(Long itemId, String agent)
           
 void deleteItemContent(Long itemId, String agent)
           
 void deleteItemMetaData(Long itemId, String label)
           
 Long facadeAdd()
           
 ItemFacade getItem(Long itemId)
          private void exportXml(ItemDataIfc item) { XStream xstream = new XStream(); xstream = new XStream(new DomDriver()); xstream.alias("item", ItemData.class); xstream.alias("itemText", ItemText.class); xstream.alias("itemFeedback", ItemFeedback.class); xstream.alias("itemMetaData", ItemMetaData.class); xstream.alias("answer", Answer.class); xstream.alias("answerFeedback", AnswerFeedback.class); String xml = xstream.toXML(item); byte[] b = xml.getBytes(); try { FileOutputStream out = new FileOutputStream("out"); out.write(b); } catch (FileNotFoundException ex) { } catch (IOException ex1) { } }
 ItemFacade getItem(Long itemId, String agent)
           
 IdImpl getItemId(long id)
           
 IdImpl getItemId(Long id)
           
 IdImpl getItemId(String id)
           
 HashMap getItemsByKeyword(String keyword)
           
 List getQPItems(Long questionPoolId)
           
 void ifcShow(Long itemId)
           
 List list()
           
 void listType()
           
 void remove(Long itemId)
           
 ItemFacade saveItem(ItemFacade item)
           
 void show(Long itemId)
           
 void showType(Long typeId)
           
 

Method Detail

getItemId

public IdImpl getItemId(String id)

getItemId

public IdImpl getItemId(Long id)

getItemId

public IdImpl getItemId(long id)

add

public Long add()

getQPItems

public List getQPItems(Long questionPoolId)

list

public List list()

show

public void show(Long itemId)

getItem

public ItemFacade getItem(Long itemId,
                          String agent)

showType

public void showType(Long typeId)

listType

public void listType()

remove

public void remove(Long itemId)

deleteItem

public void deleteItem(Long itemId,
                       String agent)

deleteItemContent

public void deleteItemContent(Long itemId,
                              String agent)

deleteItemMetaData

public void deleteItemMetaData(Long itemId,
                               String label)

addItemMetaData

public void addItemMetaData(Long itemId,
                            String label,
                            String value)

facadeAdd

public Long facadeAdd()
               throws DataFacadeException
Throws:
DataFacadeException

ifcShow

public void ifcShow(Long itemId)

saveItem

public ItemFacade saveItem(ItemFacade item)
                    throws DataFacadeException
Throws:
DataFacadeException

getItem

public ItemFacade getItem(Long itemId)
private void exportXml(ItemDataIfc item) { XStream xstream = new XStream(); xstream = new XStream(new DomDriver()); xstream.alias("item", ItemData.class); xstream.alias("itemText", ItemText.class); xstream.alias("itemFeedback", ItemFeedback.class); xstream.alias("itemMetaData", ItemMetaData.class); xstream.alias("answer", Answer.class); xstream.alias("answerFeedback", AnswerFeedback.class); String xml = xstream.toXML(item); byte[] b = xml.getBytes(); try { FileOutputStream out = new FileOutputStream("out"); out.write(b); } catch (FileNotFoundException ex) { } catch (IOException ex1) { } }


getItemsByKeyword

public HashMap getItemsByKeyword(String keyword)