Package org.sete.service.admin

Examples of org.sete.service.admin.SeteUserProfileService


      HttpServletRequest request,
      HttpServletResponse response) throws Exception {

    doCheckAuthorization(request);
    CreateSeteUserProfileForm csupf = (CreateSeteUserProfileForm) form;
    SeteUserProfileService service = getService(SeteUserProfileService.class);
    SeteUserVo seteUser = service.loadSeteUser(getAuthenticatedUser(request).getUserId().toString());
    csupf.setEmailAddress(seteUser.getEmailAddress());
    csupf.setAddress(seteUser.getAddress());
    csupf.setPhoneNumber(seteUser.getPhoneNumber());
     
    return mapping.findForward("view");
View Full Code Here


      ActionForm form,
      HttpServletRequest request,
      HttpServletResponse response) throws Exception {

    doCheckAuthorization(request);
    SeteUserProfileService service = getService(SeteUserProfileService.class);
    CreateSeteUserProfileVo csupvo = new CreateSeteUserProfileVo();
        csupvo.setCreator(getAuthenticatedUser(request).getUserId().toString());
    BeanUtils.copyProperties(csupvo, form);
    service.editSeteUserProfile(csupvo);
    return mapping.findForward("view");
  }
View Full Code Here

      HttpServletRequest request,
      HttpServletResponse response) throws Exception {

    doCheckAuthorization(request);
    ChangeSeteUserPasswordForm csupf = (ChangeSeteUserPasswordForm) form;
    SeteUserProfileService service = getService(SeteUserProfileService.class);
    ChangeSeteUserPasswordVo csupvo = new ChangeSeteUserPasswordVo();
    csupvo.setUserId(getAuthenticatedUser(request).getUserId().toString());

    if(!csupf.getNewPassword().equals(csupf.getNewPasswordConfirm())) {
      System.out.println("\n\nACTION: NOT EQUAL\n\n");
    }

    BeanUtils.copyProperties(csupvo, form);
    service.changeSeteUserPassword(csupvo);
    displaySuccessMessage(request);
    return mapping.findForward("view");
  }
View Full Code Here

                              HttpServletResponse response) throws Exception {

        doAuthorization(request);

    ResetPasswordForm rpForm = (ResetPasswordForm)form;
    SeteUserProfileService service = getService(SeteUserProfileService.class);
    service.resetPassword(getAuthenticatedUser(request), rpForm.getNewPasswordConfirm());

        createSuccessMessage(request);

        return mapping.findForward("view");
  }
View Full Code Here

TOP

Related Classes of org.sete.service.admin.SeteUserProfileService

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.