org.sakaiproject.tool.assessment.shared.impl.qti
Class QTIServiceImpl

java.lang.Object
  extended by org.sakaiproject.tool.assessment.shared.impl.qti.QTIServiceImpl
All Implemented Interfaces:
QTIServiceAPI

public class QTIServiceImpl
extends Object
implements QTIServiceAPI

QTIServiceImpl implements a shared interface to get/set assessment information.

Author:
Ed Smiley

Constructor Summary
QTIServiceImpl()
           
 
Method Summary
 AssessmentIfc createImportedAssessment(Document document, int qtiVersion)
          Import an assessment XML document in QTI format, extract & persist the data.
 ItemDataIfc createImportedItem(Document document, int qtiVersion)
          Import an item XML document in QTI format, extract & persist the data.
 Document getExportedAssessment(String assessmentId, int qtiVersion)
          Get an assessment in Document form.
 Document getExportedItem(String itemId, int qtiVersion)
          Get an item in Document form.
 Document getExportedItemBank(String[] itemIds, int qtiVersion)
          Get an item bank in Document form.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QTIServiceImpl

public QTIServiceImpl()
Method Detail

createImportedAssessment

public AssessmentIfc createImportedAssessment(Document document,
                                              int qtiVersion)
Import an assessment XML document in QTI format, extract & persist the data.

Specified by:
createImportedAssessment in interface QTIServiceAPI
Parameters:
document - the assessment XML document in QTI format
qtiVersion - either 1=QTI VERSION 1.2 or 2=QTI Version 2.0;
Returns:
a persisted assessment

createImportedItem

public ItemDataIfc createImportedItem(Document document,
                                      int qtiVersion)
Import an item XML document in QTI format, extract & persist the data.

Specified by:
createImportedItem in interface QTIServiceAPI
Parameters:
document - the item XML document in QTI format
qtiVersion - either 1=QTI VERSION 1.2 or 2=QTI Version 2.0;
Returns:
a persisted item

getExportedAssessment

public Document getExportedAssessment(String assessmentId,
                                      int qtiVersion)
Get an assessment in Document form. Note: this service requires a Faces context.

Specified by:
getExportedAssessment in interface QTIServiceAPI
Parameters:
assessmentId - the assessment's Id
qtiVersion - either 1=QTI VERSION 1.2 or 2=QTI Version 2.0;
Returns:
the Document with the assessment data

getExportedItem

public Document getExportedItem(String itemId,
                                int qtiVersion)
Get an item in Document form. Note: this service requires a Faces context.

Specified by:
getExportedItem in interface QTIServiceAPI
Parameters:
itemId - the item's Id
qtiVersion - either 1=QTI VERSION 1.2 or 2=QTI Version 2.0;
Returns:
the Document with the assessment data

getExportedItemBank

public Document getExportedItemBank(String[] itemIds,
                                    int qtiVersion)
Get an item bank in Document form. Note: this service requires a Faces context.

Specified by:
getExportedItemBank in interface QTIServiceAPI
Parameters:
itemIds - an array of item ids
qtiVersion - either 1=QTI VERSION 1.2 or 2=QTI Version 2.0;
Returns:
the Document with the item bank


Copyright © 2005-2012 Sakai Project. All Rights Reserved.