org.activemath.webapp.tutor.cgWebService
Class CourseGeneratorWebService
java.lang.Object
org.activemath.webapp.tutor.cgWebService.CourseGeneratorWebService
public class CourseGeneratorWebService
- extends Object
This is the Servlet Class that handles the request from the client.
|
Method Summary |
org.apache.axiom.om.OMElement |
generateCourseWithLearnerKnowledgeMap(org.apache.axiom.om.OMElement request)
Generates a course with according to the arguments given in the OMElement request. |
org.apache.axiom.om.OMElement |
generateCourseWithLearnerModelURL(org.apache.axiom.om.OMElement request)
Generates a course with according to the arguments given in the OMElement request. |
org.apache.axiom.om.OMElement |
getTaskDefinition(org.apache.axiom.om.OMElement request)
Return the xml stream parsed as an OMElement. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static Category log
CourseGeneratorWebService
public CourseGeneratorWebService()
getTaskDefinition
public org.apache.axiom.om.OMElement getTaskDefinition(org.apache.axiom.om.OMElement request)
- Return the xml stream parsed as an OMElement.
The given parameter is ignored, it's
only a placeholder because of the bug in Axis2, which cause null pointer AxisFault by
non-parameter method.
- Parameters:
request - ignored
- Returns:
- the OMElement which represent the xml file taskList.xml
- Throws:
org.apache.axis2.AxisFault
XMLStreamException
generateCourseWithLearnerModelURL
public org.apache.axiom.om.OMElement generateCourseWithLearnerModelURL(org.apache.axiom.om.OMElement request)
- Generates a course with according to the arguments given in the OMElement request.
The arguments of the request are
- taskId (String)
- learnerModelURL (String)
- userId (String)
- contentIds (OMElement) contains the content identifiers as child elements
- Parameters:
request -
- Returns:
- course with SCORM-Manifest format in an OMElement
generateCourseWithLearnerKnowledgeMap
public org.apache.axiom.om.OMElement generateCourseWithLearnerKnowledgeMap(org.apache.axiom.om.OMElement request)
- Generates a course with according to the arguments given in the OMElement request.
The arguments of the request are
- taskId (String)
- learnerKnowledgeMap (OMElement) contains property-value pairs
as child elements. In each child element the first child element contains
the property name and the second contains the value.
- contentIds (OMElement) contains the content identifiers as child elements
- Parameters:
request -
- Returns:
- course with SCORM-Manifest format in an OMElement