Package org.encuestame.utils.web

Examples of org.encuestame.utils.web.UserAccountBean


     * @return {@link UserAccountBean}
     */
    public static final UserAccountBean convertSecondaryUserToUserBean(
            final UserAccount secUserSecondary) {
        System.out.println("convertSecondaryUserToUserBean --->"+ secUserSecondary);
        final UserAccountBean unitUserBean = new UserAccountBean();
        if (secUserSecondary != null) {
            unitUserBean.setId(secUserSecondary.getUid());
            unitUserBean.setName(secUserSecondary.getCompleteName());
            unitUserBean.setEmail(secUserSecondary.getUserEmail());
            unitUserBean.setUsername(secUserSecondary.getUsername());
            unitUserBean.setStatus(secUserSecondary.isUserStatus());
            if (secUserSecondary.getGroup() != null) {
                unitUserBean.setGroupBean(convertGroupDomainToBean(secUserSecondary.getGroup()));
            }
            unitUserBean.setActivated(secUserSecondary.getInviteCode() == null ? true : false);
            unitUserBean.setGroupId(secUserSecondary.getGroup() == null ? null
                    : secUserSecondary.getGroup().getGroupId());
            if (secUserSecondary.getSecUserPermissions() != null) {
                unitUserBean.setListPermission(convertSetToUnitPermission(secUserSecondary.getSecUserPermissions()));
            }
            // System.out.println("Convert Enjoy Date "+secUserSecondary.getEnjoyDate());
            unitUserBean.setDateNew(secUserSecondary.getEnjoyDate());
            // System.out.println("Convert Enjoy Date 1"+unitUserBean.getDateNew());
            unitUserBean.setIpLastLogged(secUserSecondary.getLastIpLogged());
            unitUserBean
                    .setLastTimeLogged(secUserSecondary.getLastTimeLogged());
        }
        return unitUserBean;
    }
View Full Code Here


     *            {@link UserAccount}.
     * @return {@link UserAccountBean}
     */
    public static final UserAccountBean convertBasicSecondaryUserToUserBean(
            final UserAccount userAccount) {
        final UserAccountBean unitUserBean = new UserAccountBean();
        if (userAccount != null) {
            unitUserBean.setId(userAccount.getUid());
            unitUserBean.setName(userAccount.getCompleteName());
            unitUserBean.setEmail(userAccount.getUserEmail());
            unitUserBean.setUsername(userAccount.getUsername());
            unitUserBean.setStatus(userAccount.isUserStatus());
            unitUserBean.setInviteCode(userAccount.getInviteCode());
            unitUserBean
                    .setPictureSource(userAccount.getPictureSource() == null ? null
                            : userAccount.getPictureSource().toString()
                                    .toLowerCase());
        }
        return unitUserBean;
View Full Code Here

      * Create {@link UserAccountBean}.
      * @param username
      * @return
      */
     public UserAccountBean createUnitUserBean(final String username, final String email){
         final UserAccountBean bean = new UserAccountBean();
         bean.setDateNew(new Date());
         bean.setEmail(email);
         bean.setUsername(username);
         bean.setPassword("xxxxx");
         return bean;
     }
View Full Code Here

    public void testSendRenewPasswordEmail() throws Exception{
          final List<Email> emailList = getCatEmailDao().findEmailsByListId(
                  this.emailList.getIdList());
          for (Email emails : emailList) {
                assertNotNull(emails.getEmail());
                final UserAccountBean unitUserBean = new UserAccountBean();
                unitUserBean.setUsername(this.secondary.getUsername());
                unitUserBean.setPassword("password");
                unitUserBean.setEmail(emails.getEmail());
                mailService.sendRenewPasswordEmail(unitUserBean);
              }
      }
View Full Code Here

TOP

Related Classes of org.encuestame.utils.web.UserAccountBean

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.