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

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


    if (!isTokenValid(request)) {
      return mapping.findForward(BaseConstants.FWD_INVALID_TOKEN);
    }
   
    ActionMessages msgs = new ActionMessages();
    SystemConfigForm sysForm = (SystemConfigForm) form;
    SystemConfigVO sysVO = new SystemConfigVO();
    BeanUtils.copyProperties(sysVO, sysForm);

    systemConfigService.updateDormitory(sysVO);
    if (sysVO.getHasDormitory() != null){
View Full Code Here


      ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
   
    logger.debug("in prepareUpdateBirthdayNotification...");
    saveToken(request);
    SystemConfigForm sysForm = (SystemConfigForm) form;
    String birthdayNotification = systemConfigService.getBirthdayNotification();
    sysForm.setBirthdayNotification(birthdayNotification);
    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 sysForm = (SystemConfigForm) form;
    SystemConfigVO systemConfigVO = new SystemConfigVO();
    BeanUtils.copyProperties(systemConfigVO, sysForm);

    systemConfigService.updateBirthdayNotification(systemConfigVO);
    msgs.add(BaseConstants.INFO_KEY, new ActionMessage("message.record.updated"));
View Full Code Here

  public ActionForward prepareUpdateSessionTimeOut(ActionMapping mapping,
      ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    logger.debug("in prepareUpdateSessionTimeOut...");
    saveToken(request);
    SystemConfigForm systemForm = (SystemConfigForm) form;
    int timeout = systemConfigService.getSessionTimeOut();
    systemForm.setSessionTimeout(String.valueOf(timeout));
    return mapping.findForward(BaseConstants.FWD_SUCCESS);
  }
View Full Code Here

    logger.debug("in updateSessionTimeOut...");
    if (!isTokenValid(request)) {
      return mapping.findForward(BaseConstants.FWD_INVALID_TOKEN);
    }
    ActionMessages msgs = new ActionMessages();
    SystemConfigForm systemForm = (SystemConfigForm) form;

    systemConfigService.updateSessionTimeOut(systemForm.getSessionTimeout(), 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

    //if (!isTokenValid(request)) {
    //  return mapping.findForward(BaseConstants.FWD_INVALID_TOKEN);
    //}
    ServletContext sCtx = request.getSession().getServletContext();
    ActionMessages msgs = new ActionMessages();
    SystemConfigForm systemConfigForm = (SystemConfigForm) form;
    SystemConfigVO systemConfigVO = new SystemConfigVO();
    BeanUtils.copyProperties(systemConfigVO, systemConfigForm);
   
    try{
      DateTime dt = new DateTime();
View Full Code Here

  public ActionForward prepareUploadLogo(ActionMapping mapping, ActionForm form,
      HttpServletRequest request, HttpServletResponse response)
      throws Exception {
    logger.debug("in prepareUploadLogo...");
    //ActionMessages msgs = new ActionMessages();
    SystemConfigForm systemConfigForm = (SystemConfigForm) form;
    SystemConfigVO systemConfigVO = new SystemConfigVO();
    systemConfigVO = systemConfigService.getSystemConfig();
    BeanUtils.copyProperties(systemConfigForm, systemConfigVO);   
   
    return mapping.findForward(BaseConstants.FWD_SUCCESS);
View Full Code Here

    logger.debug("in uploadLogo...");

    if (!adminSecurityCheck(request)) {
      return mapping.findForward(BaseConstants.FWD_ADMIN_LOGIN);
    }   
    SystemConfigForm systemConfigForm = (SystemConfigForm) form;
    String fileAllowedTypes = SystemConfigConstants.CONTENT_TYPE;
    int maxFileSize = SystemConfigConstants.LOGO_MAX_SIZE;   
    ActionMessages msgs = new ActionMessages();
    FormFile formFile = systemConfigForm.getLogoUpload();
    int height = SystemConfigConstants.LOGO_HEIGHT;
    int width = SystemConfigConstants.LOGO_WIDTH;
    msgs = validateUploadFile(request, formFile, fileAllowedTypes, maxFileSize, true, height, false, width);
   
    if (msgs.isEmpty()){
View Full Code Here

  public ActionForward prepareUpdateOrgAboutUs(ActionMapping mapping,
      ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    logger.debug("in prepareUpdateOrgAboutUs...");
    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 updateOrgAboutUs...");
    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

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.