org.sakaiproject.tool.assessment.facade
Interface AssessmentGradingFacadeQueriesAPI

All Known Implementing Classes:
AssessmentGradingFacadeQueries

public interface AssessmentGradingFacadeQueriesAPI


Method Summary
 Long add(AssessmentGradingData a)
          This grades multiple choice and true false questions.
 void deleteAll(Collection c)
           
 List getAllSubmissions(String publishedId)
           
 HashMap getAssessmentGradingByItemGradingId(Long publishedAssessmentId)
           
 List getAssessmentGradingIds(Long publishedItemId)
           
 AssessmentGradingIfc getHighestAssessmentGrading(Long publishedAssessmentId, String agentId)
           
 HashMap getHighestAssessmentGradingByPublishedItem(Long publishedAssessmentId)
           
 List getHighestAssessmentGradingList(Long publishedAssessmentId)
           
 ItemGradingData getItemGradingData(Long assessmentGradingId, Long publishedItemId)
           
 Set getItemGradingSet(Long assessmentGradingId)
           
 HashMap getItemScores(Long publishedId, Long itemId, String which)
           
 AssessmentGradingData getLastAssessmentGradingByAgentId(Long publishedAssessmentId, String agentIdString)
           
 HashMap getLastAssessmentGradingByPublishedItem(Long publishedAssessmentId)
           
 List getLastAssessmentGradingList(Long publishedAssessmentId)
           
 HashMap getLastItemGradingData(Long publishedId, String agentId)
          This returns a hashmap of all the latest item entries, keyed by item id for easy retrieval.
 ItemGradingData getLastItemGradingDataByAgent(Long publishedItemId, String agentId)
           
 AssessmentGradingData getLastSavedAssessmentGradingByAgentId(Long publishedAssessmentId, String agentIdString)
           
 MediaData getMedia(Long mediaId)
           
 ArrayList getMediaArray(ItemGradingData item)
           
 ArrayList getMediaArray(Long itemGradingId)
           
 PublishedAssessmentIfc getPublishedAssessmentByAssessmentGradingId(Long assessmentGradingId)
           
 HashMap getStudentGradingData(String assessmentGradingId)
          This returns a hashmap of all the submitted items, keyed by item id for easy retrieval.
 HashMap getSubmissionSizeOfAllPublishedAssessments()
           
 int getSubmissionSizeOfPublishedAssessment(Long publishedAssessmentId)
           
 HashMap getSubmitData(Long publishedId, String agentId)
           
 List getTotalScores(String publishedId, String which)
           
 AssessmentGradingData load(Long id)
           
 void removeMediaById(Long mediaId)
           
 void saveItemGrading(ItemGradingIfc item)
           
 Long saveMedia(byte[] media, String mimeType)
           
 Long saveMedia(MediaData mediaData)
           
 void saveOrUpdateAll(Collection c)
           
 void saveOrUpdateAssessmentGrading(AssessmentGradingIfc assessment)
           
 

Method Detail

getTotalScores

public List getTotalScores(String publishedId,
                           String which)

getAllSubmissions

public List getAllSubmissions(String publishedId)

getItemScores

public HashMap getItemScores(Long publishedId,
                             Long itemId,
                             String which)

getLastItemGradingData

public HashMap getLastItemGradingData(Long publishedId,
                                      String agentId)
This returns a hashmap of all the latest item entries, keyed by item id for easy retrieval.


getStudentGradingData

public HashMap getStudentGradingData(String assessmentGradingId)
This returns a hashmap of all the submitted items, keyed by item id for easy retrieval.


getSubmitData

public HashMap getSubmitData(Long publishedId,
                             String agentId)

add

public Long add(AssessmentGradingData a)
This grades multiple choice and true false questions. Since multiple choice/multiple select has a separate ItemGradingIfc for each choice, they're graded the same way the single choice are. Choices should be given negative score values if one wants them to lose points for the wrong choice.


getSubmissionSizeOfPublishedAssessment

public int getSubmissionSizeOfPublishedAssessment(Long publishedAssessmentId)

getSubmissionSizeOfAllPublishedAssessments

public HashMap getSubmissionSizeOfAllPublishedAssessments()

saveMedia

public Long saveMedia(byte[] media,
                      String mimeType)

saveMedia

public Long saveMedia(MediaData mediaData)

removeMediaById

public void removeMediaById(Long mediaId)

getMedia

public MediaData getMedia(Long mediaId)

getMediaArray

public ArrayList getMediaArray(Long itemGradingId)

getMediaArray

public ArrayList getMediaArray(ItemGradingData item)

getLastItemGradingDataByAgent

public ItemGradingData getLastItemGradingDataByAgent(Long publishedItemId,
                                                     String agentId)

getItemGradingData

public ItemGradingData getItemGradingData(Long assessmentGradingId,
                                          Long publishedItemId)

load

public AssessmentGradingData load(Long id)

getLastAssessmentGradingByAgentId

public AssessmentGradingData getLastAssessmentGradingByAgentId(Long publishedAssessmentId,
                                                               String agentIdString)

getLastSavedAssessmentGradingByAgentId

public AssessmentGradingData getLastSavedAssessmentGradingByAgentId(Long publishedAssessmentId,
                                                                    String agentIdString)

getLastAssessmentGradingList

public List getLastAssessmentGradingList(Long publishedAssessmentId)

saveItemGrading

public void saveItemGrading(ItemGradingIfc item)

saveOrUpdateAssessmentGrading

public void saveOrUpdateAssessmentGrading(AssessmentGradingIfc assessment)

getAssessmentGradingIds

public List getAssessmentGradingIds(Long publishedItemId)

getHighestAssessmentGrading

public AssessmentGradingIfc getHighestAssessmentGrading(Long publishedAssessmentId,
                                                        String agentId)

getLastAssessmentGradingByPublishedItem

public HashMap getLastAssessmentGradingByPublishedItem(Long publishedAssessmentId)

getHighestAssessmentGradingByPublishedItem

public HashMap getHighestAssessmentGradingByPublishedItem(Long publishedAssessmentId)

getHighestAssessmentGradingList

public List getHighestAssessmentGradingList(Long publishedAssessmentId)

getItemGradingSet

public Set getItemGradingSet(Long assessmentGradingId)

getAssessmentGradingByItemGradingId

public HashMap getAssessmentGradingByItemGradingId(Long publishedAssessmentId)

deleteAll

public void deleteAll(Collection c)

saveOrUpdateAll

public void saveOrUpdateAll(Collection c)

getPublishedAssessmentByAssessmentGradingId

public PublishedAssessmentIfc getPublishedAssessmentByAssessmentGradingId(Long assessmentGradingId)