Cyclops Group Software Foundation
Search in site
Services

Tornado is a simple web application on top of Apache Avalon SOA architecture. Therefore many core functions are implemented following avalon service standard. In course list project, the following services will be created. These services will be the implementation of business logic in course list project.

Each service is defined as an interface, implemented by a concrete class and configured in the SOA container. Two services exist in courselist project.

com.cyclopsgroup.courselist.CourseListService

CourseListService overview

Role com.cyclopsgroup.courselist.CourseListService
Implementation com.cyclopsgroup.courselist.impl.DefaultCourseListService
Description Core course list management service

CourseListService functions

Method Inputs Returns Description
registerCourse String studentId, String courseId, boolean forced Nothing Register a course for student
findByCode String prefix, String code Course object Find a course object with given prefix and code
findByTeacher A teacher's ID List of courses Find courses related to a teacher
getAllCourses Nothing A list of all active courses Get all active courses
getAllTeachers Nothing List of teacher objects Get all teachers

com.cyclopsgroup.courselist.StudentService

StudentService overview

Role com.cyclopsgroup.courselist.StudentService
Implementation com.cyclopsgroup.courselist.impl.DefaultStudentService
Description Service to handle

StudentService functions

Method Inputs Returns Description
addCourse String studentId, String courseId nothing Add course for a student
dropCourse String studentId, String courseId Nothing Drop an registered course for a student

All rights reserved, 2002 ~ 2004, Cyclops Group.

Last published: 10 February 2007

Valid XHTML 1.0!SourceForge FoundationPowered by MavenDonate to Cyclops Group