Ejemplo n.º 1
0
 @Action(
     value = "uploadCourseMaterial",
     results = {
       @Result(
           name = SUCCESS,
           type = Constants.RESULT_NAME_TILES,
           location = ".uploadCourseMaterial")
     })
 public String uploadCourseMaterial() {
   courseMaterials = courseMaterialDao.findByCourseId(null, this.getCourse().getId());
   return SUCCESS;
 }
Ejemplo n.º 2
0
 @Action(value = "deleteCourseMaterial")
 public void deleteCourseMaterial() {
   CourseMaterial courseMaterial = courseMaterialDao.findById(this.getCourseMaterial().getId());
   courseMaterial.setIsDisplay(false);
   courseMaterialDao.persist(courseMaterial);
 }
Ejemplo n.º 3
0
 @Action(value = "material")
 public String material() {
   CourseMaterial courseMaterial = courseMaterialDao.findById(materialId);
   Utils.doCopy(voInfo, courseMaterial);
   return RESULT_JSON;
 }