|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--kotkabeans.Copier
This bean makes queries/updates to database to copy existing course's definitions to another courseinstance.
Constructor Summary | |
Copier(DB db,
User user,
javax.servlet.jsp.JspWriter out)
|
|
Copier(User user,
javax.servlet.jsp.JspWriter out)
Constructs Copier object |
Method Summary | |
int |
copyCourseBeginTimes(int copyFromID,
int copyToID)
Copy beginning and endtimes |
int |
copyCourseBeginTimes(int copyFromID,
int copyToID,
int diffYear)
|
boolean |
copyCourseDescription(int copyFromID,
int copyToID)
Copy descriptions related to a courseinstance to the other courseinstance. |
int |
copyCourseEventGroup(int copyFromID,
int copyToID,
int eventGroupID)
Copy event information related to a courseinstance to the other courseinstance. |
int |
copyCourseEventGroup(int copyFromID,
int copyToID,
int eventGroupID,
int diffYear)
|
int |
copyCourseFieldGroup(int copyFrom,
int copyTo,
int fieldGroupID)
Copy course related fieldgroups |
boolean |
copyCourseInstance(int copyFromID,
int copyToID)
Copy all data related to a courseinstance to the other courseinstance. |
boolean |
copyCourseInstance(int copyFromID,
int copyToID,
int yearDiff)
|
int |
copyCourseRaport(int copyFrom,
int copyTo,
int raportID)
Copy course related raports |
int |
copyCourseRegistration(int copyFromID,
int copyToID)
Copy details related to registration |
int |
copyCourseRegistration(int copyFromID,
int copyToID,
int diffYear)
|
int |
copyCourseVisibility(int copyFromID,
int copyToID)
Copy details related to course's visibility in Korppi and to users in general. |
void |
printCoursesToOptionList(java.lang.String def)
Method to print all courses for user to select |
void |
setDB(DB db)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Copier(User user, javax.servlet.jsp.JspWriter out)
user
- No idea if we need thisone...public Copier(DB db, User user, javax.servlet.jsp.JspWriter out)
Method Detail |
public void setDB(DB db)
public boolean copyCourseInstance(int copyFromID, int copyToID)
copyFromID
- The courseinstance from witch to copycopyToID
- The courseinstance witch to copypublic boolean copyCourseInstance(int copyFromID, int copyToID, int yearDiff)
public boolean copyCourseDescription(int copyFromID, int copyToID)
copyFromID
- The courseinstance from witch to copycopyToID
- The courseinstance witch to copypublic int copyCourseBeginTimes(int copyFromID, int copyToID)
copyFromID
- The courseinstance from witch to copycopyToID
- The courseinstance witch to copypublic int copyCourseBeginTimes(int copyFromID, int copyToID, int diffYear)
public int copyCourseRegistration(int copyFromID, int copyToID)
copyFromID
- The courseinstance from witch to copycopyToID
- The courseinstance witch to copypublic int copyCourseRegistration(int copyFromID, int copyToID, int diffYear)
public int copyCourseVisibility(int copyFromID, int copyToID)
copyFromID
- The courseinstance from witch to copycopyToID
- The courseinstance witch to copypublic int copyCourseEventGroup(int copyFromID, int copyToID, int eventGroupID)
copyFromID
- The courseinstance from witch to copycopyToID
- The courseinstance witch to copypublic int copyCourseEventGroup(int copyFromID, int copyToID, int eventGroupID, int diffYear)
public int copyCourseFieldGroup(int copyFrom, int copyTo, int fieldGroupID)
public int copyCourseRaport(int copyFrom, int copyTo, int raportID)
public void printCoursesToOptionList(java.lang.String def)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |