Ejemplo n.º 1
0
  public CardBean getCardBean(Card model) {
    CardBean bean = new CardBean();

    bean.id = model.id;
    bean.bizCardCode = model.bizCardCode;
    bean.companyName = model.companyName;
    bean.userFullName = model.userFullName;
    bean.designation = model.designation;
    bean.fax = model.fax;
    bean.phone = model.phone;
    bean.website = model.website;
    bean.email = model.email;

    bean.imageUrl = StoragePathHelper.getResourceUrlGCS(model.imageUrl);
    bean.logoImage = StoragePathHelper.getResourceUrlGCS(model.logoImage);

    bean.isActive = model.isActive;
    bean.isArchived = model.isArchived;
    bean.isPrimary = model.isPrimary;

    bean.isDeleted = model.isDeleted;

    return bean;
  }
Ejemplo n.º 2
0
  public ContactBean getContactBean(Contact model) {
    ContactBean bean = new ContactBean();

    bean.id = model.id;
    bean.bizCardCode = model.bizCardCode;
    bean.userBean =
        BeanConverter.getInstance()
            .getUserBean(UserDao.getInstance().getUserWithBizCardCode(model.bizCardCode));
    bean.type = model.type;
    bean.notes = model.notes;
    bean.imageUrl = StoragePathHelper.getResourceUrlGCS(model.imageUrl);
    bean.isDeleted = model.isDeleted;

    return bean;
  }
Ejemplo n.º 3
0
  public UserBean getUserBean(User model) {
    UserBean bean = new UserBean();
    bean.id = model.id;
    bean.name = model.name;
    bean.email = model.email;
    bean.phone = model.phone;
    bean.username = model.username;
    bean.bizCardCode = model.bizCardCode;
    bean.password = model.password;
    bean.imageUrl = StoragePathHelper.getResourceUrlGCS(model.imageUrl);
    bean.subscriptionType = model.subscriptionType;

    bean.isDeleted = model.isDeleted;

    return bean;
  }