Examples of SystemConfigVO


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

      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

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

      }
      catch(Exception e){
        msgs.add(BaseConstants.WARN_KEY, new ActionMessage("error.cantupload"));
      }
     
      SystemConfigVO systemConfigVO = systemConfigService.getSystemConfig();
      systemConfigVO.setLogoFileName(formFile.getFileName());
      systemConfigService.uploadLogo(systemConfigVO);   
      ServletContext sCtx = request.getSession().getServletContext();
      sCtx.setAttribute(BaseConstants.LOGO_NAME, systemConfigVO.getLogoFileName());
    }
   
    saveMessages(request, msgs);
    return mapping.findForward(BaseConstants.FWD_SUCCESS);
  }     
View Full Code Here

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

    }
   
   
    //ActionMessages msgs = new ActionMessages();
    String logoFileName = new String();
    SystemConfigVO systemConfigVO = new SystemConfigVO();
    systemConfigVO = systemConfigService.getSystemConfig();
    logoFileName = systemConfigVO.getLogoFileName();
    systemConfigVO.setLogoFileName(null);
    systemConfigService.uploadLogo(systemConfigVO);
   
    //delete actual logo from file system
    String logoDir = getSysProp().getValue("LOGO.FILEPATH");
    File f = new File(logoDir + logoFileName);
View Full Code Here

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

        if (auth.getMemberStatus().equals(BaseConstants.ACCOUNT_UNAPPROVED)){
          throw new UserAccountException(NotLoginException.ACCOUNT_UNAPPROVED);
        }
       
       
        SystemConfigVO sysConfigVO = sysConfigDao.getSystemConfig();
        try {
            // For security reasons, we generate a new random password for the user.
            // User should be forced to change this on next logon.
            String newPasswd =  PasswordGenerator.createPassword(8);
           
View Full Code Here

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

         if (auth.getMemberStatus().equals(BaseConstants.ACCOUNT_UNAPPROVED)){
           throw new UserAccountException(NotLoginException.ACCOUNT_UNAPPROVED);
         }
        
        
         SystemConfigVO sysConfigVO = sysConfigDao.getSystemConfig();
         try {
          
             // then use an email template to send the notification.       
              SendMailUtil.sendUserNameReminderMail(auth.getEmail(), auth.getFullName(), auth.getMemberUserName(), sysConfigVO);
            
View Full Code Here

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

  }
 
  @SuppressWarnings("unchecked")
  public SystemConfigVO getRssFeedSource() {
   
    SystemConfigVO config = new SystemConfigVO();
   
    SystemConfigVO _systemConfig = getSystemConfig();
   
    if (_systemConfig.getSystemConfigId() != null)  { 
      config.setRssUrl(_systemConfig.getRssUrl());
      config.setRssHeader(_systemConfig.getRssHeader());     
    }     
    return config;
  }
View Full Code Here

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

 
  @SuppressWarnings("unchecked")
  public int getSessionTimeOut(){
   
    int timeout = SystemConfigConstants.DEFAULT_SESSION_TIMEOUT;
    SystemConfigVO _systemConfig = getSystemConfig();
   
    if (_systemConfig.getSystemConfigId() != null)  { 
      if (_systemConfig.getSessionTimeout() !=  null){
        try{
          timeout = Integer.parseInt(_systemConfig.getSessionTimeout());
        }
        catch(NumberFormatException nfe){
          timeout = SystemConfigConstants.DEFAULT_SESSION_TIMEOUT;
        }
      }               
View Full Code Here

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

 
 
 
  @SuppressWarnings("unchecked")
  public void updateSessionTimeOut(String sessionTimeout, String lastModifiedBy){   
    SystemConfigVO _systemConfig = getSystemConfig();
 
    if(_systemConfig.getSystemConfigId() != null){//do update
      _systemConfig.setLastModification(BaseConstants.UPDATED);
      _systemConfig.setSessionTimeout(sessionTimeout);     
    } else{ //do new add
      _systemConfig = new SystemConfigVO();
      _systemConfig.setLastModification(BaseConstants.ADDED);
    }
   
    _systemConfig.setLastModifiedDate(new Date());
    _systemConfig.setLastModifiedBy(lastModifiedBy);
   
    getHibernateTemplate().saveOrUpdate(_systemConfig);
  }
View Full Code Here

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

    return getSystemConfig().getOrgAboutUs();
  }
 
 
  public void updateOrgAboutUs(String orgAboutUs, String lastModifiedBy){
    SystemConfigVO _systemConfig = getSystemConfig();
       
   
    if(_systemConfig.getSystemConfigId() != null){//do update
      _systemConfig.setLastModification(BaseConstants.UPDATED);     
    } else{ //do new add
      _systemConfig = new SystemConfigVO();
      _systemConfig.setLastModification(BaseConstants.ADDED);
    }
       
   
    _systemConfig.setOrgAboutUs(orgAboutUs);
    _systemConfig.setLastModifiedBy(lastModifiedBy);
    _systemConfig.setLastModifiedDate(new Date());
   
    getHibernateTemplate().saveOrUpdate(_systemConfig);
  }
View Full Code Here

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

    return getSystemConfig().getOrgIntro();
  }
 
 
  public void updateOrgIntro(String orgIntro, String lastModifiedBy){
    SystemConfigVO _systemConfig = getSystemConfig();
       
   
    if(_systemConfig.getSystemConfigId() != null){//do update
      _systemConfig.setLastModification(BaseConstants.UPDATED);     
    } else{ //do new add
      _systemConfig = new SystemConfigVO();
      _systemConfig.setLastModification(BaseConstants.ADDED);
    }
       
   
    _systemConfig.setOrgIntro(orgIntro);
    _systemConfig.setLastModifiedBy(lastModifiedBy);
    _systemConfig.setLastModifiedDate(new Date());
   
    getHibernateTemplate().saveOrUpdate(_systemConfig);
  }
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.