@Component public class ManifestManagerImpl extends java.lang.Object implements ManifestManager
Constructor and Description |
---|
ManifestManagerImpl() |
Modifier and Type | Method and Description |
---|---|
Manifest |
getFullManifestTree(java.lang.String manifestKey) |
Manifest |
getFullManifestTreeByUID(java.lang.String manifestUID) |
ManifestDTO |
getManifest(java.lang.String manifestKey,
TutorContext context)
Given a ManifestKey and a context map (look to make this map optional) get back a manifest object
Manifest keys include:
"<type>/<uid>"
type is always the
Manifest class name
uid is made up of two main parts
"<code><id>" or "<code><id1>-<id2>"
a code is one of many from ManifestCode
the id's are the database id's of sections and problems
EX:
ProblemSet uid - "PS1234" - 1234 is the section id
Problem uid - "PR12-343" - 12 is the section id, 343 is the problem id
Problem uid - "PR-5321" - there is no section id, 5321 is the problem id |
Manifest |
getManifestWithoutChildren(java.lang.String manifestKey) |
Manifest |
getManifestWithoutChildrenByUID(java.lang.String manifestUID) |
java.lang.String |
getProblemContentKey(java.lang.String manifestKey) |
java.util.List<Manifest> |
getProblemManifestsForProblemSet(int problemSetId) |
java.util.List<Manifest> |
getProblemManifestsForProblemSet(java.lang.String problemSetXRef) |
java.util.List<ManifestDTO> |
getTutoringManifestsForProblem(java.lang.String problemId) |
Manifest |
manifestDTOToManifest(java.util.List<ManifestDTO> manifests)
Given a list of manifestDTOs create the manifest tree and return the topmost manifest.
|
Manifest |
manifestDTOToManifest(ManifestDTO manifest)
Given a manifestDTO create a single manifest with no children.
|
public ManifestDTO getManifest(java.lang.String manifestKey, TutorContext context)
ManifestManager
Manifest
class name
uid is made up of two main parts
"<code><id>" or "<code><id1>-<id2>"
a code is one of many from ManifestCode
the id's are the database id's of sections and problems
EX:
ProblemSet uid - "PS1234" - 1234 is the section id
Problem uid - "PR12-343" - 12 is the section id, 343 is the problem id
Problem uid - "PR-5321" - there is no section id, 5321 is the problem idgetManifest
in interface ManifestManager
manifestKey
- the manifest keycontext
- the context from the tutorpublic java.util.List<ManifestDTO> getTutoringManifestsForProblem(java.lang.String problemId)
getTutoringManifestsForProblem
in interface ManifestManager
public Manifest manifestDTOToManifest(java.util.List<ManifestDTO> manifests)
ManifestManager
manifestDTOToManifest
in interface ManifestManager
manifests
- the list of manifestDTOs.public Manifest manifestDTOToManifest(ManifestDTO manifest)
ManifestManager
manifestDTOToManifest
in interface ManifestManager
manifest
- the manifestDTOpublic Manifest getFullManifestTree(java.lang.String manifestKey)
getFullManifestTree
in interface ManifestManager
public Manifest getFullManifestTreeByUID(java.lang.String manifestUID)
getFullManifestTreeByUID
in interface ManifestManager
public java.util.List<Manifest> getProblemManifestsForProblemSet(int problemSetId)
getProblemManifestsForProblemSet
in interface ManifestManager
public java.util.List<Manifest> getProblemManifestsForProblemSet(java.lang.String problemSetXRef)
getProblemManifestsForProblemSet
in interface ManifestManager
public java.lang.String getProblemContentKey(java.lang.String manifestKey)
getProblemContentKey
in interface ManifestManager
public Manifest getManifestWithoutChildren(java.lang.String manifestKey)
getManifestWithoutChildren
in interface ManifestManager
public Manifest getManifestWithoutChildrenByUID(java.lang.String manifestUID)
getManifestWithoutChildrenByUID
in interface ManifestManager