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

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


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


    logger.debug("in updateOrgIntro...");
    if (!isTokenValid(request)) {
      return mapping.findForward(BaseConstants.FWD_INVALID_TOKEN);
    }
    ActionMessages msgs = new ActionMessages();
    SystemConfigForm orgInfoForm = (SystemConfigForm) form;
    SystemConfigVO orgInfoVO = new SystemConfigVO();
    BeanUtils.copyProperties(orgInfoVO, orgInfoForm);

    orgInfoVO.setLastModifiedBy(getLastModifiedBy(request));
View Full Code Here

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

    logger.debug("in updateOrgInfo...");
    if (!isTokenValid(request)) {
      return mapping.findForward(BaseConstants.FWD_INVALID_TOKEN);
    }
    ActionMessages msgs = new ActionMessages();
    SystemConfigForm orgInfoForm = (SystemConfigForm) form;
    SystemConfigVO orgInfoVO = new SystemConfigVO();
    BeanUtils.copyProperties(orgInfoVO, orgInfoForm);

    orgInfoVO.setLastModifiedBy(getLastModifiedBy(request));
View Full Code Here

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

    logger.debug("in updateRssFeed...");
    if (!isTokenValid(request)) {
      return mapping.findForward(BaseConstants.FWD_INVALID_TOKEN);
    }
    ActionMessages msgs = new ActionMessages();
    SystemConfigForm rssForm = (SystemConfigForm) form;
    systemConfigService.updateRssFeedUrl(rssForm.getRssUrl(), rssForm.getRssHeader(), getLastModifiedBy(request));
    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 prepareUpdateServerUrl(ActionMapping mapping,
      ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    logger.debug("in prepareUpdateServerUrl...");
    saveToken(request);
    SystemConfigForm rssForm = (SystemConfigForm) form;
    SystemConfigVO systemSetup = systemConfigService.getSystemConfig();
    BeanUtils.copyProperties(rssForm, systemSetup);
    return mapping.findForward(BaseConstants.FWD_SUCCESS);
  }
View Full Code Here

    logger.debug("in updateServerUrl...");
    if (!isTokenValid(request)) {
      return mapping.findForward(BaseConstants.FWD_INVALID_TOKEN);
    }
    ActionMessages msgs = new ActionMessages();
    SystemConfigForm rssForm = (SystemConfigForm) form;
   
    ServletContext sCtx = request.getSession().getServletContext();
    systemConfigService.updateServerUrl(rssForm.getServerUrl(), getLastModifiedBy(request));
    sCtx.setAttribute(BaseConstants.SERVER_URL, rssForm.getServerUrl());
    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 prepareUpdateTwitterCred(ActionMapping mapping,
      ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    logger.debug("in prepareUpdateTwitterCred...");
    saveToken(request);
    SystemConfigForm configForm = (SystemConfigForm) form;
    SystemConfigVO systemSetup = systemConfigService.getSystemConfig();
    BeanUtils.copyProperties(configForm, systemSetup);
    return mapping.findForward(BaseConstants.FWD_SUCCESS);
  }
View Full Code Here

    logger.debug("in updateTwitterCred...");
    if (!isTokenValid(request)) {
      return mapping.findForward(BaseConstants.FWD_INVALID_TOKEN);
    }
    ActionMessages msgs = new ActionMessages();
    SystemConfigForm configForm = (SystemConfigForm) form;
   
    TwitterVO twitterVO = new TwitterVO();
    twitterVO.setTwitteruser(configForm.getTwitteruser());
    twitterVO.setTwitterpswd(Base64Coder.encodeString(configForm.getTwitterpswd()));
    twitterVO.setLastModifiedBy(getLastModifiedBy(request));
       
    systemConfigService.updateTwitterCredentials(twitterVO);
   
    msgs.add(BaseConstants.INFO_KEY, new ActionMessage("message.record.updated"));
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.