<%
if (studyPlan != null) {
//Add in plan -test
//Check that it is not possible to add element in plan that is under
//not planned group!
//Add element, which studygroupid = 195, in plan
StudyPlanElement toBePlanned = studyPlan.getElement(195);
if (toBePlanned != null)
toBePlanned.setPlanned(new PlannedElement());
//Add element, which studygroupid = 198, in plan
toBePlanned = studyPlan.getElement(198);
if (toBePlanned != null)
toBePlanned.setPlanned(new PlannedElement());
//Add element, which studygroupid = 199, in plan
toBePlanned = studyPlan.getElement(199);
if (toBePlanned != null)
toBePlanned.setPlanned(new PlannedElement());
//Remove from plan -test
toBePlanned = studyPlan.getElement(199);
if (toBePlanned != null)
toBePlanned.setPlanned(null);
%>
<%=studyPlan.getName()%>
<%
//Find element
for (int i = 191; i < 201; i++) {
StudyPlanElement element = studyPlan.getElement(i);
%>
studyGroupID = <%=i%> :
<%
if (element != null) {
%>
<%=element.printSelfModify()%>,
<%=element.getDepth()%>
<%
}
%>
<%
}
}
%>
StudyPlan.getElements(191, 199, 193, kissa, 200, 192)
<%
String ids[] = new String[]{"191","199","193","kissa","200","192"};
Vector elements = studyPlan.getElements(ids);
Iterator i = elements.iterator();
while (i.hasNext()) {
StudyPlanElement element = (StudyPlanElement)i.next();
out.println(element.printSelfModify() + ", ");
out.println(element.getStudyGroupID());
out.println("
");
}
out.println("
");
%>