📄 studentserviceint.java
字号:
/**
*******************************************************************************
* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -