public interface ManifestManager
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.
|
ManifestDTO getManifest(java.lang.String manifestKey, TutorContext context)
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 idmanifestKey
- the manifest keycontext
- the context from the tutorManifest manifestDTOToManifest(java.util.List<ManifestDTO> manifests)
manifests
- the list of manifestDTOs.Manifest manifestDTOToManifest(ManifestDTO manifest)
manifest
- the manifestDTOjava.util.List<ManifestDTO> getTutoringManifestsForProblem(java.lang.String problemId)
Manifest getFullManifestTree(java.lang.String manifestKey)
Manifest getFullManifestTreeByUID(java.lang.String manifestUID)
Manifest getManifestWithoutChildren(java.lang.String manifestKey)
Manifest getManifestWithoutChildrenByUID(java.lang.String manifestUID)
java.util.List<Manifest> getProblemManifestsForProblemSet(int problemSetId)
java.util.List<Manifest> getProblemManifestsForProblemSet(java.lang.String problemSetXRef)
java.lang.String getProblemContentKey(java.lang.String manifestKey)