studentserviceint.java

来自「这是一个学校老师和学生的管理系统,程序比较简单,但是几乎所有功能都可以实现,如果」· Java 代码 · 共 82 行

JAVA
82
字号
/**
 *******************************************************************************
 * StudentServiceInt.java
 *
 * (c) Copyright 2008 Hewlett-Packard Development Company, L.P.
 *
 *<Program Content>
 *  System Name : Students Management System
 *<Summarize>
 *  The file includes a interface.
 *<Update Record>
 *  2009-5-6    1.00    zhangliy
 *******************************************************************************
 */
package com.hp.eds.zhangliyuan.stuMan.service.interf;

import java.util.List;

import com.hp.eds.zhangliyuan.stuMan.dto.ScoreDto;
import com.hp.eds.zhangliyuan.stuMan.dto.UserDto;
import com.hp.eds.zhangliyuan.stuMan.dto.UserDtoTwo;
import com.hp.eds.zhangliyuan.stuMan.entity.UserInfo;

/**
 * All service classes inherit from this interface.
 * 
 * @author zhangliy
 * @version 1.0
 */
public interface StudentServiceInt {
	/**
	 * verify the user's logon information right or wrong
	 * 
	 * @param userDto
	 *            -the object of UserDto
	 * @return UserDto includes the user information
	 * 
	 */
	public abstract UserDto getUserInfo(UserDto userDto);

	/**
	 * get the courses that current student can select
	 * 
	 * @param userID
	 *            the user's ID
	 * @return List includes all courses information that the student can choose
	 */
	public abstract List getCourseList(String userID);

	/**
	 * according to the class's ID and the user's ID to select a course and
	 * register the course
	 * 
	 * @param userID
	 *            -user's ID
	 * @param classID
	 *            -class's ID
	 * @return boolean
	 */
	public abstract boolean updateEnrol(String userID, String classID);

	/**
	 * get the score that current student has gotten
	 * 
	 * @param userID
	 *            -the user's ID
	 * @return List the course score information
	 */
	public abstract List<ScoreDto> getScoreList(String userID);

	/**
	 * update the information of an user and write the file again
	 * 
	 * @param userDto
	 *            -the update information
	 * @return UserInfo the user whose information maybe changed,if the input is
	 *         illegal,return null
	 */
	public abstract UserInfo updateUserInfo(UserDtoTwo userDto);

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?