public class TrainingDTOManager extends Object
Modifier and Type | Method and Description |
---|---|
TrainingUnitQuestionnaire |
addQuestionnaireToTrainingUnit(long trainingUnitId,
TrainingUnitQuestionnaire questionnaire,
String context,
String owner)
Adds the questionnaire to training unit.
|
TrainingVideo |
addVideoToTrainingUnit(long trainingUnitId,
TrainingVideo video,
String context,
String owner)
Adds the video to training unit.
|
TrainingProject |
changeStatus(long trainingProjectId,
boolean isActive,
String context,
String owner)
Change status.
|
int |
deleteQuestionnaireForId(long questionnaireId,
String context)
Delete questionnaire for id.
|
int |
deleteTrainingProject(long trainingProjectId,
String context,
String owner)
Delete training project.
|
int |
deleteTrainingUnitFor(String ownerLogin,
String workspaceFolderId,
String context)
Delete training unit for.
|
int |
deleteTrainingUnitForId(Long unitId,
String context)
Delete training unit for id.
|
int |
deleteVideoForId(long videoId,
String context)
Delete video for id.
|
List<TrainingProject> |
getCoursesFor(String context)
Gets the user courses.
|
protected static TrainingDTOManager |
getInstance()
Gets the single instance of TrainingModuleManager.
|
List<TrainingUnitQuestionnaire> |
getListOfQuestionnaireForTrainingUnit(long trainingUnitId,
String context)
Gets the list of questionnaire for training unit.
|
List<TrainingVideo> |
getListOfVideoForTrainingUnit(long trainingUnitId,
String context)
Gets the list of video for training unit.
|
List<TrainingUnit> |
getListUnitForTrainingProject(long trainingProjectId,
String context)
Gets the list unit for training project.
|
List<TrainingProject> |
getOwnedCourses(String owner,
String context)
Gets the owned courses.
|
List<ProgressPerUnit> |
getProgressForUnit(long unitId,
String context,
String username,
String itemId,
ItemType itemType)
Gets the progress for unit.
|
TrainingProject |
getTrainingProject(long projectId,
String context,
String owner)
Gets the training project.
|
TrainingUnit |
getTrainingUnit(long unitId,
String context,
String owner)
Gets the training unit.
|
TrainingUnit |
getTrainingUnitFor(String ownerLogin,
String workspaceFolderId,
String context)
Gets the training unit for.
|
ProgressPerUnit |
setProgressForUnit(long unitId,
String context,
String username,
String itemId,
ItemType itemType,
boolean read)
Sets the progress for unit.
|
TrainingProject |
storeNewCourse(TrainingProject project,
String context,
String owner)
Store new course.
|
TrainingUnit |
storeNewUnit(long trainingProjectId,
TrainingUnit unit,
String context,
String owner)
Store new unit.
|
TrainingProject |
updateTrainingProject(TrainingProject project,
String context)
Update training project.
|
protected static TrainingDTOManager getInstance()
public List<TrainingProject> getCoursesFor(String context) throws Exception
context
- the contextException
- the exceptionpublic List<TrainingVideo> getListOfVideoForTrainingUnit(long trainingUnitId, String context) throws Exception
trainingUnitId
- the training unit idcontext
- the contextException
- the exceptionpublic List<TrainingUnitQuestionnaire> getListOfQuestionnaireForTrainingUnit(long trainingUnitId, String context) throws Exception
trainingUnitId
- the training unit idcontext
- the contextException
- the exceptionpublic List<TrainingProject> getOwnedCourses(String owner, String context) throws Exception
owner
- the usernamecontext
- the contextException
- the exceptionpublic TrainingProject storeNewCourse(TrainingProject project, String context, String owner) throws Exception
project
- the projectcontext
- the contextowner
- the ownerException
- the exceptionpublic TrainingUnit storeNewUnit(long trainingProjectId, TrainingUnit unit, String context, String owner) throws Exception
trainingProjectId
- the training project idunit
- the unitcontext
- the contextowner
- the ownerException
- the exceptionpublic TrainingUnit getTrainingUnit(long unitId, String context, String owner) throws Exception
unitId
- the unit idcontext
- the contextowner
- the ownerException
- the exceptionpublic TrainingProject getTrainingProject(long projectId, String context, String owner) throws Exception
projectId
- the project idcontext
- the contextowner
- the ownerException
- the exceptionpublic int deleteTrainingProject(long trainingProjectId, String context, String owner) throws Exception
trainingProjectId
- the training project idcontext
- the contextowner
- the ownerException
- the exceptionpublic TrainingProject changeStatus(long trainingProjectId, boolean isActive, String context, String owner) throws Exception
trainingProjectId
- the training project idisActive
- the is activecontext
- the contextowner
- the owner usernameException
- the exceptionpublic TrainingUnit getTrainingUnitFor(String ownerLogin, String workspaceFolderId, String context) throws Exception
ownerLogin
- the owner loginworkspaceFolderId
- the workspace folder idcontext
- the contextException
- the exceptionpublic List<TrainingUnit> getListUnitForTrainingProject(long trainingProjectId, String context) throws Exception
trainingProjectId
- the training project idcontext
- the contextException
- the exceptionpublic int deleteTrainingUnitFor(String ownerLogin, String workspaceFolderId, String context) throws Exception
ownerLogin
- the owner loginworkspaceFolderId
- the workspace folder idcontext
- the contextException
- the exceptionpublic int deleteTrainingUnitForId(Long unitId, String context) throws Exception
unitId
- the unit idcontext
- the contextException
- the exceptionpublic int deleteVideoForId(long videoId, String context) throws Exception
videoId
- the video idcontext
- the contextException
- the exceptionpublic int deleteQuestionnaireForId(long questionnaireId, String context) throws Exception
questionnaireId
- the questionnaire idcontext
- the contextException
- the exceptionpublic TrainingProject updateTrainingProject(TrainingProject project, String context) throws Exception
project
- the projectcontext
- the contextException
- the exceptionpublic TrainingUnitQuestionnaire addQuestionnaireToTrainingUnit(long trainingUnitId, TrainingUnitQuestionnaire questionnaire, String context, String owner) throws Exception
trainingUnitId
- the training unit idquestionnaire
- the questionnairecontext
- the contextowner
- the ownerException
- the exceptionpublic TrainingVideo addVideoToTrainingUnit(long trainingUnitId, TrainingVideo video, String context, String owner) throws Exception
trainingUnitId
- the training unit idvideo
- the videocontext
- the contextowner
- the ownerException
- the exceptionpublic ProgressPerUnit setProgressForUnit(long unitId, String context, String username, String itemId, ItemType itemType, boolean read) throws Exception
unitId
- the unit idcontext
- the contextusername
- the usernameitemId
- the item iditemType
- the item typeread
- the readException
- the exceptionpublic List<ProgressPerUnit> getProgressForUnit(long unitId, String context, String username, String itemId, ItemType itemType) throws Exception
unitId
- the unit idcontext
- the contextusername
- the usernameitemId
- the item iditemType
- the item typeException
- the exceptionCopyright © 2018. All Rights Reserved.