/** ItemFacade is the class that is exposed to developer * It contains some of the useful methods specified in * org.osid.assessment.Item and it implements * org.sakaiproject.tool.assessment.ifc. * When new methods is added to osid api, this code is still workable. * If signature in any of the osid methods that we mirrored changes, * we only need to modify those particular methods. * - daisyf */ public PublishedItemFacade(){ // need to hook PublishedItemFacade.data to ItemData, our POJO for Hibernate // persistence this.data = new PublishedItemData(); ItemImpl itemImpl = new ItemImpl(); //<-- place holder item = (Item)itemImpl; try { item.updateData(this.data); } catch (AssessmentException ex) { throw new DataFacadeException(ex.getMessage()); } }
/** ItemFacade is the class that is exposed to developer * It contains some of the useful methods specified in * org.osid.assessment.Item and it implements * org.sakaiproject.tool.assessment.ifc. * When new methods is added to osid api, this code is still workable. * If signature in any of the osid methods that we mirrored changes, * we only need to modify those particular methods. * - daisyf */ public PublishedItemFacade(){ // need to hook PublishedItemFacade.data to ItemData, our POJO for Hibernate // persistence this.data = new PublishedItemData(); ItemImpl itemImpl = new ItemImpl(); //<-- place holder item = (Item)itemImpl; try { item.updateData(this.data); } catch (AssessmentException ex) { throw new DataFacadeException(ex.getMessage()); } }
while (j.hasNext()) { ItemData item = (ItemData) j.next(); PublishedItemData publishedItem = new PublishedItemData( publishedSection, item.getSequence(), item.getDuration(), item.getInstruction(), item.getDescription(), item
while (j.hasNext()) { ItemData item = (ItemData) j.next(); PublishedItemData publishedItem = new PublishedItemData( publishedSection, item.getSequence(), item.getDuration(), item.getInstruction(), item.getDescription(), item