|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--kotkabeans.NoticeBean
This bean makes queries to database to show single person's messages and to add new messages into database.
Constructor Summary | |
NoticeBean()
Dummy empty constructor. |
|
NoticeBean(DB db,
User user)
|
|
NoticeBean(User user)
|
Method Summary | |
int |
countMessages(int personID)
Exceute query to count the number of current messages for specified user. |
java.lang.String[] |
getReceivers(int noticeid)
Exceute query to list all receivers of given message. |
void |
listPeopleToMultiselect(javax.servlet.jsp.JspWriter out,
java.lang.String[] names,
java.lang.String selectName)
Exceute query to list all people's names according to given id's |
void |
listPeopleToMultiselect(javax.servlet.jsp.JspWriter out,
User user,
java.lang.String cond,
int kolibriGroupID,
int userGroupID,
int departmentID,
int courseID)
Exceute query to list all people that match given condition |
void |
markAsDeleted(java.lang.String dels)
Exceute query to mark some messages to be deleted. |
void |
markAsSaved(java.lang.String saves)
Exceute query to mark some messages to be saved. |
void |
printKotkaCourse(javax.servlet.jsp.JspWriter out,
java.lang.String selectName,
int noChoiseValue,
int selected)
Exceute query to list all user groups in KOTKA system into a select box. |
void |
printKotkaDepartments(javax.servlet.jsp.JspWriter out,
java.lang.String selectName,
int noChoiseValue,
int selected)
Exceute query to list all departments in KOTKA system into a select box. |
void |
printKotkaUserGroups(javax.servlet.jsp.JspWriter out,
java.lang.String selectName,
int noChoiceValue,
int selected)
Exceute query to list all user groups in KOTKA system into a select box. |
void |
printKotkaUserGroups(javax.servlet.jsp.JspWriter out,
java.lang.String selectName,
int noChoiceValue,
int selected,
User user)
|
void |
printMessages(javax.servlet.jsp.JspWriter out,
int personID,
boolean markAsRead)
Exceute query to list given person's messages. |
int |
setNoticeBoardMsg(java.lang.String message,
java.lang.String url,
java.lang.String urlname)
Exceute query to add new notice into tables noticeboard and noticeboardmsg. |
void |
writeToNoticeBoard(int writerID,
int receiverID,
int msgID,
java.lang.String showUntil)
Exceute query to add new notice into tables noticeboard and noticeboardmsg. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NoticeBean()
public NoticeBean(User user)
public NoticeBean(DB db, User user)
Method Detail |
public int setNoticeBoardMsg(java.lang.String message, java.lang.String url, java.lang.String urlname) throws java.lang.Exception
message
- The body of the message.url
- The url related to the message.
java.lang.Exception
public void writeToNoticeBoard(int writerID, int receiverID, int msgID, java.lang.String showUntil) throws java.lang.Exception
writerID
- The person who is about to add the message.receiverID
- The person to who the message is left.msgID
- The id of message to be added.showUntil
- The last date to show notice if the person
hasn't read the message before that date.
java.lang.Exception
public void printMessages(javax.servlet.jsp.JspWriter out, int personID, boolean markAsRead) throws java.lang.Exception
out
- The output streammarkAsRead
- Mark the messages to be read
java.lang.Exception
public int countMessages(int personID) throws java.lang.Exception
java.lang.Exception
public void markAsSaved(java.lang.String saves) throws java.lang.Exception
saves
- The id's of notices to be saved. String must be in format
save1, save2, ... i.e. separated by comma.
java.lang.Exception
public void markAsDeleted(java.lang.String dels) throws java.lang.Exception
java.lang.Exception
public void listPeopleToMultiselect(javax.servlet.jsp.JspWriter out, User user, java.lang.String cond, int kolibriGroupID, int userGroupID, int departmentID, int courseID) throws java.lang.Exception
out
- The output streamcond
- The condition for lastname
java.lang.Exception
public void listPeopleToMultiselect(javax.servlet.jsp.JspWriter out, java.lang.String[] names, java.lang.String selectName) throws java.lang.Exception
out
- The output streamnames
- The array containing id'sselectName
- The name for select box
java.lang.Exception
public java.lang.String[] getReceivers(int noticeid) throws java.lang.Exception
noticeid
- The id of the notice.
java.lang.Exception
public void printKotkaUserGroups(javax.servlet.jsp.JspWriter out, java.lang.String selectName, int noChoiceValue, int selected) throws java.lang.Exception
out
- The output stream
java.lang.Exception
public void printKotkaUserGroups(javax.servlet.jsp.JspWriter out, java.lang.String selectName, int noChoiceValue, int selected, User user) throws java.lang.Exception
java.lang.Exception
public void printKotkaDepartments(javax.servlet.jsp.JspWriter out, java.lang.String selectName, int noChoiseValue, int selected) throws java.lang.Exception
out
- The output stream
java.lang.Exception
public void printKotkaCourse(javax.servlet.jsp.JspWriter out, java.lang.String selectName, int noChoiseValue, int selected) throws java.lang.Exception
out
- The output stream
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |