Package net.naijatek.myalumni.modules.admin.presentation.form

Examples of net.naijatek.myalumni.modules.admin.presentation.form.SystemConfigForm


  public ActionForward prepareUpdateAlbumUrl(ActionMapping mapping,
      ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    logger.debug("in prepareAlbumUrl...");
    saveToken(request);
    SystemConfigForm rssForm = (SystemConfigForm) form;
    SystemConfigVO systemSetup = systemConfigService.getSystemConfig();
    BeanUtils.copyProperties(rssForm, systemSetup);
    return mapping.findForward(BaseConstants.FWD_SUCCESS);
  }
View Full Code Here


   
    if (!isTokenValid(request)) {
      return mapping.findForward(BaseConstants.FWD_INVALID_TOKEN);
    }
    ActionMessages msgs = new ActionMessages();
    SystemConfigForm rssForm = (SystemConfigForm) form;

    systemConfigService.updateAlbumUrl(rssForm.getAlbumUrl(), getLastModifiedBy(request));
    sCtx.setAttribute(BaseConstants.ALBUM_URL, rssForm.getAlbumUrl());
    msgs.add(BaseConstants.INFO_KEY, new ActionMessage("message.record.updated"));
    saveMessages(request, msgs);
    resetToken(request);
    return mapping.findForward(BaseConstants.FWD_SUCCESS);
  }
View Full Code Here

  public ActionForward prepareUpdateForumUrl(ActionMapping mapping,
      ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    logger.debug("in prepareUpdateForumUrl...");
    saveToken(request);
    SystemConfigForm rssForm = (SystemConfigForm) form;
    SystemConfigVO systemSetup = systemConfigService.getSystemConfig();
    BeanUtils.copyProperties(rssForm, systemSetup);
    return mapping.findForward(BaseConstants.FWD_SUCCESS);
  }
View Full Code Here

   
    if (!isTokenValid(request)) {
      return mapping.findForward(BaseConstants.FWD_INVALID_TOKEN);
    }
    ActionMessages msgs = new ActionMessages();
    SystemConfigForm rssForm = (SystemConfigForm) form;

    systemConfigService.updateForumUrl(rssForm.getForumUrl(), getLastModifiedBy(request));
    sCtx.setAttribute(BaseConstants.FORUM_URL, rssForm.getForumUrl());
    msgs.add(BaseConstants.INFO_KEY, new ActionMessage("message.record.updated"));
    saveMessages(request, msgs);
    resetToken(request);
    return mapping.findForward(BaseConstants.FWD_SUCCESS);
 
View Full Code Here

      ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
   
    logger.debug("in prepareUpdateDormitory...");
    saveToken(request);
    SystemConfigForm sysForm = (SystemConfigForm) form;
    String hasDormitory = systemConfigService.getDormitory();
    sysForm.setHasDormitory(hasDormitory);
    return mapping.findForward(BaseConstants.FWD_SUCCESS);
  }
View Full Code Here

   */
  public boolean orgFirstYear(Object bean,
      ValidatorAction va, Field field, ActionMessages msgs,
      HttpServletRequest request) {

    SystemConfigForm sysConfigForm = (SystemConfigForm)bean;
   
    String orgYear = sysConfigForm.getOrgFirstYear();
    int intOrgYear = Integer.parseInt(orgYear);
   
        GregorianCalendar ct = new GregorianCalendar();
        int currentYear = ct.get(Calendar.YEAR);   

View Full Code Here

TOP

Related Classes of net.naijatek.myalumni.modules.admin.presentation.form.SystemConfigForm

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.