Package net.naijatek.myalumni.modules.common.domain

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


       AppProp ap = AppProp.getInstance();


          
    try {       
         SystemConfigVO systemConfigVO = systemConfigService.getSystemConfig();
         request.setAttribute(BaseConstants.ORGANIZATION_INTRO, systemConfigVO.getOrgIntro());
       }
       catch (Exception e) {
           sb.append(ap.getValue("core.errorcode.00712"));//Problem encountered while retrieving organization intro
       }
View Full Code Here


                                  HttpServletRequest request,
                                  HttpServletResponse response )
      throws Exception {
       
      ActionMessages errors = new ActionMessages();
      SystemConfigVO sysConfigVO = sysConfigSerivce.getSystemConfig();
     
      try{              
        MemberForm memberForm = (MemberForm) form;
        MemberVO memberVO = new MemberVO();
        BeanUtils.copyProperties(memberVO, memberForm);
       
        memberVO.setLastModifiedBy(memberVO.getMemberUserName());
       
        // Member
        memService.createMember(memberVO, request);
        ////////
       final String memberId = memberVO.getMemberId();
        // Messengers
        List<MessengerVO> messengers = new ArrayList<MessengerVO>();
        MessengerVO mesgerVO = null;
        for(String str : memberVO.getLstSelectedIMs()){
          mesgerVO = new MessengerVO();
          mesgerVO.setLastModifiedBy(memberVO.getMemberUserName());
          mesgerVO.setMemberId(memberId);
          mesgerVO.setLookupCodeId(str);
          messengers.add(mesgerVO);
        }
        messengerService.saveAll(messengers, memberId);
       
        // Message Folders
        mfService.createMemberMessageFolders(memberId, SystemConfigConstants.MESSAGE_FOLDERS, memberVO.getMemberUserName());       
       
        StringBuffer message = new StringBuffer();
        message.append("Thank you " + StringUtil.capitalize(memberVO.getFirstName()) + " " + StringUtil.capitalize(memberVO.getLastName())  + " for registering and Welcome to " + sysConfigVO.getOrganizationName()  + "'s owns space in cyberspace.");
        message.append("Your account should be active within the next 24 hours. So please try logging into the system as soon as you get your activation confirmation email.");
        setSessionObject(request, BaseConstants.MESSAGE,  message.toString());

        // send email to registrant
        try {
View Full Code Here

       AppProp ap = AppProp.getInstance();


          
    try {       
         SystemConfigVO systemConfigVO = systemConfigService.getSystemConfig();
         request.setAttribute(BaseConstants.ORGANIZATION_ABOUTUS, systemConfigVO.getOrgAboutUs());
       }
       catch (Exception e) {
           sb.append(ap.getValue("core.errorcode.00711"));//Problem encountered while retrieving organization about us
       }
View Full Code Here

      if (!adminSecurityCheck(request)){
        return mapping.findForward(BaseConstants.FWD_ADMIN_LOGIN);
      }

      SystemConfigVO sysConfigVO = sysConfigSerivce.getSystemConfig();
      MemberForm memberForm = (MemberForm)form;
      String adminAction = memberForm.getAdminAction();
      String memberUserName = memberForm.getMemberUserName();
      String deleteConfirm = memberForm.getDeleteConfirm();
View Full Code Here

      }
      else if (tab.equalsIgnoreCase(BaseConstants.FWD_SYSTEM_MODULE)){
//      perform any extra tasks to display page
        ActionMessages errors = new ActionMessages();
       
        SystemConfigVO sysConfig = sysConfigSerivce.getSystemConfig();
       
        if (sysConfig.getHasDormitory() == null || sysConfig.getHasDormitory().length() == 0){
          errors.add(BaseConstants.WARN_KEY, new ActionMessage("core.errorcode.00801"));
        }
       
        if (sysConfig.getOrganizationName() == null || sysConfig.getOrganizationName().length() == 0){
          errors.add(BaseConstants.WARN_KEY, new ActionMessage("core.errorcode.00802"));
        }
       
        if (sysConfig.getOrgEmail() == null || sysConfig.getOrgEmail().length() == 0){
          errors.add(BaseConstants.WARN_KEY, new ActionMessage("core.errorcode.00803"));
        }
       
        if (sysConfig.getOrgFirstYear() == null || sysConfig.getOrgFirstYear().length() == 0){
          errors.add(BaseConstants.WARN_KEY, new ActionMessage("core.errorcode.00804"));
        }
       
        if (sysConfig.getRssUrl() == null || sysConfig.getRssUrl().length() == 0){
          errors.add(BaseConstants.WARN_KEY, new ActionMessage("core.errorcode.00805"));
        }
       
        if (sysConfig.getServerUrl() == null || sysConfig.getServerUrl().length() == 0){
          errors.add(BaseConstants.WARN_KEY, new ActionMessage("core.errorcode.00806"));
        }
       
        if (sysConfig.getSessionTimeout() == null || sysConfig.getSessionTimeout().length() == 0){
          errors.add(BaseConstants.WARN_KEY, new ActionMessage("core.errorcode.00807"));
        }
       
        if (sysConfig.getOrgAboutUs() == null || sysConfig.getOrgAboutUs().length() == 0){
          errors.add(BaseConstants.WARN_KEY, new ActionMessage("core.errorcode.00808"));
       
       
        if (sysConfig.getBirthdayNotification() == null || sysConfig.getBirthdayNotification().length() == 0){
          errors.add(BaseConstants.WARN_KEY, new ActionMessage("core.errorcode.00809"));
       
        saveMessages(request, errors);
       
      }
View Full Code Here

TOP

Related Classes of net.naijatek.myalumni.modules.common.domain.SystemConfigVO

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.