|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteschool.ejb._LecturesBean
Constructor Summary | |
_LecturesBean()
|
Method Summary | |
void |
addLecture(int courseid,
java.lang.String title,
java.lang.String content,
int lecturerid,
int lecture_num)
Adds a lecture to a course. |
boolean |
canEdit(int courseid,
int userid)
Checks whether a certain lecture can be edited by a certain user. |
boolean |
canRemove(int courseid,
int userid)
Checks whether a certain course can be removed by a certain user |
void |
editLecture(int lectureid,
java.lang.String title,
java.lang.String content,
int lecturerid,
int lecture_num)
Edits a lecture. |
Lecture |
getLectureByLectureID(int lectureid)
|
java.util.Vector |
getLecturesByCourseID(int courseid)
|
boolean |
isLectureNumAvail(int courseid,
int lectureNum)
Checks whether a certain lecture number is availabe for a certain course |
void |
removeLecture(int lectureid)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public _LecturesBean()
Method Detail |
public java.util.Vector getLecturesByCourseID(int courseid)
courseid
- id of the course
public Lecture getLectureByLectureID(int lectureid)
lectureid
- id of the lecture
public boolean canEdit(int courseid, int userid)
courseid
- id of the lectureuserid
- id of the user who wants to edit lecture
public boolean canRemove(int courseid, int userid)
courseid
- id of the courseuserid
- id of the user
public void addLecture(int courseid, java.lang.String title, java.lang.String content, int lecturerid, int lecture_num)
courseid
- id of the new coursetitle
- title of the new coursecontent
- content of the new courselecturerid
- id of the lecturer who is owner of the courselecture_num
- number of the course, unique in the coursepublic void editLecture(int lectureid, java.lang.String title, java.lang.String content, int lecturerid, int lecture_num)
lectureid
- id of the lecture that will be editedtitle
- title that will change the current titlecontent
- content that will change the current contentlecturerid
- id of the lecturer who wants to edit the lecturelecture_num
- lecture number that will change the current lecture numberpublic void removeLecture(int lectureid)
public boolean isLectureNumAvail(int courseid, int lectureNum)
courseid
- id of the courselectureNum
- lecture number
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |