public class DTOConverter extends Object
Modifier and Type | Field and Description |
---|---|
static String |
USERNAME_SEPARATOR
The Constant USERNAME_SEPARATOR.
|
Constructor and Description |
---|
DTOConverter() |
public static final String USERNAME_SEPARATOR
public static List<String> fromSharedWith(String sharedWith)
sharedWith
- the shared withpublic static String toSharedWith(List<String> listOfUsername)
listOfUsername
- the list of usernamepublic static String addUsernameToShareWith(String sharedWith, List<String> listOfUsername)
sharedWith
- the shared withlistOfUsername
- the list of usernamepublic static List<TrainingCourseDTO> fromListOfProject(List<TrainingProject> listPrj)
listPrj
- the list prjpublic static List<TrainingUnitDTO> fromListOfUnit(List<TrainingUnit> listUnit)
listUnit
- the list unitpublic static TrainingCourseDTO fromTrainingProject(TrainingProject project)
project
- the projectpublic static TrainingUnitDTO fromTrainingUnit(TrainingUnit unit)
unit
- the unitpublic static TrainingUnit toTrainingUnit(TrainingUnitDTO unit)
unit
- the unitpublic static ProgressPerUnit toProgressUnit(TrainingUnitProgressDTO dto)
dto
- the dtopublic static TrainingUnitProgressDTO fromProgressUnit(ProgressPerUnit dao)
dao
- the daopublic static TrainingProject toTrainingProject(TrainingCourseDTO project)
project
- the projectpublic static TrainingUnitQuestionnaire toTrainingUnitQuestionnaire(TrainingUnitQuestionnaireDTO questDTO)
questDTO
- the quest DTOpublic static TrainingUnitQuestionnaireDTO fromTrainingUnitQuestionnaire(TrainingUnitQuestionnaire quest)
quest
- the questpublic static TrainingVideo toTrainingVideo(TrainingVideoDTO videoDTO)
videoDTO
- the video DTOpublic static TrainingVideoDTO fromTrainingVideo(TrainingVideo video)
video
- the videoCopyright © 2019. All Rights Reserved.