org.sakaiproject.api.app.syllabus
Interface SyllabusManager

All Known Implementing Classes:
SyllabusManagerImpl

public interface SyllabusManager


Method Summary
 void addSyllabusAttachToSyllabusData(SyllabusData syllabusData, SyllabusAttachment syllabusAttach)
           
 void addSyllabusToSyllabusItem(SyllabusItem syllabusItem, SyllabusData syllabusData)
           
 SyllabusAttachment createSyllabusAttachmentObject(String attachId, String name)
           
 SyllabusData createSyllabusDataObject(String title, Integer position, String assetId, String view, String status, String emailNotification)
           
 SyllabusItem createSyllabusItem(String userId, String contextId, String redirectURL)
          creates an SyllabusItem
 Integer findLargestSyllabusPosition(SyllabusItem syllabusItem)
           
 Set getSyllabiForSyllabusItem(SyllabusItem syllabusItem)
           
 SyllabusAttachment getSyllabusAttachment(String syllabusAttachId)
           
 Set getSyllabusAttachmentsForSyllabusData(SyllabusData syllabusData)
           
 SyllabusData getSyllabusData(String dataId)
           
 SyllabusItem getSyllabusItemByContextId(String contextId)
           
 SyllabusItem getSyllabusItemByUserAndContextIds(String userId, String contextId)
           
 void removeSyllabusAttachmentObject(SyllabusAttachment o)
           
 void removeSyllabusAttachSyllabusData(SyllabusData syllabusData, SyllabusAttachment syllabusAttach)
           
 void removeSyllabusDataObject(SyllabusData o)
           
 void removeSyllabusFromSyllabusItem(SyllabusItem syllabusItem, SyllabusData syllabusData)
           
 void saveSyllabus(SyllabusData data)
           
 void saveSyllabusAttachment(SyllabusAttachment attach)
           
 void saveSyllabusItem(SyllabusItem item)
           
 void swapSyllabusDataPositions(SyllabusItem syllabusItem, SyllabusData d1, SyllabusData d2)
           
 

Method Detail

createSyllabusItem

public SyllabusItem createSyllabusItem(String userId,
                                       String contextId,
                                       String redirectURL)
creates an SyllabusItem


getSyllabusItemByUserAndContextIds

public SyllabusItem getSyllabusItemByUserAndContextIds(String userId,
                                                       String contextId)

saveSyllabusItem

public void saveSyllabusItem(SyllabusItem item)

addSyllabusToSyllabusItem

public void addSyllabusToSyllabusItem(SyllabusItem syllabusItem,
                                      SyllabusData syllabusData)

removeSyllabusFromSyllabusItem

public void removeSyllabusFromSyllabusItem(SyllabusItem syllabusItem,
                                           SyllabusData syllabusData)

createSyllabusDataObject

public SyllabusData createSyllabusDataObject(String title,
                                             Integer position,
                                             String assetId,
                                             String view,
                                             String status,
                                             String emailNotification)

removeSyllabusDataObject

public void removeSyllabusDataObject(SyllabusData o)

getSyllabiForSyllabusItem

public Set getSyllabiForSyllabusItem(SyllabusItem syllabusItem)

swapSyllabusDataPositions

public void swapSyllabusDataPositions(SyllabusItem syllabusItem,
                                      SyllabusData d1,
                                      SyllabusData d2)

saveSyllabus

public void saveSyllabus(SyllabusData data)

findLargestSyllabusPosition

public Integer findLargestSyllabusPosition(SyllabusItem syllabusItem)

getSyllabusItemByContextId

public SyllabusItem getSyllabusItemByContextId(String contextId)

getSyllabusData

public SyllabusData getSyllabusData(String dataId)

createSyllabusAttachmentObject

public SyllabusAttachment createSyllabusAttachmentObject(String attachId,
                                                         String name)

saveSyllabusAttachment

public void saveSyllabusAttachment(SyllabusAttachment attach)

addSyllabusAttachToSyllabusData

public void addSyllabusAttachToSyllabusData(SyllabusData syllabusData,
                                            SyllabusAttachment syllabusAttach)

removeSyllabusAttachmentObject

public void removeSyllabusAttachmentObject(SyllabusAttachment o)

removeSyllabusAttachSyllabusData

public void removeSyllabusAttachSyllabusData(SyllabusData syllabusData,
                                             SyllabusAttachment syllabusAttach)

getSyllabusAttachmentsForSyllabusData

public Set getSyllabusAttachmentsForSyllabusData(SyllabusData syllabusData)

getSyllabusAttachment

public SyllabusAttachment getSyllabusAttachment(String syllabusAttachId)