public abstract class LessonAdapter extends AbstractLesson
ADMIN_ROLE, CHALLENGE_ROLE, HACKED_ADMIN_ROLE, USER_ROLE| Constructor and Description |
|---|
LessonAdapter() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.ecs.Element |
createContent(WebSession s)
Description of the Method
|
String |
getCurrentAction(WebSession s)
getCurrentAction.
|
protected org.apache.ecs.Element |
getCustomCredits(String text,
org.apache.ecs.Element e)
Gets the credits attribute of the AbstractLesson object
|
protected Category |
getDefaultCategory()
Gets the category attribute of the LessonAdapter object.
|
protected boolean |
getDefaultHidden()
getDefaultHidden.
|
protected Integer |
getDefaultRanking()
getDefaultRanking.
|
int |
getHintCount(WebSession s)
Gets the hintCount attribute of the Lesson object
|
protected List<String> |
getHints(WebSession s)
getHints.
|
String |
getInstructions(WebSession s)
Gets the instructions attribute of the AbstractLesson object
|
Object |
getSessionAttribute(WebSession s,
String key)
getSessionAttribute.
|
String |
getSubmitMethod()
provide a default submitMethod of lesson does not implement
|
String |
getTitle()
Fill in a descriptive title for this lesson.
|
protected org.apache.ecs.Element |
makeSuccess(WebSession s)
Description of the Method
|
void |
restartLesson()
Initiates lesson restart functionality.
|
void |
setCurrentAction(WebSession s,
String lessonScreen)
setCurrentAction.
|
void |
setSessionAttribute(WebSession s,
String key,
Object value)
setSessionAttribute.
|
compareTo, equals, getAvailableLanguages, getCategory, getDefaultLanguage, getFileMethod, getFileText, getFormAction, getHidden, getHint, getHintsPublic, getHtml_DELETE_ME, getLabelManager, getLessonName, getLessonPlan, getLessonPlanFileName, getLessonSolutionFileName, getLink, getName, getPage, getPath, getRanking, getRawSource, getRole, getScreenId, getServletLink, getSolution, getSource, getSourceFileName, getTemplatePage, getUserId, getUserName, getWebgoatContext, handleRequest, isAuthorized, isAuthorized, isCompleted, isEnterprise, makeWindowScript, readFromFile, readFromURL, readMethodFromFile, setHidden, setLessonPlanFileName, setLessonSolutionFileName, setRanking, setSourceFileName, setWebgoatContext, toString, updateconvertMetachars, convertMetacharsJavaCode, createLessonTracker, createLessonTracker, getContent, getContentLength, getLessonTracker, getLessonTracker, getLessonTracker, getSponsor, getSponsorLogoResource, makeLogo, makeMessages, output, pad, setContentprotected org.apache.ecs.Element createContent(WebSession s)
createContent in class Screens - Description of the Parameterprotected Category getDefaultCategory()
getDefaultCategory in class AbstractLessonprotected boolean getDefaultHidden()
getDefaultHidden.
getDefaultHidden in class AbstractLessonpublic void restartLesson()
restartLesson in class AbstractLessonprotected Integer getDefaultRanking()
getDefaultRanking.
getDefaultRanking in class AbstractLessonInteger object.public int getHintCount(WebSession s)
getHintCount in class AbstractLessons - The user's WebSessionprotected List<String> getHints(WebSession s)
getHints.
Fill in a minor hint that will help people who basically get it, but are stuck on somthing silly. Hints will be returned to the user in the order they appear below. The user must click on the "next hint" button before the hint will be displayed.getHints in class AbstractLessons - a WebSession object.List object.public String getSubmitMethod()
getSubmitMethod in class AbstractLessonString object.public String getInstructions(WebSession s)
getInstructions in class AbstractLessons - a WebSession object.public String getTitle()
getTitle in class AbstractLessonpublic String getCurrentAction(WebSession s)
getCurrentAction.
getCurrentAction in class AbstractLessons - a WebSession object.String object.public void setCurrentAction(WebSession s, String lessonScreen)
setCurrentAction.
setCurrentAction in class AbstractLessons - a WebSession object.lessonScreen - a String object.public Object getSessionAttribute(WebSession s, String key)
getSessionAttribute.
s - a WebSession object.key - a String object.Object object.public void setSessionAttribute(WebSession s, String key, Object value)
setSessionAttribute.
s - a WebSession object.key - a String object.value - a Object object.protected org.apache.ecs.Element makeSuccess(WebSession s)
s - Description of the ParameterCopyright © 2006–2016 OWASP. All rights reserved.