Examples of FrontPageForm


Examples of net.naijatek.myalumni.modules.common.presentation.form.FrontPageForm

        return mapping.findForward(BaseConstants.FWD_SUCCESS);
    }   

    public ActionForward viewFrontPageLinks(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
        logger.debug("in viewFrontPageLinks...");      
        FrontPageForm frontPageForm = (FrontPageForm) form;
        FrontPageVO frontPageVO = new FrontPageVO();
        frontPageVO = frontPageService.findById(frontPageForm.getLinkId());
        BeanUtils.copyProperties(frontPageForm, frontPageVO );
        return mapping.findForward(BaseConstants.FWD_SUCCESS);
    }   
View Full Code Here

Examples of net.naijatek.myalumni.modules.common.presentation.form.FrontPageForm

        logger.debug("in updateFrontPageLinks...");
        if ( !isTokenValid(request) ) {
            return mapping.findForward(BaseConstants.FWD_INVALID_TOKEN);
        }         
       
        FrontPageForm frontPageForm = (FrontPageForm) form;
        FrontPageVO frontPageVO = new FrontPageVO();
        BeanUtils.copyProperties(frontPageVO, frontPageForm);
        frontPageVO.setLastModifiedBy(getLastModifiedBy(request));
        frontPageService.merge(frontPageVO);
        getFrontPageHelper(request);
View Full Code Here

Examples of net.naijatek.myalumni.modules.common.presentation.form.FrontPageForm

            return mapping.findForward(BaseConstants.FWD_INVALID_TOKEN);
        }         
    if (!adminSecurityCheck(request)) {
      return mapping.findForward(BaseConstants.FWD_ADMIN_LOGIN);
    }       
        FrontPageForm frontPageForm = (FrontPageForm) form;
        FrontPageVO frontPageVO = new FrontPageVO();
        BeanUtils.copyProperties(frontPageVO, frontPageForm);
        frontPageVO.setLastModifiedBy(getLastModifiedBy(request));
        frontPageService.save(frontPageVO);
        getFrontPageHelper(request);
View Full Code Here

Examples of net.naijatek.myalumni.modules.common.presentation.form.FrontPageForm

   
   
    public ActionForward prepareUpdateFrontPageLinks(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
        logger.debug("in prepareUpdateFrontPageLinks...");   
        saveToken(request);
        FrontPageForm frontPageForm = (FrontPageForm) form;
        FrontPageVO frontPageVO = frontPageService.findById(frontPageForm.getLinkId());
        BeanUtils.copyProperties(frontPageForm, frontPageVO);
        getFrontPageHelper(request);
        return mapping.findForward(BaseConstants.FWD_SUCCESS);
    }
View Full Code Here

Examples of net.naijatek.myalumni.modules.common.presentation.form.FrontPageForm

    public ActionForward deleteFrontPageLinks(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
        logger.debug("in deleteFrontPageLinks...");       
    if (!adminSecurityCheck(request)) {
      return mapping.findForward(BaseConstants.FWD_ADMIN_LOGIN);
    }       
        FrontPageForm frontPageForm = (FrontPageForm) form;
        frontPageService.softDelete(frontPageForm.getLinkId(), getLastModifiedBy(request));
        getFrontPageHelper(request);
        return mapping.findForward(BaseConstants.FWD_SUCCESS);
    }
View Full Code Here

Examples of net.naijatek.myalumni.modules.common.presentation.form.FrontPageForm

   * @return boolean
   */
  public boolean validateFrontPageUrl(Object bean, ValidatorAction va,
      Field field, ActionMessages messages, HttpServletRequest request) {

    FrontPageForm form = (FrontPageForm)bean;
    String url = form.getLinkurl();

    try {
      if (url != null && url.length() > 0) {
        ParamUtil.getParameterUrl(url);
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.