Removed the "NewLessons" category. NewLesson is now the first in the "General" list.

git-svn-id: http://webgoat.googlecode.com/svn/trunk@83 4033779f-a91e-0410-96ef-6bf7bf53c507
This commit is contained in:
esheri3 2007-01-24 19:16:19 +00:00
parent 2266361186
commit e0354c1e25
2 changed files with 20 additions and 29 deletions

View File

@ -142,9 +142,6 @@ public abstract class AbstractLesson extends Screen implements Comparable
public final static Category AJAX_SECURITY = new Category("AJAX Security", public final static Category AJAX_SECURITY = new Category("AJAX Security",
new Integer(1150)); new Integer(1150));
public final static Category NEW_LESSON = new Category("New Lessons",
new Integer(1210));
public final static Category ADMIN_FUNCTIONS = new Category( public final static Category ADMIN_FUNCTIONS = new Category(
"Admin Functions", new Integer(10)); "Admin Functions", new Integer(10));
@ -196,7 +193,10 @@ public abstract class AbstractLesson extends Screen implements Comparable
private String lessonPlanFileName; private String lessonPlanFileName;
static /**
* Constructor for the Lesson object
*/
public AbstractLesson()
{ {
categories.add(A1); categories.add(A1);
categories.add(A2); categories.add(A2);
@ -210,19 +210,10 @@ public abstract class AbstractLesson extends Screen implements Comparable
categories.add(A10); categories.add(A10);
categories.add(WEB_SERVICES); categories.add(WEB_SERVICES);
categories.add(AJAX_SECURITY); categories.add(AJAX_SECURITY);
categories.add(NEW_LESSON);
categories.add(ADMIN_FUNCTIONS); categories.add(ADMIN_FUNCTIONS);
categories.add(GENERAL); categories.add(GENERAL);
categories.add(CODE_QUALITY); categories.add(CODE_QUALITY);
categories.add(CHALLENGE); categories.add(CHALLENGE);
}
/**
* Constructor for the Lesson object
*/
public AbstractLesson()
{
id = new Integer(++count); id = new Integer(++count);
} }

View File

@ -61,10 +61,10 @@ public class NewLesson extends LessonAdapter
*/ */
protected Category getDefaultCategory() protected Category getDefaultCategory()
{ {
return AbstractLesson.NEW_LESSON; return GENERAL;
} }
private final static Integer DEFAULT_RANKING = new Integer(10); private final static Integer DEFAULT_RANKING = new Integer(5);
protected Integer getDefaultRanking() protected Integer getDefaultRanking()