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

Examples of net.naijatek.myalumni.modules.common.presentation.form.MemberForm


     * @return
     * @throws Exception
     */
    public ActionForward genericAjaxSearch(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
        logger.debug("in genericAjaxSearch...");
        MemberForm memForm = (MemberForm)form;
        String searchCriteria = memForm.getSearchCriteria();
        String searchWord = "";
        String ajaxFormat = memForm.getAjaxFormat();

       
      if(memForm.getApproach() != null){
       
        if (searchCriteria.equals(BaseConstants.FIRST_NAME)){
          searchWord = memForm.getFirstName();
        }
        else if (searchCriteria.equals(BaseConstants.LAST_NAME)){
          searchWord = memForm.getLastName();
        }
        else if (searchCriteria.equals(BaseConstants.MAIDEN_NAME)){
          searchWord = memForm.getMaidenName();
        }
        else if (searchCriteria.equals(BaseConstants.NICK_NAME)){
          searchWord = memForm.getNickName();
        }  
        else if (searchCriteria.equals(BaseConstants.FULL_NAME)){
          searchWord = memForm.getMessageToUserName();
        }         
       
        if (ajaxFormat.equals(BaseConstants.AJAX_FORMAT_STRING)){
          List<String> result = memService.genericAjaxSearch(searchWord, searchCriteria);
          request.setAttribute("result", result);
View Full Code Here


                                       ActionForm form,
                                       HttpServletRequest request,
                                       HttpServletResponse response) throws
        Exception {
   
      MemberForm memberForm = (MemberForm)form;
      String memberUserName = memberForm.getMemberUserName();
      MemberVO memberVO = memService.getMemberProfileByUserName(memberUserName);
      setRequestObject(request, "profile", memberVO);
      return mapping.findForward(BaseConstants.FWD_SUCCESS);

    }
View Full Code Here

        if (!memberSecurityCheck(request, token)){
          return mapping.findForward(BaseConstants.FWD_LOGIN);
        }


      MemberForm memberForm = (MemberForm) form;
      MemberVO memberVO = memService.getMemberProfileByUserName(token.getMemberUserName());
      BeanUtils.copyProperties(memberForm, memberVO);
     
      try{
      // IM
View Full Code Here

       
      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());
       
View Full Code Here

   
    public ActionForward validateMemberUserName(ActionMapping mapping,
      ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {

    MemberForm memberForm = (MemberForm) form;

    if (memberForm.getApproach() != null) {
      boolean available = memService.isMemberAvailableByUserName(memberForm.getMemberUserName());
      boolean allowed = false;
       
      String memberUserName = memberForm.getMemberUserName();
      try {
        StringUtil.checkGoodName(memberUserName);
        allowed = true;
      } catch (BadInputException e) {
        allowed = false;
View Full Code Here

    public ActionForward filterfn(ActionMapping mapping,
      ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {

      logger.info("***iPhone***: in Filter First Name...");
    MemberForm memberForm = (MemberForm) form;
   
    List<MemberVO> lstMemberVO = memService.getFirstNameStartingWith(memberForm.getAlpha(), BaseConstants.BOOLEAN_NO);
    if (lstMemberVO == null){
      lstMemberVO = new ArrayList<MemberVO>();
    }
     
    setRequestObject(request, BaseConstants.LIST_OF_IPHONE_MEMBERS, lstMemberVO);
View Full Code Here

    public ActionForward filterln(ActionMapping mapping,
      ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {

      logger.info("***iPhone***: in Filter Last Name...");
    MemberForm memberForm = (MemberForm) form; 
   
    List<MemberVO> lstMemberVO = memService.getLastNameStartingWith(memberForm.getAlpha(), BaseConstants.BOOLEAN_NO);
    if (lstMemberVO == null){
      lstMemberVO = new ArrayList<MemberVO>();
    }
       
    setRequestObject(request, BaseConstants.LIST_OF_IPHONE_MEMBERS, lstMemberVO);
View Full Code Here

   
    public ActionForward viewMember(ActionMapping mapping,
      ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {

    MemberForm memberForm = (MemberForm) form; 
   
    MemberVO memberVO = memService.getMemberProfileByMemberId(memberForm.getMemberId());
    if (memberVO == null){
      memberVO = new MemberVO();
    }
       
    setRequestObject(request, BaseConstants.IPHONE_MEMBER_PROFILE, memberVO);
View Full Code Here

    public ActionForward filterDorms(ActionMapping mapping,
      ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {

      logger.info("***iPhone***: in Filter Dorms...");
    MemberForm memberForm = (MemberForm) form; 
   
    List<MemberVO> lstMemberVO = memService.getMembersInDorm(memberForm.getDormitoryId(), BaseConstants.BOOLEAN_NO);
    if (lstMemberVO == null){
      lstMemberVO = new ArrayList<MemberVO>();
    }
     
    setRequestObject(request, BaseConstants.LIST_OF_IPHONE_MEMBERS, lstMemberVO);
View Full Code Here

    public ActionForward filterGender(ActionMapping mapping,
      ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {

      logger.info("***iPhone***: in Filter Gender...");
    MemberForm memberForm = (MemberForm) form; 
   
    List<MemberVO> lstMemberVO = memService.getGenderBy(memberForm.getAlpha(), BaseConstants.BOOLEAN_NO);
    if (lstMemberVO == null){
      lstMemberVO = new ArrayList<MemberVO>();
    }
     
    setRequestObject(request, BaseConstants.LIST_OF_IPHONE_MEMBERS, lstMemberVO);
View Full Code Here

TOP

Related Classes of net.naijatek.myalumni.modules.common.presentation.form.MemberForm

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.