Package net.naijatek.myalumni.modules.common.domain

Examples of net.naijatek.myalumni.modules.common.domain.ClassNewsVO


    }   

    public ActionForward viewClassNews(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
        logger.debug("in viewClassNews...");      
        ClassNewsForm classNewsForm = (ClassNewsForm) form;
        ClassNewsVO classNewsVO = new ClassNewsVO();
        classNewsVO = classNewsService.findById(classNewsForm.getClassNewsId());
        BeanUtils.copyProperties(classNewsForm, classNewsVO );
        return mapping.findForward(BaseConstants.FWD_SUCCESS);
    }   
View Full Code Here


        logger.debug("in updateClassNews...");
        if ( !isTokenValid(request) ) {
            return mapping.findForward(BaseConstants.FWD_INVALID_TOKEN);
        }         
        ClassNewsForm classNewsForm = (ClassNewsForm) form;
        ClassNewsVO classNewsVO = new ClassNewsVO();
        BeanUtils.copyProperties(classNewsVO, classNewsForm);
        classNewsVO.setLastModifiedBy(getLastModifiedBy(request));
        classNewsService.merge(classNewsVO);
        getClassNewsHelper(request);
        resetToken(request);
        return mapping.findForward(BaseConstants.FWD_SUCCESS);
    }
View Full Code Here

        }         
    if (!adminSecurityCheck(request)) {
      return mapping.findForward(BaseConstants.FWD_ADMIN_LOGIN);
    }       
        ClassNewsForm classNewsForm = (ClassNewsForm) form;
        ClassNewsVO classNewsVO = new ClassNewsVO();
        BeanUtils.copyProperties(classNewsVO, classNewsForm);
        classNewsVO.setLastModifiedBy(getLastModifiedBy(request));
        classNewsVO.setAuthorId(getCurrentUserId(request));
        classNewsService.save(classNewsVO);
        getClassNewsHelper(request);
        resetToken(request);
        return mapping.findForward(BaseConstants.FWD_SUCCESS);
    }
View Full Code Here

   
    public ActionForward prepareUpdateClassNews(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
        logger.debug("in prepareUpdateClassNews...");   
        saveToken(request);
        ClassNewsForm classNewsForm = (ClassNewsForm) form;
        ClassNewsVO classNewsVO = classNewsService.findById(classNewsForm.getClassNewsId());
        BeanUtils.copyProperties(classNewsForm, classNewsVO);
        getClassNewsHelper(request);
        return mapping.findForward(BaseConstants.FWD_SUCCESS);
    }
View Full Code Here

      if (isCancelled(request)){
        return mapping.findForward(BaseConstants.FWD_CANCEL);
      }
     
      ClassNewsForm cnForm =  (ClassNewsForm)form;
      ClassNewsVO cnVO = new ClassNewsVO();  

      BeanUtils.copyProperties(cnVO, cnForm);
      cnVO.setLastModifiedBy(getLastModifiedBy(request));
      cnVO.setAuthorId(getCurrentUserId(request));
      classNewsService.save(cnVO);
      ActionMessages errors = new ActionMessages();
      errors.add(BaseConstants.INFO_KEY, new ActionMessage("message.classnewssubmitted"));
      saveMessages(request, errors);     
      return mapping.findForward(BaseConstants.FWD_SUCCESS);
View Full Code Here

                                       HttpServletResponse response) throws
        Exception {

      logger.debug("in viewClassNews");
      ClassNewsForm cnForm =  (ClassNewsForm)form;
      ClassNewsVO cnVO = new ClassNewsVO();  
     
      cnVO = classNewsService.findById(cnForm.getClassNewsId());
      BeanUtils.copyProperties(cnForm, cnVO);
      return mapping.findForward(BaseConstants.FWD_SUCCESS);
    }      
View Full Code Here

TOP

Related Classes of net.naijatek.myalumni.modules.common.domain.ClassNewsVO

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.