@Component public class ProblemSetManagerImpl extends java.lang.Object implements ProblemSetManager
Modifier and Type | Field and Description |
---|---|
(package private) ProblemDao |
problemDao |
(package private) SectionDao |
sectionDao |
(package private) SectionLinkDao |
sectionLinkDao |
(package private) SequenceDao |
sequenceDao |
Constructor and Description |
---|
ProblemSetManagerImpl() |
Modifier and Type | Method and Description |
---|---|
ProblemSet |
getPreviewProblemSet(int problemId)
Given a UID and a problemId create the preview problem set
|
ProblemSet |
getProblemSet(int dbId)
Given a section id return a problemSet object
|
boolean |
isPlacementsTest(Assignment ca) |
void |
setUpPreviewProblemSetManifest(ManifestDTO man,
java.lang.String uid)
Set up a Preview Problem Set MAnifest.
|
void |
setUpProblemSetManifest(ManifestDTO man,
java.lang.String uid)
Given an empty ManifestDTO and a uid string, build the ProblemSetManifest
that corresponds to the uid that will be given to the tutor.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setManifestTutorMode
@Autowired SectionDao sectionDao
@Autowired SectionLinkDao sectionLinkDao
@Autowired ProblemDao problemDao
@Autowired SequenceDao sequenceDao
public ProblemSet getProblemSet(int dbId)
ProblemSetManager
getProblemSet
in interface ProblemSetManager
dbId
- the section idpublic void setUpProblemSetManifest(ManifestDTO man, java.lang.String uid)
ProblemSetManager
setUpProblemSetManifest
in interface ProblemSetManager
man
- The empty ManifestDTOuid
- The problemSetId string (sectionId in the current system)public void setUpPreviewProblemSetManifest(ManifestDTO man, java.lang.String uid)
ProblemSetManager
setUpPreviewProblemSetManifest
in interface ProblemSetManager
man
- The empty ManifestDTOuid
- The uid stringpublic boolean isPlacementsTest(Assignment ca)
isPlacementsTest
in interface ProblemSetManager
public ProblemSet getPreviewProblemSet(int problemId)
ProblemSetManager
getPreviewProblemSet
in interface ProblemSetManager
problemId
- the problem id